/* ═══════════════════════════════════════════════════════════════════
   AWGS FENCING — site.css
   Godly pass 2026-09-21. Four colour tokens, one easing, self-hosted type.
   Signature: the fence line (posts, arris rails, boards) runs as the hero
   base, the services layout and the footer edge.
   ═══════════════════════════════════════════════════════════════════ */

@font-face{font-family:'Archivo';font-style:normal;font-weight:500 900;font-display:swap;
  src:url(fonts/archivo-500-900-normal.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Public Sans';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/public-sans-400-normal.woff2) format('woff2')}
@font-face{font-family:'Public Sans';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/public-sans-500-normal.woff2) format('woff2')}
@font-face{font-family:'Public Sans';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/public-sans-600-normal.woff2) format('woff2')}
@font-face{font-family:'Public Sans';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/public-sans-700-normal.woff2) format('woff2')}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* the four */
  --bg: #f6f3ec;
  --text: #171713;
  --brand: #2d5016;
  --surface: #e8e2d4;
  /* derived, never a fifth hue */
  --bg2: #efebe1;
  --card: #fbf9f4;
  --muted: #5a5850;
  --muted2: #8a877c;
  --border: rgba(23,23,19,0.12);
  --line: rgba(23,23,19,0.16);
  --brand-light: #3a6420;
  --brand-dim: rgba(45,80,22,0.08);
  --brand-border: rgba(45,80,22,0.30);
  --brand-rgb: 45,80,22;
  --accent: #2d5016;
  --accent-light: #3a6420;
  --accent-dim: rgba(45,80,22,0.08);
  --shadow: none;
  --radius: 3px;
  --radius-sm: 3px;
  --radius-pill: 3px;
  --display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.19,1,.22,1);
  --grade: saturate(.92) contrast(1.04);
  /* type lift, applied by weight of type over imagery */
  --lift-display: 0 1px 2px rgba(0,0,0,.30), 0 0 28px rgba(0,0,0,.50), 0 0 84px rgba(0,0,0,.50), 0 0 170px rgba(0,0,0,.34);
  --lift-body: 0 1px 2px rgba(0,0,0,.32), 0 0 22px rgba(0,0,0,.46), 0 0 64px rgba(0,0,0,.42);
  --lift-micro: 0 1px 2px rgba(0,0,0,.38), 0 0 16px rgba(0,0,0,.48), 0 0 44px rgba(0,0,0,.38);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--brand); color: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 64px; }
@media (max-width: 1024px) { .container { padding: 0 32px; } }
@media (max-width: 480px) { .container { padding: 0 24px; } }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--brand-border); }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ── Accessibility ── */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10000; background: var(--text); color: #fff; padding: 12px 18px; font-size: 14px; }
.skip-link:focus { left: 0; }

/* No intro loader. The page is visible at first paint. */
#page { opacity: 1; }

/* ── The fence line (signature) ──
   boards 10px on 6px gaps, two arris rails, a post every 240px */
