/* =========================================================================
   MYOMA DUNES WATER COMPANY — "Still Water"
   A refined utility brand. Deep abyssal teal × warm ivory × brass.
   Cormorant Garamond (display) · Hanken Grotesk (body) · Spline Sans Mono (data)
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --abyss:   #06232A;
  --deep:    #0B3942;
  --tide:    #115E6B;
  --aqua:    #4FB3C4;
  --aqua-lo: #8CD2DC;
  --mist:    #CFE6E6;
  --paper:   #FAF8F2;
  --paper-2: #F1ECE0;
  --ink:     #0A2024;
  --muted:   #5C7378;
  --brass:   #B8924E;
  --brass-ink:#86672F; /* brass for small text on light backgrounds (4.9:1 on paper, WCAG AA) */
  --brass-lo:#D9BD86;
  --line:    rgba(10, 32, 36, .12);
  --line-2:  rgba(10, 32, 36, .07);
  --shadow:  18px 30px 60px -30px rgba(6, 35, 42, .45);
  --shadow-sm: 10px 18px 36px -22px rgba(6, 35, 42, .4);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Hanken Grotesk", system-ui, sans-serif;
  --mono:  "Spline Sans Mono", ui-monospace, monospace;

  --wrap: 1240px;
  --gut: clamp(22px, 5vw, 80px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* Grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gut); }
section { position: relative; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--brass-ink);
  display: inline-flex; align-items: center; gap: .85em;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: var(--brass); opacity: .7;
}
.eyebrow.center::after {
  content: ""; width: 26px; height: 1px;
  background: var(--brass); opacity: .7;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -.01em; }
.display {
  font-size: clamp(2.9rem, 8vw, 6.6rem);
  font-weight: 400;
}
.display em { font-style: italic; color: var(--tide); }
h2.section-title {
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
  font-weight: 400;
  max-width: 16ch;
}
.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  color: var(--muted);
  max-width: 56ch;
  font-weight: 400;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  padding: 1.02em 1.7em;
  font-family: var(--sans);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  border-radius: 100px;
  transition: transform .5s var(--ease), background .4s var(--ease), color .4s var(--ease), box-shadow .5s var(--ease);
  position: relative; overflow: hidden;
}
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-solid {
  background: var(--deep); color: var(--paper);
  box-shadow: var(--shadow-sm);
}
.btn-solid:hover { background: var(--abyss); transform: translateY(-3px); }
.btn-ghost {
  border: 1px solid var(--line); color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--deep); background: rgba(11, 57, 66, .04); transform: translateY(-3px); }
.btn-brass { background: var(--brass); color: var(--paper); }
.btn-brass:hover { background: #a47f3f; transform: translateY(-3px); }
.btn-light { background: var(--paper); color: var(--deep); }
.btn-light:hover { background: #fff; transform: translateY(-3px); }
.btn-outline-light { border: 1px solid rgba(250,248,242,.3); color: var(--paper); }
.btn-outline-light:hover { border-color: var(--aqua-lo); background: rgba(250,248,242,.06); transform: translateY(-3px); }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(250, 248, 242, .82);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-color: var(--line-2);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  height: 104px;
}
.brand { display: flex; align-items: center; gap: .7rem; line-height: 1; }
.brand .mark {
  width: 34px; height: 34px; flex: none;
  position: relative;
}
.brand .mark svg { width: 100%; height: 100%; display: block; }
.brand .word {
  display: flex; flex-direction: column;
}
.brand .word b {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.28rem; letter-spacing: .01em; color: var(--ink);
}
.brand .word span {
  font-family: var(--mono); font-size: .56rem;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--muted); margin-top: 2px;
}
/* Header brand logo (full company emblem) on an ivory tile, matching the footer
   .foot-logo, so the black wordmark reads cleanly over the dark hero. Height is
   border-box, so the padding sits inside the existing nav sizing. */
.brand-logo {
  height: clamp(64px, 9vw, 88px); width: auto; display: block;
  padding: 7px; border-radius: 12px; background: var(--paper);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .5);
  transition: height .5s var(--ease), padding .5s var(--ease), border-radius .5s var(--ease);
}
/* Large emblem at the top of the page on desktop (client: logo read too small).
   The nav row grows to fit it and eases back to the compact bar once scrolled. */
.nav { transition: height .5s var(--ease); }
@media (min-width: 1100px) {
  .site-header:not(.scrolled) .nav { height: 142px; }
  .site-header:not(.scrolled) .brand-logo { height: 128px; padding: 11px; border-radius: 16px; }
}
.nav-links { display: flex; align-items: center; gap: 2.3rem; }
.nav-links > a {
  font-size: .82rem; font-weight: 500; letter-spacing: .02em;
  color: var(--ink); position: relative; padding: .3em 0;
  transition: color .3s var(--ease);
}
.nav-links > a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-links > a:hover::after, .nav-links > a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links > a.active { color: var(--tide); }
.has-mega[data-active] > .mega-trigger { color: var(--tide); }
.nav-cta { display: flex; align-items: center; gap: 1.1rem; }
.nav-cta .btn { padding: .78em 1.4em; }

.nav-toggle { display: none; width: 30px; height: 22px; position: relative; z-index: 120; }
.nav-toggle span {
  position: absolute; left: 0; height: 1.6px; width: 100%; background: var(--ink);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 18px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- Top utility bar (contact/hours · search · pay) ---- */
/* Divider sits on the constrained inner box so the row matches the nav width. */
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; padding-block: 10px;
  border-bottom: 1px solid rgba(250,248,242,.14); transition: border-color .5s var(--ease); }
.site-header.scrolled .topbar-inner,
.site-header.mega-active .topbar-inner { border-color: var(--line-2); }
.tb-left { display: flex; align-items: center; gap: 1.7rem; }
.tb-item { display: inline-flex; align-items: center; gap: .5em; font-family: var(--mono); font-size: .72rem; letter-spacing: .03em; color: rgba(250,248,242,.72); transition: color .5s var(--ease); white-space: nowrap; }
.tb-item svg { width: 14px; height: 14px; opacity: .82; }
a.tb-item:hover { color: var(--aqua-lo); }
.site-header.scrolled .tb-item,
.site-header.mega-active .tb-item { color: rgba(10,32,36,.66); }
.site-header.scrolled a.tb-item:hover,
.site-header.mega-active a.tb-item:hover { color: var(--tide); }

