/* ============================================================
   CLIP — Coastal Land Improvement Partners
   ============================================================ */

:root {
  --ink:        #0d1c15;
  --forest:     #14372a;
  --forest-2:   #1b4a37;
  --moss:       #2f6b4f;
  --fern:       #57a97a;
  --fern-soft:  #a8d6bd;

  --sand:       #e3d7c0;
  --dune:       #f2ebdd;
  --shell:      #fbf8f2;
  --paper:      #ffffff;

  --sun:        #d9862f;
  --sun-deep:   #b96d1d;

  /* Brand cyan, sampled straight out of the logo's wave (#00c5e4).
     --tide is the true brand value and only goes on dark grounds or as
     a graphic; it is far too light for text on cream, so --tide-deep is
     the legible variant and --tide-soft the one for dark grounds. */
  --tide:       #00c5e4;
  --tide-deep:  #0b7f93;
  --tide-soft:  #9fe6f4;

  --text:       #1a2b23;
  --text-mute:  #5b6b63;
  --line:       rgba(20, 55, 42, 0.12);

  --radius:     16px;
  --radius-lg:  24px;
  --shadow-sm:  0 1px 2px rgba(13,28,21,.05), 0 4px 14px rgba(13,28,21,.05);
  --shadow-md:  0 10px 30px -12px rgba(13,28,21,.22), 0 2px 8px rgba(13,28,21,.06);
  --shadow-lg:  0 32px 70px -28px rgba(13,28,21,.42);

  --wrap:       1180px;
  --ease:       cubic-bezier(.22,.68,.28,1);

  --font-body:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-disp:  'Fraunces', Georgia, 'Times New Roman', serif;

  /* committed light design — keeps phones from inverting form controls */
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--shell);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
svg { display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-disp);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--forest);
}

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--forest); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

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

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120;
  background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--fern), var(--tide));
  transition: width .08s linear;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body);
  font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .28s var(--ease), background-color .25s var(--ease),
              box-shadow .3s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--sun);
  color: #1d1102;
  box-shadow: 0 10px 24px -12px rgba(217,134,47,.9);
}
.btn-primary:hover { background: var(--sun-deep); color: #fff; box-shadow: 0 16px 34px -14px rgba(185,109,29,.95); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.42);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.75); }

/* ghost on light backgrounds */
.quote-card .btn-ghost,
.final-cta ~ * .btn-ghost,
.mobile-cta .btn-ghost {
  border-color: var(--line);
  color: var(--forest);
}
.quote-card .btn-ghost:hover,
.mobile-cta .btn-ghost:hover { background: rgba(20,55,42,.06); border-color: rgba(20,55,42,.3); }

.btn-sm { padding: 11px 20px; font-size: .9rem; }
.btn-lg { padding: 18px 32px; font-size: 1.03rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0;
  transition: padding .35s var(--ease), background-color .35s var(--ease),
              box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-header.stuck {
  padding: 10px 0;
  background: rgba(251,248,242,.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 28px -22px rgba(13,28,21,.5);
}

.header-inner {
  display: flex; align-items: center; gap: 24px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: #fff;
  transition: color .35s var(--ease);
  flex-shrink: 0;
}
.site-header.stuck .brand { color: var(--forest); }

/* Header uses the cropped mark (CLIP + palm + wave). The full lockup's
   two text lines are unreadable at header size, so they live in the
   footer instead. Two variants: cream for the transparent header over
   the hero, black once the header goes light on scroll. */
.brand-logo {
  display: block;
  height: 52px; width: auto;
  transition: height .35s var(--ease);
}
.brand-logo--onLight { display: none; }
.site-header.stuck .brand-logo,
.site-header.nav-open .brand-logo { height: 42px; }
.site-header.stuck .brand-logo--onDark,
.site-header.nav-open .brand-logo--onDark { display: none; }
.site-header.stuck .brand-logo--onLight,
.site-header.nav-open .brand-logo--onLight { display: block; }

.nav {
  display: flex; gap: 4px; margin-left: auto;
}
.nav a {
  position: relative;
  padding: 9px 14px; border-radius: 999px;
  font-size: .93rem; font-weight: 500; text-decoration: none;
  white-space: nowrap;
  color: rgba(255,255,255,.86);
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.site-header.stuck .nav a { color: var(--text-mute); }
.site-header.stuck .nav a:hover { background: rgba(20,55,42,.07); color: var(--forest); }
.nav a.active { color: #fff; }
.site-header.stuck .nav a.active { color: var(--forest); font-weight: 600; }

/* mobile-only items inside the nav panel */
.nav-cta, .nav-phone { display: none; }

.header-cta { display: flex; align-items: center; gap: 14px; }

.phone-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .92rem; font-weight: 600; text-decoration: none;
  color: rgba(255,255,255,.9);
  transition: color .3s var(--ease);
  white-space: nowrap;
}
.phone-link:hover { color: var(--tide-soft); }
.site-header.stuck .phone-link { color: var(--forest); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; border: 0; background: transparent;
  cursor: pointer; padding: 10px; margin-left: auto;
  flex-direction: column; justify-content: space-between;
}
.menu-toggle span {
  display: block; height: 2px; width: 100%; border-radius: 2px;
  background: #fff; transition: transform .35s var(--ease), opacity .25s var(--ease), background-color .35s var(--ease);
}
.site-header.stuck .menu-toggle span { background: var(--forest); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px 0 110px;
  overflow: hidden;
  color: #fff;
}

.hero-media { position: absolute; inset: 0; z-index: 0; }

.hero-img {
  position: absolute; inset: -12% 0 -12% 0;
  background-color: var(--forest);
  background-image:
    linear-gradient(180deg, rgba(13,28,21,.25), rgba(13,28,21,.55)),
    url('https://images.unsplash.com/photo-1558904541-efa843a96f01?auto=format&fit=crop&w=2000&q=75');
  background-size: cover;
  background-position: center 55%;
  will-change: transform;
  transform: translate3d(0,0,0);
}

.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 12% 40%, rgba(13,28,21,.86) 0%, rgba(13,28,21,.5) 45%, rgba(13,28,21,.18) 75%),
    linear-gradient(180deg, rgba(13,28,21,.72) 0%, rgba(13,28,21,.28) 32%, rgba(13,28,21,.82) 100%);
}

/* keeps the outer gutter aligned with the header, while the copy
   itself stays a readable width and hugs the left edge */
.hero-inner { position: relative; z-index: 2; }
.hero-inner > * { max-width: 780px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--tide-soft);
  margin: 0 0 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--tide);
  box-shadow: 0 0 0 4px rgba(0,197,228,.24);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(0,197,228,.24); }
  50%     { box-shadow: 0 0 0 9px rgba(0,197,228,0); }
}
.section .eyebrow { color: var(--tide-deep); }