.fence-line {
  height: 28px;
  background:
    repeating-linear-gradient(90deg, var(--text) 0 4px, transparent 4px 240px),
    linear-gradient(transparent 7px, var(--text) 7px 8px, transparent 8px 19px, var(--text) 19px 20px, transparent 20px),
    repeating-linear-gradient(90deg, var(--brand) 0 10px, transparent 10px 16px);
  opacity: .9;
}
.fence-line--light {
  background:
    repeating-linear-gradient(90deg, #fff 0 4px, transparent 4px 240px),
    linear-gradient(transparent 7px, #fff 7px 8px, transparent 8px 19px, #fff 19px 20px, transparent 20px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 10px, transparent 10px 16px);
  opacity: .5;
}

/* ── Nav: corner-anchored over the hero, condenses to a bar on scroll ── */
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 40px; color: #fff; transition: background .45s var(--ease), padding .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease); }
.nav-wrap.is-scrolled, body.no-hero .nav-wrap { background: rgba(246,243,236,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--text); padding: 12px 40px; box-shadow: 0 1px 0 var(--line); }
.nav-brand { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; text-shadow: var(--lift-micro); }
.nav-wrap.is-scrolled .nav-brand, body.no-hero .nav-brand { text-shadow: none; }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 600; text-shadow: var(--lift-micro); }
.nav-links a { opacity: .88; transition: opacity .3s var(--ease); }
.nav-links a:hover { opacity: 1; }
.nav-wrap.is-scrolled .nav-links, body.no-hero .nav-links { text-shadow: none; }
.nav-cta { font-size: 14px; padding: 12px 20px; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-wrap { padding: 16px 24px; } .nav-wrap.is-scrolled { padding: 10px 24px; } }

/* ── Buttons: hard edges, no scale ── */
.btn, .btn-primary, .btn-secondary, .cta-btn, .form-submit, .nav-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 26px; font-family: var(--body); font-size: 14px; font-weight: 700; letter-spacing: .01em;
  border-radius: 3px; border: 1.5px solid transparent; cursor: pointer; line-height: 1;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn-primary, .cta-btn, .form-submit, .nav-cta { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover, .cta-btn:hover, .form-submit:hover, .nav-cta:hover { background: var(--text); border-color: var(--text); color: #fff; transform: none; }
.btn-secondary { background: transparent; color: inherit; border-color: currentColor; }
.btn-secondary:hover { background: var(--text); color: #fff; border-color: var(--text); }
.hero .btn-secondary:hover { background: #fff; color: var(--text); border-color: #fff; }
.btn-inner { display: inline-block; }

/* ── Hero L9: full-bleed photograph, huge type, lift halo ── */
.hero { position: relative; min-height: 92vh; display: grid; align-items: end; color: #fff; isolation: isolate; padding: 140px 0 0; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #1c2613; }
.hero-bg picture { position: absolute; inset: 0; display: block; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; filter: var(--grade); transform: scale(1.03); transition: transform 9s var(--ease); }
.hero.is-loaded .hero-bg img { transform: scale(1); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,12,6,.80) 0%, rgba(8,12,6,.42) 46%, rgba(8,12,6,.10) 100%); }
.hero-in { position: relative; padding-bottom: 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.hero-h1 { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 8.2vw, 8.4rem); line-height: .96; letter-spacing: -.035em; max-width: 16ch; text-wrap: balance; text-shadow: var(--lift-display); }
.hero-sub { max-width: 54ch; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; margin-top: 24px; opacity: .94; text-shadow: var(--lift-body); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-proof { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.hero-proof img { height: 44px; width: auto; background: #fff; padding: 6px 10px; border-radius: 3px; }
.hero-proof small { font-size: 12px; letter-spacing: .02em; opacity: .85; text-shadow: var(--lift-micro); }
.hero .fence-line { position: absolute; left: 0; right: 0; bottom: 0; }
@media (max-width: 900px) { .hero { min-height: 82vh; padding-top: 110px; } .hero-in { grid-template-columns: 1fr; gap: 28px; } .hero-proof { flex-direction: row; align-items: center; } }

/* Hero load choreography: one easing, no bounce */
.hero-in > * { transform: translateY(26px); opacity: 0; }
.hero.is-loaded .hero-in > *:nth-child(1) { animation: heroRise .9s var(--ease) .05s forwards; }
.hero.is-loaded .hero-in > *:nth-child(2) { animation: heroRise .9s var(--ease) .22s forwards; }
.hero-in > * > * { transform: translateY(18px); opacity: 0; }
.hero.is-loaded .hero-in > * > *:nth-child(1) { animation: heroRise .9s var(--ease) .10s forwards; }
.hero.is-loaded .hero-in > * > *:nth-child(2) { animation: heroRise .9s var(--ease) .20s forwards; }
.hero.is-loaded .hero-in > * > *:nth-child(3) { animation: heroRise .9s var(--ease) .30s forwards; }
.hero.is-loaded .hero-in > * > *:nth-child(4) { animation: heroRise .9s var(--ease) .40s forwards; }
@keyframes heroRise { to { transform: translateY(0); opacity: 1; } }

/* ── Spec strip: replaces the badge row and the ticker ── */
.spec-strip { background: var(--bg); border-bottom: 1px solid var(--line); }
.spec-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec { padding: 26px 22px 24px; border-left: 1px solid var(--line); }
.spec:first-child { border-left: 0; padding-left: 0; }
.spec b { display: block; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; line-height: 1; margin-bottom: 6px; }
.spec span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .spec-strip .container { grid-template-columns: 1fr 1fr; } .spec:nth-child(3) { border-left: 0; padding-left: 0; } .spec { padding: 18px 16px 16px; } }

/* ── Section labels: muted, sentence case, no rule ── */
.section-label { font-size: 13px; font-weight: 600; letter-spacing: .01em; text-transform: none; color: var(--muted2); display: block; margin-bottom: 14px; }
.section-label::before { display: none; }

.section-headline { font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -.03em; margin-bottom: 14px; text-wrap: balance; }
.section-headline em { font-style: normal; color: var(--brand); }
.section-sub { font-size: 16px; color: var(--muted); max-width: 56ch; line-height: 1.65; }

/* ── Reveal ── */
.reveal { opacity: 0; transform: scale(.985); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal--row { transform: translateX(-28px); }
.reveal--hinge { transform-origin: left center; transform: perspective(1400px) rotateY(-26deg); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Services — Numbered Rows ── */
#services { padding: 72px 0; }
.service-list { display: flex; flex-direction: column; margin-top: 40px; }
.service-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 0 32px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--border); transition: background 0.2s; }
.service-row:first-child { border-top: 1px solid var(--border); }
.service-row:hover { background: var(--brand-dim); margin: 0 -24px; padding: 32px 24px; }
.service-num { font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: 0.06em; }
.service-name { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.service-desc { font-size: 14px; line-height: 1.65; color: var(--muted); max-width: 540px; }
.service-tag { padding: 5px 14px; background: var(--brand-dim); border: 1px solid var(--brand-border); border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; color: var(--brand); white-space: nowrap; }
@media (max-width: 768px) { .service-row { grid-template-columns: 48px 1fr; } .service-tag { display: none; } }

/* ── Fencing Types Grid ── */
#fencing-types { padding: 0 0 72px; }
.fence-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.fence-chip { padding: 16px 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); text-align: center; font-size: 13px; font-weight: 600; color: var(--text); transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; cursor: default; }
.fence-chip:hover { border-color: var(--brand-border); transform: translateY(-3px); box-shadow: var(--shadow); }
.fence-chip .chip-icon { font-size: 22px; margin-bottom: 8px; display: block; }
@media (max-width: 768px) { .fence-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .fence-grid { grid-template-columns: 1fr; } }

/* ── Stats ── */
#stats { background: var(--brand); padding: 80px 0; position: relative; overflow: hidden; }
#stats::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 24px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; z-index: 1; }
.stat-item { text-align: center; padding: 0 24px; position: relative; }
.stat-item + .stat-item::before { content: ''; position: absolute; left: 0; top: 10%; height: 80%; width: 1px; background: rgba(255,255,255,0.15); }
.stat-num { font-family: var(--display); font-size: clamp(44px, 5.5vw, 72px); font-weight: 700; letter-spacing: -0.04em; color: #fff; line-height: 1; }
.stat-suffix { font-size: clamp(22px, 2.8vw, 32px); color: rgba(255,255,255,0.5); }
.stat-label { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 12px; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 0; } .stat-item + .stat-item::before { display: none; } }

/* ── Gallery ── */
#gallery { padding: 72px 0; background: var(--bg2); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 4px; margin-top: 36px; border-radius: var(--radius); overflow: hidden; }
.photo-cell { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.photo-cell.tall { grid-row: span 2; aspect-ratio: auto; }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.95); transition: transform 0.7s ease, filter 0.5s ease; }
.photo-cell:hover img { transform: scale(1.05); filter: brightness(1); }
.photo-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 20px 16px; background: linear-gradient(transparent, rgba(0,0,0,0.55)); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.9); opacity: 0; transition: opacity 0.3s; }
.photo-cell:hover .photo-label { opacity: 1; }
@media (max-width: 768px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } .photo-cell.tall { grid-row: span 1; } }

/* ── Testimonials ── */
.testimonials { padding: 72px 0; }
.testi-scroll-wrap { overflow-x: auto; padding: 48px 0 32px; scrollbar-width: none; cursor: grab; }
.testi-scroll-wrap:active { cursor: grabbing; }
.testi-scroll-wrap::-webkit-scrollbar { display: none; }
.testi-track { display: flex; gap: 20px; padding: 8px 64px 20px; width: max-content; }
.testi-card { width: 360px; flex-shrink: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 20px; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; }
.testi-card:hover { border-color: var(--brand-border); transform: translateY(-4px); box-shadow: var(--shadow); }
.testi-stars { color: var(--accent); font-size: 14px; letter-spacing: 2px; }
.testi-body { font-size: 15px; line-height: 1.75; color: var(--muted); font-style: italic; flex: 1; }
.testi-attr { font-size: 12px; font-weight: 700; color: var(--text); }
.testi-source { font-size: 11px; color: var(--muted2); font-weight: 500; }
@media (max-width: 768px) { .testi-track { padding: 8px 24px 20px; } .testi-card { width: 290px; } }

/* ── About ── */
#about { padding: 72px 0; background: var(--bg2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 36px; }
.about-text { font-size: 15px; line-height: 1.8; color: var(--muted); }
.about-text strong { color: var(--text); font-weight: 600; }
.about-image { border-radius: 50%; overflow: hidden; aspect-ratio: 1; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-highlights { display: flex; gap: 24px; margin-top: 28px; }
.about-hl { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--text); }
.about-hl-icon { width: 36px; height: 36px; background: var(--brand-dim); border: 1px solid var(--brand-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--brand); flex-shrink: 0; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } .about-image { max-width: 320px; } .about-highlights { flex-direction: column; gap: 16px; } }

/* ── Areas ── */
.area-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.area-tag { padding: 8px 16px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--card); font-size: 13px; font-weight: 600; color: var(--muted); transition: border-color 0.2s, color 0.2s; }
.area-tag:hover { border-color: var(--brand-border); color: var(--brand); }
.area-tag.primary { border-color: var(--brand-border); color: var(--brand); background: var(--brand-dim); }