.tb-right { display: flex; align-items: center; gap: 1rem; }

.tb-search { position: relative; display: flex; align-items: center; }
.tb-search-ic { position: absolute; left: 11px; width: 15px; height: 15px; color: rgba(250,248,242,.6); pointer-events: none; transition: color .5s var(--ease); }
.site-header.scrolled .tb-search-ic,
.site-header.mega-active .tb-search-ic { color: rgba(10,32,36,.5); }
.tb-search-input {
  width: 195px; height: 32px; padding: 0 .9em 0 2.1em;
  font-family: var(--sans); font-size: .8rem; color: var(--paper);
  background: rgba(250,248,242,.1); border: 1px solid rgba(250,248,242,.22); border-radius: 999px;
  transition: background .3s, border-color .3s, width .3s var(--ease), color .5s var(--ease);
}
.tb-search-input::placeholder { color: rgba(250,248,242,.55); }
.tb-search-input:focus { outline: none; width: 240px; background: rgba(250,248,242,.16); border-color: var(--aqua-lo); }
.site-header.scrolled .tb-search-input,
.site-header.mega-active .tb-search-input { color: var(--ink); background: rgba(10,32,36,.05); border-color: var(--line); }
.site-header.scrolled .tb-search-input::placeholder,
.site-header.mega-active .tb-search-input::placeholder { color: rgba(10,32,36,.45); }
.site-header.scrolled .tb-search-input:focus,
.site-header.mega-active .tb-search-input:focus { background: var(--paper); border-color: var(--tide); }

.tb-results {
  position: absolute; top: calc(100% + 9px); right: 0; width: 350px; max-width: 82vw;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 24px 54px -20px rgba(10,32,36,.45); padding: .4rem; z-index: 130;
  max-height: 62vh; overflow-y: auto;
}
.tb-results a { display: block; padding: .55rem .7rem; border-radius: 8px; text-decoration: none; }
.tb-results a:hover, .tb-results a.tb-active { background: var(--paper-2); }
.tb-results a b { display: block; font-family: var(--serif); font-size: 1.02rem; line-height: 1.2; color: var(--ink); }
.tb-results a span { display: block; font-size: .77rem; color: rgba(10,32,36,.6); margin-top: .15rem; }
.tb-results .tb-none { padding: .75rem; font-size: .82rem; color: rgba(10,32,36,.55); }

.tb-pay { display: inline-flex; align-items: center; gap: .45em; padding: .5em 1.15em !important; font-size: .82rem; }
.tb-pay-ic { width: 15px; height: 15px; }

@media (max-width: 980px) { .tb-hours { display: none; } }
@media (max-width: 620px) {
  .tb-pay { display: none; }
  .tb-search-input { width: 140px; }
  .tb-search-input:focus { width: 170px; }
  .tb-left { gap: 1rem; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  padding-top: clamp(140px, 20vh, 210px);
  padding-bottom: clamp(80px, 12vh, 140px);
  overflow: hidden;
}
.hero-water {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% -10%, rgba(140, 210, 220, .28), transparent 55%),
    radial-gradient(80% 70% at 12% 110%, rgba(184, 146, 78, .10), transparent 60%);
}
.caustic {
  position: absolute; width: 60vw; height: 60vw;
  border-radius: 50%; filter: blur(60px); opacity: .5;
  animation: drift 22s ease-in-out infinite alternate;
}
.caustic.c1 { background: radial-gradient(circle, rgba(79,179,196,.4), transparent 65%); top: -18vw; right: -12vw; }
.caustic.c2 { background: radial-gradient(circle, rgba(17,94,107,.22), transparent 65%); bottom: -22vw; left: -10vw; animation-delay: -8s; animation-duration: 28s; }
@keyframes drift {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.12); }
}

.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 6vw, 90px); align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 1.8rem; }
.hero-copy h1 { margin-bottom: 1.7rem; }
.hero-copy .lede { margin-bottom: 2.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Hero visual — a "still water" card with caustic light */
.hero-visual {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: 220px 220px 26px 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(165deg, var(--tide), var(--abyss) 70%);
  border: 1px solid rgba(250,248,242,.12);
}
.hero-visual .ripples { position: absolute; inset: 0; opacity: .5; }
.hero-visual .ripples i {
  position: absolute; left: 50%; top: 58%;
  width: 40px; height: 40px; margin: -20px;
  border: 1px solid rgba(140,210,220,.5); border-radius: 50%;
  animation: ripple 6s ease-out infinite;
}
.hero-visual .ripples i:nth-child(2) { animation-delay: 2s; }
.hero-visual .ripples i:nth-child(3) { animation-delay: 4s; }
@keyframes ripple {
  0% { transform: scale(.3); opacity: .8; }
  100% { transform: scale(14); opacity: 0; }
}
.hero-visual .vlabel {
  position: absolute; left: 26px; bottom: 26px; right: 26px;
  color: var(--paper); z-index: 2;
}
.hero-visual .vlabel .big {
  font-family: var(--serif); font-size: 3.4rem; line-height: 1; font-weight: 400;
}
.hero-visual .vlabel .small {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--aqua-lo); margin-top: .5rem;
}
.hero-visual .gloss {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.16), transparent 40%);
  z-index: 1;
}