.hero-title {
  font-size: clamp(3rem, 8.2vw, 5.9rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -0.032em;
  color: #fff;
  margin: 0 0 26px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: block; }
.hero-title em {
  font-style: italic; font-weight: 400;
  color: var(--tide-soft);
}

.hero-sub {
  font-size: clamp(1.06rem, 1.9vw, 1.24rem);
  line-height: 1.6;
  color: rgba(255,255,255,.86);
  max-width: 56ch;
  margin: 0 0 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-trust {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px 34px;
  font-size: .92rem; color: rgba(255,255,255,.76);
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before {
  content: ''; width: 18px; height: 1px; background: rgba(255,255,255,.35);
}
.hero-trust strong { color: #fff; font-weight: 700; }

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  width: 24px; height: 40px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; border-radius: 2px;
  background: rgba(255,255,255,.85);
  animation: scrolldot 2s var(--ease) infinite;
}
@keyframes scrolldot {
  0%   { transform: translate(-50%, 0);   opacity: 0; }
  25%  { opacity: 1; }
  75%  { transform: translate(-50%, 16px); opacity: 0; }
  100% { transform: translate(-50%, 16px); opacity: 0; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--forest);
  color: var(--fern-soft);
  padding: 16px 0;
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,.08);
}
.marquee-track {
  display: flex; align-items: center; gap: 26px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee-track span {
  font-family: var(--font-disp);
  font-size: 1.02rem; font-weight: 600; letter-spacing: .04em;
  white-space: nowrap;
  color: rgba(232,220,200,.92);
}
.marquee-track i { color: var(--tide); font-style: normal; font-size: .7rem; opacity: .75; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(72px, 9vw, 128px) 0; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.section-title {
  font-size: clamp(2rem, 4.1vw, 3.15rem);
  margin: 0 0 18px;
}
.section-lede {
  font-size: 1.08rem; color: var(--text-mute); line-height: 1.7; margin: 0;
}

/* ---------- services ---------- */
.services { background: var(--shell); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.service-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--tide), var(--fern));
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(20,55,42,.2);
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(87,169,122,.16), rgba(87,169,122,.06));
  color: var(--moss);
  margin-bottom: 20px;
  transition: transform .45s var(--ease), background-color .45s var(--ease);
}
.service-icon svg { width: 27px; height: 27px; }
.service-card:hover .service-icon {
  transform: rotate(-6deg) scale(1.06);
  background: linear-gradient(145deg, rgba(87,169,122,.28), rgba(87,169,122,.12));
}

.service-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.service-card p { color: var(--text-mute); font-size: .97rem; margin-bottom: 18px; }

.service-list { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.service-list li {
  position: relative; padding-left: 20px; font-size: .9rem; color: var(--text-mute);
  margin-bottom: 7px;
}
.service-list li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fern-soft); border: 1.5px solid var(--fern);
}

