/* ==========================================================================
   Big Impact Cabinets — shared styles
   Mobile-first. Brand tokens live in :root; change them here only.
   ========================================================================== */

:root {
  /* Brand palette (contrast ratios measured against the background they sit on) */
  --forest:        #1E4634; /* primary — 10.4:1 white text on it, 9.3:1 on cream */
  --forest-deep:   #12291F; /* dark sections, footer */
  --forest-mid:    #2C5E46; /* gradient partner */
  --oak:           #C8914F; /* accent fills (buttons, edge-banding strip) — use deep text on it, 5.5:1 */
  --oak-light:     #E3B97F; /* accent text on forest — 5.8:1 */
  --oak-text:      #8A5A2B; /* accent text on cream — 5.1:1 */
  --cream:         #F6EFE2; /* page background */
  --cream-deep:    #EDE3D0; /* alternating sections */
  --paper:         #FFFBF4; /* raised surfaces */
  --charcoal:      #23272A; /* body text — 14:1 on cream */
  --stone:         #5A5852; /* secondary text — 6.1:1 on cream */
  --line:          #D9CCB4;

  /* Gradients */
  --grad-forest: radial-gradient(120% 140% at 0% 0%, var(--forest-mid) 0%, var(--forest) 45%, var(--forest-deep) 100%);
  --grad-oak: linear-gradient(90deg, #B07436 0%, #D9A464 22%, #C08347 40%, #E0B278 58%, #B7793B 78%, #CF9A5A 100%);

  /* Type */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem);
  --step-3:  clamp(1.95rem, 1.55rem + 1.9vw, 3.2rem);
  --step-4:  clamp(2.6rem, 1.8rem + 3.8vw, 5.4rem);

  /* Layout */
  --wrap: 1200px;
  --gutter: 16px;
  --radius-s: 4px;
  --radius-m: 10px;
  --header-h: 68px;
  --mobile-bar-h: 64px;
}

@media (min-width: 720px) { :root { --gutter: 32px; --header-h: 80px; } }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
  padding-bottom: var(--mobile-bar-h); /* room for sticky mobile bar */
  overflow-x: hidden;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--oak-text); }
