/* =========================================================================
   Auswest Fencing & Wrought Iron – mockup stylesheet
   Implements 03-design/design-system.md exactly.
   Display: Archivo (600/700/800) + Archivo Expanded (wordmark).
   Body:    Source Serif 4 (400/600, italic 400).
   Palette: powder-coat swatch board, heritage burgundy accent.
   Corners: border-radius:0 everywhere. The square is the brand.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Surfaces (light, default) */
  --bg:           #F4F1EA;  /* Paperbark – page background */
  --surface:      #E7E1D4;  /* Doeskin – cards, raised panels */
  --surface-2:    #FCFBF8;  /* Zinc White – inputs, header-on-scroll */

  /* Ink */
  --ink:          #262A2C;  /* Monument – primary text + headings */
  --muted:        #4A4F52;  /* Ironstone – secondary text, captions */
  --faint:        #6E747A;  /* Steel – disabled text, fine meta */

  /* Lines */
  --line:         #D8D0BF;  /* Sandbar – hairlines on light surfaces */
  --line-strong:  #C4BAA6;  /* heavier rule for section edges */

  /* Accent (burgundy heritage) */
  --accent:       #7A1F2B;
  --accent-hover: #5E1721;
  --accent-wash:  #F0E2E2;
  --on-accent:    #FCFBF8;

  /* Dark band (Monument sections) */
  --bg-dark:      #262A2C;
  --surface-dark: #313638;
  --ink-on-dark:  #F4F1EA;
  --muted-on-dark:#B9BCBE;
  --line-on-dark: #454A4C;

  /* Status (forms only) */
  --ok:           #2F5D3A;
  --error:        #8A1F1F;
  --error-wash:   #F6E3E3;

  /* Focus */
  --focus-ring:   #7A1F2B;
  --focus-halo:   #F0E2E2;

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Section vertical rhythm */
  --section-y: clamp(3rem, 6vw, 6.5rem);
  --section-y-tight: clamp(2rem, 4vw, 4rem);

  /* Layout */
  --container: 1200px;
  --container-wide: 1360px;
  --container-narrow: 740px;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  /* Borders */
  --bw: 1px;
  --bw-2: 2px;
  --bw-rail: 6px;
  --radius: 0;          /* HARD CONSTRAINT */

  /* Elevation – flat by design; one subtle shadow for menus/sticky header */
  --shadow-menu: 0 8px 24px rgba(38, 42, 44, 0.14);

  /* Motion */
  --dur-fast: 120ms;
  --dur: 180ms;
  --dur-slow: 260ms;
  --ease: cubic-bezier(0.2, 0, 0.2, 1);

  /* Touch */
  --tap-min: 44px;

  /* Type stacks */
  --font-display: "Archivo", "Arial Narrow", Helvetica, Arial, sans-serif;
  --font-wordmark: "Archivo Expanded", "Archivo", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Type scale */
  --fs-display: clamp(2.6rem, 6vw + 1rem, 5rem);
  --fs-h1:      clamp(2.1rem, 4vw + 0.75rem, 3.5rem);
  --fs-h2:      clamp(1.6rem, 2.4vw + 0.75rem, 2.5rem);
  --fs-h3:      clamp(1.3rem, 1.4vw + 0.8rem, 1.75rem);
  --fs-h4:      clamp(1.125rem, 0.8vw + 0.85rem, 1.375rem);
  --fs-h5:      1.0625rem;
  --fs-h6:      0.9375rem;
  --fs-lead:    clamp(1.125rem, 0.6vw + 1rem, 1.375rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.875rem;
  --fs-xs:      0.8125rem;
  --fs-overline:0.8125rem;
}

/* -------------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; border-radius: var(--radius); }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (max-width: 480px) { body { font-size: 1rem; } }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.015em; }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.18; letter-spacing: -0.005em; }
h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.25; }
h5 { font-size: var(--fs-h5); font-weight: 600; line-height: 1.3; letter-spacing: 0.01em; }
h6 { font-size: var(--fs-h6); font-weight: 700; line-height: 1.3; letter-spacing: 0.04em; text-transform: uppercase; }

p { max-width: 68ch; margin: 0 0 1.1em; }
.lead { max-width: 60ch; font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); }

:where(ul, ol) { padding-left: 1.25em; }
li { margin: 0 0 0.4em; }
li::marker { color: var(--accent); }
strong { font-weight: 600; }

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.bg-dark a { color: #E9C9CD; }
.bg-dark a:hover { color: #fff; }

/* -------------------------------------------------------------------------
   3. Layout helpers
   ------------------------------------------------------------------------- */