/* ---------- Trust strip / marquee ---------- */
.strip {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
}
.marquee {
  display: flex; gap: 0; white-space: nowrap;
  animation: scroll 38s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
.marquee .item {
  display: inline-flex; align-items: center; gap: 1.1rem;
  padding: 1.1rem 2.4rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.marquee .item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* =========================================================================
   GENERIC SECTION SCAFFOLD
   ========================================================================= */
.sec { padding-block: clamp(80px, 12vh, 150px); }
.sec-head { max-width: 60ch; margin-bottom: clamp(40px, 6vw, 70px); }
.sec-head .eyebrow { margin-bottom: 1.4rem; }
.sec-head .lede { margin-top: 1.6rem; }
.sec.center .sec-head { margin-inline: auto; text-align: center; }
.sec.center .sec-head h2 { max-width: none; }

/* ---------- Intro / two-column ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split.narrow { grid-template-columns: 1.1fr .9fr; }
.prose p { color: var(--muted); margin-bottom: 1.2rem; max-width: 54ch; }
.prose p:last-child { margin-bottom: 0; }
.prose .first { font-size: 1.18rem; color: var(--ink); }

/* ---------- Stats row ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat { padding: 2.4rem 1.6rem 0 0; }
.stat .n {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--deep);
}
.stat .n sup { font-size: .4em; color: var(--brass); vertical-align: super; }
.stat .l {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); margin-top: .9rem; max-width: 18ch;
}

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2.3rem 2rem 2.1rem;
  position: relative; overflow: hidden;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .5s var(--ease);
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--aqua), var(--tide));
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card .ic {
  width: 46px; height: 46px; margin-bottom: 1.6rem;
  display: grid; place-items: center;
  border-radius: 13px; background: var(--mist); color: var(--deep);
}
.card .ic svg { width: 22px; height: 22px; }
.card h2, .card h3 { font-size: 1.6rem; margin-bottom: .7rem; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 1.4rem; }
.card .more {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--tide);
  display: inline-flex; gap: .5em; align-items: center;
}
.card .more .arrow { transition: transform .4s var(--ease); }
.card:hover .more .arrow { transform: translateX(4px); }

/* ---------- Quality / dark panel ---------- */
.panel {
  background: var(--abyss); color: var(--paper);
  border-radius: 30px; overflow: hidden; position: relative;
  padding: clamp(50px, 7vw, 90px);
}
.panel .pcaustic {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(79,179,196,.35), transparent 60%),
    radial-gradient(50% 60% at 10% 100%, rgba(184,146,78,.18), transparent 60%);
}
.panel > * { position: relative; z-index: 1; }
.panel .eyebrow { color: var(--brass-lo); }
.panel h2 { color: var(--paper); }
.panel .lede { color: rgba(250,248,242,.72); }
.panel-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px,5vw,70px); align-items: center; }
.qlist { border-top: 1px solid rgba(250,248,242,.16); }
.qlist li {
  display: flex; align-items: baseline; gap: 1.2rem;
  padding: 1.25rem 0; border-bottom: 1px solid rgba(250,248,242,.16);
}
.qlist li .qn { font-family: var(--mono); font-size: .72rem; color: var(--aqua-lo); letter-spacing: .1em; flex: none; width: 2.2rem; }
.qlist li .qt b { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; display: block; }
.qlist li .qt span { color: rgba(250,248,242,.6); font-size: .92rem; }

/* ---------- Notice banner (doxo warning) ---------- */
.notice {
  display: flex; gap: 1.3rem; align-items: flex-start;
  background: linear-gradient(180deg, #fff, var(--paper));
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: 18px; padding: 1.8rem 2rem;
  box-shadow: var(--shadow-sm);
}
.notice .ic { flex: none; color: var(--brass); margin-top: 2px; }
.notice h2, .notice h3, .notice h4 { font-family: var(--sans); font-weight: 700; font-size: .82rem; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .5rem; }
.notice p { color: var(--muted); font-size: .98rem; margin: 0; }
.notice a { color: var(--tide); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(80% 120% at 80% 0%, rgba(79,179,196,.16), transparent 60%),
    var(--deep);
  color: var(--paper); border-radius: 30px; text-align: center;
  padding: clamp(56px, 8vw, 100px) clamp(30px, 6vw, 80px);
  position: relative; overflow: hidden;
}
.cta-band h2 { color: var(--paper); font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 1.2rem; }
.cta-band .lede { color: rgba(250,248,242,.74); margin: 0 auto 2.4rem; }
.cta-band .hero-actions { justify-content: center; }

/* =========================================================================
   PAGE HERO (interior pages)
   ========================================================================= */
.page-hero {
  padding-top: clamp(150px, 22vh, 220px);
  padding-bottom: clamp(40px, 6vw, 70px);
  position: relative; overflow: hidden;
}
.page-hero .eyebrow { margin-bottom: 1.6rem; }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 400; max-width: 18ch; }
.page-hero .lede { margin-top: 1.8rem; }
.page-hero .breadcrumb {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2rem;
}
.page-hero .breadcrumb a:hover { color: var(--tide); }

/* ---------- Value grid ---------- */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.value { background: var(--paper); padding: 2.4rem; }
.value .num { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; color: var(--brass); }
.value h3 { font-size: 1.7rem; margin: 1rem 0 .7rem; }
.value p { color: var(--muted); font-size: .96rem; }

/* ---------- Timeline ---------- */
.timeline { border-top: 1px solid var(--line); }
.tl-row {
  display: grid; grid-template-columns: 180px 1fr; gap: 2rem;
  padding: 2.1rem 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.tl-row .yr { font-family: var(--serif); font-size: 2.2rem; color: var(--deep); }
.tl-row .tx h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.tl-row .tx p { color: var(--muted); max-width: 60ch; }

/* ---------- Service detail blocks ---------- */
.svc-block { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 80px); align-items: center; padding-block: clamp(50px, 7vw, 90px); border-bottom: 1px solid var(--line); }
.svc-block:nth-child(even) .svc-media { order: 2; }
.svc-block .svc-copy h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1.2rem; }
.svc-block .svc-copy > p { color: var(--muted); margin-bottom: 1.8rem; max-width: 52ch; }
.feat { display: grid; gap: 1rem; }
.feat li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-top: 1px solid var(--line-2); }
.feat li .ck { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--mist); color: var(--deep); display: grid; place-items: center; margin-top: 1px; }
.feat li .ck svg { width: 13px; height: 13px; }
.feat li b { font-weight: 600; }
.feat li span { display: block; color: var(--muted); font-size: .94rem; }
.svc-media {
  aspect-ratio: 1; border-radius: 26px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, var(--tide), var(--abyss));
  box-shadow: var(--shadow); display: grid; place-items: center;
}
.svc-media .glyph { color: rgba(207,230,230,.9); }
.svc-media .glyph svg { width: 96px; height: 96px; }
.svc-media .gloss { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.14), transparent 45%); }
.svc-media .tag { position: absolute; left: 22px; bottom: 22px; font-family: var(--mono); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--aqua-lo); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; }
.step { padding-top: 1.6rem; border-top: 2px solid var(--deep); }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: .78rem; color: var(--brass); letter-spacing: .1em; }
.step h3 { font-size: 1.4rem; margin: .9rem 0 .5rem; }
.step p { color: var(--muted); font-size: .94rem; }