/* ── CTA Banner ── */
.cta-banner { background: var(--text); padding: 80px 0; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(var(--brand-rgb),0.05) 0, rgba(var(--brand-rgb),0.05) 1px, transparent 1px, transparent 20px); }
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; position: relative; z-index: 1; }
.cta-headline { font-family: var(--display); font-size: clamp(28px, 3.5vw, 48px); font-weight: 700; letter-spacing: -0.03em; color: #fff; line-height: 1.1; margin-bottom: 10px; }
.cta-headline span { color: var(--accent); }
.cta-sub { font-size: 15px; color: rgba(255,255,255,0.45); }
.cta-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; background: var(--accent); color: #1a1a17; font-size: 14px; font-weight: 700; border: none; border-radius: var(--radius-pill); cursor: pointer; transition: background 0.2s, transform 0.15s; white-space: nowrap; }
.cta-btn:hover { background: var(--accent-light); transform: scale(1.04); }
@media (max-width: 768px) { .cta-inner { grid-template-columns: 1fr; } }

/* ── FAQ ── */
#faq { padding: 72px 0; }
.faq-list { max-width: 720px; margin: 36px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 0; font-family: inherit; font-size: 16px; font-weight: 700; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q::after { content: '+'; font-size: 22px; color: var(--brand); transition: transform 0.3s; font-weight: 400; }
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-a { display: none; padding-bottom: 20px; font-size: 15px; line-height: 1.75; color: var(--muted); }
.faq-a.open { display: block; }

/* ── Contact ── */
#contact { padding: 72px 0; background: var(--bg2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 36px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-block { display: flex; gap: 14px; }
.contact-icon { width: 40px; height: 40px; background: var(--brand-dim); border: 1px solid var(--brand-border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; color: var(--brand); }
.contact-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted2); margin-bottom: 4px; }
.contact-val { font-size: 15px; font-weight: 600; color: var(--text); }
.contact-val a { transition: color 0.2s; }
.contact-val a:hover { color: var(--brand); }

form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; color: var(--text); transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--brand); outline: none; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 32px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 700; border: none; border-radius: var(--radius-pill); cursor: pointer; transition: background 0.2s, transform 0.15s; align-self: flex-start; }
.form-submit:hover { background: var(--brand-light); transform: scale(1.04); }
#form-success { display: none; padding: 32px; text-align: center; }
#form-success h3 { font-family: var(--display); font-size: 24px; margin-bottom: 8px; color: var(--brand); }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── Footer ── */
footer { background: var(--text); padding: 60px 0 84px; } /* bottom clears the fixed #scrolltop button */
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.4); margin-top: 12px; line-height: 1.6; }
.footer-col-title { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.3); flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; }
.footer-grid a[aria-label]:hover { border-color: var(--accent) !important; color: var(--accent) !important; background: rgba(200,150,62,0.08); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ── Mobile CTA ── */
.mobile-cta-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; box-shadow: 0 -4px 24px rgba(0,0,0,0.15); }
.mobile-cta-call { flex: 1; background: var(--bg); border-top: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-decoration: none; }
.mobile-cta-quote { flex: 1.5; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; padding: 16px; text-decoration: none; }
@media (max-width: 768px) { .mobile-cta-bar { display: flex; } body { padding-bottom: 56px; } }

