/* Coastal Cleaning Solutions of NWF — site styles
   Palette pulled from the logo: sun teal, wave brass, banner charcoal,
   and the sand-to-seafoam of the sunset backgrounds. */

:root {
  --teal: #1f4a4e;
  --teal-deep: #15363a;
  --teal-soft: #d7e6e2;
  --brass: #b99d5c;
  --brass-light: #d9c795;
  --charcoal: #3d3e3a;
  --ink: #232b2a;
  --muted: #5a6562;
  --sand: #f8efdb;
  --seafoam: #dfeee8;
  --mist: #f3f6f4;
  --white: #ffffff;
  --line: #e2e6e3;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-lg: 28px;
  --radius-md: 18px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--teal); color: var(--white); padding: 10px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  font: 600 0.95rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.btn-dark { background: var(--teal); color: var(--white); }
.btn-dark:hover { background: var(--teal-deep); }
.btn-light { background: var(--white); color: var(--ink); box-shadow: 0 1px 0 rgba(31, 74, 78, .08); }
.btn-light:hover { background: var(--teal); color: var(--white); }

.btn-pair { display: inline-flex; align-items: center; text-decoration: none; }
.btn-circle {
  display: grid; place-items: center; width: 48px; height: 48px; margin-left: -2px;
  border-radius: 50%; background: var(--teal); color: var(--white);
  transition: transform .25s ease, background-color .2s ease;
}
.btn-pair:hover .btn { background: var(--teal-deep); }
.btn-pair:hover .btn-circle { background: var(--teal-deep); transform: rotate(45deg); }

.text-link { color: var(--teal); font-weight: 600; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 239, 219, 0);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 62px; height: auto; }
.brand-word { display: flex; flex-direction: column; gap: 3px; }
.brand-name {
  font-weight: 600; font-size: 1.02rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--charcoal); line-height: 1;
}
.brand-sub {
  align-self: flex-start;
  font-weight: 500; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--white); background: var(--charcoal); padding: 3px 6px 2px; line-height: 1.2;
}

.site-nav { display: flex; gap: 30px; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink); padding: 6px 0; border-bottom: 1.5px solid transparent; }
.site-nav a:hover { border-color: var(--brass); }
.site-nav .nav-phone-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 600; font-size: .95rem; color: var(--teal); text-decoration: none; }
.header-phone:hover { text-decoration: underline; text-underline-offset: 4px; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  margin-top: -84px; /* sit under the transparent header */
  padding: calc(84px + clamp(32px, 6vw, 72px)) 0 clamp(56px, 7vw, 96px);
  background: linear-gradient(118deg, var(--sand) 0%, #f3f2e3 45%, var(--seafoam) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.lede { margin-top: 24px; font-size: 1.1rem; color: #3f4947; max-width: 42ch; }

.hero-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 32px; }

.hero-foot { display: flex; align-items: center; gap: 24px; margin-top: clamp(40px, 6vw, 64px); }
.hero-thumb { width: 210px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-md); }
.hero-note-big { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; color: var(--teal); }
.hero-note-small { font-size: .88rem; color: var(--muted); margin-top: 4px; max-width: 24ch; }

.hero-media { position: relative; }
.hero-photo { width: 100%; aspect-ratio: 1 / 1.02; object-fit: cover; object-position: 40% center; border-radius: var(--radius-lg); }
.hero-badge {
  position: absolute; left: -36px; bottom: 18%;
  padding: 20px 24px; border-radius: 20px;
  background: var(--teal); color: var(--white);
  box-shadow: 0 18px 40px -18px rgba(21, 54, 58, .55);
}
.hero-badge-big { font-size: .85rem; color: var(--brass-light); font-weight: 500; }
.hero-badge-small { display: block; margin-top: 4px; font-size: 1.35rem; font-weight: 700; color: var(--white); text-decoration: none; letter-spacing: -0.01em; }
.hero-badge-small:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Coastline / service area ---------- */
.coast { padding: clamp(56px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); }
.coast-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; }