/* ---------- Rate / table ---------- */
.rate-table { width: 100%; border-collapse: collapse; }
.rate-table th, .rate-table td { text-align: left; padding: 1.15rem 1rem; border-bottom: 1px solid var(--line); }
.rate-table th { font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.rate-table td { font-size: 1rem; }
.rate-table td.num { font-family: var(--mono); color: var(--deep); text-align: right; }
.rate-table tr:last-child td { border-bottom: none; }

/* ---------- FAQ accordion ---------- */
.faq {
  background: var(--paper); border: 1px solid var(--line); border-radius: 26px;
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem;
  padding: 1.7rem 3.4rem 1.7rem 2.2rem;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.15rem, 1.9vw, 1.42rem); color: var(--ink);
  transition: color .3s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 2.2rem; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: var(--mist); color: var(--deep);
  display: grid; place-items: center; font-family: var(--sans); font-size: 1.25rem; line-height: 1;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.faq-item:hover summary { color: var(--tide); }
.faq-item[open] summary { color: var(--tide); }
.faq-item[open] summary::after {
  content: "–"; background: var(--brass); color: var(--paper); transform: translateY(-50%) rotate(180deg);
}
.faq-a { padding: 0 3.4rem 1.9rem 2.2rem; max-width: 64ch; }
.faq-a p { color: var(--muted); font-size: .98rem; }
.faq-item[open] .faq-a { animation: faqIn .3s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 80px); }
.contact-info .ci-block { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.contact-info .ci-block:first-child { padding-top: 0; }
.contact-info .label { font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: .6rem; }
.contact-info .val { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.contact-info .val a:hover { color: var(--tide); }
.contact-info .sub { color: var(--muted); font-size: .95rem; margin-top: .3rem; }

.form { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-sm); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: .95em 1.1em; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--tide); box-shadow: 0 0 0 4px rgba(17,94,107,.1);
}
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { width: 100%; justify-content: center; margin-top: .4rem; }
.form-success {
  display: none; align-items: center; gap: .9rem;
  background: var(--mist); border-radius: 12px; padding: 1rem 1.3rem;
  color: var(--deep); font-weight: 500; margin-top: 1.2rem;
}
.form-success.show { display: flex; }

.map-wrap { margin-top: clamp(50px, 7vw, 90px); border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.3) saturate(.9); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: var(--abyss); color: rgba(250,248,242,.7);
  padding-top: clamp(60px, 9vw, 110px); margin-top: clamp(60px, 9vw, 120px);
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background: radial-gradient(70% 80% at 85% 0%, rgba(79,179,196,.16), transparent 60%);
}
.site-footer .wrap { position: relative; z-index: 1; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.6rem; padding-bottom: clamp(48px, 7vw, 80px); }
.foot-brand .brand .word b { color: var(--paper); }
.foot-brand .brand .word span { color: var(--aqua-lo); }
/* Footer logo sits on an ivory tile so the black wordmark reads on deep teal. */
.foot-logo { display: inline-block; padding: 12px; border-radius: 18px; background: var(--paper); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .5); }
.foot-logo img { display: block; width: 116px; height: auto; }
.foot-brand p { margin-top: 1.6rem; max-width: 34ch; font-size: .95rem; color: rgba(250,248,242,.6); }
.foot-col h2 { font-family: var(--mono); font-weight: 700; font-size: .68rem; line-height: 1.5; letter-spacing: .2em; text-transform: uppercase; color: var(--aqua-lo); margin-bottom: 1.3rem; }
.foot-col ul { display: grid; gap: .85rem; }
.foot-col a { font-size: .95rem; color: rgba(250,248,242,.7); transition: color .3s var(--ease); }
.foot-col a:hover { color: var(--paper); }
.foot-contact p { font-size: .95rem; color: rgba(250,248,242,.72); margin-bottom: .7rem; }
.foot-contact a:hover { color: var(--aqua-lo); }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding: 2rem 0; border-top: 1px solid rgba(250,248,242,.12);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: rgba(250,248,242,.5);
}
.foot-bottom .links { display: flex; gap: 1.6rem; }
.foot-bottom a:hover { color: var(--aqua-lo); }

/* =========================================================================
   REVEAL ANIMATIONS
   ========================================================================= */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-d="1"] { transition-delay: .08s; }
[data-reveal][data-d="2"] { transition-delay: .16s; }
[data-reveal][data-d="3"] { transition-delay: .24s; }
[data-reveal][data-d="4"] { transition-delay: .32s; }