/* ── Scroll-to-Top ── */
#scrolltop { position: fixed; bottom: 28px; right: 24px; z-index: 100; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.2s; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
#scrolltop.visible { opacity: 1; pointer-events: auto; }
#scrolltop:hover { transform: translateY(-2px); }
@media (max-width: 768px) { #scrolltop { bottom: 72px; } }

/* ── Split + brand grids (stack on mobile like every other grid here) ── */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 768px) { .split-grid { grid-template-columns: 1fr; gap: 40px; } .brand-grid { grid-template-columns: 1fr; gap: 20px; } }



/* ── Reduced motion: honour the OS setting (2026-07 compliance standard) ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .hero-content > * { opacity: 1 !important; transform: none !important; }
  .hero-image img { transform: none !important; }
  .testi-track { scroll-behavior: auto !important; }
}

/* ── QA hook: ?shot kills choreography for clean screenshots ── */
html[data-shot] *, html[data-shot] *::before, html[data-shot] *::after {
  animation: none !important; transition: none !important;
}
html[data-shot] .reveal, html[data-shot] .hero-content > * { opacity: 1 !important; transform: none !important; }

/* ── Craft pass ── */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.hero-headline { letter-spacing: -0.03em; }
::selection { background: var(--brand); color: #faf8f4; }
.stat-value, .trust-item, a[href^="tel:"] { font-variant-numeric: tabular-nums; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10000;
  background: var(--brand); color: #faf8f4; padding: 12px 20px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 700;
  text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ── Grain (light theme) ── */
.grain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9000; mix-blend-mode: multiply; opacity: 0.022; }

/* ══════════════════════════════════════════════════════════════════════════
   SUB-PAGE COMPONENTS
   Used by every page except index.html. Deliberately quieter than the home
   hero: these pages are read, not scrolled past.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Page hero: shorter than home, type over image with the three-tier lift ── */
.page-hero { position: relative; min-height: 46vh; display: flex; align-items: flex-end; padding: 140px 0 64px; overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: rgba(12,18,8,0.56); z-index: 1; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(85deg, rgba(12,18,8,0.86) 0%, rgba(12,18,8,0.58) 52%, rgba(12,18,8,0.28) 100%); }
.page-hero-inner { position: relative; z-index: 3; }
.page-hero-inner .section-label { color: var(--accent); }
.page-hero-inner .section-label::before { background: var(--accent); }
.page-hero-h1 { font-family: var(--display); font-size: clamp(34px, 5.4vw, 62px); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.035em; color: #fff; max-width: 15ch; text-wrap: balance; }
.page-hero-h1 em { font-style: italic; color: #a8d07a; }
.page-hero-sub { font-size: clamp(15px, 1.5vw, 18px); line-height: 1.7; color: rgba(255,255,255,0.86);
  max-width: 58ch; margin: 18px 0 30px; text-wrap: pretty; }
.page-hero .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.page-hero .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.35); }
.page-hero .btn-secondary:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }
@media (max-width: 768px) { .page-hero { min-height: 0; padding: 116px 0 48px; } }

