/* Bound Fencing — site styles. Mobile-first. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette (Bound Fencing brand sheet) */
  --cream: #FDF9EF;
  --forest: #143824;
  --forest-2: #1d4a31;
  --mustard: #D4A017;
  --rust: #C4552E;
  --blue: #557C9A;
  --charcoal: #2F3131;

  --paper: #FFFDF8;
  --sand: #F4EEDF;
  --line: rgba(20, 56, 36, 0.14);
  --line-strong: rgba(20, 56, 36, 0.32);
  --muted: #5d665f;
  --error: #A8391A;

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-label: "Montserrat", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 8px;
  --pill: 999px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--forest); }
a:hover { color: var(--rust); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
button { font: inherit; }

h1, h2, h3 { color: var(--forest); margin: 0 0 0.5em; text-wrap: balance; }
h2 { font: 600 clamp(1.875rem, 4.2vw, 2.75rem)/1.1 var(--font-serif); letter-spacing: -0.01em; }
h3 { font: 600 1.375rem/1.2 var(--font-serif); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-top: 0; }
.section-head { margin-bottom: clamp(24px, 4vw, 40px); }
.section-head .lede { color: var(--muted); max-width: 52ch; margin: 0; font: 400 1.125rem/1.5 var(--font-serif); }

/* Uppercase label with trailing rule (mockup "FENCE TYPES ———") */
.eyebrow {
  display: flex; align-items: center; gap: 16px;
  font: 700 0.75rem var(--font-label);
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 14px;
}
.eyebrow::after { content: ""; flex: 0 1 120px; height: 1px; background: var(--line-strong); }
.eyebrow--plain::after { display: none; }

.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--forest); color: var(--cream);
  padding: 10px 14px; z-index: 100; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font: 700 0.8125rem var(--font-label);
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  padding: 16px 28px; min-height: 52px;
  border: 1.5px solid var(--forest); border-radius: var(--pill);
  background: var(--forest); color: var(--cream);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--forest-2); color: var(--cream); }
.btn--ghost { background: transparent; color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: var(--cream); }
.btn--light { background: rgba(20,56,36,.55); border-color: var(--cream); color: var(--cream); }
.btn--light:hover { background: var(--cream); color: var(--forest); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.arrow { width: 16px; height: 16px; flex: none; }

.link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font: 700 0.75rem var(--font-label); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--forest); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--mustard);
}
.link-btn:hover { color: var(--rust); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 249, 239, 0.97);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.header-logo { display: block; line-height: 0; }
.header-logo-img { height: 48px; width: auto; }

/* Header/hero logo crossfade: one class toggled at a fixed scroll threshold. */
html.has-hero-logo .header-logo-img { opacity: 0; transition: opacity 300ms ease; }
html.has-hero-logo.header-scrolled .header-logo-img { opacity: 1; }
.hero-logo img { opacity: 1; transition: opacity 300ms ease; }
html.header-scrolled .hero-logo img { opacity: 0; }
html.has-hero-logo:not(.header-scrolled) .header-logo { pointer-events: none; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 12px 0; cursor: pointer;
  font: 700 0.75rem var(--font-label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--forest);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; background: var(--forest); position: relative; transition: transform .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--cream); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 24px;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a, .sub-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: none;
  font: 700 0.8125rem var(--font-label); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--forest); text-decoration: none; cursor: pointer; text-align: left;
}
.site-nav a:hover, .sub-toggle:hover { color: var(--rust); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--mustard); text-underline-offset: 6px; }
.chev { width: 12px; height: 12px; transition: transform .2s; }
.sub-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.sub-menu { display: none; padding-left: 16px !important; }
.sub-menu.is-open { display: block; }
.sub-menu a { letter-spacing: 0.1em; font-weight: 600; text-transform: none; font-family: var(--font-body); font-size: 0.9375rem; }

