/* Byford Retaining Walls
   Limestone + deep olive, heavy condensed display. Coursed-wall motif: hero base + brand mark only. */

@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-style: normal; font-display: swap; src: url("fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/archivo-latin-600-normal.woff2") format("woff2"); }

:root {
  --stone: #E7DDC6;      /* limestone */
  --stone-2: #D9CBA9;    /* sandstone, deeper panels */
  --stone-hi: #F2ECDE;   /* inputs, light fills */
  --olive: #353A25;      /* deep olive */
  --olive-2: #474D31;
  --char: #24241E;       /* charcoal */
  --ochre: #C8963E;      /* sun-baked ochre, CTAs */
  --ochre-dk: #A97A2A;
  --ink: #2A2A21;
  --muted: #5B5847;
  --rule: rgba(53, 58, 37, .28);
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; overflow-x: clip;
  background: var(--stone); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(2.4rem, 6.5vw, 3.9rem); margin-bottom: .45em; color: var(--olive); }
h3 { font-size: 1.55rem; line-height: 1.05; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 8px; top: 8px; transform: translateY(calc(-100% - 16px)); z-index: 100; background: var(--olive); color: var(--stone); padding: 10px 14px; border-radius: 4px; }
.skip:focus { transform: none; }

/* ---------- buttons ---------- */
.btn {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 4px;
  font: 600 1.0625rem/1 var(--body); text-decoration: none;
  transition: transform 140ms var(--ease-out), background-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn .ico { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-ochre { background: var(--ochre); color: var(--char); }
.btn-ghost { background: transparent; color: var(--stone); box-shadow: inset 0 0 0 2px rgba(231, 221, 198, .55); }
.btn-olive { background: var(--olive); color: var(--stone); }
.btn-wide { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-ochre:hover { background: #D6A54C; }
  .btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--stone); }
  .btn-olive:hover { background: var(--olive-2); }
}

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--stone); border-bottom: 1px solid var(--rule); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--olive); min-height: 48px; margin-right: auto; min-width: 0; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-word { font-family: var(--display); font-weight: 800; font-size: min(1.3rem, calc((100vw - 164px - 2.2rem) / 3.75)); line-height: .92; letter-spacing: .01em; min-width: 0; }
.nav-desk { display: none; gap: 4px; }
.nav-desk a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; font-weight: 600; font-size: .97rem; color: var(--olive); border-radius: 4px; }
.nav-desk a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
@media (hover: hover) and (pointer: fine) { .nav-desk a:hover { background: var(--stone-2); } }
.head-cta { display: none; min-height: 46px; padding: 0 18px; font-size: .97rem; }
.menu-btn {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; min-width: 48px; padding: 0 14px;
  background: var(--olive); color: var(--stone); border-radius: 4px; font: 600 1rem/1 var(--body);
}
.menu-btn .ico { width: 22px; height: 22px; fill: currentColor; }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
@media (min-width: 1100px) {
  .nav-desk { display: flex; }
  .head-cta { display: inline-flex; }
  .menu-btn { display: none; }
}