.container         { max-width: var(--container);        margin-inline: auto; padding-inline: var(--gutter); }
.container--wide   { max-width: var(--container-wide);   margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--gutter); }

section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y-tight); }

.bg-dark    { background: var(--bg-dark); color: var(--ink-on-dark); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--ink-on-dark); }
.bg-dark .lead { color: var(--muted-on-dark); }
.bg-surface { background: var(--surface); }
.bg-paper   { background: var(--bg); }

.eyebrow {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-overline); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-2); display: block;
}
.bg-dark .eyebrow { color: #E9C9CD; }

/* -------------------------------------------------------------------------
   4. Accessibility baseline
   ------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -120%;
  z-index: 1000;
  background: var(--ink);
  color: var(--ink-on-dark);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus-halo);
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 0;
  box-shadow: none;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* -------------------------------------------------------------------------
   5. Signature motif – the slat rule
   ------------------------------------------------------------------------- */
.slat-rule {
  height: 14px; width: 100%;
  background-image: repeating-linear-gradient(
    90deg,
    var(--accent) 0, var(--accent) 3px,
    transparent 3px, transparent 11px);
}
.slat-rule--light,
.bg-dark .slat-rule {
  background-image: repeating-linear-gradient(
    90deg,
    var(--ink-on-dark) 0, var(--ink-on-dark) 3px,
    transparent 3px, transparent 11px);
}

.slat-band {
  height: 14px; width: 100%;
  background-image: repeating-linear-gradient(90deg,
    var(--accent) 0, var(--accent) 3px, transparent 3px, transparent 11px);
}

/* Section heading with the left slat-tick accent */
.section-head { position: relative; padding-left: 22px; margin-bottom: var(--space-6); }
.section-head__eyebrow {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-overline); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-2); display: block;
}
.bg-dark .section-head__eyebrow { color: #E9C9CD; }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: 0; }
.section-head__sub { margin-top: var(--space-3); max-width: 60ch; color: var(--muted); }
.bg-dark .section-head__sub { color: var(--muted-on-dark); }
.section-head::before {
  content: ""; position: absolute; left: 0; top: 0.35em;
  width: 10px; height: calc(100% - 0.35em);
  background-image: repeating-linear-gradient(90deg,
    var(--accent) 0, var(--accent) 2px, transparent 2px, transparent 5px);
}

/* Centred divider with slat tick */
.divider {
  border: 0; height: auto;
  display: flex; align-items: center; gap: var(--space-4);
  color: var(--line-strong);
  margin-block: var(--space-7);
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: var(--bw); background: var(--line-strong);
}
.divider__tick {
  width: 96px; height: 14px;
  background-image: repeating-linear-gradient(90deg,
    var(--accent) 0, var(--accent) 3px, transparent 3px, transparent 11px);
}

/* -------------------------------------------------------------------------
   6. Header / navigation
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: var(--bw) solid var(--line);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header--scrolled {
  background: var(--surface-2);
  box-shadow: var(--shadow-menu);
}
.site-header--scrolled .nav { min-height: 60px; }

.nav {
  display: flex; align-items: center; gap: var(--space-5);
  min-height: 72px;
  transition: min-height var(--dur) var(--ease);
}
.nav__logo {
  display: inline-flex; align-items: center; gap: var(--space-3);
  text-decoration: none; color: var(--ink); flex-shrink: 0;
}
.nav__logo:hover { color: var(--ink); }
.nav__mark {
  width: 36px; height: 36px; flex-shrink: 0; display: block;
}
.nav__wordmark {
  font-family: var(--font-wordmark);
  font-weight: 800; font-size: 1.05rem; letter-spacing: 0.02em;
  line-height: 1; color: var(--ink);
}
.nav__wordmark small {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-top: 3px;
}

.nav__links { display: flex; align-items: center; gap: var(--space-5); margin-left: auto; }
.nav__item { position: relative; }
.nav__link {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1rem;
  color: var(--ink); text-decoration: none;
  padding: var(--space-3) 0;
  min-height: var(--tap-min);
  display: inline-flex; align-items: center; gap: var(--space-1);
  border-top: var(--bw-rail) solid transparent;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__link:hover,
.nav__link[aria-current="page"] { border-top-color: var(--accent); color: var(--ink); }
.nav__link .chev { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }

/* Dropdown (Gates & Fences) */
.nav__dd {
  position: absolute; top: 100%; left: -12px;
  min-width: 280px;
  background: var(--surface-2);
  border: var(--bw-2) solid var(--ink);
  border-top: var(--bw-rail) solid var(--accent);
  box-shadow: var(--shadow-menu);
  padding: var(--space-2);
  display: none;
  z-index: 120;
}
.nav__item:hover .nav__dd,
.nav__item:focus-within .nav__dd { display: block; }
.nav__item:hover .chev,
.nav__item:focus-within .chev { transform: rotate(180deg); }
.nav__dd a {
  display: flex; align-items: center;
  min-height: var(--tap-min);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  color: var(--ink); text-decoration: none;
  border-left: var(--bw-rail) solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav__dd a:hover { background: var(--accent-wash); border-left-color: var(--accent); color: var(--ink); }
.nav__dd .nav__dd-all { border-top: var(--bw) solid var(--line); margin-top: var(--space-1); color: var(--accent); }

.nav__actions { display: flex; align-items: center; gap: var(--space-4); flex-shrink: 0; }
.nav__phone {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: var(--tap-min);
  transition: color var(--dur) var(--ease);
}
.nav__phone:hover { color: var(--accent); }
.nav__phone svg { width: 18px; height: 18px; }

.nav__toggle {
  display: none;
  width: var(--tap-min); height: var(--tap-min);
  background: var(--ink); color: var(--ink-on-dark);
  border: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

.nav__panel { display: none; }

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__actions .nav__phone { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__panel {
    position: fixed; inset: 72px 0 0 0;
    background: var(--bg);
    padding: var(--space-5) var(--gutter) var(--space-8);
    overflow-y: auto;
    display: none;
    z-index: 95;
    border-top: var(--bw) solid var(--line);
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease);
  }
  .nav__panel[data-open="true"] { display: block; transform: translateX(0); }
  .nav__panel .btn { width: 100%; margin-bottom: var(--space-3); }
  .nav__panel-links { list-style: none; padding: 0; margin: var(--space-5) 0 0; }
  .nav__panel-links > li { margin: 0; border-top: var(--bw) solid var(--line); }
  .nav__panel-links > li > a,
  .nav__acc-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
    min-height: 52px; padding: var(--space-3) 0;
    font-family: var(--font-display); font-weight: 700; font-size: 1.125rem;
    color: var(--ink); text-decoration: none;
    background: none; border: 0; cursor: pointer; text-align: left;
  }
  .nav__acc-toggle svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
  .nav__acc-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .nav__acc-panel { display: none; padding-bottom: var(--space-3); }
  .nav__acc-panel[data-open="true"] { display: block; }
  .nav__acc-panel a {
    display: flex; align-items: center; min-height: var(--tap-min);
    padding: var(--space-2) 0 var(--space-2) var(--space-5);
    font-family: var(--font-body); font-weight: 400; font-size: 1rem;
    color: var(--muted); text-decoration: none;
    border-left: var(--bw-2) solid var(--line);
  }
  .nav__acc-panel a:hover { color: var(--accent); border-left-color: var(--accent); }
}
@media (min-width: 769px) { .nav__panel { display: none !important; } }

/* -------------------------------------------------------------------------
   7. Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--tap-min);
  padding: 0 var(--space-6);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  line-height: 1; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  border: var(--bw-2) solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }

.btn--primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }

.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--ink-on-dark); }

.bg-dark .btn--secondary { color: var(--ink-on-dark); border-color: var(--ink-on-dark); }
.bg-dark .btn--secondary:hover { background: var(--ink-on-dark); color: var(--ink); }

.btn--ghost {
  background: transparent; color: var(--accent);
  border-color: transparent; border-top: var(--bw-rail) solid transparent;
  padding-inline: var(--space-2);
}
.btn--ghost:hover { border-top-color: var(--accent); color: var(--accent-hover); }
.bg-dark .btn--ghost { color: #E9C9CD; }

.btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus-halo); }
.bg-dark .btn--primary:focus-visible { box-shadow: 0 0 0 4px rgba(240,226,226,0.35); }

.btn--lg { font-size: 1.0625rem; min-height: 52px; padding-inline: var(--space-7); }

/* -------------------------------------------------------------------------
   8. Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  min-height: clamp(440px, 64vh, 680px);
  display: grid;
}
.hero--compact { min-height: clamp(320px, 46vh, 460px); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(38,42,44,0.86) 0%, rgba(38,42,44,0.55) 46%, rgba(38,42,44,0.05) 100%);
}
.hero__inner {
  position: relative;
  align-self: end;
  max-width: var(--container-wide);
  margin-inline: auto; width: 100%;
  padding: var(--space-9) var(--gutter) var(--space-8);
}
.hero__overline {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-overline); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-on-dark); opacity: 0.85;
  margin-bottom: var(--space-3); display: block;
}
.hero__title { font-size: var(--fs-display); color: var(--ink-on-dark); max-width: 16ch; margin-bottom: var(--space-4); line-height: 1.02; letter-spacing: -0.02em; }
.hero__sub { font-size: var(--fs-lead); max-width: 52ch; color: var(--ink-on-dark); line-height: 1.5; margin-bottom: 0; }
.hero__cta { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-6); }
.hero__rule { position: absolute; left: 0; right: 0; bottom: 0; }

@media (max-width: 768px) {
  .hero__scrim { background: linear-gradient(0deg, rgba(38,42,44,0.92) 8%, rgba(38,42,44,0.35) 100%); }
  .hero__inner { padding-block: var(--space-7) var(--space-7); }
  .hero__cta .btn { flex: 1 1 auto; }
}

/* -------------------------------------------------------------------------
   9. Intro / prose band
   ------------------------------------------------------------------------- */
.prose p { font-size: var(--fs-body); }
.prose--lead p:first-of-type { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink); }
.intro-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start;
}
@media (max-width: 768px) { .intro-grid { grid-template-columns: 1fr; gap: var(--space-6); } }