/* ── Long-form prose ── */
.prose-section { padding: 72px 0; }
.prose-section + .prose-section { padding-top: 0; }
.prose { max-width: 74ch; }
.prose h2 { font-family: var(--display); font-size: clamp(25px, 3vw, 34px); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.025em; margin: 48px 0 14px; text-wrap: balance; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--display); font-size: 20px; font-weight: 600; margin: 32px 0 8px; }
.prose p { font-size: 16px; line-height: 1.8; color: var(--muted); margin-bottom: 18px; text-wrap: pretty; }
.prose ul, .prose ol { margin: 0 0 20px 22px; }
.prose li { font-size: 16px; line-height: 1.8; color: var(--muted); margin-bottom: 8px; }
.prose li strong { color: var(--text); }
.prose a { color: var(--brand); font-weight: 600; }
.prose a:hover { text-decoration: underline; }
.prose .lead { font-size: 18px; line-height: 1.75; color: var(--text); }
.prose blockquote { margin: 28px 0; padding: 20px 26px; background: var(--bg2);
  border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose blockquote p { margin: 0; font-size: 15px; color: var(--text); }

/* ── Info card grid ── */
.info-grid { display: grid; gap: 20px; }
.info-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.info-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.info-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.info-card { background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--brand);
  border-radius: var(--radius); padding: 28px; transition: transform 0.25s, box-shadow 0.25s; }
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.info-card h3 { font-family: var(--display); font-size: 19px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.info-card p { font-size: 14.5px; line-height: 1.7; color: var(--muted); margin: 0; text-wrap: pretty; }
@media (max-width: 900px) { .info-grid.cols-3, .info-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .info-grid.cols-2, .info-grid.cols-3, .info-grid.cols-4 { grid-template-columns: 1fr; } }

/* ── Closing CTA band ── */
.cta-band { background: var(--text); padding: 76px 0; text-align: center; }
.cta-band .section-sub { max-width: 52ch; }
.btn-on-dark.btn-secondary { color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-on-dark.btn-secondary:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }

/* ── Gallery page grid + lightbox ── */
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gal-grid button { padding: 0; border: 0; background: none; cursor: zoom-in; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); }
.gal-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.gal-grid button:hover img { transform: scale(1.05); }
@media (max-width: 900px) { .gal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gal-grid { grid-template-columns: repeat(2, 1fr); } }
#lightbox { position: fixed; inset: 0; z-index: 9500; background: rgba(12,18,8,0.94);
  display: none; align-items: center; justify-content: center; padding: 32px; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius-sm); }
