/* ==========================================================================
   Do Vode — design system
   Palette grounded in the subject: karst spring teal, iron-oxide ochre
   (the iron/manganese that colours Posavina well water), limestone neutrals.
   Type: Barlow Condensed (engineering-drawing display) + Source Serif 4
   (editorial authority) + IBM Plex Mono (depths, prices, codes).
   ========================================================================== */

/* ---------- tokens ---------- */

:root {
  /* light */
  --ground:        #EFF2F1;
  --ground-alt:    #E6EBE9;
  --surface:       #FFFFFF;
  --surface-sunk:  #E7ECEA;
  --ink:           #131E1C;
  --ink-soft:      #475754;
  --ink-faint:     #6F817D;
  --rule:          #D2DAD8;
  --rule-soft:     #E3E9E7;

  --accent:        #0E6E63;
  --accent-deep:   #0A544B;
  --accent-sunk:   #DFEFEC;
  --accent-ink:    #FFFFFF;

  --ochre:         #A15A24;
  --ochre-sunk:    #F4E8DC;

  --deep:          #0B1615;   /* underground / hero ground */
  --deep-2:        #122220;
  --deep-ink:      #E7EEEC;
  --deep-soft:     #93A8A3;
  --deep-rule:     #21332F;

  --shadow-sm: 0 1px 2px rgba(19,30,28,.06);
  --shadow:    0 1px 2px rgba(19,30,28,.05), 0 10px 30px -14px rgba(19,30,28,.22);
  --shadow-lg: 0 2px 4px rgba(19,30,28,.05), 0 24px 60px -24px rgba(19,30,28,.3);

  --display: "Barlow Condensed", "Arial Narrow", Helvetica, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --measure: 68ch;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --maxw: 76rem;
  --radius: 3px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:        #0B1211;
    --ground-alt:    #0F1917;
    --surface:       #141F1D;
    --surface-sunk:  #1B2725;
    --ink:           #E6ECEA;
    --ink-soft:      #9CADA9;
    --ink-faint:     #788A86;
    --rule:          #283733;
    --rule-soft:     #1E2B28;

    --accent:        #55C7B4;
    --accent-deep:   #7FDCCB;
    --accent-sunk:   #12332E;
    --accent-ink:    #06211D;

    --ochre:         #DB975F;
    --ochre-sunk:    #33241A;

    --deep:          #070E0D;
    --deep-2:        #0D1817;
    --deep-ink:      #E7EEEC;
    --deep-soft:     #8FA4A0;
    --deep-rule:     #1D2C29;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
    --shadow:    0 1px 2px rgba(0,0,0,.5), 0 10px 30px -14px rgba(0,0,0,.8);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 24px 60px -24px rgba(0,0,0,.9);
  }
}

:root[data-theme="dark"] {
  --ground:        #0B1211;
  --ground-alt:    #0F1917;
  --surface:       #141F1D;
  --surface-sunk:  #1B2725;
  --ink:           #E6ECEA;
  --ink-soft:      #9CADA9;
  --ink-faint:     #788A86;
  --rule:          #283733;
  --rule-soft:     #1E2B28;

  --accent:        #55C7B4;
  --accent-deep:   #7FDCCB;
  --accent-sunk:   #12332E;
  --accent-ink:    #06211D;

  --ochre:         #DB975F;
  --ochre-sunk:    #33241A;

  --deep:          #070E0D;
  --deep-2:        #0D1817;
  --deep-ink:      #E7EEEC;
  --deep-soft:     #8FA4A0;
  --deep-rule:     #1D2C29;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow:    0 1px 2px rgba(0,0,0,.5), 0 10px 30px -14px rgba(0,0,0,.8);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 24px 60px -24px rgba(0,0,0,.9);
}

/* ---------- reset ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

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

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.skip {
  position: fixed; left: .5rem; top: .5rem; z-index: 999;
  transform: translateY(-200%);
  background: var(--accent); color: var(--accent-ink);
  padding: .7rem 1.1rem; font-family: var(--display); text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none;
}
.skip:focus { transform: none; }

/* ---------- layout primitives ---------- */

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 54rem; margin-inline: auto; padding-inline: var(--gutter); }