.service-card--cta {
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-2) 100%);
  border-color: transparent;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
}
.service-card--cta h3 { color: #fff; font-size: 1.45rem; }
.service-card--cta p { color: rgba(255,255,255,.78); }
.service-card--cta .btn { align-self: flex-start; }
.service-card--cta::after { display: none; }

/* ---------- showcase ---------- */
.showcase {
  padding: clamp(72px, 9vw, 128px) 0;
  background: var(--dune);
}
.showcase-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 78px);
  align-items: center;
}
.showcase-copy .section-head { margin-bottom: 0; }

.value-list { list-style: none; margin: 30px 0 0; padding: 0; }
.value-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 15px 0; border-bottom: 1px solid var(--line);
  font-size: .99rem; color: var(--text-mute);
}
.value-list li:last-child { border-bottom: 0; }
.value-list strong { color: var(--forest); font-weight: 600; }
.tick {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0,197,228,.16); color: var(--tide-deep);
  font-size: .78rem; font-weight: 700; margin-top: 1px;
}

.showcase-media { position: relative; }
.parallax-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.parallax-img {
  position: absolute; inset: -14% 0 -14% 0;
  background-color: var(--moss);
  background-image: url('https://images.unsplash.com/photo-1416879595882-3373a0480b5b?auto=format&fit=crop&w=1400&q=75');
  background-size: cover; background-position: center;
  will-change: transform;
}
.showcase-badge {
  position: absolute; left: -18px; bottom: 34px;
  background: var(--sun); color: #1d1102;
  border-radius: 16px; padding: 16px 22px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.showcase-badge strong {
  display: block; font-family: var(--font-disp); font-size: 1.7rem; line-height: 1; color: #1d1102;
}
.showcase-badge span {
  display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  margin-top: 4px;
}

/* ---------- process ---------- */
.process { background: var(--shell); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px 30px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step-num {
  display: inline-block;
  font-family: var(--font-disp); font-size: 2.6rem; font-weight: 700; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--tide);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.24rem; margin-bottom: 9px; }
.step p { color: var(--text-mute); font-size: .96rem; margin: 0; }


/* ---------- service area ---------- */
.areas { background: var(--dune); }

.area-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 940px; margin-inline: auto;
}
.area-col {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.area-col h3 {
  font-family: var(--font-body);
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--moss); font-weight: 700;
  margin-bottom: 18px;
}
.area-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.area-list li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--shell);
  border: 1px solid var(--line);
  font-size: .9rem; font-weight: 500; color: var(--text);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.area-list li:hover { background: rgba(0,197,228,.1); border-color: var(--tide-deep); }

.area-note {
  text-align: center; margin: 30px auto 0; max-width: 60ch;
  font-size: .96rem; color: var(--text-mute);
}
.area-note a { color: var(--tide-deep); font-weight: 600; text-underline-offset: 3px; }