.menu {
  position: fixed; z-index: 25; left: 0; right: 0; top: 72px; bottom: 0;
  background: var(--olive); color: var(--stone);
  padding: 20px var(--gutter) 120px; overflow-y: auto; overscroll-behavior: contain;
  opacity: 1; transform: translateY(0);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.menu[hidden] { display: none; }
.menu.is-entering { opacity: 0; transform: translateY(-8px); }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a {
  display: flex; align-items: center; min-height: 56px; text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 2rem; border-bottom: 1px solid rgba(231, 221, 198, .18);
}
.menu-cta { margin-top: 24px; width: 100%; }
body.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero { background: var(--olive); color: var(--stone); position: relative; overflow: hidden; padding: 0; }
.hero-grid { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(28px, 4vw, 48px); display: grid; gap: 28px; }
.hero h1 {
  font-weight: 900; font-size: clamp(4.4rem, 19vw, 10.5rem); line-height: .9; letter-spacing: -.005em; container-type: inline-size;
  color: var(--stone); margin: 0;
}
.hero h1 span { display: block; font-size: min(1em, 26.5cqi); } /* longest word 'Retaining' = 3.68em: always fits its column, never breaks */
.hero h1 span:nth-child(2) { color: var(--stone-2); }
.lede { font-size: 1.15rem; line-height: 1.55; max-width: 34em; }
.hero .lede { color: #E9E1CD; margin-top: 4px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.hero-note { font-size: .95rem; color: #CFC6AE; margin: 0; }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.hero-side { min-width: 0; }
.hero-side .lede { margin-bottom: 0; }
@media (min-width: 980px) {
  .hero-copy { grid-template-columns: 1.15fr 1fr; column-gap: 56px; align-items: end; }
  .hero-side { padding-bottom: 14px; }
}

.wall { width: 100%; height: clamp(140px, 15.5vw, 230px); }
.wall .course { transform-box: fill-box; transform-origin: 50% 100%; animation: lay 520ms var(--ease-out) both; animation-delay: calc(140ms + var(--i) * 85ms); }
@keyframes lay { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .wall .course { animation: none; } }

/* ---------- sections ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; }
.sec-head { display: grid; gap: 4px 48px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head p { max-width: 40em; margin: 0; color: var(--muted); }
@media (min-width: 900px) { .sec-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; } .sec-head h2 { margin: 0; } }

/* how it works */
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; counter-reset: none; }
.step { display: grid; align-content: start; grid-template-columns: 64px 1fr; column-gap: 16px; padding: 22px 0; border-top: 2px solid var(--olive); }
.step-n { display: block; grid-row: span 2; font-family: var(--display); font-weight: 900; font-size: 4rem; line-height: .8; color: var(--ochre-dk); }
.step h3 { color: var(--olive); margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .step { grid-template-columns: 1fr; padding-top: 24px; }
  .step-n { grid-row: auto; height: 1em; margin-bottom: 18px; font-size: 4.6rem; line-height: 1; }
}

/* wall types */
.walls { background: var(--stone-hi); }
.wtypes { border-bottom: 2px solid var(--olive); }
.wtype { display: grid; gap: 10px 48px; padding: 26px 0; border-top: 2px solid var(--olive); }
.wtype h3 { font-size: clamp(1.8rem, 4.8vw, 2.4rem); color: var(--olive); }
.wtype-body p { margin-bottom: 14px; max-width: 40em; }
.wtype dl { margin: 0; display: grid; gap: 10px 32px; }
.wtype dt { font-weight: 600; color: var(--olive); font-size: .95rem; }
.wtype dd { margin: 0; color: var(--muted); font-size: .98rem; }
@media (min-width: 900px) {
  .wtype { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: 34px 0; }
  .wtype dl { grid-template-columns: 1fr 1fr; }
}

/* drainage */
.drain { background: var(--stone-2); }
.drain-grid { display: grid; gap: 28px; grid-template-areas: "copy" "fig" "key"; }
.drain-copy { grid-area: copy; } .drain-fig { grid-area: fig; } .drain-key { grid-area: key; }
.drain-copy p:last-child { margin-bottom: 0; }
.drain-copy p { max-width: 36em; }
.drain-key { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; align-content: start; }
.drain-key li { display: flex; align-items: center; gap: 12px; }
.drain-key span {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--olive); color: var(--stone); font: 600 .92rem/1 var(--body);
}
.drain-fig { margin: 0; background: var(--stone-hi); border-radius: 6px; padding: 10px; }
.drain-svg { width: 100%; height: auto; }
.d-sky { fill: var(--stone-hi); }
.d-soil { fill: #A68A63; }
.d-soil-low { fill: #9C805A; }
.d-grav-bg { fill: #C9BC9C; }
.d-grav-dot { fill: #8E836B; }
.d-fabric { fill: none; stroke: var(--olive); stroke-width: 2.5; stroke-dasharray: 7 5; }
.d-footing { fill: #8F8D84; }
.d-block { fill: #E2D6B8; stroke: #9A8C67; stroke-width: 1.5; }
.d-pipe { fill: var(--olive); }
.d-pipe-in { fill: #C9BC9C; }
.d-water { fill: none; stroke: #3F6F86; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 8; }
.d-water-fill { fill: #3F6F86; }
.d-key circle { fill: var(--olive); }
.d-key text { fill: var(--stone); font: 600 17px var(--body); text-anchor: middle; }
.d-lead { stroke: var(--olive); stroke-width: 2; }
@media (min-width: 900px) { .drain-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "copy fig" "key fig"; grid-template-rows: auto 1fr; gap: 28px 56px; align-items: center; } .drain-key { align-self: start; } }

/* council */
.council { padding: 0; background: var(--stone-2); }
.council-box {
  display: grid; gap: 14px; background: var(--olive); color: var(--stone);
  padding: clamp(28px, 4vw, 44px) var(--gutter); border-radius: 0;
}
.council-box h2 { color: var(--stone); font-size: clamp(2rem, 5vw, 2.8rem); }
.council-box p { margin: 0; max-width: 46em; color: #E9E1CD; }
.council-ico { width: 34px; height: 34px; fill: var(--ochre); }
@media (min-width: 900px) { .council-box { grid-template-columns: 48px 1fr; gap: 20px; } .council-ico { margin-top: 4px; } }
.council + .cost { background: var(--olive); color: var(--stone); padding-top: clamp(20px, 3vw, 32px); }
.cost h2 { color: var(--stone); }
.cost .sec-head p { color: #D5CCB4; }
.cost-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 40px; }
.cost-list li { padding: 20px 0 16px; border-top: 1px solid rgba(231, 221, 198, .25); }
.cost-list h3 { color: var(--ochre); font-size: 1.6rem; margin-bottom: 6px; }
.cost-list p { margin: 0; color: #E2D9C3; }
@media (min-width: 640px) { .cost-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cost-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.council .wrap.council-box { max-width: var(--max); }
@media (min-width: 1200px) { .council-box { padding-left: 40px; padding-right: 40px; border-radius: 6px 6px 0 0; } }

/* local */
.local-grid { display: grid; gap: 32px; }
.local-grid p { max-width: 38em; }
.areas { border: 2px solid var(--olive); border-radius: 6px; padding: 22px 24px; align-self: start; }
.areas h3 { color: var(--olive); font-size: 1.7rem; margin-bottom: 8px; }
.areas p { margin: 0; font-size: 1.05rem; }
@media (min-width: 900px) { .local-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; } .areas { margin-top: 10px; } }

/* faq */
.faq { background: var(--stone-hi); }
.faq-wrap { display: grid; gap: 20px; }
@media (min-width: 980px) { .faq-wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; } }
.faq-list { border-bottom: 1px solid var(--rule); }
.faq-item { border-top: 1px solid var(--rule); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-family: var(--body); font-weight: 600; font-size: 1.08rem; line-height: 1.35; color: var(--olive); }
.plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--olive); }
.plus::before, .plus::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; background: var(--stone); transition: transform 200ms var(--ease-out); }
.plus::after { transform: rotate(90deg); }
.faq-item[open] .plus::after { transform: rotate(0deg); }
.faq-a { padding: 0 44px 18px 0; }
.faq-a p { margin: 0; color: var(--muted); }

/* quote */
.quote { background: var(--olive); color: var(--stone); }
.quote h2 { color: var(--stone); }
.quote-grid { display: grid; gap: 32px; }
.quote-intro p { color: #E2D9C3; max-width: 32em; }
.quote-intro a { color: var(--stone); }
.quote-small { font-size: .93rem; color: #C9C0A7 !important; }
.qform { background: var(--stone-hi); color: var(--ink); border-radius: 6px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 1rem; color: var(--olive); }
.field input, .field textarea {
  -webkit-appearance: none; appearance: none; width: 100%;
  font: 400 1.0625rem/1.4 var(--body); color: var(--ink); background: #FFFDF8;
  border: 1.5px solid #A79C80; border-radius: 4px; padding: 12px 14px; min-height: 50px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #8A8470; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--ochre); outline-offset: 0; border-color: var(--olive); }
.qform .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form-fine { margin: -4px 0 0; font-size: .93rem; line-height: 1.45; color: var(--muted); }
.form-fine a { color: var(--olive); font-weight: 600; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.qform { position: relative; }
.form-msg { margin: 0; font-weight: 600; line-height: 1.45; padding: 14px 16px 14px 18px; border-radius: 4px; border-left: 5px solid; outline: none; }
.form-msg[hidden], .form-msg:empty { display: none; }
.form-msg[data-state="ok"] { background: #DCE3C8; color: #26301A; border-color: #4F6B2E; }
.form-msg[data-state="error"] { background: #F3DCCF; color: #6A2412; border-color: #B4462A; }
.form-msg:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
@media (min-width: 900px) { .quote-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; } }

/* inner pages */
.inner-hero { background: var(--olive); color: var(--stone); padding: clamp(44px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); }
.inner-hero h1 { font-weight: 900; font-size: min(clamp(3.4rem, 13vw, 6.5rem), calc((100vw - 32px) / 3)); line-height: .88; margin-bottom: 18px; }
.inner-hero .lede { color: #E9E1CD; margin: 0; }
.inner-grid { display: grid; gap: 40px; }
.prose { max-width: 720px; min-width: 0; }
.side-card { display: none; }
@media (min-width: 1000px) {
  .inner-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; align-items: start; }
  .side-card { display: grid; gap: 12px; position: sticky; top: 100px; background: var(--stone-2); border-radius: 6px; padding: 26px; }
  .side-card p { margin: 0; }
  .side-title { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--olive); }
}
.prose h2 { font-size: clamp(1.9rem, 5vw, 2.5rem); margin: 1.6em 0 .4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose-cta { margin-top: 32px; }

/* footer */
.site-foot { background: var(--char); color: #D8CFB8; padding: 44px 0 40px; font-size: .95rem; }
.foot-grid { display: grid; gap: 24px; }
.foot-name { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--stone); margin-bottom: 10px; }
.foot-note { max-width: 38em; margin-bottom: 8px; color: #BDB49C; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--stone); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1fr auto; align-items: start; } .foot-links { flex-direction: column; align-items: flex-end; } }

/* phone dock */
.dock { display: none; }
@media (max-width: 1099px) {
  .site-foot { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  .dock {
    display: block;
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    width: 100%; max-width: 100vw; box-sizing: border-box;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: var(--char);
    transform: translate3d(0, 0, 0); -webkit-backface-visibility: hidden; backface-visibility: hidden;
  }
  .dock-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 4px;
    text-decoration: none; font: 600 1.05rem/1 var(--body);
    transition: transform 140ms var(--ease-out);
  }
  .dock-btn:active { transform: scale(0.97); }
  .dock-btn .ico { width: 20px; height: 20px; fill: currentColor; }
  .dock-quote { width: 100%; background: var(--ochre); color: var(--char); }
}

/* 404 */
.nf-hero { padding-bottom: clamp(56px, 8vw, 96px); }
.nf-code { font-family: var(--display); font-weight: 900; font-size: clamp(5rem, 22vw, 11rem); line-height: .8; color: var(--ochre); margin: 0 0 12px; }
.nf-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
