/* ==========================================================================
   S&L Environmental — design system
   Values are lifted verbatim from the approved mockups' :root blocks
   (source/index.html, source/environmental.html, source/construction.html).
   Per BUILD-BRIEF.md §3, the type system, spacing scale, and palette are
   client-approved and must not be substituted.

   Three color contexts are set by a body class from sl_context():
     .ctx-parent  gateway / neutral company-wide
     .ctx-env     Environmental Compliance ("Deep Aquifer")
     .ctx-con     S&L Construction (copper sub-brand)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Shared across every context */
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --wrap-max: 1160px;
  --wrap-pad: 28px;
  --section-pad: 96px;

  /* Family-brand constants — identical in all three mockups */
  --water: #2E9BD6;
  --water-deep: #155E8A;
  --leaf: #5BB847;
  --copper: #C97C3D;
  --copper-bright: #E0985A;
  --earth-deep: #6E4A28;
}

/* Parent / gateway — source/index.html :root */
.ctx-parent {
  --bg: #0A0D11;
  --panel: #12161C;
  --panel-raised: #181D24;
  --fg: #EDEFF2;
  --fg-soft: #C7CDD4;
  --muted: #7C8590;
  --line: rgba(255, 255, 255, 0.08);
  --accent: var(--water);
  --accent-deep: var(--water-deep);
  --accent-bright: #7FC4E8;
  --accent-ink: #041017;
  --footer-bg: #08090C;
  --strip-bg: #080A0D;
}

/* Environmental — source/environmental.html :root */
.ctx-env {
  --bg: #0B1512;
  --panel: #101E1A;
  --panel-raised: #152722;
  --fg: #DCE6DF;
  --fg-soft: #B6C7C0;
  --muted: #7C8F87;
  --line: rgba(220, 230, 223, 0.1);
  --accent: #2FD1C6;
  --accent-deep: #2FD1C6;
  --accent-bright: #5FF0E4;
  --accent-ink: #062421;
  --footer-bg: #060B09;
  --strip-bg: #080D0B;
  /* Aquifer strata */
  --soil1: #1a1410;
  --soil2: #241b14;
  --soil3: #3a2b1c;
  --aquifer: #0d2b2a;
}

/* Construction — source/construction.html :root */
.ctx-con {
  --bg: #0A0D11;
  --panel: #12161C;
  --panel-raised: #181D24;
  --fg: #EDEFF2;
  --fg-soft: #C7CDD4;
  --muted: #7C8590;
  --line: rgba(255, 255, 255, 0.08);
  --line-bright: rgba(201, 124, 61, 0.4);
  --accent: var(--copper-bright);
  --accent-deep: var(--copper);
  --accent-bright: var(--copper-bright);
  --accent-ink: #1A0E04;
  --footer-bg: #08090C;
  --strip-bg: #080A0D;
}

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > .site-main { flex: 1; }

a { color: inherit; text-decoration: none; }

img,
svg,
video { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.mono { font-family: var(--font-mono); }

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

/* Accessibility: the mockups shipped no focus styling. Every interactive
   element needs a visible focus ring for keyboard users. */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-bright, var(--accent));
  outline-offset: 3px;
  border-radius: 2px;
}

.screen-reader-text,
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 999;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  border-radius: 2px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* The aquifer flowlines and hover lifts are decorative. Honour the OS setting. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. Shared components
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }

.eyebrow--center { justify-content: center; }
.eyebrow--center::before { display: none; }

/* Gateway's eyebrow has rules on both sides and uses the muted line color */
.ctx-parent .eyebrow--gateway {
  color: var(--fg-soft);
  justify-content: center;
}
.ctx-parent .eyebrow--gateway::before,
.ctx-parent .eyebrow--gateway::after {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--muted);
  display: block;
}

/* ---- Top strips ---------------------------------------------------------- */

.back-strip {
  background: var(--strip-bg);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  position: relative;
  z-index: 2;
}
.back-strip .wrap { display: flex; align-items: center; gap: 8px; }
.back-strip a {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: color .2s;
}
.back-strip a:hover { color: var(--fg); }