section { position: relative; }
.band { padding-block: clamp(3.25rem, 8vw, 6rem); }
.band-tight { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.band-alt { background: var(--ground-alt); }
.band-surface { background: var(--surface); }
.band-deep { background: var(--deep); color: var(--deep-ink); }
.band-deep h2, .band-deep h3, .band-deep h4 { color: var(--deep-ink); }
.band-deep p { color: var(--deep-soft); }

.stack { display: flex; flex-direction: column; }
.stack > * { margin: 0; }
.gap-xs { gap: .5rem; } .gap-sm { gap: .85rem; } .gap-md { gap: 1.35rem; }
.gap-lg { gap: 2rem; } .gap-xl { gap: 3rem; }

.prose { max-width: var(--measure); display: flex; flex-direction: column; gap: 1.05rem; }
.prose > * { margin: 0; }
.prose h3 { margin-top: 1.5rem; }
.prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.prose li::marker { color: var(--accent); }
.prose img { border: 1px solid var(--rule); }

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: 1.04;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}

h1 { font-weight: 700; font-size: clamp(2.5rem, 7vw, 4.75rem); line-height: .95; letter-spacing: .005em; }
h2 { font-size: clamp(1.85rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0; }
strong { font-weight: 600; }
sup { font-size: .7em; }

.eyebrow {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.eyebrow-muted { color: var(--ink-faint); }
.band-deep .eyebrow { color: var(--accent); }

.lede {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 48ch;
}
.band-deep .lede { color: var(--deep-soft); }

/* The hook line. The H1 carries the keywords; this carries the idea. */
.kicker {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.6vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: .02em;
  color: var(--accent);
  max-width: 34ch;
  margin: 0;
}

.fig, code, .num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: .88em;
}
code { background: var(--surface-sunk); padding: .1em .38em; border-radius: var(--radius); }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

.sec-head {
  display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  border-top: 2px solid var(--ink);
  padding-top: .7rem; margin-bottom: 1.85rem;
}
.band-deep .sec-head { border-top-color: var(--deep-ink); }
.sec-head .tag {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); margin-left: auto;
  /* never nowrap — a long tag would widen the flex row past the viewport */
  min-width: 0; max-width: 100%; text-align: right;
}
.band-deep .sec-head .tag { color: var(--deep-soft); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .78rem 1.4rem; border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; transition: background .16s, color .16s, border-color .16s, transform .16s;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink); }
.band-deep .btn-ghost { color: var(--deep-ink); border-color: var(--deep-rule); }
.band-deep .btn-ghost:hover { border-color: var(--deep-soft); }
.btn-lg { font-size: 1.2rem; padding: .95rem 1.75rem; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 4.25rem;
}

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 2rem; height: 2rem; flex: none; }
.brand-name {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: .02em; text-transform: uppercase; line-height: 1;
}
.brand-name span { color: var(--accent); }

.nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.nav a {
  font-family: var(--display); font-weight: 500; font-size: 1.02rem;
  letter-spacing: .035em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
  padding: .5rem .62rem; border-radius: var(--radius); white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--surface-sunk); }
.nav a[aria-current="page"] { color: var(--accent); }

.header-cta { display: flex; align-items: center; gap: .5rem; flex: none; }
.header-phone {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--mono); font-size: .92rem; font-weight: 500;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  padding: .45rem .6rem; border: 1px solid var(--rule); border-radius: var(--radius);
}
.header-phone:hover { border-color: var(--accent); color: var(--accent); }
.header-phone svg { width: 1rem; height: 1rem; color: var(--accent); }

.nav-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: .5rem .7rem; cursor: pointer;
  font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: .95rem;
}

