/* ============================================================
   Sunset Aquatic Shipyard — Main Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0b3060;
  --navy-dark: #071e3d;
  --gold:      #c8960c;
  --gold-lt:   #e8b832;
  --white:     #ffffff;
  --off-white: #f4f6f9;
  --gray:      #6b7280;
  --gray-lt:   #e5e7eb;
  --text:      #1f2937;
  --radius:    6px;
  --shadow:    0 4px 20px rgba(0,0,0,.12);
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', serif;
  font-size: 17px;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: 'Georgia', serif;
  line-height: 1.25;
  color: var(--navy-dark);
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--navy-dark);
  color: var(--gold-lt);
  font-family: Arial, sans-serif;
  font-size: 13px;
  padding: 6px 0;
  text-align: center;
  letter-spacing: .03em;
}
.top-bar a { color: var(--gold-lt); }
.top-bar a:hover { color: var(--white); }
.top-bar span { margin: 0 14px; }

/* ---------- Navigation ---------- */
header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-anchor { display: flex; align-items: center; gap: 12px; }
.logo-img {
  height: 42px;
  width: auto;
  display: block;
  /* Black logo on dark navy nav — invert to white */
  filter: brightness(0) invert(1);
  transition: opacity var(--transition);
}
.logo:hover .logo-img { opacity: .85; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--gold);
  color: var(--white);
}

/* Hamburger (mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.45);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 0 24px;
  max-width: 800px;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
  margin-bottom: 16px;
}
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
  margin-bottom: 28px;
}
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: var(--transition);
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--gold-lt);
  color: var(--navy-dark);
  transform: translateY(-1px);
}
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  margin-left: 12px;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

/* Shorter hero for inner pages */
.hero-sm { height: 300px; }
.hero-sm .hero-content h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); }

/* ---------- Section Wrapper ---------- */
.section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-alt {
  background: var(--off-white);
  padding: 80px 24px;
}
.section-alt .section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-center { text-align: center; }

.section-label {
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 20px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 680px;
  margin: 0 auto 48px;
  line-height: 1.7;
}
.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 20px 0 32px;
}
.divider-center { margin: 20px auto 32px; }

/* ---------- Service Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.card-body { padding: 24px; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card-body p  { color: var(--gray); font-size: .95rem; }

/* ---------- Two-column layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 340px;
  object-fit: cover;
}

/* ---------- Process Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.step-num {
  width: 52px;
  height: 52px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 18px;
  font-family: Arial, sans-serif;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p  { font-size: .9rem; color: var(--gray); }

/* ---------- Paint Types Table ---------- */
.paint-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.paint-table th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  text-align: left;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}
.paint-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-lt);
  font-size: .95rem;
}
.paint-table tr:last-child td { border-bottom: none; }
.paint-table tr:nth-child(even) td { background: var(--off-white); }

/* ---------- Photo Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.gallery img:hover { transform: scale(1.02); }

/* ---------- Services List ---------- */
.services-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 24px;
}
.services-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .97rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-lt);
}
.services-list li::before {
  content: "⚓";
  color: var(--gold);
  font-size: .85rem;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ---------- Callout Banner ---------- */
.callout {
  background: var(--navy);
  color: var(--white);
  padding: 60px 24px;
  text-align: center;
}
.callout h2 { color: var(--white); font-size: 1.9rem; margin-bottom: 12px; }
.callout p  { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 28px; }
.callout .phone {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-lt);
  font-family: Arial, sans-serif;
  display: block;
  margin-bottom: 28px;
}
.callout .phone:hover { color: var(--white); }

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { font-size: 1.5rem; margin-bottom: 18px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-icon {
  width: 46px;
  height: 46px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { fill: var(--white); width: 22px; height: 22px; }
.contact-detail-body h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 4px;
  font-family: Arial, sans-serif;
}
.contact-detail-body p, .contact-detail-body a {
  font-size: .97rem;
  color: var(--gray);
  line-height: 1.6;
}
.contact-detail-body a:hover { color: var(--gold); }

/* Contact form */
.contact-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; }
.contact-form h2 { font-size: 1.5rem; margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--navy);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-lt);
  border-radius: var(--radius);
  font-family: 'Georgia', serif;
  font-size: 15px;
  color: var(--text);
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.form-group textarea { height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  transition: var(--transition);
}
.btn-submit:hover { background: var(--gold); }

/* ---------- Map ---------- */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 60px;
}
.map-wrap iframe { display: block; width: 100%; height: 380px; border: none; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding: 60px 24px 30px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand .name {
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 12px;
  font-family: 'Georgia', serif;
}
.footer-brand p { font-size: .9rem; line-height: 1.8; }
.footer-col h4 {
  color: var(--gold-lt);
  font-family: Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .9rem; transition: var(--transition); }
.footer-col a:hover { color: var(--gold-lt); }
.footer-bottom {
  max-width: 1100px;
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
  gap: 16px;
  flex-wrap: wrap;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  transition: var(--transition);
}
.social-links a:hover { color: var(--gold-lt); }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .logo-img { height: 32px; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 16px; }
  header { position: relative; }
  .two-col, .two-col.reverse { grid-template-columns: 1fr; direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .hero { height: 360px; }
  .hero-sm { height: 240px; }
}