/* ============================================================
   QUOTE
   ============================================================ */
.quote {
  background:
    linear-gradient(165deg, var(--forest) 0%, var(--ink) 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
}
.quote::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 85% 12%, rgba(0,197,228,.22), transparent 62%),
    radial-gradient(55% 45% at 8% 88%, rgba(217,134,47,.14), transparent 62%);
  pointer-events: none;
}
.quote-wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 68px);
  align-items: start;
}
.quote-intro .section-title { color: #fff; }
.quote-intro .section-lede { color: rgba(255,255,255,.76); }
.quote-intro .eyebrow { color: var(--tide-soft); }

.quote-assure { list-style: none; margin: 30px 0 0; padding: 0; }
.quote-assure li {
  display: flex; gap: 11px; align-items: center;
  padding: 11px 0; font-size: .96rem; color: rgba(255,255,255,.84);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.quote-assure li:last-child { border-bottom: 0; }
.quote-assure span { color: var(--tide); font-weight: 700; }

.quote-alt {
  margin-top: 34px; padding: 22px 24px;
  border: 1px dashed rgba(255,255,255,.22); border-radius: var(--radius);
  background: rgba(255,255,255,.04);
}
.quote-alt p { margin: 0 0 6px; font-size: .88rem; color: rgba(255,255,255,.62); }
.phone-big {
  font-family: var(--font-disp); font-size: 1.75rem; font-weight: 700;
  color: #fff; text-decoration: none; letter-spacing: -0.01em;
  transition: color .3s var(--ease);
}
.phone-big:hover { color: var(--tide-soft); }
.quote-alt > span { display: block; font-size: .82rem; color: rgba(255,255,255,.55); margin-top: 4px; }

/* --- card --- */
.quote-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 40px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.steps-bar {
  height: 4px; border-radius: 4px; background: rgba(20,55,42,.1); overflow: hidden;
  margin-bottom: 12px;
}
.steps-bar-fill {
  height: 100%; width: 33.33%; border-radius: 4px;
  background: linear-gradient(90deg, var(--fern), var(--tide));
  transition: width .5s var(--ease);
}
.step-counter {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-mute); font-weight: 600; margin: 0 0 24px;
}

.fstep {
  border: 0; margin: 0; padding: 0;
  display: none;
}
.fstep.is-active { display: block; animation: stepIn .5s var(--ease) both; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.fstep legend {
  font-family: var(--font-disp); font-size: 1.42rem; font-weight: 600; color: var(--forest);
  padding: 0; margin-bottom: 6px; line-height: 1.2;
}
.field-hint { font-size: .88rem; color: var(--text-mute); margin: 0 0 18px; }

.choice-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 10px;
  margin-bottom: 6px;
}
/* flex so one- and two-line options share a row height */
.choice { position: relative; cursor: pointer; display: flex; }
/* visually hidden but still focusable and in the tab order */
.choice input {
  position: absolute; left: 16px; top: 50%;
  width: 18px; height: 18px; margin: 0;
  opacity: 0; cursor: pointer;
  transform: translateY(-50%);
}
.choice span {
  display: flex; align-items: center;
  flex: 1;
  padding: 14px 16px 14px 42px;
  border: 1.5px solid var(--line); border-radius: 12px;
  font-size: .93rem; font-weight: 500; color: var(--text);
  background: var(--shell);
  transition: border-color .28s var(--ease), background-color .28s var(--ease),
              transform .28s var(--ease), color .28s var(--ease);
}
.choice span::before {
  content: ''; position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 5px;
  border: 1.5px solid rgba(20,55,42,.3); background: #fff;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.choice span::after {
  content: ''; position: absolute; left: 21px; top: 50%;
  width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: translateY(-60%) rotate(45deg) scale(0);
  transition: transform .25s var(--ease);
}
.choice:hover span { border-color: rgba(20,55,42,.28); transform: translateY(-1px); }
.choice input:checked + span {
  border-color: var(--moss); background: rgba(87,169,122,.1); color: var(--forest); font-weight: 600;
}
.choice input:checked + span::before { background: var(--moss); border-color: var(--moss); }
.choice input:checked + span::after { transform: translateY(-60%) rotate(45deg) scale(1); }
.choice input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }

.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: .87rem; font-weight: 600; color: var(--forest);
  margin-bottom: 7px;
}
.req { color: var(--sun-deep); }

.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body); font-size: .98rem; color: var(--text);
  padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--shell);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 92px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b63' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 17px;
  padding-right: 42px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--moss);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(87,169,122,.16);
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: #c0442e; background: rgba(192,68,46,.04);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.err {
  color: #c0442e; font-size: .82rem; font-weight: 500; margin: 6px 0 0;
  min-height: 0; display: none;
}
.err.show { display: block; animation: shake .38s var(--ease); }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.consent {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: .88rem; color: var(--text-mute); cursor: pointer;
  margin-top: 4px;
}
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--moss); flex-shrink: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 26px;
}
.form-nav .btn-ghost { border-color: var(--line); color: var(--forest); }
.form-nav .btn-ghost:hover { background: rgba(20,55,42,.06); }

.fineprint { font-size: .78rem; color: var(--text-mute); margin: 14px 0 0; text-align: center; }

.btn.is-loading { pointer-events: none; opacity: .75; }

/* success */
.quote-success { text-align: center; padding: 26px 0 12px; animation: stepIn .55s var(--ease) both; }
.success-mark { width: 74px; height: 74px; margin: 0 auto 22px; color: var(--tide-deep); }
.success-mark svg { width: 100%; height: 100%; }
.success-mark circle { stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw .7s var(--ease) forwards; }
.success-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s var(--ease) .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.quote-success h3 { font-size: 1.7rem; margin-bottom: 10px; }
.quote-success p { color: var(--text-mute); max-width: 42ch; margin: 0 auto 24px; }
.quote-success a { color: var(--tide-deep); font-weight: 600; }


/* Wave divider — the logo's cyan wave and dark dune, leading the light
   section above into the dark quote panel below. */
.wave-divider {
  position: absolute; inset: 0 0 auto 0;
  height: 72px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% 72px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H1440 V42 C1210 74 1010 22 720 46 C450 68 230 26 0 52 Z' fill='%2300c5e4'/%3E%3Cpath d='M0 0 H1440 V28 C1210 60 1010 8 720 32 C450 54 230 12 0 38 Z' fill='%23f2ebdd'/%3E%3C/svg%3E");
}
.quote { padding-top: calc(clamp(72px, 9vw, 128px) + 56px); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--dune); }
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.acc-item.open { box-shadow: var(--shadow-md); border-color: rgba(20,55,42,.2); }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px; background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-disp); font-size: 1.08rem; font-weight: 600; color: var(--forest);
  text-align: left; line-height: 1.35;
}
.acc-icon {
  position: relative; flex-shrink: 0; width: 20px; height: 20px;
}
.acc-icon::before, .acc-icon::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  background: var(--tide-deep); border-radius: 2px;
  transform: translate(-50%,-50%);
  transition: transform .38s var(--ease), opacity .3s var(--ease);
}
.acc-icon::before { width: 15px; height: 2px; }
.acc-icon::after  { width: 2px; height: 15px; }
.acc-item.open .acc-icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }

.acc-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p {
  margin: 0; padding: 0 24px 22px; color: var(--text-mute); font-size: .97rem;
}

/* ============================================================
   FINAL CTA + FOOTER
   ============================================================ */
.final-cta {
  position: relative;
  padding: clamp(78px, 10vw, 130px) 0;
  text-align: center;
  color: #fff;
  background-color: var(--forest);
  background-image:
    linear-gradient(rgba(13,28,21,.78), rgba(13,28,21,.88)),
    url('https://images.unsplash.com/photo-1585320806297-9794b3e4eeae?auto=format&fit=crop&w=1800&q=70');
  background-size: cover; background-position: center;
  background-attachment: fixed;
}
.final-cta h2 {
  color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 14px;
}
.final-cta p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 32px; }
.final-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 68px 0 26px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px 30px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { width: auto; height: 92px; margin-bottom: 20px; }
.footer-tag { font-size: .92rem; margin: 0; max-width: 34ch; }