/* -------------------------------------------------------------------------
   10. Material / service cards
   ------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}
.card {
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-top: var(--bw-rail) solid transparent;
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-dark); }
.card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--dur-slow) var(--ease);
}
.card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h4); color: var(--ink); margin: 0; }
.card__desc { color: var(--muted); font-size: var(--fs-small); margin: 0; max-width: none; }
.card__more {
  margin-top: auto; padding-top: var(--space-3);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small);
  color: var(--accent); display: inline-flex; align-items: center; gap: var(--space-2);
}
.card__more svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.card:hover, .card:focus-visible { border-top-color: var(--accent); color: var(--ink); }
.card:hover .card__media img { transform: scale(1.04); }
.card:hover .card__more svg { transform: translateX(3px); }
.card:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .card__media img, .card:hover .card__media img { transition: none; transform: none; }
}

/* -------------------------------------------------------------------------
   11. Category / quick-link cards
   ------------------------------------------------------------------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}
.cat-card {
  background: var(--surface-2);
  border: var(--bw) solid var(--line);
  border-left: var(--bw-rail) solid var(--accent);
  padding: var(--space-5);
  text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: var(--space-2);
  min-height: var(--tap-min);
  transition: background var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.cat-card__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h5); color: var(--ink); }
.cat-card__meta { font-size: var(--fs-small); color: var(--muted); }
.cat-card:hover { background: var(--accent-wash); color: var(--ink); }
.cat-card:active { transform: translateY(1px); }
.cat-card:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

/* -------------------------------------------------------------------------
   12. Value / reasons grid
   ------------------------------------------------------------------------- */
