/* Brawley Dock Co. — Mooresville, NC
   Built to the ORYZO design system (darkroom product editorial).
   Token names below map 1:1 to the published spec. */

:root {
  /* palette — never pure #fff or #000 anywhere in UI */
  --walnut: #100904;   /* page canvas, warm near-black */
  --bark:   #382416;   /* one chromatic step up: elevated surface */
  --cork:   #40372e;   /* hairline + dashed dividers */
  --drift:  #6c5f51;   /* mid-tone warm gray, secondary structure */
  --cream:  #ffedd7;   /* ALL text on dark */
  --ember:  #dc5000;   /* editorial credit + inline emphasis ONLY, never a CTA */

  /* type — minor third (1.2) from 16px.
     halyard-display-variable is licensed; spec names Inter as the structural match. */
  --face: 'Inter', 'Söhne', system-ui, -apple-system, sans-serif;

  --t-display:  clamp(2.25rem, 6.2vw, 3.1875rem); /* 51px */
  --t-heading:  clamp(1.9rem, 4.6vw, 2.5625rem);  /* 41px */
  --t-body:     clamp(1.125rem, 2.2vw, 1.8125rem);/* 29px — the ONLY mixed case */
  --t-head-sm:  clamp(1.15rem, 2vw, 1.5rem);      /* 24px */
  --t-sub:      1.125rem;                          /* 18px */
  --t-15: .9375rem;
  --t-14: .875rem;
  --t-12: .75rem;

  /* shape — the entire radius vocabulary is these four values */
  --r-card: 12px;
  --r-ghost: 22.5px;
  --r-pill: 36px;

  --gap: 18px;      /* element gap */
  --pad-card: 24px; /* card padding */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--walnut);
  color: var(--cream);
  font-family: var(--face);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: normal;      /* spec: no negative tracking, even at display */
  overflow-x: hidden;
}

/* The single mixed-case voice in the whole system. */
.body-copy {
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.26;
  text-transform: none;
  text-align: left;            /* body is NEVER centered */
  max-width: 34ch;
  color: var(--cream);
}
.body-copy.wide { max-width: 46ch; }

h1, h2, h3 { margin: 0; font-weight: 500; line-height: .9; }
h1 { font-size: var(--t-display); }
h2 { font-size: var(--t-heading); }
h3 { font-size: var(--t-head-sm); line-height: 1.09; }

a { color: inherit; }

/* ── structure ─────────────────────────────────────────── */
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }

/* spec: each section gets its own full viewport.
   Utility sections relax to auto so a lead-gen page stays reachable. */