.footer-col h4 {
  font-family: var(--font-body); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.5); font-weight: 600; margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: .93rem; text-decoration: none; margin-bottom: 10px;
  color: rgba(255,255,255,.76);
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.footer-col a:hover { color: var(--tide-soft); transform: translateX(3px); }
.footer-hours { font-size: .88rem; color: rgba(255,255,255,.5); margin: 12px 0 0; }

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding-top: 24px;
  font-size: .82rem; color: rgba(255,255,255,.45);
}
.footer-bottom p { margin: 0; }

/* mobile sticky CTA */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(251,248,242,.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(120%);
  transition: transform .4s var(--ease);
}
.mobile-cta.show { transform: translateY(0); }
.mobile-cta .btn { flex: 1; padding: 14px 16px; }
.mobile-cta .btn-ghost { flex: 0 0 90px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(5px);
  transition:
    opacity .85s var(--ease),
    transform .85s var(--ease),
    filter .85s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; filter: blur(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* The full header row (brand + 5 nav links + phone + button) needs ~1300px.
   Below that, drop the phone number first — the button is the conversion path,
   and the number is still one tap away inside the menu. */
@media (max-width: 1320px) {
  .header-cta .phone-link { display: none; }
}

@media (max-width: 1024px) {
  .quote-wrap { grid-template-columns: 1fr; }
  .showcase-inner { grid-template-columns: 1fr; }
  .parallax-frame { aspect-ratio: 16 / 10; }
  .showcase-badge { left: auto; right: 18px; bottom: -18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1023px) {
  html { scroll-padding-top: 70px; }

  .menu-toggle { display: flex; }
  .header-cta { display: none; }

  /* keep the header row clickable above the fixed nav panel */
  .brand, .menu-toggle { position: relative; z-index: 2; }

  /* the open panel is light — darken the brand and icon to stay legible */
  .site-header.nav-open .brand { color: var(--forest); }
  .site-header.nav-open .menu-toggle span { background: var(--forest); }

  .brand-logo { height: 46px; }
  .site-header.stuck .brand-logo,
  .site-header.nav-open .brand-logo { height: 40px; }

  .nav {
    position: fixed; inset: 0 0 auto 0;
    z-index: 1;
    flex-direction: column; gap: 2px;
    padding: 92px 24px 30px;
    background: var(--shell);
    box-shadow: 0 24px 50px -22px rgba(13,28,21,.5);
    transform: translateY(-100%);
    transition: transform .5s var(--ease), visibility .5s var(--ease);
    margin-left: 0;
    visibility: hidden;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav a,
  .site-header.stuck .nav a {
    color: var(--forest); font-size: 1.15rem; font-weight: 600;
    padding: 14px 6px; border-bottom: 1px solid var(--line); border-radius: 0;
  }
  .nav .nav-cta {
    display: block; margin-top: 20px; padding: 16px; text-align: center;
    background: var(--sun); border: 0; border-radius: 999px;
    font-size: 1rem;
  }
  .nav .nav-cta,
  .site-header.stuck .nav .nav-cta { color: #1d1102; }
  .nav .nav-phone {
    display: block; text-align: center; border-bottom: 0;
    font-size: 1rem; padding-top: 16px;
  }
  .nav .nav-phone,
  .site-header.stuck .nav .nav-phone { color: var(--text-mute); }

  .hero { padding: 120px 0 96px; min-height: 92svh; }
  .hero-trust { gap: 8px 20px; font-size: .86rem; }
  .scroll-hint { display: none; }

  .mobile-cta { display: flex; }
  .site-footer { padding-bottom: 96px; }

  .final-cta { background-attachment: scroll; }
  .showcase-badge { right: 12px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .brand-logo { height: 40px; }       /* tightest phones */
  .grid-2 { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
  .service-card { padding: 28px 24px; }
  .quote-card { padding: 24px 20px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .marquee-track { animation: none; }
  .final-cta { background-attachment: scroll; }
}

@media print {
  .site-header, .mobile-cta, .scroll-progress, .marquee, .scroll-hint { display: none !important; }
  body { background: #fff; }
}