@media (min-width: 900px) {
  :root { --header-h: 80px; }
  .header-logo-img { height: 56px; }
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; padding: 0; background: none; border: 0; max-height: none; overflow: visible; }
  .site-nav > ul { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
  .site-nav a, .sub-toggle { padding: 8px 0; border: 0; font-size: 0.75rem; width: auto; gap: 8px; }
  .has-sub { position: relative; }
  .sub-menu {
    position: absolute; top: calc(100% + 10px); left: -20px; min-width: 260px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 18px 40px -18px rgba(20,56,36,.35);
    padding: 8px 20px !important;
  }
  .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { display: block; }
  .sub-menu a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .sub-menu li:last-child a { border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--sand); }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 70% 45%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(253,249,239,.96) 0%, rgba(253,249,239,.9) 30%, rgba(253,249,239,.55) 52%, rgba(253,249,239,0) 72%);
}
@media (max-width: 720px) {
  .hero::after { background: linear-gradient(180deg, rgba(253,249,239,.94) 0%, rgba(253,249,239,.86) 55%, rgba(253,249,239,.3) 100%); }
}
.hero .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; min-height: clamp(460px, 62vw, 640px); padding-block: 48px; }
.hero h1 { margin: 0 0 20px; }
.hero-logo img { width: min(78vw, 400px); height: auto; }
.hero-tagline {
  font: 700 clamp(0.75rem, 1.6vw, 0.9375rem)/1.9 var(--font-label);
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--forest);
  margin: 0 0 28px;
}
.hero-tagline span { display: block; }

/* ---------- Fence type cards ---------- */
.type-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .type-grid { grid-template-columns: 1fr 1fr; } }
.type-card {
  position: relative; display: flex; align-items: flex-end;
  min-height: clamp(320px, 38vw, 420px);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--cream);
  isolation: isolate;
}
.type-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.type-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,30,19,0) 35%, rgba(10,30,19,.78) 100%); }
.type-card:hover { color: var(--cream); }
.type-card:hover img { transform: scale(1.03); }
.type-card-body { padding: clamp(20px, 3vw, 32px); }
.type-card h3 { color: var(--cream); font-size: clamp(1.625rem, 3vw, 2.125rem); margin-bottom: 8px; }
.type-card p { font: 700 0.75rem/1.6 var(--font-label); letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 18px; }
.type-card .btn { pointer-events: none; }
.type-card:hover .btn { background: var(--cream); color: var(--forest); }

/* ---------- Trust strip ---------- */
.trust {
  list-style: none; margin: 24px 0 0;
  display: grid; gap: 4px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 24px;
}
@media (min-width: 760px) { .trust { grid-template-columns: repeat(3, 1fr); padding: 24px 12px; } }
.trust-item { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.trust-item:last-child { border-bottom: 0; }
@media (min-width: 760px) {
  .trust-item { justify-content: center; padding: 4px 20px; border-bottom: 0; border-left: 1px solid var(--line); }
  .trust-item:first-child { border-left: 0; }
}
.trust-item svg { width: 44px; height: 44px; flex: none; color: var(--forest); }
.trust-item strong { display: block; font: 700 0.75rem/1.6 var(--font-label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--forest); }
.trust-item span { display: block; font: 600 0.6875rem/1.6 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Recent work (horizontal scroller) ---------- */
.work-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.work-head .eyebrow { margin: 0; flex: 1; }
.work-head .eyebrow::after { flex: 1 1 auto; }
.scroller-controls { display: flex; gap: 8px; }
.scroller-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--paper); color: var(--forest); cursor: pointer; display: grid; place-items: center;
}
.scroller-btn:hover { background: var(--forest); color: var(--cream); }
.scroller-btn[disabled] { opacity: .35; cursor: default; background: var(--paper); color: var(--forest); }
.scroller-btn svg { width: 18px; height: 18px; }
.work-track {
  list-style: none; margin: 0; padding: 0 0 12px;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 320px); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
@media (min-width: 1100px) { .work-track { grid-auto-columns: calc((100% - 36px) / 4); } }
.work-track li { scroll-snap-align: start; }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: var(--sand); cursor: zoom-in; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.03); filter: brightness(1.05) contrast(1.05); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(10, 26, 17, 0.92); }
.lightbox-inner { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 56px 16px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); }
.lightbox button {
  position: absolute; background: rgba(253,249,239,.14); color: var(--cream); border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; line-height: 1;
}
.lightbox button:hover { background: rgba(253,249,239,.28); }
.lightbox-close { top: 8px; right: 8px; }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- Panels & form controls ---------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); }