.family-strip {
  background: var(--strip-bg);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  position: relative;
  z-index: 2;
}
.family-strip .wrap { display: flex; align-items: center; gap: 10px; }
.family-dot { display: flex; gap: 3px; }
.family-dot span { width: 6px; height: 6px; border-radius: 50%; }
.family-dot span:nth-child(1) { background: var(--water); }
.family-dot span:nth-child(2) { background: var(--leaf); }
.family-strip small {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.family-strip small b { color: var(--fg-soft); font-weight: 500; }
.family-strip a { color: var(--muted); text-decoration: underline; }
.family-strip a:hover { color: var(--fg); }

/* ---- Header / nav -------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.ctx-env .site-header { background: rgba(11, 21, 18, 0.88); }
.ctx-con .site-header,
.ctx-parent .site-header { background: rgba(10, 13, 17, 0.85); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px var(--wrap-pad);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand svg,
.brand img { width: 32px; height: 32px; flex: none; }
.ctx-con .brand { gap: 14px; }
.ctx-con .brand svg,
.ctx-con .brand img { width: 38px; height: 38px; }

.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.15; }
.ctx-con .brand-name { font-size: 17px; }
.brand-name span {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.ctx-con .brand-name span { font-size: 10px; }

.navlinks { display: flex; gap: 30px; font-size: 13.5px; font-weight: 500; color: var(--fg-soft); }
.ctx-env .navlinks { color: #B6C7C0; }
.ctx-con .navlinks { gap: 34px; }
.navlinks a:not(.nav-cta) { padding: 6px 0; border-bottom: 1px solid transparent; transition: all .2s; }
.navlinks a:not(.nav-cta):hover,
.navlinks .current-menu-item > a { border-color: var(--accent); color: var(--fg); }

/* The drawer carries its own copy of the CTA so it's reachable on phones.
   Only one of the two is ever shown. */
.navlinks .nav-cta { display: none; }

.nav-cta {
  background: transparent;
  border: 1px solid var(--line-bright, rgba(47, 209, 198, 0.4));
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 2px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  transition: all .2s;
  white-space: nowrap;
}
.ctx-con .nav-cta { padding: 10px 20px; letter-spacing: 0.05em; }
.nav-cta:hover { background: var(--accent-deep); color: var(--accent-ink); }
.ctx-env .nav-cta:hover { background: var(--accent); }

/* Mobile drawer. The mockups simply hid .navlinks below 920px, which leaves
   phone users with no navigation at all — this restores it. */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--fg);
}
.nav-toggle span {
  display: block; position: relative;
  width: 18px; height: 1.5px; background: currentColor;
  transition: transform .25s, background .25s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ''; position: absolute; left: 0;
  width: 18px; height: 1.5px; background: currentColor;
  transition: transform .25s, top .25s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .nav-cta--desktop { display: none; }
  .navlinks {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--wrap-pad) 20px;
    display: none;
  }
  .navlinks.is-open { display: flex; }
  .navlinks a:not(.nav-cta) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .navlinks .nav-cta { display: block; margin-top: 16px; text-align: center; }
}

/* ---- Buttons ------------------------------------------------------------- */

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 14px 26px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: filter .2s, transform .2s;
}
.ctx-con .btn-primary {
  background: linear-gradient(120deg, var(--copper-bright), var(--copper));
  box-shadow: 0 8px 24px rgba(201, 124, 61, 0.25);
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  border: 1px solid rgba(220, 230, 223, 0.25);
  color: var(--fg);
  padding: 14px 26px;
  font-weight: 500;
  font-size: 14px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.03); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Credential / spec plate -------------------------------------------- */

