/* ============================================================
   The Shutter Station: shared stylesheet
   Base aesthetic harvested verbatim from futureweb/index.html
   (:root custom properties, reveals, nav, hero, sections, about,
   features, process, gallery, contact, footer, mobile, mobile-menu),
   then generalized for a multi-page site (skip link, buttons, cards,
   gallery grid, reviews, forms, consent banner).
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream: #F5F0EB;
  --cream-dark: #EDE5DB;
  --wood: #8B6914;
  --wood-deep: #6B4E1B;
  --wood-light: #B8941F;
  --navy: #1B2A4A;
  --navy-light: #2A3D63;
  --sage: #A8B5A0;
  --sage-muted: #C4CEBF;
  --white: #FDFCFA;
  --text: #2C2416;
  --text-light: #6B5D4F;
  --border: rgba(107, 78, 27, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Crafted typography, site-wide: proper kerning + standard ligatures. */
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "clig" 1;
}

/* ── Reveal Animations ── */
/* Visible by default so content is never hidden from no-JS users or crawlers.
   The hidden-until-revealed state applies ONLY when JS + IntersectionObserver
   are present (.has-io set on <html> by the head inline script). */
.reveal {
  opacity: 1;
}
.has-io .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}
.has-io .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(245, 240, 235, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.4s;
}
.nav.scrolled .nav-brand { color: var(--navy); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--wood);
  transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.nav-links a:hover::after { width: 100%; }
.nav.scrolled .nav-links a { color: var(--text-light); }
.nav.scrolled .nav-links a:hover { color: var(--navy); }
.nav-mobile {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  /* WCAG 2.2 SC 2.5.8 target size: full 44x44 touch target (the visible
     hamburger bars stay 28px wide, centred within it). */
  width: 44px;
  height: 44px;
  position: relative;
}
.nav-mobile span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  position: absolute;
  left: 8px;            /* (44 - 28) / 2: centre the bars horizontally */
  transition: all 0.3s;
}
.nav.scrolled .nav-mobile span { background: var(--navy); }
/* Centre the 20px-tall bar group within the 44px target: (44 - 20) / 2 = 12. */
.nav-mobile span:nth-child(1) { top: 12px; }
.nav-mobile span:nth-child(2) { top: 21px; }
.nav-mobile span:nth-child(3) { top: 30px; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(2rem, 6vw, 6rem);
  padding-bottom: clamp(4rem, 10vh, 8rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 8s cubic-bezier(0.23, 1, 0.32, 1);
}
.hero.visible .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(27, 42, 74, 0.85) 0%,
    rgba(27, 42, 74, 0.45) 40%,
    rgba(27, 42, 74, 0.2) 70%,
    rgba(27, 42, 74, 0.15) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--sage-muted);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--white);
  text-decoration: none;
  padding: 1rem 2rem;
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.hero-cta:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.hero-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
}
.hero-cta:hover svg { transform: translateY(3px); }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Section Shared ── */
.section {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 4vw, 3rem);
}
.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--wood-deep); /* WCAG AA: 6.79:1 on cream (was --wood 4.49:1, sub-AA) */
  margin-bottom: 1rem;
}
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  /* Discretionary ligatures on the big display headings (e.g. "Crafted"). */
  font-feature-settings: "kern" 1, "liga" 1, "dlig" 1;
}
.section-divider {
  width: 48px;
  height: 2px;
  background: var(--wood);
  margin-bottom: 2rem;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about-text p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.85;
}
/* Decorative drop-cap watermark: the intro eyebrow stays fully readable, and a
   large faded-gold Pinyon initial sits BEHIND it. The letter is fed via data-cap
   by main.js, so with no JS the eyebrow simply shows without the flourish (never
   obscured). z-index -1 within the eyebrow's own stacking context keeps it behind
   the text but above the section background. */
.about-text p:first-of-type {
  position: relative;
  z-index: 0;
}
.about-text p:first-of-type[data-cap]::before {
  content: attr(data-cap);
  position: absolute;
  left: -0.18em;
  top: -0.62em;
  font-family: 'Pinyon Script', cursive;
  font-weight: 400;
  font-size: 6rem;
  line-height: 1;
  color: rgba(139, 105, 20, 0.7); /* --wood at 70% */
  z-index: -1;
  pointer-events: none;
}
.about-img-wrap {
  position: relative;
  overflow: hidden;
}
.about-img-wrap::before {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--wood);
  opacity: 0.3;
  z-index: -1;
}
.about-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.9) contrast(1.03);
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.about-img-wrap:hover img { transform: scale(1.03); }

/* ── Why Choose Us ── */
.section--alt { background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.feature-card {
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  transition: background 0.4s, transform 0.3s;
  position: relative;
}
.feature-card:hover { background: var(--cream); }
.feature-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wood);
}
.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
}
/* Home has 6 feature cards; 6 does not divide the default 4 columns (it leaves 2
   empty grey blocks above 900px), so the home grid opts into 3 columns on
   desktop only. Scoped to min-width so the <=900px (2-col) and <=560px (1-col)
   rules still apply. The 4-card grids on about/shutters/process keep repeat(4). */