#lightbox button { position: absolute; background: rgba(255,255,255,0.1); color: #fff; border: 0;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1; }
#lb-close { top: 24px; right: 24px; }
#lb-prev { left: 24px; } #lb-next { right: 24px; }
@media (max-width: 600px) { #lb-prev { left: 12px; } #lb-next { right: 12px; } #lightbox { padding: 12px; } }

/* ── Areas list ── */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.area-card { display: block; text-decoration: none; color: inherit; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; transition: border-color 0.2s, transform 0.2s; }
.area-card:hover { border-color: var(--brand-border); transform: translateY(-2px); }
.area-card strong { display: block; font-family: var(--display); font-size: 18px; margin-bottom: 4px; }
.area-card span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 800px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .area-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .info-card:hover, .area-card:hover, .gal-grid button:hover img { transform: none; }
}

.split-grid.align-start { align-items: start; }


/* ═══════════ Godly pass overrides (rules above this line are older) ═══════════ */

/* services as panels between posts */
#services { padding: 120px 0 96px; }
.service-list { margin-top: 48px; border-top: 4px solid var(--text); }
.service-row { grid-template-columns: 88px 1fr auto; gap: 0 32px; padding: 34px 0 34px 22px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--text); margin-left: 0; }
.service-row:first-child { border-top: 0; }
.service-row:hover { background: transparent; margin: 0; padding: 34px 0 34px 22px; border-left-color: var(--brand); }
.service-num { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.03em; color: var(--muted2); }
.service-name { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; margin-bottom: 8px; }
.service-desc { font-size: 15px; max-width: 58ch; }
.service-tag { padding: 0 0 0 14px; background: none; border: 0; border-left: 3px solid var(--brand); border-radius: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
@media (max-width: 768px) { .service-row { grid-template-columns: 56px 1fr; padding-left: 16px; } .service-row:hover { padding-left: 16px; } }

/* fencing types */
#fencing-types { padding: 0 0 110px; }
.fence-grid { gap: 12px; }
.fence-chip { border-radius: 3px; text-align: left; padding: 18px 20px; display: flex; align-items: center; gap: 14px; font-size: 14px; }
.fence-chip:hover { transform: none; box-shadow: none; border-color: var(--text); }
.fence-chip .chip-icon { margin: 0; }

/* stats */
#stats { padding: 110px 0; }
#stats::before { display: none; }
.stat-num { font-family: var(--display); font-weight: 800; letter-spacing: -.04em; }
.stat-label { text-transform: none; letter-spacing: .01em; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.7); }