.plate {
  position: relative;
  border-radius: 6px;
  padding: 26px 24px 22px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.ctx-env .plate {
  background: rgba(11, 21, 18, 0.72);
  border: 1px solid rgba(47, 209, 198, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ctx-con .plate {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  background: linear-gradient(160deg, var(--panel-raised), var(--panel));
  border: 1px solid var(--line);
  padding: 28px 26px 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.ctx-con .plate::before {
  content: '';
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
}

.plate-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.plate-label .status {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent-bright);
}

.plate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }

.plate-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  font-size: 13px;
}
.ctx-env .plate-row { border-top: 1px dashed rgba(220, 230, 223, 0.15); }
.ctx-env .plate-row:first-of-type { border-top: none; }
.ctx-con .plate-row { border-top: 1px solid var(--line); font-size: 12.5px; }
.ctx-con .plate-grid .plate-row:nth-child(-n+2) { border-top: none; }

.plate-row .k { color: var(--muted); font-family: var(--font-mono); font-size: 10.5px; }
.plate-row .v { font-weight: 600; font-family: var(--font-mono); font-size: 12px; color: var(--fg); }

/* Unconfirmed data (e.g. contractor license class pending client sign-off)
   renders visibly inert rather than shipping a guess. */
.plate-row .v[data-unconfirmed] { color: var(--muted); font-weight: 400; letter-spacing: 0.06em; }

@media (max-width: 560px) {
  .plate-grid { grid-template-columns: 1fr; }
  .ctx-con .plate-grid .plate-row:nth-child(2) { border-top: 1px solid var(--line); }
}

/* ---- Trust bar ----------------------------------------------------------- */

.trust {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  background: var(--bg);
}
.trust .wrap { display: flex; flex-wrap: wrap; gap: 36px; justify-content: center; }
.ctx-parent .trust { border-bottom: none; }
.ctx-parent .trust .wrap { gap: 32px; }
.trust-item {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.trust-item::before { content: '◆'; color: var(--accent); font-size: 7px; }
.ctx-parent .trust-item::before { color: var(--fg-soft); }

/* ---- Sections + card grids ---------------------------------------------- */

.section { padding: var(--section-pad) 0; position: relative; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; }
.section-head--center { margin: 0 auto 44px; text-align: center; }
.section-head--center h2 { font-size: clamp(24px, 2.8vw, 34px); }

/* The 1px gap over a --line background is what creates the "seam" grid —
   deliberate per BUILD-BRIEF.md §4c. Do not swap for per-card shadows. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.card { background: var(--panel); padding: 30px 26px; transition: background .3s; }
.card:hover { background: var(--panel-raised); }
.card .idx { font-family: var(--font-mono); font-size: 11px; color: var(--accent); margin-bottom: 16px; }
.ctx-con .card .idx { margin-bottom: 18px; }
.card .idx[data-unconfirmed] { color: var(--muted); letter-spacing: 0.06em; }
/* h3 rather than the mockup's h4: the mockups jumped h2 → h4, which breaks
   heading order for screen readers. Both are styled so either works. */
.card h3,
.card h4 { font-size: 17px; margin-bottom: 10px; }
.card p:not(.idx) { font-size: 13.5px; color: var(--fg-soft); line-height: 1.6; }
.ctx-env .card p:not(.idx) { color: #B6C7C0; }

@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

/* "Why us" band */
.why { padding: var(--section-pad) 0; }
.ctx-env .why { background: linear-gradient(180deg, var(--bg), #0D1916); }
.why .card-grid { margin-top: 44px; }
.why .card h3,
.why .card h4 { font-size: 16.5px; }
.why .card p { line-height: 1.65; }
/* Environmental "why" cards index in copper — the family tie-back */
.ctx-env .why .card .idx { color: var(--copper-bright); }
@media (max-width: 860px) { .why .card-grid { grid-template-columns: 1fr; } }

/* Two-column split (Construction scope of work) */
.split-services { padding: var(--section-pad) 0; }
.ctx-con .split-services { background: linear-gradient(180deg, var(--bg), #0D1116); }
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.split-col { background: var(--panel); padding: 36px 32px; }
.split-col h3 { font-size: 20px; margin-bottom: 18px; }
.split-col ul { list-style: none; }
.split-col li { font-size: 13.5px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--fg-soft); line-height: 1.6; }
.split-col li:first-child { border-top: none; }
.split-col li b { color: var(--fg); font-weight: 600; }
@media (max-width: 760px) { .split-grid { grid-template-columns: 1fr; } }

/* ---- Service area -------------------------------------------------------- */

.area { padding: var(--section-pad) 0; }
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.area-list { list-style: none; }
.area-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}
.area-list li:first-child { border-top: none; }
.area-list .state { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.area-note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--fg-soft);
}
@media (max-width: 860px) { .area-grid { grid-template-columns: 1fr; } }

/* ---- Final CTA ----------------------------------------------------------- */

.final-cta { padding: 100px 0; text-align: center; position: relative; }
.final-cta h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 16px auto 28px; max-width: 620px; line-height: 1.2; }
.ctx-con .final-cta { padding: 0 0 110px; }
.ctx-con .final-cta h2 { font-size: clamp(24px, 3vw, 38px); margin: 14px auto 28px; max-width: 600px; }

/* ---- Footer -------------------------------------------------------------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--muted);
  padding: 34px 0;
  font-size: 12px;
  font-family: var(--font-mono);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.ctx-con .site-footer { padding: 26px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; }
.site-footer a { color: var(--fg-soft); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--fg); }
.footer-legal { display: flex; flex-direction: column; gap: 6px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-dba { color: var(--muted); font-size: 10.5px; letter-spacing: 0.04em; }
.footer-ownership {
  color: var(--fg-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-ownership::before { content: '◆'; font-size: 7px; color: var(--accent); }

@media (max-width: 640px) {
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   4. Gateway page (.ctx-parent)
   -------------------------------------------------------------------------- */

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.5;
}
.ctx-parent .grid-bg {
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, black 0%, transparent 75%);
}
.ctx-con .grid-bg {
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 75%);
}