@media (min-width: 901px) {
  .features-grid.features-3col { grid-template-columns: repeat(3, 1fr); }
}

/* ── Services / Process ── */
.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 3rem;
}
.process-track::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--wood);
  opacity: 0.3;
}
.process-step {
  text-align: center;
  position: relative;
}
.process-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  transition: background 0.3s, transform 0.3s;
}
.process-step:hover .process-num {
  background: var(--wood);
  transform: scale(1.1);
}
.process-step h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.process-step p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 200px;
  margin: 0 auto;
}

/* ── Gallery Teaser ── */
.gallery-teaser {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gallery-teaser-bg {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat; /* image supplied per-page via inline style */
}
.gallery-teaser-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 74, 0.7);
}
.gallery-card {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 520px;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gallery-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.gallery-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--white);
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border: 1.5px solid rgba(255,255,255,0.4);
  transition: all 0.4s;
}
.gallery-link:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.gallery-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
}
.gallery-link:hover svg { transform: translateX(4px); }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-info { padding-top: 0.5rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}
.contact-item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-dark);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--wood);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-item-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--wood-deep); /* WCAG AA: 6.79:1 on cream (was --wood 4.49:1, sub-AA) */
  margin-bottom: 0.25rem;
}
.contact-item-value {
  font-size: 1.05rem;
  color: var(--text);
}
.contact-item-value a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s;
}
.contact-item-value a:hover { border-color: var(--wood); }
.contact-cta-box {
  background: var(--navy);
  padding: clamp(2rem, 4vw, 3rem);
  color: var(--white);
}
.contact-cta-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.25;
}
.contact-cta-box p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
  line-height: 1.7;
}
/* Inline links on dark backgrounds (the navy CTA box paragraph + the link over
   the dark hero image) need an explicit light colour. Without it they inherit
   the UA default link blue (#0000EE), which is ~1.5:1 on navy: a serious WCAG contrast
   failure and a visibly unreadable phone CTA. White + underline keeps them
   distinguishable by more than colour alone (WCAG 1.4.1). Scoped to `p a` so
   the .contact-cta-btn button in the same box is never clobbered. */
.contact-cta-box p a,
.hero-tagline a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-cta-box p a:hover,
.hero-tagline a:hover { color: var(--sage-muted); }
/* The global focus ring (--wood-deep) is only ~1.85:1 on the navy box, below
   WCAG 2.4.11's 3:1. Give these now-focusable dark-bg links a white ring
   (white-on-navy = 13.87:1). */
.contact-cta-box p a:focus-visible,
.hero-tagline a:focus-visible { outline-color: var(--white); }
.contact-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--navy);
  background: var(--white);
  text-decoration: none;
  padding: 1rem 2rem;
  transition: all 0.3s;
}
.contact-cta-btn:hover {
  background: var(--cream);
  transform: translateY(-2px);
}

/* ── Footer ── */
.footer {
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer p {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.8;
  letter-spacing: 0.01em;
}
.footer a {
  /* --wood-deep (6.79:1 on cream) meets WCAG AA for the 12px footer text;
     the underline makes links distinguishable from surrounding body text by
     more than colour alone (axe link-in-text-block). */
  color: var(--wood-deep);
  text-decoration: underline;
}
.footer a:hover { color: var(--navy); }

/* ── Mobile ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile { display: block; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .process-track {
    grid-template-columns: 1fr 1fr;
    row-gap: 2.5rem;
  }
  .process-track::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: 1fr; }
  .hero { min-height: 90vh; align-items: center; padding-bottom: 4rem; }
}

/* ── Mobile Menu ── */
.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(27, 42, 74, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.nav-mobile-menu a:hover { opacity: 1; }
.nav-mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
}
.nav-mobile-close span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  position: absolute;
  left: 0;
  top: 13px;
}
.nav-mobile-close span:first-child { transform: rotate(45deg); }
.nav-mobile-close span:last-child { transform: rotate(-45deg); }

/* ============================================================
   ── Multi-page additions (beyond the single-page concept) ──
   ============================================================ */

/* ── Skip link (a11y) ── */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: var(--white); padding: 0.75rem 1.25rem;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ── Shared button component ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.16em; text-decoration: none; padding: 1rem 2rem;
  border: 1.5px solid var(--navy); color: var(--navy); background: transparent;
  cursor: pointer; transition: all 0.35s cubic-bezier(0.23,1,0.32,1);
}
.btn:hover { background: var(--navy); color: var(--white); }
.btn--solid { background: var(--navy); color: var(--white); }
.btn--solid:hover { background: var(--wood-deep); border-color: var(--wood-deep); }
.btn:focus-visible { outline: 3px solid var(--wood); outline-offset: 3px; }
/* Shared keyboard-focus fallback for interactive elements without their own
   :focus-visible rule (nav/footer/hero/gallery/contact links + the menu
   toggle/close buttons), keeps focus visibility consistent and high-contrast. */