/* featured, brands, gallery, testimonials, about: edges and rhythm */
#spurs { padding: 120px 0 !important; }
#brands { padding: 100px 0 !important; }
#gallery { padding: 120px 0; }
.photo-grid { border-radius: 0; gap: 6px; }
.photo-cell img { filter: var(--grade); }
.photo-cell:hover img { filter: var(--grade); transform: scale(1.03); }
.photo-label { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
.testimonials { padding: 110px 0; }
.testi-card { border-radius: 3px; border-color: var(--line); }
.testi-card:hover { transform: none; box-shadow: none; border-color: var(--text); }
.testi-stars { color: var(--brand); font-size: 12px; letter-spacing: 1px; }
.testi-body { font-style: normal; color: var(--text); font-size: 16px; }
#about { padding: 120px 0; }
.about-image { border-radius: 3px; aspect-ratio: 4/5; }
.about-hl-icon { border-radius: 3px; background: transparent; border: 0; border-left: 3px solid var(--brand); width: auto; height: auto; padding-left: 12px; }
.area-tag { border-radius: 3px; }
.area-tag.primary { background: var(--text); color: #fff; border-color: var(--text); }

/* CTA banner */
.cta-banner { padding: 120px 0; }
.cta-banner::before { display: none; }
.cta-headline { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4.2vw, 4rem); letter-spacing: -.03em; line-height: 1; }
.cta-headline span { color: #fff; }
.cta-sub { color: rgba(255,255,255,.6); }
.cta-btn { background: #fff; color: var(--text); border-color: #fff; }
.cta-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* FAQ + contact */
#faq { padding: 110px 0; }
.faq-q { font-size: 17px; font-weight: 600; }
#contact { padding: 120px 0; }
.contact-icon { border-radius: 3px; background: transparent; border: 1px solid var(--line); }
.form-group input, .form-group select, .form-group textarea { border-radius: 3px; border-color: var(--line); background: #fff; }
.form-submit { border-radius: 3px; }
#form-success h3 { font-family: var(--display); }

/* footer with a ghost wordmark */
footer { position: relative; overflow: hidden; padding: 80px 0 96px; }
footer .container { position: relative; z-index: 1; }
.footer-ghost { position: absolute; left: -2vw; bottom: -6vw; font-family: var(--display); font-weight: 900; font-size: clamp(9rem, 26vw, 30rem); line-height: .8; letter-spacing: -.05em; color: rgba(255,255,255,.045); pointer-events: none; user-select: none; white-space: nowrap; }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 20px; color: #fff; letter-spacing: -.02em; }
.footer-col-title { text-transform: none; letter-spacing: .01em; font-size: 13px; color: rgba(255,255,255,.55); }
.footer-grid a[aria-label] { border-radius: 3px !important; }
.footer-grid a[aria-label]:hover { border-color: #fff !important; color: #fff !important; background: rgba(255,255,255,.06); }

/* mobile bar + scroll top: hard edges */
#scrolltop { border-radius: 3px; }
#scrolltop:hover { transform: none; background: var(--text); }

/* sub-page heroes share the display face and the halo */
.page-hero-h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: .98; text-shadow: var(--lift-display); }
.page-hero p { text-shadow: var(--lift-body); }
.page-hero-h1 em { font-style: normal; color: inherit; }
.page-hero .section-label { color: rgba(255,255,255,.72); }
.prose h2, .prose h3 { font-family: var(--display); letter-spacing: -.02em; }
.prose h2 { font-weight: 800; }
.prose h3 { font-weight: 700; }

/* the shot hook must also complete the hero choreography */
html[data-shot] .hero-in > *, html[data-shot] .hero-in > * > * { opacity: 1 !important; transform: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) { .hero-in > *, .hero-in > * > * { opacity: 1 !important; transform: none !important; animation: none !important; } .reveal { opacity: 1 !important; transform: none !important; } }

/* ── Burger menu (phones): the top CTA hides, the bottom bar keeps the quote button ── */
.nav-burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 0; color: inherit; margin-right: -8px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .35s var(--ease); }
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-menu { position: fixed; inset: 0; z-index: 90; background: var(--bg); color: var(--text); padding: 96px 24px 84px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s .4s; }
body.menu-open .nav-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s; }
.nav-menu-in { display: flex; flex-direction: column; }
.nav-menu-in > a { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 9.5vw, 3rem); letter-spacing: -.03em; line-height: 1.05; padding: 14px 0; border-bottom: 1px solid var(--line); }
.nav-menu-in > a.nav-menu-phone { font-family: var(--body); font-weight: 700; font-size: 18px; letter-spacing: 0; margin-top: 22px; padding: 6px 0; border-bottom: 0; }
.nav-menu-in > a.btn-primary { font-family: var(--body); font-size: 15px; font-weight: 700; letter-spacing: .01em; line-height: 1; margin-top: 14px; padding: 16px 26px; align-self: flex-start; border-bottom: 0; }
body.menu-open { overflow: hidden; }
body.menu-open .nav-wrap { background: transparent; box-shadow: none; color: var(--text); }
body.menu-open .nav-brand { text-shadow: none; }
@media (max-width: 860px) { .nav-cta { display: none; } .nav-burger { display: flex; } body.menu-open .nav-wrap, body.no-hero .nav-wrap, .nav-wrap.is-scrolled { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 861px) { .nav-menu { display: none; } }