.field { margin: 0 0 20px; }
.field > label, .field legend, .field-label {
  display: block; margin-bottom: 8px; padding: 0;
  font: 700 0.6875rem var(--font-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--forest);
}
.req { color: var(--rust); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="number"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--charcoal);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 12px 14px; min-height: 50px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(20,56,36,.16);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field-error { display: none; margin: 6px 0 0; font-size: 0.8125rem; color: var(--error); }
.field.has-error .field-error { display: block; }
.field-hint { margin: 6px 0 0; font-size: 0.8125rem; color: var(--muted); }
fieldset.field { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
@media (min-width: 640px) { .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; } }

.input-unit { position: relative; }
.input-unit input { padding-right: 76px !important; font-variant-numeric: tabular-nums; }
.input-unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.9375rem; pointer-events: none; }

/* Selectable cards (radio) */
.choice { display: grid; gap: 8px; }
.choice--3 { grid-template-columns: 1fr; }
@media (min-width: 520px) { .choice--3 { grid-template-columns: repeat(3, 1fr); } }
.choice--auto { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.choice--2 { grid-template-columns: repeat(2, minmax(0, 120px)); }
.choice-opt { position: relative; }
.choice-opt input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.choice-opt label {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; height: 100%;
  padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; cursor: pointer;
  font: 600 0.9375rem/1.3 var(--font-body); color: var(--charcoal);
  transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s;
}
.choice-opt label:hover { border-color: var(--forest); }
.choice-opt input:checked + label { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.choice-opt input:focus-visible + label { box-shadow: 0 0 0 3px rgba(212,160,23,.6); }

/* Quantity stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; }
.stepper button { width: 48px; height: 48px; border: 0; background: none; cursor: pointer; font-size: 1.25rem; color: var(--forest); }
.stepper button:hover { background: var(--sand); }
.stepper input { width: 56px; height: 48px; border: 0; border-inline: 1px solid var(--line); text-align: center; font: 600 1rem var(--font-body); font-variant-numeric: tabular-nums; -moz-appearance: textfield; background: transparent; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gate-detail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 12px; }
.gate-detail p { margin: 0; font-size: 0.875rem; color: var(--muted); }

/* ---------- Estimator ---------- */
.estimator-section { background: var(--sand); }
.estimator { display: grid; gap: 24px; }
@media (min-width: 980px) { .estimator { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); align-items: start; } }
.estimate-card {
  background: var(--forest); color: var(--cream); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
}
@media (min-width: 980px) { .estimate-card { position: sticky; top: calc(var(--header-h) + 20px); } }
.estimate-card .eyebrow { color: var(--cream); }
.estimate-card .eyebrow::after { background: rgba(253,249,239,.3); }
.estimate-value { font: 600 clamp(2.25rem, 5vw, 3.25rem)/1.05 var(--font-serif); margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.estimate-value small { display: block; font: 700 0.6875rem var(--font-label); letter-spacing: 0.2em; text-transform: uppercase; opacity: .8; margin-bottom: 6px; }
.estimate-msg { font: 600 1.375rem/1.3 var(--font-serif); margin: 4px 0 8px; }
.estimate-note { font-size: 0.8125rem; color: rgba(253,249,239,.78); margin: 0 0 8px; }
.estimate-lines { list-style: none; margin: 20px 0; padding: 0; border-top: 1px solid rgba(253,249,239,.2); }
.estimate-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(253,249,239,.2); font-size: 0.9375rem; }
.estimate-lines li span:first-child { color: rgba(253,249,239,.72); }
.estimate-lines li span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.estimate-card .btn { background: var(--cream); color: var(--forest); border-color: var(--cream); width: 100%; }
.estimate-card .btn:hover { background: var(--mustard); border-color: var(--mustard); }

.map-trigger { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 0.875rem; color: var(--muted); }

/* ---------- Map measure tool ---------- */
.map-panel { margin: 4px 0 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: #fff; }
.map-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
.map-toolbar button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--pill); background: #fff; cursor: pointer;
  font: 600 0.8125rem var(--font-body); color: var(--forest);
}
.map-toolbar button:hover:not([disabled]) { border-color: var(--forest); }
.map-toolbar button[disabled] { opacity: .45; cursor: default; }
.map-toolbar .is-primary { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.map-toolbar .map-close { margin-left: auto; }
.map-canvas { height: clamp(320px, 55vh, 480px); background: #e9e6dc; }
.map-status { padding: 10px 14px; font-size: 0.8125rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--paper); }
.map-status:empty { display: none; }
.map-summary { padding: 14px; border-top: 1px solid var(--line); }
.map-summary ul { list-style: none; margin: 0 0 12px; padding: 0; font-variant-numeric: tabular-nums; }
.map-summary li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 0.9375rem; }
.map-summary li.total { border-bottom: 0; font-weight: 700; color: var(--forest); }
.map-note { margin: 10px 0 0; font-size: 0.75rem; color: var(--muted); }
.map-label { background: var(--forest); color: var(--cream); border: 0; border-radius: 4px; font: 600 12px var(--font-body); padding: 2px 6px; box-shadow: none; }
.map-label::before { display: none; }