.coast-line { position: relative; height: 170px; margin: 28px 0 8px; }
.coast-wave { position: absolute; left: 0; top: 45px; width: 100%; height: 80px; overflow: visible; }
.coast-wave path {
  fill: none; stroke: var(--brass); stroke-width: 3; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.coast-wave path + path { stroke: var(--teal); stroke-width: 2; opacity: .35; }

.coast-stops { list-style: none; margin: 0; padding: 0; }
.coast-stops li {
  position: absolute; left: var(--x);
  transform: translateX(-50%);
  text-align: center; white-space: nowrap;
  font-weight: 600; font-size: 1rem; color: var(--ink);
}
.coast-stops li::before {
  content: ""; position: absolute; left: 50%; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; background: var(--white); border: 3px solid var(--teal);
}
/* labels alternate below / above the line so neighbours never collide */
.coast-stops li:nth-child(odd) { top: 104px; }
.coast-stops li:nth-child(odd)::before { top: -26px; }
.coast-stops li:nth-child(even) { top: 16px; }
.coast-stops li:nth-child(even)::before { top: 62px; }

.coast-stops li:first-child { transform: none; text-align: left; }
.coast-stops li:first-child::before { left: 0; margin-left: -7px; }
.coast-stops li:last-child { transform: translateX(-100%); text-align: right; }
.coast-stops li:last-child::before { left: 100%; }

.coast-stops .is-home { font-size: 1.25rem; color: var(--teal); }
.coast-stops .is-home::before { width: 24px; height: 24px; margin-left: -12px; background: var(--teal); border: 5px solid var(--brass-light); }
.coast-stops .is-home:nth-child(odd)::before { top: -31px; }
.coast-stops .is-home span { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); }

.coast-note { max-width: 62ch; color: var(--muted); }
.coast-note a { color: var(--teal); font-weight: 600; text-underline-offset: 3px; }

/* one orchestrated moment: the coastline draws itself in */
.js .coast-wave { clip-path: inset(-20px 100% -20px 0); }
.js .coast.is-visible .coast-wave { transition: clip-path 1.8s cubic-bezier(.6, .1, .2, 1); clip-path: inset(-20px 0 -20px 0); }
.js .coast-stops li { opacity: 0; transition: opacity .5s ease; }
.js .coast.is-visible .coast-stops li { opacity: 1; }
.js .coast.is-visible .coast-stops li:nth-child(2) { transition-delay: .25s; }
.js .coast.is-visible .coast-stops li:nth-child(3) { transition-delay: .8s; }
.js .coast.is-visible .coast-stops li:nth-child(4) { transition-delay: 1.3s; }
.js .coast.is-visible .coast-stops li:nth-child(5) { transition-delay: 1.6s; }
@media (prefers-reduced-motion: reduce) {
  .js .coast-wave { clip-path: none; }
  .js .coast-stops li { opacity: 1; transition: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.section-head p { color: var(--muted); max-width: 48ch; justify-self: end; }

/* Services */
.services { background: var(--mist); }
.service-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 28px;
}
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
.service h3 { margin-top: 18px; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.service p { margin-top: 8px; color: var(--muted); font-size: .95rem; max-width: 40ch; }

/* Photos */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px; grid-auto-flow: dense; gap: 16px;
}
.gallery-item {
  padding: 0; border: 0; background: var(--teal-soft); cursor: zoom-in;
  border-radius: var(--radius-md); overflow: hidden;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.03); }

.lightbox {
  padding: 0; border: 0; background: transparent; max-width: min(1100px, 92vw); max-height: 90vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(21, 54, 58, .82); }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: var(--radius-md); }
.lightbox-close {
  position: absolute; top: -18px; right: -18px; width: 44px; height: 44px;
  border-radius: 50%; border: 0; background: var(--white); color: var(--ink); cursor: pointer;
  display: grid; place-items: center;
}
.lightbox[open] { animation: lightbox-in .25s ease; }
@keyframes lightbox-in { from { opacity: 0; transform: scale(.97); } }
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } }

/* Book a clean */
.book { position: relative; padding-top: 0; background: var(--white); }
.book-sky {
  height: clamp(180px, 22vw, 280px);
  background: url("../img/gulf-sunset.jpg") center 70% / cover no-repeat;
}
.book-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(-160px, -12vw, -90px);
  position: relative;
}
.book-intro { padding-top: clamp(130px, 15vw, 200px); }
.book-intro h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.book-intro p { margin-top: 16px; color: var(--muted); max-width: 40ch; }
.book-intro .book-alt { color: var(--ink); font-weight: 500; }
.book-alt a { color: var(--teal); font-weight: 600; text-underline-offset: 3px; }