a:focus-visible, button:focus-visible { outline: 3px solid var(--wood-deep); outline-offset: 2px; }

/* ── Active nav state (multi-page) ── */
.nav-links a[aria-current="page"] { color: var(--wood-deep); }
.nav-links a[aria-current="page"]::after { width: 100%; }

/* ── Page hero (interior pages, shorter than home) ── */
.page-hero { min-height: 46vh; }

/* ── Cards grid (services/areas) ── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--white); border: 1px solid var(--border); padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(27,42,74,0.10); }
.card h3 { font-family: 'Playfair Display', serif; color: var(--navy); margin-bottom: 0.75rem; }

/* ── Gallery grid ── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }

/* ── Reviews ── */
.review { background: var(--white); border-left: 3px solid var(--wood); padding: 1.5rem 1.75rem; margin-bottom: 1.25rem; }
.review-body { font-style: italic; color: var(--text); margin-bottom: 0.5rem; }
.review-meta { font-size: 0.8rem; color: var(--text-light); letter-spacing: 0.04em; }

/* ── FAQ (reusable Q&A pattern, semantic, not reviews) ── */
.faq-item { background: var(--white); border-left: 3px solid var(--wood); padding: 1.5rem 1.75rem; margin-bottom: 1.25rem; }
.faq-question { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.faq-answer { color: var(--text-light); line-height: 1.75; }

/* ── Form ── */
.form-field { margin-bottom: 1.25rem; display: flex; flex-direction: column; }
.form-field label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--navy); margin-bottom: 0.4rem; }
.form-field input, .form-field select, .form-field textarea {
  font-family: inherit; font-size: 1rem; padding: 0.85rem 1rem;
  border: 1px solid var(--border); background: var(--white); color: var(--text);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--wood); outline-offset: 1px; border-color: var(--wood);
}
.form-field--required label::after { content: " *"; color: var(--wood-deep); }

/* ── Cookie consent banner ── */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--navy); color: var(--white);
  padding: 1.25rem clamp(1.5rem,4vw,3rem);
  display: none; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.2);
}
.consent.show { display: flex; }
.consent p { font-size: 0.85rem; flex: 1 1 280px; line-height: 1.6; }
.consent p a { color: var(--sage-muted); }
.consent-actions { display: flex; gap: 0.75rem; }
.consent button {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.7rem 1.5rem; cursor: pointer; border: 1.5px solid var(--white);
}
.consent-accept { background: var(--white); color: var(--navy); }
.consent-reject { background: transparent; color: var(--white); }

/* ── Sticky mobile contact bar ──
   Mobile-only quick-contact bar pinned to the bottom (Call + Free Quote).
   z-index 140 sits BELOW the cookie banner (150) so a pending consent decision
   is never obscured; once the banner is dismissed the bar shows. The Call link
   is a plain tel: anchor, so it inherits the GA4 phone_call_click tracking in
   main.js. Hidden on tablet/desktop, where the header CTA suffices. */
.call-bar { display: none; }
@media (max-width: 560px) {
  .call-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 140;
    display: flex;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .call-bar-btn {
    flex: 1 1 50%;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 56px; padding: 0.6rem 1rem;
    font-family: inherit; font-size: 1rem; font-weight: 600;
    color: var(--white); text-decoration: none;
  }
  .call-bar-btn--call { background: var(--wood-deep); }
  .call-bar-btn--quote { background: var(--navy); }
  .call-bar-btn:active { filter: brightness(0.9); }
  .call-bar-btn:focus-visible { outline: 3px solid var(--white); outline-offset: -5px; }
  /* Keep the footer clear of the fixed bar. */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

@media (max-width: 900px) {
  .cards, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cards, .gallery-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ── Reduced-motion (WCAG 2.2 vestibular safety) ──
   Placed LAST so its cascade overrides every animation/transition
   declared above. Neutralizes the reveal transitions, the hero
   fadeUp entrance keyframes, the 8s hero-bg scale, the gallery-teaser
   parallax, and all hover scale/translate effects, while making sure
   content that animates IN (reveals, hero copy) ends fully visible
   rather than stuck transparent.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  /* Reveal-on-scroll: show immediately, no motion. */
  .reveal,
  .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3,
  .reveal-delay-4 { transition-delay: 0s !important; }

  /* Hero entrance: kill fadeUp so label/h1/tagline/CTA are visible at rest. */
  .hero-label,
  .hero h1,
  .hero-tagline,
  .hero-cta {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Hero background: no slow scale push-in. */
  .hero-bg,
  .hero.visible .hero-bg {
    transform: none !important;
    transition: none !important;
  }

  /* Broad kill-switch for any remaining animation/transition/scroll motion
     (hover scale/translate on cards, images, process steps, nav underline,
     contact CTA, gallery link arrow, etc.). */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