h1, h2, h3, h4 {
  font-family: var(--font);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--forest-deep);
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-stretch: 87.5%; line-height: 1.15; }
p { margin: 0 0 1em; max-width: 68ch; }
ul { padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--oak);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible { outline-color: var(--oak-light); }

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 200;
  background: var(--forest-deep); color: #fff; padding: 12px 16px; border-radius: var(--radius-s);
}
.skip-link:focus { top: 8px; color: #fff; }

.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;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* The "edge banding" strip — a thin oak-grain bar used as the brand's recurring accent */
.banding {
  display: block; height: 6px; width: 72px; border-radius: 3px;
  background: var(--grad-oak); margin-bottom: 20px;
}

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--charcoal); }
.muted { color: var(--stone); }
.on-dark { color: #EFE8DA; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark a:not(.btn) { color: var(--oak-light); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--forest); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 700 var(--step-0)/1.1 var(--font); letter-spacing: 0.01em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid var(--btn-bg); border-radius: var(--radius-s);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { --btn-bg: var(--forest-deep); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--oak { --btn-bg: var(--oak); --btn-fg: var(--forest-deep); background-image: var(--grad-oak); border-color: transparent; }
.btn--oak:hover { --btn-bg: #D9A464; filter: brightness(1.06); color: var(--forest-deep); }
.btn--ghost { background: transparent; color: var(--forest); border-color: currentColor; }
.btn--ghost:hover { background: var(--forest); color: #fff; border-color: var(--forest); }
.on-dark .btn--ghost { color: #fff; }
.on-dark .btn--ghost:hover { background: #fff; color: var(--forest-deep); border-color: #fff; }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: var(--step-1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--oak);
  padding-bottom: 2px; color: var(--forest);
}
.text-link:hover { color: var(--oak-text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 239, 226, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest-deep); }
.brand:hover { color: var(--forest-deep); }
.brand img { width: 36px; height: 36px; flex: none; }
.brand-name { font-weight: 800; font-stretch: 75%; font-size: 1.3rem; line-height: 0.95; letter-spacing: 0; }
.brand-name small { display: block; font-weight: 500; font-stretch: 100%; font-size: 0.72rem; color: var(--stone); letter-spacing: 0.02em; }
@media (min-width: 720px) { .brand img { width: 42px; height: 42px; } .brand-name { font-size: 1.5rem; } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 12px;
  background: transparent; border: 2px solid var(--forest); border-radius: var(--radius-s);
  color: var(--forest); font: 700 0.95rem var(--font); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle[aria-expanded="true"] .icon-open,
.nav-toggle[aria-expanded="false"] .icon-close { display: none; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--cream); border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 30px -20px rgba(18, 41, 31, .35);
  padding: 8px var(--gutter) 20px;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 14px 4px; border-bottom: 1px solid var(--line);
  font-weight: 600; font-size: 1.1rem; text-decoration: none; color: var(--charcoal);
}
.site-nav a[aria-current="page"] { color: var(--forest); box-shadow: inset 4px 0 0 var(--oak); padding-left: 14px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.brand { order: 1; }
.site-nav { order: 2; }
.header-actions { order: 3; }
@media (min-width: 1040px) { .site-nav .nav-quote { display: none; } }
.header-call { display: none; }
.header-quote { display: none; }

@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: block; position: static; background: none; border: 0; box-shadow: none; padding: 0; max-height: none; overflow: visible;
  }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav a { border: 0; padding: 10px 10px; font-size: 0.95rem; position: relative; white-space: nowrap; }
  .site-nav a:hover { color: var(--forest); }
  .site-nav a[aria-current="page"] { box-shadow: none; padding-left: 12px; }
  .site-nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--grad-oak);
  }
  .header-call svg { width: 18px; height: 18px; }
  .header-quote { display: inline-flex; min-height: 44px; padding: 10px 18px; }
}
@media (min-width: 1320px) {
  .header-call { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; }
}
@media (min-width: 720px) and (max-width: 1039px) { .header-quote { display: inline-flex; min-height: 44px; padding: 8px 14px; } }

/* ---------- Sticky mobile action bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--forest-deep);
  box-shadow: 0 -8px 24px rgba(18, 41, 31, .25);
}
.mobile-bar .btn { min-height: 48px; padding: 10px 12px; white-space: nowrap; }
.mobile-bar .btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* Floating WhatsApp icon (the only WhatsApp entry point). Brand green with dark icon, 7.9:1.
   On phones it sits just above the sticky Call / Get a Quote bar. */
.wa-float {
  display: grid; place-items: center; position: fixed; z-index: 91;
  right: var(--gutter); bottom: calc(var(--mobile-bar-h) + 14px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #0B2A1C; box-shadow: 0 10px 30px -6px rgba(11, 42, 28, .5);
  transition: transform .15s ease;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); color: #0B2A1C; }
@media (min-width: 900px) { .wa-float { right: 24px; bottom: 24px; width: 60px; height: 60px; } .wa-float svg { width: 32px; height: 32px; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section--tint { background: var(--cream-deep); }
.section--forest { background: var(--grad-forest); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--stone); font-size: var(--step-1); line-height: 1.5; }
.on-dark .section-head p { color: #D8D0C0; }

/* ---------- Home hero ---------- */
.hero { position: relative; background: var(--forest-deep); overflow: hidden; }
.hero-media { position: relative; aspect-ratio: 3 / 2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-panel {
  position: relative; z-index: 2;
  background: var(--grad-forest);
  padding: 32px var(--gutter) 40px;
}
.hero-panel::before { /* oak edge banding across the top of the slab */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--grad-oak);
}
.hero-eyebrow {
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.12em; color: var(--oak-light); margin-bottom: 16px;
}
.hero h1 { color: #fff; font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.6rem); line-height: 0.96; margin-bottom: 22px; text-wrap: balance; }
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--oak-light); }
.hero-intro { font-size: var(--step-1); line-height: 1.5; color: #EFE8DA; max-width: 34em; }
.hero .btn-row { margin-top: 28px; }

@media (min-width: 900px) {
  .hero { min-height: min(86vh, 820px); display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; }
  .hero-media { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(18,41,31,.55) 0%, rgba(18,41,31,.1) 45%, rgba(18,41,31,0) 70%),
                linear-gradient(0deg, rgba(18,41,31,.45) 0%, rgba(18,41,31,0) 35%);
  }
  .hero-panel {
    grid-column: 1 / span 8; max-width: 760px; margin: 0 0 clamp(32px, 6vh, 72px) var(--gutter);
    padding: clamp(36px, 4vw, 56px); border-radius: 0 0 var(--radius-m) var(--radius-m);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
  }
  .hero-panel::before { border-radius: 0; }
}
@media (min-width: 1240px) {
  .hero-panel { grid-column: 1 / span 9; margin-left: calc((100vw - var(--wrap)) / 2 + var(--gutter)); }
}

/* Page load: the one orchestrated moment — the slab slides up into place */
@media (prefers-reduced-motion: no-preference) {
  .hero-panel { animation: slab-in .9s cubic-bezier(.2,.7,.2,1) both .15s; }
  .hero-media img { animation: settle 1.6s cubic-bezier(.2,.7,.2,1) both; }
}
/* Movement only, never opacity, so the headline stays visible even if animations are paused or throttled */
@keyframes slab-in { from { transform: translateY(40px); } to { transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

/* ---------- Interior page hero ---------- */
.page-hero { position: relative; background: var(--forest-deep); color: #EFE8DA; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 2; padding-block: clamp(48px, 9vw, 120px) clamp(40px, 6vw, 80px); }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(18,41,31,.94) 0%, rgba(18,41,31,.82) 42%, rgba(18,41,31,.35) 100%);
}
.page-hero h1 { color: #fff; max-width: 15ch; }
.page-hero p { font-size: var(--step-1); line-height: 1.5; max-width: 40ch; color: #EFE8DA; }
.page-hero .btn-row { margin-top: 24px; }
.page-hero--plain { background: var(--grad-forest); }
.page-hero--plain::after { display: none; }
.page-hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--grad-oak); z-index: 3; }

.breadcrumb { font-size: var(--step--1); margin-bottom: 14px; color: #CFC6B4; }
.breadcrumb a { color: var(--oak-light); }

/* ---------- Home: intro + services ---------- */
.intro-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; } }
.intro-statement { font-size: var(--step-2); font-weight: 700; font-stretch: 87.5%; line-height: 1.2; color: var(--forest-deep); max-width: 22ch; }

.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-list li {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.service-list strong { display: block; font-size: var(--step-1); font-stretch: 87.5%; color: var(--forest-deep); line-height: 1.2; }
.service-list span { color: var(--stone); font-size: var(--step--1); }

/* Material chips — CSS-rendered wood, paint and stone surfaces */
.chip { width: 56px; height: 56px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 2px 6px rgba(18,41,31,.15); }
.chip--oak    { background: repeating-linear-gradient(100deg, rgba(120,74,30,.0) 0 5px, rgba(120,74,30,.28) 5px 6px, rgba(120,74,30,0) 6px 11px), var(--grad-oak); }
.chip--paint  { background: conic-gradient(from 200deg, #F4F1EA 0 25%, #8FA394 0 50%, #2E3B36 0 75%, #CBBFAE 0); }
.chip--stone  { background: linear-gradient(125deg, transparent 40%, rgba(150,130,100,.55) 41%, transparent 43%), linear-gradient(60deg, transparent 62%, rgba(120,120,120,.35) 63%, transparent 64.5%), radial-gradient(circle at 30% 30%, #fff, #E9E6E0); }
.chip--build  { background: var(--grad-forest); position: relative; }
.chip--quote  { background: radial-gradient(circle at 35% 30%, #E9C48F, #B07436); }

/* ---------- Material split (home) ---------- */
.split { display: grid; gap: 20px; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; gap: 28px; } }
.feature {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-m);
  min-height: 420px; color: #fff; text-decoration: none; isolation: isolate;
}
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(18,41,31,.95) 0%, rgba(18,41,31,.55) 45%, rgba(18,41,31,.05) 75%); }
.feature-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3vw, 40px); }
.feature h3 { color: #fff; font-size: var(--step-3); font-stretch: 75%; margin-bottom: 10px; }
.feature p { color: #E8E0CF; margin-bottom: 18px; max-width: 36ch; }
.feature .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--oak-light); border-bottom: 2px solid var(--oak); padding-bottom: 2px; }
.feature:hover { color: #fff; }
.feature:hover img { transform: scale(1.04); }

/* ---------- Gallery preview mosaic (home) ---------- */
.mosaic { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.mosaic a { display: block; overflow: hidden; border-radius: var(--radius-s); background: var(--cream-deep); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .5s ease; }
.mosaic a:hover img { transform: scale(1.04); }
.mosaic a:first-child { grid-column: 1 / -1; }
@media (min-width: 820px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 240px); gap: 14px; }
  .mosaic a:first-child { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .mosaic img { aspect-ratio: auto; }
}
.mosaic-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; }

/* ---------- Service area strip ---------- */
.area-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.area-list li {
  padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  font-weight: 600; font-size: var(--step--1);
}
.on-dark .area-list li { background: rgba(255,255,255,.06); border-color: rgba(227,185,127,.4); color: #fff; }

/* ---------- Closing CTA ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::after { /* soft oak glow — gradient light, not decoration noise */
  content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  right: -15vw; top: -20vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(227,185,127,.28) 0%, rgba(227,185,127,0) 65%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.4fr 1fr; } }
.cta-inner h2 { font-size: var(--step-4); line-height: 0.98; max-width: 12ch; }
.cta-inner p { font-size: var(--step-1); color: #E8E0CF; }
.cta-actions { display: grid; gap: 14px; justify-items: start; }
.cta-phone { font-size: var(--step-1); font-weight: 700; color: #fff !important; text-decoration: none; }
.cta-phone small { display: block; font-weight: 500; font-size: var(--step--1); color: #CFC6B4; }

/* ---------- Option cards (cabinets page) ---------- */
.option-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .option-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .option-grid--4 { grid-template-columns: repeat(4, 1fr); } .option-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.option { background: var(--paper); border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.option-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-deep); }
.option-media img { width: 100%; height: 100%; object-fit: cover; }
.option-body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.option-body h3 { margin: 0; }
.option-body p { margin: 0; color: var(--stone); font-size: 0.97rem; }
.option-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; list-style: none; padding-left: 0; }
.option-tags li { font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--cream-deep); color: var(--forest-deep); }

/* Swatches: stone and maple swatches are SVG files in images/swatches/ (swap for real photos).
   The two wood fills below colour the small chips in the "Colours from our recent projects" list. */
.swatch-label {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,251,244,.92); color: var(--charcoal);
}
.wood-oak {
  background:
    repeating-linear-gradient(92deg, rgba(110,66,24,0) 0 9px, rgba(110,66,24,.22) 9px 10px, rgba(110,66,24,0) 10px 23px, rgba(110,66,24,.14) 23px 25px),
    linear-gradient(90deg, #C8955B, #DDB07A 30%, #C68C4E 60%, #D7A66C);
}
.wood-walnut {
  background:
    repeating-linear-gradient(91deg, rgba(30,16,8,0) 0 7px, rgba(30,16,8,.28) 7px 8px, rgba(30,16,8,0) 8px 19px),
    linear-gradient(90deg, #5B3B26, #74503A 35%, #4E3220 65%, #6A4631);
}

/* ---------- Door style row (cabinets) ---------- */
.door-grid { display: grid; gap: 24px; }
@media (min-width: 820px) { .door-grid { grid-template-columns: 1fr 1fr; } }
.door {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start;
  padding: 24px; background: var(--paper); border-radius: var(--radius-m); border: 1px solid var(--line);
}
.door svg { width: 96px; height: 128px; }
.door h3 { margin-bottom: 6px; }
.door p { margin: 0 0 10px; color: var(--stone); }
.door .seen-in { font-size: var(--step--1); color: var(--charcoal); margin: 0; }

.colour-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.colour-row li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.95rem; }
.colour-row i { width: 44px; height: 44px; border-radius: var(--radius-s); flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

/* Two-column text + photo */
.media-row { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .media-row { grid-template-columns: 1fr 1fr; gap: 64px; } .media-row--flip > :first-child { order: 2; } }
.media-row img { border-radius: var(--radius-m); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23E3B97F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.on-dark .check-list li::before { background-color: rgba(255,255,255,.1); }

/* ---------- Comparison table (quartz vs granite) ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--paper); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare caption { text-align: left; padding: 18px 20px 0; font-size: var(--step--1); color: var(--stone); caption-side: bottom; padding-bottom: 18px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--forest); color: #fff; font-stretch: 87.5%; font-size: var(--step-1); }
.compare thead th:first-child { background: var(--forest-deep); }
.compare tbody th { width: 22%; font-weight: 700; color: var(--forest-deep); background: var(--cream); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
/* Phones: stack each feature into a labelled block instead of scrolling sideways */
@media (max-width: 639px) {
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tbody th { width: 100%; background: var(--forest); color: #fff; padding: 12px 16px; border: 0; }
  .compare td { padding: 12px 16px; }
  .compare td::before { content: attr(data-label); display: block; font-weight: 800; font-stretch: 87.5%; color: var(--forest); margin-bottom: 2px; }
  .compare tbody tr:last-child td:last-child { border-bottom: 0; }
}

/* Edge profiles */
.edge-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); list-style: none; margin: 0; padding: 0; }
.edge-grid li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; }
.edge-grid svg { width: 100%; height: 80px; margin-bottom: 12px; }
.edge-grid h3 { font-size: 1.1rem; margin-bottom: 4px; }
.edge-grid p { font-size: 0.9rem; color: var(--stone); margin: 0; }

/* Numbered steps — used only for real sequences (install process, what happens next) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps--3 { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; padding: 24px; border-radius: var(--radius-m); background: rgba(255,255,255,.06); border: 1px solid rgba(227,185,127,.28); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad-oak); color: var(--forest-deep); font-weight: 800; margin-bottom: 14px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; font-size: 0.97rem; }
.steps--light li { background: var(--paper); border-color: var(--line); }

/* ---------- Gallery ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-bar button {
  min-height: 44px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  font: 600 0.95rem var(--font); color: var(--forest); background: var(--paper); border: 2px solid var(--line);
}
.filter-bar button:hover { border-color: var(--forest); }
.filter-bar button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }

.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; grid-auto-flow: dense; }
@media (min-width: 820px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.gallery-grid li[hidden] { display: none; }
.gallery-grid .tall { grid-row: span 2; }
.gallery-item {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius-s); overflow: hidden; background: var(--cream-deep);
}
.gallery-item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.gallery-grid .tall .gallery-item img { aspect-ratio: auto; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; text-align: left;
  font: 600 0.85rem/1.3 var(--font); color: #fff;
  background: linear-gradient(0deg, rgba(18,41,31,.88), rgba(18,41,31,0));
}
@media (max-width: 519px) { .gallery-item .caption { font-size: 0.75rem; padding: 22px 8px 8px; } }
.gallery-empty { padding: 40px; text-align: center; color: var(--stone); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(12, 22, 17, .94); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; padding: 56px 12px 16px; }
.lightbox figure { margin: 0; display: grid; place-items: center; min-height: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: var(--radius-s); }
.lightbox-caption { text-align: center; color: #EFE8DA; padding-top: 12px; font-size: 0.95rem; }
.lightbox-btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(18,41,31,.7); color: #fff; cursor: pointer;
}
.lightbox-btn:hover { background: var(--forest); }
.lightbox-btn svg { width: 22px; height: 22px; }
.lightbox-close { top: 8px; right: 12px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; top: 20px; left: 20px; color: #CFC6B4; font-size: 0.9rem; }

/* ---------- Quote form ---------- */
.quote-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .quote-layout { grid-template-columns: 1fr 340px; gap: 56px; align-items: start; } }
.quote-aside { display: grid; gap: 20px; }
@media (min-width: 1000px) { .quote-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.aside-card { padding: 24px; border-radius: var(--radius-m); background: var(--paper); border: 1px solid var(--line); }
.aside-card--forest { background: var(--grad-forest); border: 0; }
.aside-card h2 { font-size: var(--step-2); }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(20px, 4vw, 40px); }
.form fieldset { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.form legend {
  font-weight: 800; font-stretch: 75%; font-size: var(--step-2); color: var(--forest-deep);
  padding: 0; margin-bottom: 18px; line-height: 1.1;
}
.form fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 12px; }
.form-grid { display: grid; gap: 18px; margin-bottom: 18px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field .label { font-weight: 700; font-size: 0.97rem; }
.field .hint { font-size: 0.85rem; color: var(--stone); margin: 0; }
.req { color: #9A3B1F; font-weight: 700; }
.opt { font-weight: 500; color: var(--stone); font-size: 0.85rem; }

.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--font); color: var(--charcoal);
  background: #fff; border: 1.5px solid #B9AB92; border-radius: var(--radius-s);
}
.form select {
  appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%231E4634' stroke-width='2'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--forest); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--oak); outline-offset: 1px; border-color: var(--forest); }
.form [aria-invalid="true"] { border-color: #9A3B1F; background: #FFF7F4; }
.error-msg { color: #9A3B1F; font-size: 0.88rem; font-weight: 600; margin: 0; }
.error-msg:empty { display: none; }

.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid #B9AB92; background: #fff; font-weight: 600; font-size: 0.95rem;
}
.choice input:checked + span { background: var(--forest); color: #fff; border-color: var(--forest); }
.choice input:focus-visible + span { outline: 3px solid var(--oak); outline-offset: 2px; }
.choice input:hover + span { border-color: var(--forest); }

.file-drop {
  position: relative; display: grid; place-items: center; text-align: center; gap: 6px;
  padding: 28px 16px; border: 2px dashed #B9AB92; border-radius: var(--radius-m); background: var(--cream);
}
.file-drop:hover, .file-drop.is-drag { border-color: var(--forest); background: #EFE6D3; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-drop:has(input:focus-visible) { outline: 3px solid var(--oak); outline-offset: 2px; }
.file-drop svg { width: 32px; height: 32px; color: var(--forest); }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: 0.9rem; }
.file-list li { padding: 6px 10px; background: var(--cream-deep); border-radius: var(--radius-s); }

.form-foot { display: grid; gap: 14px; margin-top: 12px; }
.form-foot p { font-size: 0.88rem; color: var(--stone); margin: 0; }
.hp { position: absolute; left: -9999px; }
.form-status { padding: 14px 16px; border-radius: var(--radius-s); background: #FBEDE7; color: #7A2E17; font-weight: 600; }
.form-status:empty { display: none; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.confirmation {
  text-align: left; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-m);
  background: var(--grad-forest); color: #EFE8DA; position: relative; overflow: hidden;
}
.confirmation::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--grad-oak); }
.confirmation h2 { color: #fff; }
.confirmation .tick { width: 64px; height: 64px; margin-bottom: 18px; }
.confirmation:focus { outline: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 20px; }
@media (min-width: 600px) and (max-width: 1099px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1100px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }

/* reCAPTCHA widget is a fixed 304px wide; scale it down on very narrow phones so it never overflows */
.g-recaptcha { min-height: 78px; }
.quote-layout > * { min-width: 0; } /* let the form column shrink below the widget's fixed width */
.field:has(> .g-recaptcha) { overflow: hidden; } /* clip the unscaled layout box; the challenge pop-up lives outside the form */
@media (max-width: 400px) {
  .g-recaptcha { transform: scale(0.88); transform-origin: 0 0; min-height: 70px; }
}
@media (max-width: 359px) {
  .g-recaptcha { transform: scale(0.74); min-height: 60px; }
}
.contact-card { padding: 28px; border-radius: var(--radius-m); background: var(--paper); border: 1px solid var(--line); }
.contact-card svg { width: 32px; height: 32px; color: var(--forest); margin-bottom: 14px; }
.contact-card h2 { font-size: var(--step-1); font-stretch: 87.5%; margin-bottom: 6px; }
.contact-card .big { font-size: var(--step-1); font-weight: 700; word-break: break-word; }
.contact-card p { margin-bottom: 4px; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.hours td { padding: 4px 0; }
.hours td:last-child { text-align: right; font-weight: 600; }

.map-embed {
  position: relative; width: 100%; height: clamp(300px, 34vw, 440px); border-radius: var(--radius-m); overflow: hidden;
  background: var(--cream-deep); border: 1px solid var(--line);
}
.media-row > * { min-width: 0; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.area-columns { columns: 2; column-gap: 24px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .area-columns { columns: 3; } }
.area-columns li { padding: 8px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-weight: 600; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: #D8D0C0; padding-top: 64px; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--grad-oak); }
.footer-grid { display: grid; gap: 36px; padding-bottom: 48px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.15rem; font-stretch: 87.5%; color: #fff; margin-bottom: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--oak-light); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand-name small { color: #CFC6B4; }
.site-footer .brand:hover { text-decoration: none; color: #fff; }
.footer-contact a { font-weight: 700; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding-block: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.88rem; color: #BDB4A2; }
.footer-base a { color: #E8E0CF; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