.gateway-header { padding: 30px 0 0; position: relative; z-index: 2; }
.gateway-header .nav { justify-content: center; gap: 14px; }
.lockup { display: flex; align-items: center; gap: 12px; }
.lockup .mark { width: 38px; height: 38px; position: relative; flex: none; }
.lockup .mark svg,
.lockup .mark img { width: 100%; height: 100%; }
.lockup-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.15; }
.lockup-name span {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* main wraps both the hero and the trust bar, so it's the column and
   .gateway-hero is the part that vertically centres in the leftover space —
   the mockup got this by making them siblings of <main>. */
.is-gateway .site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}
.gateway-hero {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  padding: 60px 0;
}

.hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 560px;
  max-width: 100vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 155, 214, 0.14) 0%, rgba(201, 124, 61, 0.10) 55%, transparent 75%);
  filter: blur(10px);
  pointer-events: none;
}
.ctx-con .hero-glow {
  top: -260px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 124, 61, 0.18) 0%, rgba(110, 74, 40, 0.10) 45%, transparent 70%);
}

.hero-copy { position: relative; text-align: center; max-width: 680px; margin: 0 auto 56px; }
.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
/* :not(.eyebrow) throughout — the eyebrows are <p> for semantics where the
   mockups used <div>, and a bare "X p" selector out-specifies .eyebrow. */
.hero-copy p:not(.eyebrow) { font-size: 16px; line-height: 1.65; color: var(--fg-soft); max-width: 560px; margin: 0 auto; }