/* Hero load animation */
.hero-copy > * { opacity: 0; transform: translateY(22px); animation: rise 1.1s var(--ease) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: .1s; }
.hero-copy > *:nth-child(2) { animation-delay: .22s; }
.hero-copy > *:nth-child(3) { animation-delay: .34s; }
.hero-copy > *:nth-child(4) { animation-delay: .46s; }
.hero-visual { opacity: 0; transform: translateY(30px) scale(.98); animation: rise 1.3s var(--ease) .3s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-copy > *, .hero-visual { opacity: 1; transform: none; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; margin-inline: auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav { display: flex; justify-content: space-between; }
  .nav-toggle { display: block; }
  .mobile-nav {
    position: fixed; inset: 0; z-index: 110;
    background: var(--paper);
    display: flex; flex-direction: column; justify-content: center;
    padding: var(--gut);
    transform: translateY(-100%); transition: transform .6s var(--ease);
  }
  body.menu-open .mobile-nav { transform: translateY(0); }
  .mobile-nav a { font-family: var(--serif); font-size: 2.4rem; color: var(--ink); padding: .6rem 0; opacity: 0; transform: translateY(14px); }
  body.menu-open .mobile-nav a { animation: rise .6s var(--ease) forwards; }
  body.menu-open .mobile-nav a:nth-child(1) { animation-delay: .12s; }
  body.menu-open .mobile-nav a:nth-child(2) { animation-delay: .18s; }
  body.menu-open .mobile-nav a:nth-child(3) { animation-delay: .24s; }
  body.menu-open .mobile-nav a:nth-child(4) { animation-delay: .3s; }
  body.menu-open .mobile-nav a:nth-child(5) { animation-delay: .36s; }
  .mobile-nav .mn-cta { margin-top: 2.4rem; display: flex; gap: 1rem; }
  .split, .split.narrow, .svc-block, .panel-grid { grid-template-columns: 1fr !important; }
  .svc-block:nth-child(even) .svc-media { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1px; }
  .stat { padding: 2rem 1rem; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; gap: 2rem; }
  .tl-row { grid-template-columns: 1fr; gap: .6rem; }
  .faq-item summary { padding: 1.4rem 2.8rem 1.4rem 1.4rem; }
  .faq-item summary::after { right: 1.4rem; }
  .faq-a { padding: 0 1.4rem 1.5rem 1.4rem; }
}
.mobile-nav { display: none; }
@media (max-width: 760px) { .mobile-nav { display: flex; } }

/* =========================================================================
   v2 — ADAPTIVE HEADER (light over hero, dark when scrolled)
   ========================================================================= */
.site-header { color: var(--paper); }
.site-header .brand .word b { color: var(--paper); transition: color .5s var(--ease); }
.site-header .brand .word span { color: rgba(250, 248, 242, .68); transition: color .5s var(--ease); }
.site-header .nav-links > a,
.site-header .has-mega > .mega-trigger { color: rgba(250, 248, 242, .9); }
.site-header .nav-links > a::after { background: var(--aqua-lo); }
.site-header .nav-toggle span { background: var(--paper); }

.site-header.scrolled .brand .word b,
.site-header.mega-active .brand .word b { color: var(--ink); }
.site-header.scrolled .brand .word span,
.site-header.mega-active .brand .word span { color: var(--muted); }
.site-header.scrolled .nav-links > a,
.site-header.scrolled .has-mega > .mega-trigger,
.site-header.mega-active .nav-links > a,
.site-header.mega-active .has-mega > .mega-trigger { color: var(--ink); }
.site-header.scrolled .nav-toggle span,
.site-header.mega-active .nav-toggle span { background: var(--ink); }
.site-header.mega-active {
  background: rgba(250, 248, 242, .92);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-color: var(--line-2);
}
/* adaptive CTA */
.btn-cta { background: var(--paper); color: var(--deep); box-shadow: 0 10px 30px -16px rgba(0,0,0,.4); }
.btn-cta:hover { transform: translateY(-3px); background: #fff; }
.site-header.scrolled .btn-cta,
.site-header.mega-active .btn-cta { background: var(--deep); color: var(--paper); }
.site-header.scrolled .btn-cta:hover,
.site-header.mega-active .btn-cta:hover { background: var(--abyss); }
.nav-cta .btn-cta { padding: .78em 1.4em; }

/* =========================================================================
   v2 — MEGA MENU
   ========================================================================= */
.nav-links { gap: 1.9rem; }
.has-mega { position: static; }
.has-mega > .mega-trigger {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: .02em;
  cursor: pointer; padding: .3em 0; position: relative;
}
.has-mega > .mega-trigger .chev { width: 11px; height: 11px; transition: transform .35s var(--ease); opacity: .8; }
.has-mega.open > .mega-trigger .chev { transform: rotate(180deg); }
.has-mega > .mega-trigger::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.has-mega:hover > .mega-trigger::after,
.has-mega.open > .mega-trigger::after { transform: scaleX(1); transform-origin: left; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 40px 60px -30px rgba(6, 35, 42, .35);
  opacity: 0; visibility: hidden; transform: translateY(-12px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.has-mega:focus-within .mega,
.has-mega.open .mega { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
/* invisible hover bridge so the cursor can travel from trigger to panel */
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -26px; height: 26px; }

.mega-inner {
  display: grid; grid-template-columns: 1.1fr 1.1fr 1fr; gap: clamp(2rem, 4vw, 4rem);
  padding-block: 2.6rem 2.9rem;
}
.mega-col h4 {
  font-family: var(--mono); font-size: .66rem; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 1.3rem;
  padding-bottom: .9rem; border-bottom: 1px solid var(--line);
}
.mega-col a { display: block; padding: .65rem 0; transition: padding .35s var(--ease); }
.mega-col a b { display: block; font-family: var(--sans); font-weight: 600; font-size: .95rem; color: var(--ink); transition: color .3s var(--ease); }
.mega-col a span { display: block; font-size: .82rem; color: var(--muted); margin-top: .1rem; }
.mega-col a:hover { padding-left: .5rem; }
.mega-col a:hover b { color: var(--tide); }
.mega-reports { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem .9rem; }
.mega-reports.full { grid-column: 1 / -1; }
.mega-allreports { grid-column: 1 / -1; margin-top: .6rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tide); display: inline-flex; gap: .5em; }

.mega-feature {
  display: flex; flex-direction: column; justify-content: flex-end; gap: .55rem;
  min-height: 256px; border-radius: 18px; padding: 2.3rem;
  background: linear-gradient(160deg, var(--tide), var(--abyss));
  color: var(--paper); position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.mega-feature::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(70% 80% at 85% 12%, rgba(79,179,196,.45), transparent 60%);
}
/* icon chip — makes the card read as a designed CTA, not an empty image */
.mega-feature .mf-icon {
  position: absolute; top: 2.3rem; left: 2.3rem; z-index: 1;
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(250, 248, 242, .14); border: 1px solid rgba(250, 248, 242, .14);
  display: grid; place-items: center; color: var(--mist);
}
.mega-feature .mf-icon svg { width: 21px; height: 21px; }
.mega-feature > * { position: relative; z-index: 1; }
.mega-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mega-feature .mf-eyebrow { font-family: var(--mono); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--aqua-lo); }
.mega-feature .mf-title { font-family: var(--serif); font-weight: 500; font-size: 1.48rem; line-height: 1.14; color: var(--paper); }
.mega-feature .mf-link { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-lo); margin-top: .5rem; display: inline-flex; gap: .4em; }
.mega-feature.warn { background: linear-gradient(160deg, #2B2417, #17120A); }
.mega-feature.warn::after { background: radial-gradient(70% 80% at 85% 12%, rgba(184,146,78,.5), transparent 60%); }
.mega-feature.warn .mf-icon { background: rgba(217, 189, 134, .16); border-color: rgba(217, 189, 134, .28); color: var(--brass-lo); }
.mega-feature.warn .mf-eyebrow { color: var(--brass-lo); }

/* =========================================================================
   v2 — MOBILE ACCORDION NAV
   ========================================================================= */
@media (max-width: 760px) {
  .mobile-nav { display: flex; align-items: stretch; justify-content: flex-start; overflow-y: auto; padding-top: 100px; }
  .mob-scroll { width: 100%; }
  .mobile-nav .mob-link { font-family: var(--serif); font-size: 2rem; color: var(--ink); padding: .55rem 0; display: block; border-bottom: 1px solid var(--line); }
  .mob-group { border-bottom: 1px solid var(--line); }
  .mob-head {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    font-family: var(--serif); font-size: 2rem; color: var(--ink); padding: .9rem 0; cursor: pointer;
  }
  .mob-head .mp { font-family: var(--sans); font-size: 1.5rem; color: var(--brass); transition: transform .3s var(--ease); }
  .mob-group.open .mob-head .mp { transform: rotate(45deg); }
  .mob-sub { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
  .mob-group.open .mob-sub { max-height: 700px; }
  .mob-sub a { display: block; font-family: var(--sans); font-size: 1rem; color: var(--muted); padding: .5rem 0 .5rem 1rem; }
  .mob-sub a:last-child { padding-bottom: 1.2rem; }
  .mobile-nav .mn-cta { margin-top: 1.8rem; }
  /* re-stagger top items */
  body.menu-open .mobile-nav .mob-link,
  body.menu-open .mobile-nav .mob-group { animation: rise .5s var(--ease) forwards; opacity: 0; }
}

/* =========================================================================
   v2 — FULL-WIDTH HERO  ("Desert Aquifer" graphic)
   ========================================================================= */
.hero-full {
  position: relative; min-height: 74vh; display: flex; align-items: center;
  padding-top: 170px; padding-bottom: clamp(60px, 10vh, 110px); overflow: hidden;
  background: linear-gradient(180deg, #06232A 0%, #0B3942 52%, #11525E 100%);
}
.hero-full.compact { min-height: 44vh; padding-top: 165px; padding-bottom: clamp(36px, 6vh, 64px); }

.hf-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hf-caustic { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .3; }
.hf-caustic.a { width: 48vw; height: 48vw; background: radial-gradient(circle, rgba(79,179,196,.4), transparent 65%); top: -20vw; right: -8vw; animation: hfdrift 24s ease-in-out infinite alternate; }
.hf-caustic.b { width: 38vw; height: 38vw; background: radial-gradient(circle, rgba(217,189,134,.16), transparent 65%); top: 6%; left: -8vw; animation: hfdrift 30s ease-in-out infinite alternate-reverse; }
@keyframes hfdrift { to { transform: translate(40px, 24px) scale(1.12); } }

/* Dune band kept small — a subtle accent along the bottom, not a blocky fill. */
.hf-scene { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 42%; }
.hero-full.compact .hf-scene { height: 46%; }
.dune { transform-box: view-box; }
/* Upper ridges merged into one solid deep-teal mass: only the top crest reads
   as "the first wave"; a single soft mid-ridge steps down to the paper front. */
.dune.d5 { fill: #0C3A43; animation: duneA 40s ease-in-out infinite alternate; }
.dune.d4 { fill: #0C3A43; }
.dune.d3 { fill: #0C3A43; }
.dune.d2 { fill: #3C6A70; }
.dune.d1 { fill: var(--paper); }
@keyframes duneA { to { transform: translateX(-16px); } }
@keyframes duneB { to { transform: translateX(16px); } }

.hf-grain { position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hf-content { position: relative; z-index: 3; width: 100%; }
.hf-content .inner { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gut); }
.hero-full h1 { max-width: none; }
.hero-full .lede { max-width: 64ch; }
.hero-full .breadcrumb { font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(250,248,242,.78); margin-bottom: 1.6rem; }
.hero-full .breadcrumb a:hover { color: var(--aqua-lo); }
.hero-full .eyebrow { margin-bottom: 1.7rem; color: var(--brass-lo); }
.hero-full .eyebrow::before { background: var(--brass-lo); }
.hero-full h1 { color: var(--paper); margin-bottom: 1.7rem; }
.hero-full h1 em { font-style: italic; color: var(--aqua-lo); }
.hero-full .lede { color: rgba(250,248,242,.82); margin-bottom: 2.5rem; }
.hero-full .hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hf-stats { display: flex; align-items: center; gap: 1.4rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hf-stats span { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(250,248,242,.7); }
.hf-stats span b { font-family: var(--serif); font-size: 1.5rem; color: var(--paper); margin-right: .4em; letter-spacing: 0; }
.hf-stats i { width: 5px; height: 5px; border-radius: 50%; background: var(--brass); opacity: .8; }

/* hero load animation reused */
.hf-content .inner > * { opacity: 0; transform: translateY(22px); animation: rise 1.1s var(--ease) forwards; }
.hf-content .inner > *:nth-child(1){ animation-delay:.1s } .hf-content .inner > *:nth-child(2){ animation-delay:.2s }
.hf-content .inner > *:nth-child(3){ animation-delay:.3s } .hf-content .inner > *:nth-child(4){ animation-delay:.4s }
.hf-content .inner > *:nth-child(5){ animation-delay:.5s } .hf-content .inner > *:nth-child(6){ animation-delay:.6s }

@media (prefers-reduced-motion: reduce) {
  .hf-caustic, .dune { animation: none !important; }
  .hf-content .inner > * { opacity: 1; transform: none; animation: none !important; }
}
@media (max-width: 760px) {
  .hero-full { min-height: 88vh; }
  .mega { display: none; }
}

/* =========================================================================
   v3 — PUBLIC NOTICES
   ========================================================================= */
.notices-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; max-width: none; }
.notices-all { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tide); display: inline-flex; align-items: center; gap: .5em; white-space: nowrap; padding-bottom: .4rem; }
.notices-all .arrow { transition: transform .4s var(--ease); }
.notices-all:hover .arrow { transform: translateX(4px); }

.notice-list { border-top: 1px solid var(--line); }
.notice-row {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 2.2rem; align-items: center;
  padding: 1.7rem 1.2rem; border-bottom: 1px solid var(--line);
  transition: background .45s var(--ease), padding .45s var(--ease);
}
.notice-row:hover { background: linear-gradient(90deg, rgba(17, 94, 107, .055), rgba(17, 94, 107, 0) 80%); }
.nr-date { text-align: center; }
.nr-date b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1; color: var(--deep); }
.nr-date span { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nr-main { min-width: 0; }
.nr-tag {
  display: inline-block; font-family: var(--mono); font-size: .6rem; letter-spacing: .16em;
  text-transform: uppercase; padding: .4em .8em; border-radius: 100px; margin-bottom: .6rem;
}
.tag-quality { background: var(--mist); color: var(--deep); }
.tag-planning { background: rgba(184, 146, 78, .16); color: #8a6c34; }
.tag-policy { background: #E1E8E6; color: var(--tide); }
.tag-announce { background: rgba(79, 179, 196, .16); color: var(--tide); }
.nr-title { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.4rem; line-height: 1.18; color: var(--ink); }
.nr-desc { display: block; color: var(--muted); font-size: .93rem; margin-top: .45rem; max-width: 70ch; }
.nr-action { display: flex; align-items: center; gap: 1.1rem; }
.nr-type { font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: .35em .6em; }
.nr-action .dl {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--tide); flex: none;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.nr-action .dl svg { width: 20px; height: 20px; }
.notice-row:hover .nr-action .dl { background: var(--deep); color: var(--paper); border-color: var(--deep); transform: translateY(-2px); }
/* Dynamic (DB-bound) document lists */
.notice-row.nr-nodate { grid-template-columns: 1fr auto; }
.nr-empty { color: var(--muted); padding: 1.6rem 1.2rem; font-size: .95rem; }
.report-group { margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.report-group-head { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--ink); padding-bottom: .5rem; border-bottom: 2px solid var(--brass-lo); margin-bottom: .2rem; }

/* Two-column meeting table (agendas + minutes) */
.doc-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow-sm); }
.doc-table-wrap:focus-visible { outline: 3px solid var(--tide); outline-offset: 3px; }

/* ---- Accessibility: skip link + main focus target ---- */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10000;
  padding: .8rem 1.2rem; border-radius: 10px;
  background: var(--ink); color: var(--paper); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; outline: 3px solid var(--brass-lo); outline-offset: 2px; }
main:focus { outline: none; }
table.doc-table { width: 100%; border-collapse: collapse; min-width: 520px; font-family: var(--sans); }
table.doc-table th { text-align: left; font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: #4F6569; padding: 1.05rem 1.4rem; background: var(--paper-2); border-bottom: 1px solid var(--line); }
table.doc-table td { padding: 1.05rem 1.4rem; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink); font-size: .98rem; }
table.doc-table tr:last-child td { border-bottom: none; }
table.doc-table td.dt-date { font-weight: 600; white-space: nowrap; }
table.doc-table a.dt-link { display: inline-flex; align-items: center; gap: .45em; color: var(--tide); font-weight: 600; text-decoration: none; }
table.doc-table a.dt-link:hover { text-decoration: underline; text-underline-offset: 3px; }
table.doc-table .dt-pending { color: var(--muted); font-style: italic; }

/* Service-area map embed */
.map-figure { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-sm); margin: 0; }
.map-embed { display: block; width: 100%; height: min(70vh, 640px); border: 0; }
.map-figure figcaption { padding: 1rem 1.4rem; border-top: 1px solid var(--line); font-size: .95rem; }

/* Company logo emblem on the Home "Who We Are" band */
.home-logo { display: block; width: clamp(150px, 22vw, 210px); height: auto; margin-bottom: 1.6rem; }

/* Rates & Fees table headings */
.rate-h { font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 2.2vw, 1.6rem); color: var(--ink); margin: clamp(2rem, 4vw, 3rem) 0 1rem; }
.rate-h span { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-left: .6rem; white-space: nowrap; }
.rate-note { color: var(--muted); font-size: .92rem; margin-top: 1rem; max-width: 74ch; }

/* Water rate calculator */
.calc { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-sm); padding: clamp(1.4rem, 3vw, 2.2rem); }
.calc-inputs { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: flex-end; }
.calc-field { display: flex; flex-direction: column; gap: .45rem; flex: 1 1 160px; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.calc-field em { font-style: normal; text-transform: none; letter-spacing: 0; }
.calc-field input { font-family: var(--sans); font-size: 1.05rem; color: var(--ink); padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }
.calc-field input:focus { outline: 2px solid var(--tide); outline-offset: 1px; border-color: var(--tide); }
.calc-total { flex: 1 1 160px; font-family: var(--mono); font-size: .8rem; color: var(--ink); align-self: center; }
.calc-inputs .btn { flex: 0 0 auto; }
.calc-results { margin-top: 1.8rem; }
.calc-results .doc-table tfoot td { background: var(--paper-2); border-top: 2px solid var(--brass-lo); }

@media (max-width: 760px) {
  .notices-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .notice-row { grid-template-columns: 1fr auto; gap: 1rem 1.4rem; padding: 1.5rem .6rem; }
  .nr-date { grid-row: 1; grid-column: 1; text-align: left; display: flex; align-items: baseline; gap: .5em; }
  .nr-date b { font-size: 1.1rem; }
  .nr-main { grid-column: 1 / -1; grid-row: 2; }
  .nr-action { grid-row: 1; grid-column: 2; justify-content: flex-end; }
  .nr-desc { max-width: none; }
}

/* ===== Outdoor Watering Guide (irrigation-guide.html) ===== */
.ig-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2rem; }
.ig-chip {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .55rem .9rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--muted); cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.ig-chip:hover { border-color: var(--tide); color: var(--tide); }
.ig-chip[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: var(--paper); }
.ig-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.ig-card {
  display: flex; flex-direction: column; gap: .2rem;
  padding: 1.5rem 1.4rem; border: 1px solid var(--line); border-radius: 16px;
  background: var(--paper); box-shadow: var(--shadow-sm);
}
.ig-card.ig-turf { background: var(--deep); border-color: var(--deep); color: var(--paper); }
.ig-k { font-family: var(--mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.ig-turf .ig-k { color: var(--aqua-lo); }
.ig-v { font-family: var(--serif); font-size: 2.6rem; line-height: 1; font-weight: 500; color: var(--tide); }
.ig-turf .ig-v { color: var(--paper); font-size: 2.1rem; }
.ig-u { font-size: .85rem; color: var(--muted); }
.ig-turf .ig-u { color: rgba(250, 248, 242, .7); }
.ig-turf-row { display: flex; align-items: baseline; gap: .5rem; }
.ig-d { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink); }
.ig-turf .ig-d { border-color: rgba(250, 248, 242, .18); color: var(--paper); }
.ig-table { min-width: 760px; }
.ig-table th[colspan] { text-align: center; border-bottom: 1px solid var(--line-2); }
.ig-table tr.ig-current td { background: rgba(17, 94, 107, .07); }
.ig-table tr.ig-current td.dt-date { color: var(--tide); font-weight: 600; }
@media (max-width: 980px) { .ig-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ig-cards { grid-template-columns: 1fr; } .ig-v { font-size: 2.2rem; } }

/* ===== Site alert banner (admin: /admin/Alerts) ===== */
.site-alerts { position: relative; z-index: 2; }
.site-alert { font-family: var(--sans); font-size: .92rem; line-height: 1.45; color: #fff; }
.site-alert + .site-alert { border-top: 1px solid rgba(255, 255, 255, .18); }
.sa-info { background: #1F5A85; }
.sa-warning { background: #9A5B0B; }
.sa-critical { background: #A3261E; }
.sa-inner { display: flex; align-items: center; gap: .8rem; padding-block: .7rem; }
.sa-ic { width: 20px; height: 20px; flex: none; }
.sa-text { margin: 0; flex: 1; }
.sa-text b { font-weight: 700; margin-right: .2rem; }
.sa-text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; white-space: nowrap; }
.sa-close { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.sa-close:hover { background: rgba(255, 255, 255, .28); }
.sa-close svg { width: 14px; height: 14px; }
.has-site-alert .hero-full { padding-top: calc(170px + var(--alert-h, 0px)); }
.has-site-alert .hero-full.compact { padding-top: calc(165px + var(--alert-h, 0px)); }
/* Desktop header is 38px taller while the large logo shows (see .brand-logo). */
@media (min-width: 1100px) {
  .hero-full { padding-top: 208px; }
  .hero-full.compact { padding-top: 203px; }
  .has-site-alert .hero-full { padding-top: calc(208px + var(--alert-h, 0px)); }
  .has-site-alert .hero-full.compact { padding-top: calc(203px + var(--alert-h, 0px)); }
}

/* ===== Events & Calendar (events.html; admin: /admin/Events) ===== */
.ev-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.ev-item { display: grid; grid-template-columns: 92px 1fr; gap: 1.6rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.ev-date { display: flex; flex-direction: column; align-items: flex-start; }
.ev-date b { font-family: var(--serif); font-weight: 500; font-size: 2.6rem; line-height: 1; color: var(--tide); }
.ev-date span { font-family: var(--mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: .35rem; }
.ev-main h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; margin: .45rem 0 .2rem; color: var(--ink); }
.ev-when { font-size: .92rem; color: var(--muted); margin: 0; }
.ev-desc { font-size: .95rem; margin: .6rem 0 0; max-width: 70ch; }
.ev-link { display: inline-block; margin-top: .6rem; color: var(--tide); font-weight: 600; font-size: .92rem; }
.ev-kind { display: inline-block; font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; padding: .28rem .6rem; border-radius: 999px; background: var(--paper-2); color: var(--ink); }
.ev-kind.k-board-meeting { background: rgba(17, 94, 107, .12); color: var(--tide); }
.ev-kind.k-holiday { background: rgba(184, 146, 78, .18); color: #7A5A22; }
.ev-kind.k-office-closure { background: rgba(163, 38, 30, .1); color: #8A2A22; }
.ev-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.ev-dot.k-board-meeting { background: var(--tide); }
.ev-dot.k-event { background: #5C7378; }
.ev-dot.k-holiday { background: var(--brass); }
.ev-dot.k-office-closure { background: #A3261E; }

.ev-cal { margin-top: 2rem; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-sm); padding: clamp(1rem, 2.5vw, 1.8rem); }
.ev-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.ev-cal-title { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: 0; }
.ev-cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.ev-cal-nav:hover { border-color: var(--tide); color: var(--tide); }
.ev-cal-nav svg { width: 18px; height: 18px; }
.ev-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ev-dow { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: center; padding: .4rem 0; }
.ev-cell { min-height: 84px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; padding: .45rem .5rem; text-align: left; display: flex; flex-direction: column; gap: .3rem; font: inherit; color: var(--ink); cursor: default; overflow: hidden; }
.ev-cell.is-blank { border-color: transparent; }
.ev-cell.has-ev { cursor: pointer; background: rgba(17, 94, 107, .04); }
.ev-cell.has-ev:hover, .ev-cell.is-selected { border-color: var(--tide); }
.ev-cell.is-today .ev-num { background: var(--deep); color: var(--paper); border-radius: 50%; width: 1.7em; height: 1.7em; display: grid; place-items: center; }
.ev-num { font-size: .85rem; font-weight: 600; }
.ev-dots { display: flex; gap: 3px; }
.ev-cell-title { font-size: .72rem; line-height: 1.25; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-legend { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.1rem; font-size: .82rem; color: var(--muted); }
.ev-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.ev-day-detail:not(:empty) { margin-top: 1.2rem; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .ev-item { grid-template-columns: 64px 1fr; gap: 1rem; }
  .ev-date b { font-size: 2rem; }
  .ev-cell { min-height: 52px; padding: .35rem; align-items: center; }
  .ev-cell-title { display: none; }
  .sa-inner { align-items: flex-start; }
}
.dt-extra { display: block; margin-top: .35rem; font-size: .8rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.dt-extra:hover { color: var(--tide); }