/* ---------- Quote section ---------- */
.quote-grid { display: grid; gap: 28px; }
@media (min-width: 980px) { .quote-grid { grid-template-columns: minmax(280px, .8fr) minmax(0, 1.4fr); gap: 56px; align-items: start; } }
.quote-intro h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.quote-intro .quote-logo { width: 190px; margin-top: 28px; }
.selection { margin-top: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.selection h3 { font: 700 0.6875rem var(--font-label); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 10px; }
.selection dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 0.9375rem; }
.selection dt { color: var(--muted); }
.selection dd { margin: 0; text-align: right; font-weight: 600; color: var(--forest); font-variant-numeric: tabular-nums; }
.selection .link-btn { margin-top: 12px; }

.form-alert { margin: 0 0 20px; padding: 14px 16px; border-radius: 6px; font-size: 0.9375rem; }
.form-alert--error { background: #fbeee8; color: var(--error); border: 1px solid rgba(168,57,26,.3); }
.form-success { text-align: center; padding-block: 24px; }
.form-success h3 { font-size: 1.75rem; }
.form-success p { color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* ---------- Inner pages ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 44px); }
.page-hero h1 { font: 600 clamp(2.25rem, 6vw, 3.75rem)/1.05 var(--font-serif); letter-spacing: -0.015em; margin-bottom: 14px; }
.page-hero p { max-width: 48ch; color: var(--muted); font: 400 1.1875rem/1.5 var(--font-serif); margin-bottom: 26px; }

.style-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 620px) { .style-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .style-grid { grid-template-columns: repeat(4, 1fr); } .style-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.style-card { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.style-card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.style-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.style-card-img:hover img { transform: scale(1.03); }
.style-card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.style-card h3 { margin-bottom: 14px; }
.heights { list-style: none; margin: 0 0 20px; padding: 0; }
.heights a {
  display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line);
  text-decoration: none; color: var(--charcoal); font-size: 0.9375rem;
}
.heights li:last-child a { border-bottom: 1px solid var(--line); }
.heights a:hover { color: var(--rust); }
.heights .h { font-weight: 600; color: var(--forest); }
.heights .p { font-variant-numeric: tabular-nums; }
.heights .go { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-label); font-weight: 700; }
.style-card .btn { margin-top: auto; }

.cross-links { display: grid; gap: 16px; }
@media (min-width: 760px) { .cross-links { grid-template-columns: 1fr 1fr; } }
.cross-link { display: block; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--paper); }
.cross-link .eyebrow { margin-bottom: 8px; }
.cross-link strong { font: 600 1.5rem/1.2 var(--font-serif); color: var(--forest); }
.cross-link:hover strong { color: var(--rust); }

.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); margin-top: 1.6em; }
.prose p, .prose li { color: var(--charcoal); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: rgba(253,249,239,.82); padding-top: 56px; font-size: 0.9375rem; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--mustard); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; align-items: start; } }
.footer-logo img { width: 150px; height: auto; }
.footer-title { font: 700 0.6875rem var(--font-label); letter-spacing: 0.22em; text-transform: uppercase; color: var(--mustard); margin: 0 0 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 8px; }
.footer-bar {
  margin-top: 48px; padding-block: 18px; border-top: 1px solid rgba(253,249,239,.16);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font: 700 0.6875rem var(--font-label); letter-spacing: 0.22em; text-transform: uppercase; color: rgba(253,249,239,.72);
}

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