.choice-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}
.choice {
  background: linear-gradient(160deg, var(--panel-raised), var(--panel));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 38px 32px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform .25s, border-color .25s;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.choice:hover { transform: translateY(-4px); }
.choice.env:hover { border-color: rgba(46, 155, 214, 0.5); }
.choice.con:hover { border-color: rgba(201, 124, 61, 0.5); }
.choice-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.choice.env .choice-icon { background: rgba(46, 155, 214, 0.12); border: 1px solid rgba(46, 155, 214, 0.3); }
.choice.con .choice-icon { background: rgba(201, 124, 61, 0.14); border: 1px solid rgba(201, 124, 61, 0.35); }
.choice-icon svg { width: 22px; height: 22px; }
.choice-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.choice.env .choice-tag { color: #7FC4E8; }
.choice.con .choice-tag { color: #D3A876; }
.choice h2,
.choice h3 { font-family: var(--font-display); font-weight: 600; font-size: 23px; margin-bottom: 12px; }
.choice p { font-size: 14px; line-height: 1.65; color: var(--fg-soft); margin-bottom: 24px; flex: 1; }
.choice-cta { font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; }
.choice.env .choice-cta { color: #7FC4E8; }
.choice.con .choice-cta { color: #D3A876; }

@media (max-width: 760px) { .choice-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   5. Environmental hero (deep aquifer strata)
   -------------------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; padding: 80px 0 0; }
.ctx-con .hero { padding: 90px 0 0; }

.strata { position: absolute; inset: 0; z-index: 0; opacity: 0.85; }
.strata div { position: absolute; left: 0; right: 0; }
.strata .s1 { top: 0;   height: 20%; background: linear-gradient(180deg, var(--soil1), var(--soil2)); }
.strata .s2 { top: 20%; height: 16%; background: linear-gradient(180deg, var(--soil2), var(--soil3)); }
.strata .s3 { top: 36%; height: 14%; background: linear-gradient(180deg, var(--soil3), #5b4632); }
.strata .s4 { top: 50%; height: 50%; background: linear-gradient(180deg, var(--aquifer), #0a1f1e); }

.flowline {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.55;
}
.flowline.fl1 { top: 58%; left: -10%; width: 55%; animation: flowA 7s linear infinite; }
.flowline.fl2 { top: 74%; left: -25%; width: 45%; animation: flowA 9s linear infinite 1.2s; }
.flowline.fl3 { top: 88%; left: -15%; width: 40%; animation: flowA 6.5s linear infinite 2.5s; }
@keyframes flowA { 0% { transform: translateX(0); } 100% { transform: translateX(180%); } }

.hero-inner { position: relative; z-index: 1; }
.ctx-env .hero-inner {
  padding: 70px 0 90px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: end;
}
.ctx-env .hero-inner h1 {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero-inner h1 em { font-style: normal; color: var(--accent); }
.ctx-env .hero-inner p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.65;
  max-width: 520px;
  color: #B6C7C0;
  margin-bottom: 32px;
}
@media (max-width: 860px) { .ctx-env .hero-inner { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   6. Construction hero (builder's square)
   -------------------------------------------------------------------------- */

.ctx-con .hero-inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 70px;
}
.ctx-con .hero-inner h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.ctx-con .hero-inner h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--copper-bright), var(--copper));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ctx-con .hero-inner p:not(.eyebrow) {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--fg-soft);
  max-width: 560px;
  margin: 0 auto 48px;
}

.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 64px;
}
.path { background: var(--panel); padding: 38px 34px; text-align: left; transition: background .3s; }
.path:hover { background: var(--panel-raised); }
.path-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-bright);
  margin-bottom: 14px;
  display: block;
}
.path h2,
.path h3 { font-size: 22px; margin-bottom: 10px; }
.path p { font-size: 13.5px; color: var(--fg-soft); line-height: 1.6; margin-bottom: 20px; }
.path-link { font-size: 13px; font-weight: 600; color: var(--copper-bright); border-bottom: 1px solid var(--copper); padding-bottom: 2px; }
@media (max-width: 760px) { .path-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   7. Contact form
   -------------------------------------------------------------------------- */

.sl-form { max-width: 620px; margin: 40px auto 0; text-align: left; }
.sl-form__row { margin-bottom: 18px; }
.sl-form__row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .sl-form__row--split { grid-template-columns: 1fr; } }

.sl-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.sl-form label .req { color: var(--accent); }

.sl-form input[type="text"],
.sl-form input[type="email"],
.sl-form input[type="tel"],
.sl-form textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 13px 14px;
  transition: border-color .2s, background .2s;
}
.sl-form input:focus,
.sl-form textarea:focus { border-color: var(--accent); background: var(--panel-raised); outline: none; }
.sl-form input:focus-visible,
.sl-form textarea:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.sl-form textarea { min-height: 130px; resize: vertical; }

/* Honeypot — hidden from humans, visible to naive bots. Not display:none,
   which some bots specifically skip. */
.sl-form__hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.sl-form__notice {
  padding: 14px 16px;
  border-radius: 2px;
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 24px;
  border: 1px solid;
}
.sl-form__notice--ok { border-color: rgba(91, 184, 71, 0.45); background: rgba(91, 184, 71, 0.08); color: #A9DFA0; }
.sl-form__notice--err { border-color: rgba(224, 100, 90, 0.45); background: rgba(224, 100, 90, 0.08); color: #EFA9A2; }

.sl-form__error { display: block; margin-top: 6px; font-size: 12px; color: #EFA9A2; }
.sl-form input[aria-invalid="true"],
.sl-form textarea[aria-invalid="true"] { border-color: rgba(224, 100, 90, 0.6); }

/* --------------------------------------------------------------------------
   8. Editor content (page.php / single.php / archive.php)
   Future landing pages and blog posts created in the WP editor inherit the
   design system automatically — this is why the site is on WordPress.
   -------------------------------------------------------------------------- */

.page-hero { padding: 70px 0 46px; position: relative; z-index: 1; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -0.01em; }
.page-hero .page-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 14px; letter-spacing: 0.06em; }

.breadcrumbs { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--fg); }
.breadcrumbs .sep { margin: 0 8px; opacity: .6; }

.entry-content { max-width: 760px; padding: 56px 0 90px; font-size: 16px; line-height: 1.75; color: var(--fg-soft); }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; color: var(--fg); margin-top: 2em; }
.entry-content h3 { font-size: 21px; line-height: 1.3; color: var(--fg); margin-top: 1.8em; }
.entry-content h4 { font-size: 17px; color: var(--fg); margin-top: 1.6em; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--accent-bright); }
.entry-content strong { color: var(--fg); font-weight: 600; }
.entry-content ul,
.entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .5em; }
.entry-content blockquote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 22px;
  color: var(--fg);
  font-size: 17px;
}
.entry-content code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 2px 6px;
}
.entry-content pre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  overflow-x: auto;
}
.entry-content pre code { background: none; border: none; padding: 0; }
.entry-content img,
.entry-content figure img { border-radius: 6px; }
.entry-content figcaption { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 10px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.entry-content th,
.entry-content td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
.entry-content th { background: var(--panel); color: var(--fg); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.entry-content hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* Post listing */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 56px 0 90px; }
.post-card { background: var(--panel); padding: 30px 26px; transition: background .3s; display: flex; flex-direction: column; }
.post-card:hover { background: var(--panel-raised); }
.post-card .post-date { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--accent); margin-bottom: 14px; text-transform: uppercase; }
.post-card h2 { font-size: 19px; line-height: 1.3; margin-bottom: 10px; }
.post-card p { font-size: 13.5px; color: var(--fg-soft); line-height: 1.65; flex: 1; }
.post-card .read-more { font-size: 13px; font-weight: 600; color: var(--accent); margin-top: 20px; }

.pagination { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 90px; font-family: var(--font-mono); font-size: 12px; }
.pagination .page-numbers {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--fg-soft);
  transition: all .2s;
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--fg); }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* 404 */
.error-404 { padding: 110px 0; text-align: center; }
.error-404 .code { font-family: var(--font-mono); font-size: 13px; letter-spacing: .2em; color: var(--accent); margin-bottom: 18px; }
.error-404 h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; }
.error-404 p { color: var(--fg-soft); max-width: 480px; margin: 0 auto 32px; line-height: 1.7; }