.vh { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.band { padding: clamp(72px, 12vh, 140px) 0; }

.rule { border: 0; border-top: 1px dashed var(--cork); margin: 0; }

.label {
  font-size: var(--t-12);
  line-height: 1;
  color: var(--drift);
}
.label--tracked { font-size: var(--t-15); line-height: 1.6; }

/* ── nav ───────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap);
  padding: 20px max(24px, calc((100vw - 1240px) / 2));
  background: color-mix(in srgb, var(--walnut) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px dashed var(--cork);
}
.nav__mark { font-size: var(--t-14); line-height: 1.2; }
.nav__links { display: flex; gap: 22px; align-items: center; }
.nav__links a { font-size: var(--t-12); text-decoration: none; color: var(--drift); }
.nav__links a:hover { color: var(--cream); }
@media (max-width: 820px) { .nav__links a:not(.btn) { display: none; } }

/* ── buttons — max one filled per section ──────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: var(--t-14); line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 0;
  padding: 14px 26px;
}
/* Filled CTA. Spec assigns Bark to the solid button, but on the Walnut canvas
   that lands ~1.6:1 — unreadable. Cream-on-Walnut keeps the palette and passes AA.
   Deviation logged in the design-system note. */
.btn--solid { background: var(--cream); color: var(--walnut); border-radius: var(--r-pill); }
.btn--solid:hover { background: #fff5e8; }
.btn--ghost {
  background: transparent; color: var(--cream);
  border: 1px solid var(--cork); border-radius: var(--r-ghost);
}
.btn--ghost:hover { border-color: var(--drift); }

/* ── hero ──────────────────────────────────────────────── */
.hero { padding-top: 96px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__kicker { font-size: var(--t-12); color: var(--drift); margin-bottom: 28px; }
.hero h1 { max-width: 16ch; }
.hero__sub { margin-top: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--gap); margin-top: 40px; }

/* intake card — fills the right column, carries the secondary path */
.intake {
  background: var(--bark);
  border-radius: var(--r-card);
  padding: var(--pad-card);
}
.intake__title { font-size: var(--t-sub); line-height: 1.2; margin: 0 0 6px; }
.intake__note {
  font-size: var(--t-12); line-height: 1.6; color: #cbb69c;
  text-transform: none; font-weight: 400; margin: 0 0 20px;
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: var(--t-12); color: #cbb69c; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--face); font-size: var(--t-14); font-weight: 400;
  text-transform: none;
  color: var(--cream);
  background: var(--walnut);
  border: 1px solid var(--cork);
  border-radius: 0;                /* spec: inputs are the 0px case */
  padding: 12px 13px;
}
.field textarea { resize: vertical; min-height: 74px; line-height: 1.4; }
.field input::placeholder, .field textarea::placeholder { color: #7d6d5c; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--drift); outline: none; }
.intake .btn { width: 100%; margin-top: 4px; }
.intake__fine {
  font-size: 11px; line-height: 1.5; color: #a08d78;
  text-transform: none; font-weight: 400; margin: 14px 0 0;
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 28px;
  margin-top: 56px; padding-top: 24px; border-top: 1px dashed var(--cork);
}
.hero__meta div { font-size: var(--t-12); color: var(--drift); }
.hero__meta b { display: block; font-size: var(--t-14); color: var(--cream); font-weight: 500; margin-bottom: 6px; }

/* ── void-mode reveal — scroll-scrubbed frame sequence ──
   The repair runs on scroll position, not on a clock. Sticky viewport
   inside a tall runway; scroll progress drives the frame index. */
.scrub { position: relative; height: 320vh; }
.scrub__sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
}
.scrub__stage {
  position: relative;
  width: min(1000px, calc(100vw - 48px));
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--walnut);
}
.scrub__canvas { display: block; width: 100%; height: auto; }

/* progress-linked captions, cross-faded by the scrub driver */
.scrub__caps {
  position: relative; width: min(1000px, calc(100vw - 48px));
  margin-top: 30px; min-height: 4.6em;
}
.scrub__cap {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .35s ease;
  display: grid; grid-template-columns: 7rem 1fr; gap: var(--gap); align-items: start;
}
.scrub__cap[data-on="1"] { opacity: 1; }
.scrub__cap .label { padding-top: .3rem; }
.scrub__cap p {
  margin: 0; font-size: var(--t-sub); line-height: 1.45;
  font-weight: 400; text-transform: none; color: #d9c6ae; max-width: 52ch;
}
@media (max-width: 700px) {
  .scrub { height: 260vh; }
  .scrub__cap { grid-template-columns: 1fr; gap: 8px; }
  .scrub__caps { min-height: 6.4em; }
}

/* progress hairline */
.scrub__bar { width: min(1000px, calc(100vw - 48px)); height: 1px; background: var(--cork); margin-top: 26px; }
.scrub__bar span { display: block; height: 1px; width: 0; background: var(--drift); }

/* no scrub for reduced motion: last frame, static */
@media (prefers-reduced-motion: reduce) {
  .scrub { height: auto; }
  .scrub__sticky { position: static; height: auto; padding: 80px 0; }
}

/* ── service list ──────────────────────────────────────── */
.rows { display: grid; gap: 0; margin-top: 48px; }
.row {
  display: grid; grid-template-columns: 4rem 1fr 1.2fr; gap: var(--gap);
  align-items: start;
  padding: 34px 0;
  border-top: 1px dashed var(--cork);
}
.row:last-child { border-bottom: 1px dashed var(--cork); }
.row__no { font-size: var(--t-12); color: var(--drift); padding-top: .35rem; }
.row__body { font-size: var(--t-sub); line-height: 1.4; text-transform: none; font-weight: 400; color: var(--drift); max-width: 44ch; }
@media (max-width: 820px) {
  .row { grid-template-columns: 3rem 1fr; }
  .row__body { grid-column: 2; }
}

/* ── cards ─────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); margin-top: 48px; }
.card {
  background: var(--bark);
  border-radius: var(--r-card);
  padding: var(--pad-card);
  /* depth comes from the surface stack, never from shadow */
}
.card h3 { margin-bottom: 14px; }
.card p { margin: 0; font-size: var(--t-sub); line-height: 1.45; font-weight: 400; text-transform: none; color: #e8d6c0; }

/* ── contact ───────────────────────────────────────────── */
.contact__num {
  display: inline-block; margin-top: 24px;
  font-size: clamp(2rem, 7vw, 3.1875rem); line-height: .9; text-decoration: none;
}
.em { color: var(--ember); }  /* editorial emphasis only */

/* ── footer ────────────────────────────────────────────── */
.foot { padding: 56px 0 120px; border-top: 1px dashed var(--cork); }
.foot__grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.foot p { font-size: var(--t-12); color: var(--drift); margin: 0 0 8px; max-width: 52ch; line-height: 1.7; }
.credit { font-size: var(--t-12); color: var(--drift); }

/* ── sticky mobile call bar ────────────────────────────── */
.callbar { display: none; }
@media (max-width: 820px) {
  .callbar {
    display: block; position: fixed; inset: auto 0 0 0; z-index: 70;
    border-top: 1px dashed var(--cork);
    background: color-mix(in srgb, var(--walnut) 94%, transparent);
    backdrop-filter: blur(10px);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  .callbar a {
    display: block; text-align: center; text-decoration: none;
    background: var(--cream); color: var(--walnut);
    border-radius: var(--r-pill); padding: 15px; font-size: var(--t-14);
  }
  body { padding-bottom: 76px; }
}

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

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- generated sub-pages ---------- */
/* Added when the site expanded from one page to the full architecture. */

.crumbs {
  display: flex; align-items: center; gap: 9px;
  padding: 16px 0 0;
}
.crumbs a, .crumbs span {
  font-family: var(--face); font-size: 11px; text-transform: uppercase;
  letter-spacing: .14em; color: var(--ash); text-decoration: none;
}
.crumbs a:hover { color: var(--cream); }
.crumbs [aria-current] { color: var(--drift); }

/* sub-page hero is quieter than the homepage hero */
.hero h1 { margin-top: 14px; }
.hero .body-copy.wide { margin-top: 24px; }

/* footer link columns */
.foot__grid a {
  display: block; color: var(--ash); text-decoration: none;
  font-size: .93rem; margin-top: 9px;
}
.foot__grid a:hover { color: var(--cream); }

/* body paragraphs stacked directly in a band need rhythm */
.band > .body-copy.wide + .body-copy.wide { margin-top: 18px; }