.reasons {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
}
.reason {
  border-top: var(--bw-rail) solid var(--accent);
  padding-top: var(--space-4);
}
.reason h3 { font-size: var(--fs-h4); margin-bottom: var(--space-2); }
.reason p { color: var(--muted); font-size: var(--fs-small); margin: 0; }
.bg-dark .reason p { color: var(--muted-on-dark); }

/* Numbered steps (how a quote works) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-5); }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: start;
  border-bottom: var(--bw) solid var(--line); padding-bottom: var(--space-5); margin: 0;
}
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step__num {
  font-family: var(--font-display); font-weight: 800; font-size: 1.75rem;
  color: var(--accent); line-height: 1;
  border-right: var(--bw-rail) solid var(--accent); padding-right: var(--space-4);
  min-width: 2.5ch;
}
.step__body h3 { font-size: var(--fs-h4); margin-bottom: var(--space-1); }
.step__body p { margin: 0; color: var(--muted); }

/* -------------------------------------------------------------------------
   13. Split feature band (image + copy)
   ------------------------------------------------------------------------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch;
}
.split--reverse .split__media { order: 2; }
.split__media { overflow: hidden; min-height: 320px; background: var(--surface-dark); }
.split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split__body { padding: var(--space-8) var(--space-7); display: flex; flex-direction: column; justify-content: center; }
.bg-surface .split__body, .split__body { }
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media { min-height: 240px; aspect-ratio: 16 / 10; }
  .split__body { padding: var(--space-6) var(--gutter); }
}

/* -------------------------------------------------------------------------
   14. Proof band / quotes
   ------------------------------------------------------------------------- */