@media (max-width: 1040px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1rem; box-shadow: var(--shadow);
    max-height: calc(100dvh - 4.25rem); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a { padding: .72rem .5rem; font-size: 1.12rem; border-bottom: 1px solid var(--rule-soft); }
  .nav-toggle { display: block; }
  .header-cta .header-phone span { display: none; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
}

/* ---------- hero ---------- */

.hero {
  background: var(--deep);
  color: var(--deep-ink);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--deep-rule);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 { color: var(--deep-ink); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { color: var(--deep-soft); max-width: 46ch; }

.hero-answers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1px; background: var(--deep-rule);
  border: 1px solid var(--deep-rule); margin-top: .5rem;
}
.hero-answers div { background: var(--deep-2); padding: .95rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .25rem; }
.hero-answers .n {
  font-family: var(--display); font-weight: 600; font-size: 1.85rem; line-height: 1;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.hero-answers .l {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--deep-soft); line-height: 1.45;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
}

/* ---------- strata column (signature graphic) ---------- */

.strata {
  --strata-w: 100%;
  width: var(--strata-w);
  border: 1px solid var(--deep-rule);
  background: var(--deep-2);
  padding: 1rem;
  /* COLUMN, not row: the children are [graphic row, figcaption]. As a row
     the caption was squeezed beside the graphic into a vertical strip. */
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.strata-scale {
  display: flex; flex-direction: column; justify-content: space-between;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .06em;
  color: var(--deep-soft); text-align: right; flex: none; padding-block: 2px;
}
.strata-col { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.strata-layer {
  position: relative; display: flex; align-items: center; padding: .2rem .6rem;
  font-family: var(--mono); font-size: .62rem; line-height: 1.3; letter-spacing: .02em;
  color: #0B1615; overflow: hidden;
  /* labels wrap instead of being clipped — these boxes get narrow in a
     sidebar and long names like 'Površinski raspadnuti vapnenac' must fit */
  white-space: normal; overflow-wrap: anywhere; hyphens: auto;
}
.strata-layer span { position: relative; z-index: 2; }
.strata-layer.dark { color: #E7EEEC; }
.strata-water {
  position: relative;
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}
.strata-water::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, transparent 0 5px, rgba(255,255,255,.22) 5px 6px);
  pointer-events: none;
}
.strata-note {
  font-family: var(--mono); font-size: .62rem; line-height: 1.5; letter-spacing: .05em;
  text-transform: none; color: var(--deep-soft); margin: 0; display: block;
}
.strata-note b { display: inline; }
.strata-note b { color: var(--accent); font-weight: 500; }

/* light-surface variant used on region pages */
.strata-light { background: var(--surface); border-color: var(--rule); }
.strata-light .strata-scale, .strata-light .strata-note { color: var(--ink-faint); }
.strata-light .strata-note b { color: var(--accent); }

/* ---------- cards / grids ---------- */

.grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.grid > * { background: var(--surface); padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .65rem; }
.band-alt .grid > * { background: var(--surface); }

.card-link { text-decoration: none; color: inherit; transition: background .16s; }
.card-link:hover { background: var(--accent-sunk); }

.card-num {
  font-family: var(--mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; color: var(--accent);
}
.card p { color: var(--ink-soft); font-size: .96rem; line-height: 1.5; }

/* free-standing cards (not in a rule grid) */
.panel {
  background: var(--surface); border: 1px solid var(--rule);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .9rem;
}
.panel-accent { border-left: 3px solid var(--accent); }

/* ---------- callouts ---------- */

.call {
  border-left: 3px solid var(--accent);
  background: var(--accent-sunk);
  padding: 1.05rem 1.25rem;
  display: flex; flex-direction: column; gap: .55rem;
}
.call .k {
  font-family: var(--mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.call p { color: var(--ink); }
.call.warn { border-left-color: var(--ochre); background: var(--ochre-sunk); }
.call.warn .k { color: var(--ochre); }
.band-deep .call { background: var(--deep-2); border-left-color: var(--accent); }
.band-deep .call p { color: var(--deep-soft); }

/* ---------- tables ---------- */

.tw { overflow-x: auto; border: 1px solid var(--rule); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 32rem; font-size: .93rem; }
thead th {
  font-family: var(--mono); font-size: .65rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase; text-align: left;
  color: var(--ink-faint); padding: .8rem 1rem;
  border-bottom: 1px solid var(--rule); white-space: nowrap;
}
tbody td { padding: .8rem 1rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; line-height: 1.45; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .85rem; white-space: nowrap; }
tbody tr.yes td:first-child { border-left: 3px solid var(--accent); }
tbody tr.no td:first-child { border-left: 3px solid var(--ochre); }

/* ---------- anatomy list ---------- */

.anat { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.anat li { background: var(--surface); display: grid; grid-template-columns: 3rem 1fr; gap: 0 .9rem; padding: 1rem 1.15rem; }
.anat .d { font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .06em; color: var(--accent); padding-top: .28rem; }
.anat .t { font-family: var(--display); font-size: 1.18rem; font-weight: 600; letter-spacing: .015em; text-transform: uppercase; }
.anat .b { grid-column: 2; font-size: .95rem; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 560px) {
  .anat li { grid-template-columns: 1fr; }
  .anat .d { padding-top: 0; }
  .anat .b { grid-column: 1; }
}

/* Two-column split layouts are declared inline on the page (so each can set
   its own ratio); this is the one place they collapse. */
@media (max-width: 860px) {
  .split, .cta-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {
  .sec-head { flex-direction: column; gap: .35rem; align-items: flex-start; }
  .sec-head .tag { margin-left: 0; text-align: left; }
}

/* ---------- estimator tool ---------- */

.tool {
  border: 1px solid var(--rule); background: var(--surface);
  display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  box-shadow: var(--shadow);
}
.tool-input {
  padding: 1.5rem; background: var(--surface-sunk);
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.tool-out { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.15rem; min-width: 0; }

@media (max-width: 820px) {
  .tool { grid-template-columns: 1fr; }
  .tool-input { border-right: 0; border-bottom: 1px solid var(--rule); }
}

.field { display: flex; flex-direction: column; gap: .38rem; }
.field label {
  font-family: var(--mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint);
}
.field select, .field input, .field textarea {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: .62rem .7rem; font-family: var(--body); font-size: 1rem; width: 100%;
}
.field select { font-family: var(--display); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; }
.field select:focus, .field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-sunk); }
.field .hint { font-size: .84rem; color: var(--ink-faint); line-height: 1.4; }

.seg { display: flex; flex-wrap: wrap; gap: .35rem; position: relative; }
/* Hidden radios: must NOT inherit the width:100% from `.field input`, or they
   stretch to the positioned ancestor and push the page sideways. */
.seg input {
  position: absolute; opacity: 0; pointer-events: none;
  width: 1px; height: 1px; margin: 0; padding: 0; border: 0;
  top: 0; left: 0;
}
.seg label {
  font-family: var(--display); font-size: 1.02rem; letter-spacing: .03em; text-transform: uppercase;
  padding: .45rem .75rem; border: 1px solid var(--rule); border-radius: var(--radius);
  cursor: pointer; background: var(--surface); color: var(--ink-soft); transition: .14s;
}
.seg input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

.readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.readout div { background: var(--surface); padding: .9rem 1rem 1.05rem; display: flex; flex-direction: column; gap: .25rem; }
.readout .n {
  font-family: var(--display); font-weight: 600; font-size: 1.75rem; line-height: 1.05;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.readout .n small { font-size: .55em; color: var(--ink-faint); font-weight: 500; }
.readout .l { font-family: var(--mono); font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }

.badge {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
  font-family: var(--mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .32rem .6rem; border: 1px solid currentColor; border-radius: var(--radius);
}
.badge-good { color: var(--accent); }
.badge-mid  { color: var(--ochre); }
.badge-hard { color: var(--ink-faint); }

/* ---------- process timeline ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps li {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 0 1.3rem;
  padding: 1.35rem 0; border-bottom: 1px solid var(--rule-soft); position: relative;
}
.steps li:last-child { border-bottom: 0; }
.steps .s-n {
  font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: .9;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.steps .s-when { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-top: .3rem; }
.steps .s-body { display: flex; flex-direction: column; gap: .45rem; }
.steps h3 { margin: 0; }
.steps p { color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 560px) {
  .steps li { grid-template-columns: 1fr; gap: .5rem; }
  .steps .s-n { font-size: 1.9rem; }
}

/* ---------- FAQ ---------- */

.faq { border: 1px solid var(--rule); background: var(--surface); }
.faq details { border-bottom: 1px solid var(--rule-soft); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 1.25rem;
  font-family: var(--display); font-size: 1.22rem; font-weight: 600;
  letter-spacing: .015em; text-transform: uppercase; line-height: 1.2;
  display: flex; align-items: flex-start; gap: .85rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; font-family: var(--mono); font-size: 1.1rem; font-weight: 600;
  color: var(--accent); flex: none; line-height: 1.2; transition: transform .18s;
}
.faq details[open] summary::before { content: "\2013"; }
.faq summary:hover { background: var(--surface-sunk); }
.faq .a { padding: 0 1.25rem 1.25rem 3rem; display: flex; flex-direction: column; gap: .8rem; }
.faq .a p { color: var(--ink-soft); }

/* ---------- region index ---------- */

.regions-list { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.region-item {
  background: var(--surface); padding: 1.05rem 1.15rem 1.2rem;
  text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: .3rem;
  transition: background .15s;
}
.region-item:hover { background: var(--accent-sunk); }
.region-item .r-n { font-family: var(--display); font-size: 1.3rem; font-weight: 600; text-transform: uppercase; letter-spacing: .015em; }
.region-item .r-d { font-family: var(--mono); font-size: .72rem; color: var(--ink-faint); letter-spacing: .04em; }
.region-item .r-t { font-size: .88rem; color: var(--ink-soft); }

/* ---------- contact / form ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.call-card {
  background: var(--deep); color: var(--deep-ink); padding: 1.6rem;
  display: flex; flex-direction: column; gap: 1rem; border: 1px solid var(--deep-rule);
}
.call-card .big {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: .01em; color: var(--accent); text-decoration: none; line-height: 1; display: block;
  font-variant-numeric: tabular-nums;
}
.call-card p { color: var(--deep-soft); font-size: .95rem; }
.call-card .hours { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--deep-soft); }

/* ---------- sticky mobile call bar ---------- */

.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; gap: 1px; background: var(--deep-rule);
  border-top: 1px solid var(--deep-rule);
  padding-bottom: env(safe-area-inset-bottom);
}
.callbar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem .5rem; text-decoration: none;
  font-family: var(--display); font-size: 1.1rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.callbar .c-call { background: var(--accent); color: var(--accent-ink); }
.callbar .c-viber { background: var(--deep); color: var(--deep-ink); }
.callbar svg { width: 1.1em; height: 1.1em; }
@media (max-width: 760px) {
  .callbar { display: flex; }
  body { padding-bottom: 3.6rem; }
}

/* ---------- footer ---------- */

.site-footer { background: var(--deep); color: var(--deep-soft); padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; border-top: 1px solid var(--deep-rule); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(9rem, 1fr)); gap: 2rem; }
/* Footer column labels are navigation labels, not document headings — using
   <h4> here created an h2->h4 jump that heading-structure audits flag. */
.footer-h {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: .95rem; color: var(--deep-ink); letter-spacing: .08em;
  margin: 0 0 .9rem; line-height: 1.1;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.site-footer a { color: var(--deep-soft); text-decoration: none; font-size: .93rem; }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand-name { color: var(--deep-ink); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--deep-rule);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
}

/* ---------- breadcrumbs ---------- */

.crumbs {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: .45rem; align-items: center;
  padding-top: 1.5rem;
}
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- page header ---------- */

.page-head { padding-block: clamp(2rem, 5vw, 3.25rem) clamp(1.75rem, 4vw, 2.75rem); border-bottom: 1px solid var(--rule); }
.page-head .stack { max-width: 52rem; }

/* ---------- misc utilities ---------- */

.center { text-align: center; }
.mono-label { font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.hr { height: 1px; background: var(--rule); border: 0; margin: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill {
  font-family: var(--mono); font-size: .74rem; padding: .3rem .6rem;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink-soft); border-radius: var(--radius);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.note { font-size: .85rem; color: var(--ink-faint); line-height: 1.5; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ==========================================================================
   MEDIA — photos, video cards, cross-section diagram
   ========================================================================== */

.ph { display: block; }
.ph img { display: block; width: 100%; height: auto; background: var(--surface-sunk); }
/* forced-ratio variant: the wrapper owns the box, the image fills it */
.ph-crop { display: block; overflow: hidden; }
.ph-crop img { width: 100%; height: 100%; object-fit: cover; }

.mfig { margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.mfig figcaption {
  font-family: var(--mono); font-size: .72rem; line-height: 1.55;
  letter-spacing: .03em; color: var(--ink-faint);
}
.band-deep .mfig figcaption { color: var(--deep-soft); }
.mfig .ph { border: 1px solid var(--rule); }
.band-deep .mfig .ph { border-color: var(--deep-rule); }

/* photo grid ------------------------------------------------------------- */

.pgrid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.pgrid-3 { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.pgrid figure { margin: 0; background: var(--surface); display: flex; flex-direction: column; }
.pgrid .ph { border: 0; }
.pgrid figcaption {
  padding: .8rem 1rem 1rem; font-family: var(--mono); font-size: .7rem;
  line-height: 1.5; letter-spacing: .03em; color: var(--ink-faint);
}

/* media strip: edge-to-edge row of stills ------------------------------- */

.strip-row {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(13rem, 1fr);
  gap: 1px; background: var(--deep-rule);
  overflow-x: auto; scroll-snap-type: x mandatory;
}
.strip-row .ph { scroll-snap-align: start; border: 0; }

/* video cards ----------------------------------------------------------- */

.vgrid {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  background: var(--rule); border: 1px solid var(--rule);
}
.band-deep .vgrid { background: var(--deep-rule); border-color: var(--deep-rule); }

.vcard { background: var(--surface); display: flex; flex-direction: column; }
.band-deep .vcard { background: var(--deep-2); }

.vcard-play {
  position: relative; display: block; padding: 0; border: 0; cursor: pointer;
  background: #0B1615; line-height: 0; width: 100%;
}
.vcard-play img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 9 / 16; object-fit: cover;
  transition: opacity .2s, transform .3s;
}
.vcard-play:hover img { opacity: .82; transform: scale(1.015); }

.vcard-icon {
  position: absolute; inset: 0; margin: auto;
  width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 92%, transparent);
  color: #06211D;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px -6px rgba(0,0,0,.6);
  transition: transform .18s;
}
.vcard-icon svg { width: 1.5rem; height: 1.5rem; margin-left: .12rem; }
.vcard-play:hover .vcard-icon { transform: scale(1.08); }

.vcard-dur {
  position: absolute; right: .55rem; bottom: .55rem;
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  color: #E7EEEC; background: rgba(11,22,21,.78);
  padding: .18rem .42rem; border-radius: 2px; line-height: 1.3;
}

.vcard video { width: 100%; height: auto; aspect-ratio: 9 / 16; display: block; background: #0B1615; }

.vcard-meta { padding: 1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.vcard-meta h3 { font-size: 1.15rem; }
.vcard-meta p { font-size: .9rem; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.band-deep .vcard-meta p { color: var(--deep-soft); }

/* cross-section diagram ------------------------------------------------- */

.xsec { max-width: 46rem; }
.xsec-svg { width: 100%; height: auto; background: var(--surface); border: 1px solid var(--rule); }

.xsec-svg .sky { fill: var(--accent-sunk); }
.xsec-svg .ho { fill: none; stroke: var(--ink-soft); stroke-width: 2.4; stroke-linejoin: round; }
.xsec-svg .pipe { fill: none; stroke: var(--accent); stroke-width: 2.4; }
.xsec-svg .void { fill: #0B1615; }
.xsec-svg .water { fill: var(--accent); opacity: .55; }
.xsec-svg .casing { fill: #C9D2CF; }
.xsec-svg .slot { stroke: #0B1615; stroke-width: 2.2; }
.xsec-svg .pack { fill: #A8B6B2; }
.xsec-svg .tampon { fill: #5E5347; }
.xsec-svg .pump { fill: #4A5A57; stroke: #C9D2CF; stroke-width: 1.6; }
.xsec-svg .riser { stroke: var(--accent-deep); stroke-width: 2.6; fill: none; }
.xsec-svg .wl { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 5 4; }

.xsec-svg .ls {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase;
}
.xsec-svg .lead line { stroke: var(--rule); stroke-width: 1.2; }
.xsec-svg .lead .dot { fill: var(--accent); }
.xsec-svg .lb {
  font-family: var(--display); font-size: 15px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .02em; fill: var(--ink);
}
.xsec-svg .lb-sub {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; fill: var(--ink-faint);
}

@media (max-width: 560px) {
  .xsec-svg .lb { font-size: 17px; }
  .xsec-svg .lb-sub { font-size: 12px; }
  .xsec-svg .ls { font-size: 12px; }
}

/* hero photo composition ------------------------------------------------ */

.hero-media { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--deep-rule); }
.hero-media .ph { border: 0; }
@media (min-width: 901px) {
  .hero-media { grid-template-columns: 1.35fr 1fr; align-items: stretch; }
  .hero-media > * { min-width: 0; }
}

/* ==========================================================================
   HERO — full-bleed photo behind the headline
   ========================================================================== */

.hero-photo {
  position: relative;
  isolation: isolate;
  background: var(--deep);
  color: var(--deep-ink);
  border-bottom: 1px solid var(--deep-rule);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .ph, .hero-bg img { width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 50% 42%; }

/* Two scrims: a horizontal one so the text column stays legible, and a
   vertical one so the band edges melt into the page. Without both, the
   headline sits on whatever the photo happens to be doing. */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, var(--deep) 6%, rgba(11,22,21,.92) 34%, rgba(11,22,21,.62) 58%, rgba(11,22,21,.34) 100%),
    linear-gradient(to bottom, rgba(11,22,21,.55) 0%, rgba(11,22,21,0) 30%, rgba(11,22,21,.75) 100%);
}

.hero-inner {
  position: relative; z-index: 1;
  padding-block: clamp(3.5rem, 11vw, 8.5rem);
  min-height: clamp(28rem, 62vh, 44rem);
  display: flex; flex-direction: column; justify-content: center;
  gap: 1.35rem;
  max-width: 60rem;
}
.hero-photo h1 { color: var(--deep-ink); text-shadow: 0 2px 24px rgba(0,0,0,.4); }
.hero-photo h1 em { font-style: normal; color: var(--accent); }
.hero-photo .lede { color: #C6D4D0; max-width: 44ch; }
.hero-photo .kicker { color: var(--accent); }

@media (max-width: 700px) {
  /* on a narrow screen a side-weighted scrim reads badly — go vertical */
  .hero-bg::after {
    background: linear-gradient(to bottom, rgba(11,22,21,.72) 0%, rgba(11,22,21,.55) 45%, rgba(11,22,21,.93) 100%);
  }
  .hero-bg img { object-position: 50% 35%; }
}

/* ==========================================================================
   GALLERY — mosaic of site photography
   ========================================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 11rem;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.gallery figure { margin: 0; position: relative; overflow: hidden; background: var(--deep); }
.gallery .ph, .gallery img { width: 100%; height: 100%; }
.gallery img { object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.04); }

.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem .85rem .7rem;
  font-family: var(--mono); font-size: .66rem; line-height: 1.45; letter-spacing: .03em;
  color: #E7EEEC;
  background: linear-gradient(to top, rgba(11,22,21,.9), rgba(11,22,21,0));
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s, transform .25s;
}
.gallery figure:hover figcaption,
.gallery figure:focus-within figcaption { opacity: 1; transform: none; }

/* feature cells */
.gallery .g-wide { grid-column: span 2; }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-big  { grid-column: span 2; grid-row: span 2; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 10rem; }
  .gallery .g-big { grid-column: span 2; grid-row: span 2; }
  .gallery .g-wide { grid-column: span 2; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 13rem; }
  .gallery .g-wide, .gallery .g-big { grid-column: span 1; }
  .gallery .g-big, .gallery .g-tall { grid-row: span 1; }
  .gallery figcaption { opacity: 1; transform: none; }
}

/* inline photo band — a full-width strip between sections */
.photo-band { position: relative; overflow: hidden; background: var(--deep); }
.photo-band .ph { width: 100%; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; max-height: 26rem; }
.photo-band-cap {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem var(--gutter) 1.25rem;
  background: linear-gradient(to top, rgba(11,22,21,.92), rgba(11,22,21,0));
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: #C6D4D0;
}

@media (max-width: 700px) {
  /* a decorative full-width strip shouldn't eat most of a phone screen */
  .photo-band img { max-height: 15rem; }
  .photo-band-cap { padding-top: 2rem; font-size: .68rem; }
}