.book-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgba(21, 54, 58, .35), 0 0 0 1px var(--line);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: var(--mist); border: 1.5px solid transparent; border-radius: 12px;
  transition: border-color .2s ease, background-color .2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: var(--white);
}
.field [aria-invalid="true"] { border-color: #b3402a; background: #fdf3f1; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.form-status { font-size: .95rem; color: var(--muted); }
.form-status.is-error { color: #b3402a; }
.form-status.is-success { color: var(--teal); font-weight: 600; }
.form-status a { color: var(--teal); font-weight: 600; }

/* Contact */
.contact { background: linear-gradient(118deg, var(--sand) 0%, var(--seafoam) 100%); }
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px 72px; align-items: start; }
.contact h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.contact-lede { margin-top: 16px; color: #3f4947; max-width: 34ch; }
.contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; margin: 0; }
.contact-list div { border-top: 2px solid var(--brass); padding-top: 14px; }
.contact-list dt { font-size: .88rem; color: var(--muted); font-weight: 500; }
.contact-list dd { margin: 6px 0 0; font-size: 1.35rem; font-weight: 600; color: var(--teal); letter-spacing: -0.01em; }
.contact-list dd a { text-decoration: none; }
.contact-list dd a:hover { text-decoration: underline; text-underline-offset: 4px; }

.socials { display: flex; gap: 10px; }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--teal); color: var(--white); transition: background-color .2s ease;
}
.socials a:hover { background: var(--teal-deep); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: #cfdcd9; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-mark { width: 104px; box-sizing: content-box; padding: 14px 16px; background: var(--sand); border-radius: 16px; }
.footer-name {
  margin-top: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--white); line-height: 1.4;
}
.footer-name span { font-size: .75rem; font-weight: 500; color: var(--brass-light); }
.footer-tag { margin-top: 12px; font-size: .92rem; }
.footer-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-size: .92rem; }
.footer-col h3 { font-size: .95rem; font-weight: 600; color: var(--white); letter-spacing: 0; margin-bottom: 4px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .socials { margin-top: 6px; }
.site-footer .socials a { width: 36px; height: 36px; background: rgba(255, 255, 255, .1); }
.site-footer .socials a:hover { background: var(--brass); color: var(--teal-deep); }
.footer-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: #9fb4b0; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .site-nav { gap: 22px; }
  .header-phone { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .header-inner { min-height: 72px; }
  .hero { margin-top: -72px; padding-top: calc(72px + 32px); }
  html { scroll-padding-top: 76px; }
  .brand-mark { width: 50px; }

  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    border: 0; background: var(--white); cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
    transition: transform .2s ease, background-color .2s ease;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--white); box-shadow: 0 16px 30px -20px rgba(21, 54, 58, .4);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav .nav-phone-mobile { display: block; color: var(--teal); font-weight: 600; border-bottom: 0; }
  .header-actions .btn { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-badge { left: 16px; bottom: -24px; padding: 14px 18px; }
  .hero-copy { padding-top: 16px; }

  .section-head { grid-template-columns: 1fr; }
  .section-head p { justify-self: start; }

  .book-grid { grid-template-columns: 1fr; margin-top: -60px; }
  .book-intro { padding-top: 0; order: -1; margin-top: 90px; }
  .book-intro { background: var(--white); border-radius: var(--radius-md) var(--radius-md) 0 0; }

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  /* the coastline turns vertical on narrow screens */
  .coast-line { height: auto; margin: 24px 0 24px; }
  .coast-wave { display: none; }
  .coast-stops { border-left: 3px solid var(--brass); margin-left: 8px; padding: 6px 0; display: grid; gap: 22px; }
  .coast-stops li,
  .coast-stops li:first-child,
  .coast-stops li:last-child,
  .coast-stops li:nth-child(odd),
  .coast-stops li:nth-child(even) {
    position: relative; top: auto; left: auto; transform: none; text-align: left; padding-left: 24px;
  }
  .coast-stops li::before,
  .coast-stops li:first-child::before,
  .coast-stops li:last-child::before,
  .coast-stops li:nth-child(odd)::before,
  .coast-stops li:nth-child(even)::before { left: -9px; top: 5px; margin-left: 0; }
  .coast-stops .is-home::before,
  .coast-stops .is-home:nth-child(odd)::before { left: -14px; top: 2px; margin-left: 0; }
  .coast-stops .is-home span { display: inline; margin-left: 8px; }

  .service-grid { grid-template-columns: 1fr; gap: 36px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 10px; }
  .gallery-item.wide { grid-column: span 2; }

  .book-form { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-thumb { width: 150px; }
  .brand-name { font-size: .88rem; }
  .brand-sub { font-size: .56rem; }
}