.proof__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}
.quote {
  border-left: var(--bw-rail) solid var(--accent);
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-6);
  background: var(--surface-dark);
}
.quote__text { font-family: var(--font-body); font-size: var(--fs-lead); line-height: 1.5; margin: 0; color: var(--ink-on-dark); }
.quote__cite {
  display: block; margin-top: var(--space-4);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small);
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-on-dark);
  font-style: normal;
}

/* -------------------------------------------------------------------------
   15. Brands line
   ------------------------------------------------------------------------- */
.brands { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: center; }
.brands__label {
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-overline);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.brands__item {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-small);
  color: var(--ink); letter-spacing: 0.02em;
}
.brands__item + .brands__item::before { content: "·"; margin-right: var(--space-3); color: var(--line-strong); }

/* -------------------------------------------------------------------------
   16. Gallery (projects)
   ------------------------------------------------------------------------- */
.filters {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-bottom: var(--space-6); list-style: none; padding: 0;
}
.filter-chip {
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small);
  letter-spacing: 0.02em;
  min-height: var(--tap-min); padding: 0 var(--space-4);
  display: inline-flex; align-items: center;
  background: var(--surface-2); color: var(--ink);
  border: var(--bw-2) solid var(--line-strong);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.filter-chip:hover { border-color: var(--ink); }
.filter-chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.filter-chip:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-4); }
.gallery__item {
  position: relative; overflow: hidden;
  border: var(--bw) solid var(--line);
  display: block; text-decoration: none;
}
.gallery__item img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  transition: transform var(--dur-slow) var(--ease);
}
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(38,42,44,0.92), rgba(38,42,44,0));
  color: var(--ink-on-dark); padding: var(--space-6) var(--space-4) var(--space-3);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-small);
  line-height: 1.3;
}
.gallery__tag {
  display: inline-block; margin-bottom: var(--space-1);
  font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase;
  color: #E9C9CD; font-weight: 700;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover { border-color: var(--accent); }
.gallery__item[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .gallery__item:hover img { transform: none; } }

/* -------------------------------------------------------------------------
   17. Breadcrumbs
   ------------------------------------------------------------------------- */
.crumbs {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-small);
  color: var(--muted); display: flex; gap: var(--space-2); flex-wrap: wrap;
  list-style: none; padding: 0; margin: 0 0 var(--space-5);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: var(--space-2); color: var(--line-strong); }

/* -------------------------------------------------------------------------
   18. Material page – feature list & spec rows
   ------------------------------------------------------------------------- */
.feature-block + .feature-block { margin-top: var(--space-7); }
.feature-block h2 { margin-bottom: var(--space-3); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.check-list li {
  position: relative; padding-left: var(--space-6); margin: 0; color: var(--muted);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 12px; height: 12px;
  background-image: repeating-linear-gradient(90deg,
    var(--accent) 0, var(--accent) 2px, transparent 2px, transparent 5px);
}
.bg-dark .check-list li { color: var(--muted-on-dark); }

/* Two-up info panels */
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-5); }
.panel {
  background: var(--surface); border: var(--bw) solid var(--line);
  border-top: var(--bw-rail) solid var(--accent);
  padding: var(--space-6);
}
.panel h3 { font-size: var(--fs-h4); margin-bottom: var(--space-3); }
.panel p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------------
   19. Contact / details
   ------------------------------------------------------------------------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-8); align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: var(--space-7); } }

.detail-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-5); }
.detail { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; }
.detail__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border: var(--bw-2) solid var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.detail__icon svg { width: 20px; height: 20px; }
.detail__label {
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-overline);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; display: block;
}
.detail__value { font-size: var(--fs-body); }
.detail__value a { font-weight: 600; }
.detail address { font-style: normal; }

.map-embed {
  width: 100%; aspect-ratio: 16/9; border: var(--bw-2) solid var(--line-strong);
  margin-top: var(--space-6); background: var(--surface);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* -------------------------------------------------------------------------
   20. Forms
   ------------------------------------------------------------------------- */
.quote-form {
  background: var(--surface-2);
  border: var(--bw) solid var(--line);
  border-top: var(--bw-rail) solid var(--accent);
  padding: var(--space-7);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.field__label { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h5); color: var(--ink); }
.field__req { color: var(--accent); }
.field__hint { font-size: var(--fs-small); color: var(--muted); }
.input, .textarea, .select {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body); font-size: var(--fs-body); color: var(--ink);
  background: var(--surface-2);
  border: var(--bw-2) solid var(--line-strong);
}
.textarea { min-height: 140px; padding-block: var(--space-3); resize: vertical; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--ink); }
.input:focus-visible, .textarea:focus-visible, .select:focus-visible {
  border-color: var(--accent); outline: 3px solid var(--focus-ring); outline-offset: 0;
}
.input:invalid:not(:placeholder-shown) { border-color: var(--error); background: var(--error-wash); }

.file {
  display: inline-flex; align-items: center; gap: var(--space-3);
  min-height: 48px; padding: 0 var(--space-5);
  border: var(--bw-2) dashed var(--line-strong); background: var(--surface);
  font-family: var(--font-display); font-weight: 700; cursor: pointer; color: var(--ink);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.file:hover { border-color: var(--accent); color: var(--accent); }
.file svg { width: 20px; height: 20px; }
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.field__error { color: var(--error); font-size: var(--fs-small); }
.form__success {
  border-left: var(--bw-rail) solid var(--ok);
  background: #EAF1EC; color: #1E3A26;
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
  display: none;
}
.form__success[data-show="true"] { display: block; }
.form__note { font-size: var(--fs-small); color: var(--muted); margin-top: var(--space-4); }

/* -------------------------------------------------------------------------
   21. CTA band
   ------------------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--fs-h1); }
.cta-band .lead { margin-inline: auto; }
.cta-band__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; justify-content: center; margin-top: var(--space-6); }
.cta-band__contact { margin-top: var(--space-5); font-family: var(--font-display); font-weight: 600; }
.cta-band__contact a { color: var(--ink-on-dark); text-decoration: none; }
.cta-band__contact a:hover { color: #fff; text-decoration: underline; }

/* -------------------------------------------------------------------------
   22. Footer
   ------------------------------------------------------------------------- */
.footer { background: var(--bg-dark); color: var(--ink-on-dark); padding-top: 0; }
.footer__rule {
  height: 14px;
  background-image: repeating-linear-gradient(90deg,
    var(--ink-on-dark) 0, var(--ink-on-dark) 3px, transparent 3px, transparent 11px);
}
.footer__cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: var(--space-7);
  padding-block: var(--space-8);
}
.footer__brand { display: block; }
.footer__logo {
  display: inline-flex; align-items: center; gap: var(--space-3);
  text-decoration: none; margin-bottom: var(--space-4);
}
.footer__logo svg { width: 40px; height: 40px; }
.footer__logo .wm {
  font-family: var(--font-wordmark); font-weight: 800; font-size: 1.05rem;
  color: var(--ink-on-dark); line-height: 1.1;
}
.footer__tagline { color: var(--muted-on-dark); font-size: var(--fs-small); max-width: 32ch; }
.footer__h {
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h5);
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-on-dark);
  margin-bottom: var(--space-4);
}
.footer a { color: var(--ink-on-dark); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: var(--space-3); }
.footer__contact { font-style: normal; color: var(--muted-on-dark); font-size: var(--fs-small); line-height: 1.7; }
.footer__contact a { color: var(--ink-on-dark); }
.footer__contact strong { color: var(--ink-on-dark); }
.footer__social { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3); min-height: var(--tap-min); }
.footer__social svg { width: 20px; height: 20px; }
.footer__base {
  border-top: var(--bw) solid var(--line-on-dark);
  padding-block: var(--space-4);
  font-size: var(--fs-xs); color: var(--muted-on-dark);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between;
}
@media (max-width: 768px) {
  .footer__cols { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}
@media (max-width: 480px) {
  .footer__cols { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   23. Scroll-reveal (one, opt-in, reduced-motion safe)
   ------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* if JS never runs, never leave content hidden */
.no-js .reveal { opacity: 1; transform: none; }

/* -------------------------------------------------------------------------
   24. Utilities
   ------------------------------------------------------------------------- */
.stack > * + * { margin-top: var(--space-4); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.measure { max-width: 68ch; }
.measure-narrow { max-width: 60ch; }
.flow > * + * { margin-top: var(--space-5); }

/* -------------------------------------------------------------------------
   25. Print
   ------------------------------------------------------------------------- */
@media print {
  .site-header, .nav__toggle, .hero__cta, .btn, .footer__rule, .filters, .map-embed { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  .bg-dark { background: #fff !important; color: #000 !important; }
  .bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #000 !important; }
}
