/* ============================================================
   Oakridge Cabinet and Design — shared site styles
   Warm woodgrain + soft gold, craftsman luxury. Brown/white default.
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,300;1,6..72,400&family=Lexend:wght@300;400;500;600&display=swap');

/* ---------- Tokens ---------- */
:root {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* brown & white (default) */
  --bg:        #241a12;
  --bg-1:      #2b2017;
  --bg-2:      #34271b;
  --surface:   #2d2216;
  --surface-2: #38291b;
  --line:      #473625;
  --line-2:    #6a523a;
  --text:      #f8f2e9;
  --muted:     #c9b6a0;
  --faint:     #98856e;

  --primary:   #c5a682;
  --gold:      #c0a07c;
  --gold-soft: #ddc4a4;
  --gold-deep: #9b7850;
  --maroon:    #6c1a17;
  --maroon-2:  #8a2a24;

  --btn-ink:   #2a1e13;
  --cream:     #f0e3d0;

  /* Brand accent — same in light & dark mode */
  --accent:    #6c1a17;
  --accent-2:  #87241d;
  --accent-ink:#f8ece8;

  /* Subtle wood-grain texture (grayscale noise stretched into fibers) */
  --wood: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='240'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.32' numOctaves='2' seed='14' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
  --shadow-1: 0 2px 10px rgba(0,0,0,.35);
  --shadow-2: 0 18px 50px -12px rgba(0,0,0,.65);
  --shadow-card: 0 26px 60px -22px rgba(0,0,0,.75);

  --font-body: 'Geist', system-ui, -apple-system, sans-serif;
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --radius-lg: 10px;

  --header-h: 100px;
}

[data-dys="on"] {
  --font-body: 'Lexend', sans-serif;
  --font-display: 'Lexend', sans-serif;
  letter-spacing: .01em;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}
img, picture, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; border-radius: 2px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1480px; }
.section { padding-block: clamp(72px, 9vw, 140px); position: relative; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: .7em;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--gold); opacity: .6; }
.eyebrow.center::after { content: ""; width: 30px; height: 1px; background: var(--gold); opacity: .6; }

.h-display { font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: .98; }
.h-1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.h-2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.lead { font-size: clamp(1.12rem, 1.7vw, 1.32rem); color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
.serif-italic { font-family: var(--font-display); font-style: italic; }
.mono-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--gold);
  display: inline-flex; align-items: center; gap: .6em; white-space: nowrap;
  padding: 1em 1.7em; border-radius: var(--radius);
  font-size: .96rem; font-weight: 600; letter-spacing: .01em;
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease), color .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--btn-ink);
  box-shadow: 0 12px 30px -12px rgba(60,40,20,.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -14px rgba(60,40,20,.5); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost {
  border: 1px solid var(--line-2); color: var(--text); background: rgba(255,255,255,.02);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--gold-soft); }
.btn-ghost:hover svg { transform: translateX(4px); }

/* ---------- Film grain overlay ---------- */
#grain {
  position: fixed; inset: -120%; z-index: 9000; pointer-events: none;
  opacity: .045; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  will-change: transform;
  animation: grain-shift 7s steps(6) infinite;
}
@keyframes grain-shift {
  0%{transform:translate(0,0)} 16%{transform:translate(-6%,4%)} 33%{transform:translate(5%,-5%)}
  50%{transform:translate(-4%,6%)} 66%{transform:translate(6%,3%)} 83%{transform:translate(-5%,-4%)} 100%{transform:translate(0,0)}
}

/* ---------- Touch glow ---------- */
#touch-layer { position: fixed; inset: 0; z-index: 9100; pointer-events: none; mix-blend-mode: screen; }
.touch-glow {
  position: absolute; width: 340px; height: 340px; margin: -170px 0 0 -170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,.22) 0%, rgba(255,200,80,.12) 38%, rgba(255,200,80,0) 70%);
  opacity: 0; transform: scale(.4); will-change: transform, opacity;
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header { position: sticky; top: 0; z-index: 8000; }
.hdr {
  display: flex; align-items: center; gap: 18px;
  height: var(--header-h);
  padding-inline: var(--gutter);
  background-color: var(--accent);
  background-image: var(--wood);
  background-size: 600px 240px;
  background-repeat: repeat;
  background-blend-mode: soft-light;
  border-bottom: 1px solid rgba(0,0,0,.3);
  transition: height .4s var(--ease), box-shadow .4s var(--ease);
}
#site-header.scrolled .hdr { box-shadow: 0 8px 26px -12px rgba(0,0,0,.55); --header-h: 76px; }
/* Maroon nav: light chrome in both themes */
#site-header .wordmark b { color: #fdf6ef; }
#site-header .wordmark small { color: var(--gold-soft); }
#site-header .brand-mark .ring { border-color: var(--gold-soft); opacity: .7; }
#site-header .brand-mark span { color: var(--gold-soft); }
#site-header .icon-btn, #site-header .hamburger { color: #f3e7e3; }
#site-header .icon-btn:hover { background: rgba(255,255,255,.13); color: #fff; }
#site-header .nav-main a { color: rgba(248,236,232,.82); }
#site-header .nav-main a:hover, #site-header .nav-main a[aria-current="page"] { color: #fff; }
#site-header .nav-main a::after { background: var(--cream); }
#site-header .contact-pill { color: #f6ece8; border-color: rgba(248,236,232,.34); background: rgba(255,255,255,.07); }
#site-header .contact-pill:hover { border-color: var(--cream); }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-logo { height: 72px; width: auto; display: block; filter: brightness(1.24) contrast(1.07) drop-shadow(0 1px 4px rgba(0,0,0,.5)); transition: height .4s var(--ease); }
#site-header.scrolled .brand-logo { height: 54px; }
.brand-foot .brand-logo { height: 64px; filter: brightness(1.18) contrast(1.05); }
.brand-mark { width: 34px; height: 34px; flex: none; position: relative; }
.brand-mark span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--gold-soft); }
.brand-mark .ring { position: absolute; inset: 0; border: 1.5px solid var(--gold); border-radius: 50%; opacity: .55; }
.wordmark { line-height: 1; }
.wordmark b {
  display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.32rem;
  letter-spacing: .06em; color: var(--text);
}
.wordmark small { display: block; font-family: var(--font-mono); font-size: .56rem; letter-spacing: .34em; color: var(--gold); margin-top: 3px; }

.nav-main { display: flex; align-items: center; gap: 4px; }
.nav-main a {
  position: relative; padding: 8px 14px; font-size: .96rem; color: var(--muted);
  transition: color .3s var(--ease);
}
.nav-main a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav-main a:hover, .nav-main a[aria-current="page"] { color: var(--text); }
.nav-main a:hover::after, .nav-main a[aria-current="page"]::after { transform: scaleX(1); }

.hdr-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius);
  color: var(--muted); transition: background .3s var(--ease), color .3s var(--ease);
}
.icon-btn:hover { background: rgba(120,140,100,.14); color: var(--text); }
.icon-btn svg { width: 21px; height: 21px; }

/* contact pill */
.contact-wrap { position: relative; }
.contact-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px 9px 12px; border-radius: 100px;
  border: 1px solid var(--line-2); color: var(--text); background: rgba(255,255,255,.02);
  font-size: .9rem; font-weight: 500; transition: border-color .3s var(--ease), background .3s var(--ease);
}
.contact-pill:hover { border-color: var(--gold); }
.contact-pill .ph { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg,var(--gold-soft),var(--gold)); color:#1a130a; flex:none; }
.contact-pill .ph svg { width: 15px; height: 15px; }
.contact-num { white-space: nowrap; }
.contact-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 210px; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s; z-index: 20;
}
.contact-wrap:hover .contact-menu, .contact-wrap:focus-within .contact-menu, .contact-menu.open {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.contact-menu a {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: var(--radius);
  font-size: .92rem; color: var(--text); transition: background .25s var(--ease);
}
.contact-menu a:hover { background: rgba(120,140,100,.14); }
.contact-menu a svg { width: 17px; height: 17px; color: var(--gold); flex: none; }
.contact-menu small { display: block; color: var(--faint); font-size: .74rem; }

.cta-head { display: inline-flex; }

/* hamburger */
.hamburger { display: none; }
.hamburger span { display: block; width: 20px; height: 1.6px; background: currentColor; transition: transform .35s var(--ease), opacity .25s var(--ease); }
.hamburger span + span { margin-top: 5px; }
body.menu-open .hamburger span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 7900; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter); gap: 6px; opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
  overflow-y: auto;
}
body.menu-open .mobile-nav { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav a.m-link {
  font-family: var(--font-display); font-size: clamp(2rem,9vw,3.2rem); color: var(--text);
  padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center;
}
.mobile-nav a.m-link span { font-family: var(--font-mono); font-size: .7rem; color: var(--gold); letter-spacing: .2em; }
.mobile-extra { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }

/* ============================================================
   SEARCH PANEL
   ============================================================ */
.search-panel {
  position: fixed; top: 0; left: 0; right: 0; z-index: 8600;
  background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line); padding: 26px var(--gutter) 30px;
  transform: translateY(-110%); transition: transform .5s var(--ease); box-shadow: var(--shadow-2);
}
.search-panel.open { transform: translateY(0); }
.search-row { display: flex; align-items: center; gap: 14px; max-width: var(--wrap); margin-inline: auto; }
.search-row svg { width: 24px; height: 24px; color: var(--gold); flex: none; }
.search-input {
  flex: 1; background: none; border: none; font-family: var(--font-display); font-size: clamp(1.4rem,3.2vw,2.2rem);
  color: var(--text); padding: 6px 0; border-bottom: 1px solid var(--line-2);
}
.search-input::placeholder { color: var(--faint); }
.mic-btn, .search-close { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); transition: all .3s var(--ease); flex: none; }
.mic-btn:hover, .search-close:hover { color: var(--text); border-color: var(--gold); }
.mic-btn.listening { color: #1a130a; background: var(--gold-soft); border-color: var(--gold-soft); animation: pulse 1.1s infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(231,202,160,.5)} 50%{box-shadow:0 0 0 10px rgba(231,202,160,0)} }
.search-results { max-width: var(--wrap); margin: 22px auto 0; display: grid; gap: 4px; }
.search-results a { display: flex; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: var(--radius); transition: background .25s var(--ease); }
.search-results a:hover { background: rgba(120,140,100,.12); }
.search-results .sr-kind { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); min-width: 86px; }
.search-results .sr-title { color: var(--text); }
.search-results .sr-desc { color: var(--faint); font-size: .9rem; }
.search-empty { max-width: var(--wrap); margin: 22px auto 0; color: var(--faint); font-style: italic; font-family: var(--font-display); }

/* ============================================================
   SETTINGS / ACCESSIBILITY PANEL
   ============================================================ */
.scrim { position: fixed; inset: 0; z-index: 8500; background: rgba(8,6,4,.55); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.scrim.open { opacity: 1; visibility: visible; }
.settings {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); z-index: 8700;
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-2);
  transform: translateX(102%); transition: transform .5s var(--ease); overflow-y: auto;
  padding: 28px 26px 60px;
}
.settings.open { transform: translateX(0); }
.settings-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.settings-head h3 { font-size: 1.35rem; line-height: 1.15; }
.settings-sub { color: var(--faint); font-size: .9rem; margin-bottom: 22px; }
.set-group { padding: 18px 0; border-top: 1px solid var(--line); }
.set-group > .set-title { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0; }
.set-row label { font-size: .96rem; }
.set-row .hint { display: block; color: var(--faint); font-size: .78rem; margin-top: 2px; }

/* toggle */
.toggle { width: 48px; height: 27px; border-radius: 100px; background: var(--line-2); position: relative; flex: none; transition: background .3s var(--ease); }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: var(--text); transition: transform .3s var(--ease); }
.toggle[aria-pressed="true"] { background: var(--gold); }
.toggle[aria-pressed="true"]::after { transform: translateX(21px); background: #1a130a; }

/* segmented */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 100px; padding: 3px; }
.seg button { padding: 6px 14px; border-radius: 100px; font-size: .82rem; color: var(--muted); transition: all .25s var(--ease); }
.seg button[aria-pressed="true"] { background: var(--gold); color: #1a130a; font-weight: 600; }

.set-control { display: flex; flex-direction: column; gap: 9px; }
.set-control select, .set-control input[type="range"] { width: 100%; }
.set-control select {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  padding: 10px 12px; border-radius: var(--radius);
}
input[type="range"] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: var(--line-2); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-soft); cursor: pointer; box-shadow: 0 0 0 4px rgba(231,202,160,.18); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: none; border-radius: 50%; background: var(--gold-soft); cursor: pointer; }
.range-row { display: flex; align-items: center; justify-content: space-between; font-size: .86rem; color: var(--muted); }

/* read-aloud highlight */
.ra-speaking { background: rgba(216,181,137,.22) !important; box-shadow: 0 0 0 3px rgba(216,181,137,.22); border-radius: 3px; }
.translating-note { font-size: .78rem; color: var(--gold); font-style: italic; font-family: var(--font-display); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: clamp(560px, 88vh, 920px); display: flex; align-items: flex-end; padding-top: clamp(64px, 9vh, 120px); padding-bottom: 220px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -2% -2% -2% -2%; z-index: -3; background-size: cover; background-position: center; }
.hero-bg.kenburns { animation: kenburns 26s var(--ease) infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04) translate(0,0); } to { transform: scale(1.16) translate(-1.5%, -2%); } }
/* White wash over the hero image (both light & dark mode) softens the photo
   into the brand palette. The page-color fade is layered ON TOP so the very
   bottom resolves to the exact page background and the hero bleeds seamlessly
   into the next section with no seam. */
.hero-overlay { position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, transparent 0%, transparent 48%, color-mix(in srgb, var(--bg) 60%, transparent) 76%, var(--bg) 100%),
    linear-gradient(to right, rgba(0,0,0,.68) 0%, rgba(0,0,0,.50) 38%, rgba(0,0,0,.26) 68%, rgba(0,0,0,.10) 100%);
}
.hero-inner { padding-bottom: 30px; }
/* ============================================================
   HERO TEXT — every text element over a hero image is pure white
   with one consistent drop shadow, on every page. (Buttons keep
   their own colors; they sit on a solid background, not the photo.)
   ============================================================ */
.hero h1 { margin: 18px 0 22px; }
.hero .lead { max-width: 620px; }
/* keep the hero eyebrow on one tidy line (allowed to wrap only on small phones) */
.hero .eyebrow, .phero .eyebrow { white-space: nowrap; }

/* color: white for all hero text (incl. interior-page leads whose inline
   cream color we override) */
.hero h1, .phero h1,
.hero .lead, .phero .lead,
.hero .eyebrow, .phero .eyebrow,
.hero .tagline, .phero .tagline, .hero-cta .tagline,
.breadcrumb, .breadcrumb a,
.hero-scroll, .hero-scroll .mono-label { color: #fff !important; }

/* the decorative "---" dashes (eyebrow rule + scroll bar) in white too */
.hero .eyebrow::before, .phero .eyebrow::before,
.hero .eyebrow.center::after, .phero .eyebrow.center::after { background: #fff; opacity: .9; }
.hero-scroll .bar { background: linear-gradient(#fff, transparent); }

/* one shared, legible drop shadow on every hero text element */
.hero h1, .phero h1,
.hero .lead, .phero .lead,
.hero .eyebrow, .phero .eyebrow,
.hero .tagline, .phero .tagline, .hero-cta .tagline,
.breadcrumb, .breadcrumb a,
.hero-scroll, .hero-scroll .mono-label {
  text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 3px 18px rgba(0,0,0,.75), 0 10px 40px rgba(0,0,0,.5);
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 34px; }
.hero-cta .tagline { color: rgba(245,238,228,.72); font-style: italic; font-family: var(--font-display); }
.hero-scroll { position: absolute; bottom: 240px; right: var(--gutter); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(245,238,228,.6); }
.hero-scroll .mono-label { writing-mode: vertical-rl; letter-spacing: .3em; }
.hero-scroll .bar { width: 1px; height: 54px; background: linear-gradient(var(--gold), transparent); }

/* Laundry service — shift to show washer/dryer in frame */
#laundry .svc-media img { object-position: center 85%; }
a[href="services.html#laundry"] .card-media .ph-img,
a[href="services.html#laundry"] .card-media img { object-position: center 85%; }

/* ============================================================
   GALLERY — Recent Work
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(8px, 1vw, 14px);
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--ease);
}
.gallery-item:hover img { transform: scale(1.07); }
@media (max-width: 1080px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
/* gallery 2-col handled in the 620px block above */

/* section emerging from hero */
.after-hero { position: relative; z-index: 2; margin-top: -130px; }

/* ============================================================
   REVEAL + PARALLAX
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
.clip-wipe { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); }
.clip-wipe.in { clip-path: inset(0 0 0 0); }

/* ============================================================
   CARDS / SERVICES
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 28px); }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--gold-deep); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.card-media .ph-img, .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-media .ph-img, .card:hover .card-media img { transform: scale(1.06); }
.card-media .num { position: absolute; top: 14px; left: 14px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; color: #fff; background: rgba(15,12,8,.5); border:1px solid rgba(255,255,255,.18); padding: 5px 9px; border-radius: 100px; backdrop-filter: blur(4px); }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.card-body h3 { font-size: 1.5rem; }
.card-body p { color: var(--muted); font-size: .98rem; line-height: 1.55; }
.card-more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; color: var(--gold-soft); font-weight: 600; font-size: .9rem; }
.card-more svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.card:hover .card-more svg { transform: translateX(4px); }

/* image placeholder (fallback) */
.ph-img.fallback {
  background:
    repeating-linear-gradient(135deg, rgba(216,181,137,.07) 0 2px, transparent 2px 11px),
    linear-gradient(135deg, var(--bg-2), var(--surface-2));
  display: grid; place-items: center;
}
.ph-img.fallback::after { content: attr(data-label); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }

/* ============================================================
   STATS
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2.4vw, 34px); justify-items: center; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem); color: var(--gold-soft); line-height: 1; }
.stat .lbl { color: var(--muted); margin-top: 8px; font-size: .94rem; }
.stat .sup { color: var(--gold); }

/* ============================================================
   DARK MODE — gold (#d1b494 family) contrast pass
   The large counter numbers go pure white for legibility on the
   dark brown background. Small subheadings/labels stay warm gold.
   (CTA buttons and gold body links/icons keep their original gold.)
   ============================================================ */

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi { position: relative; }
.testi-track { position: relative; min-height: 280px; }
.testi-slide {
  position: absolute; inset: 0; opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  display: block; max-width: 880px;
}
.testi-slide.active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.testi-photo { width: clamp(120px, 18vw, 190px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 2px solid var(--line-2); }
.testi-photo img { width: 100%; height: 100%; object-fit: cover; }
.testi-quote { font-family: var(--font-display); font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.35; color: var(--text); }
.testi-stars { color: var(--gold); letter-spacing: .15em; margin-bottom: 16px; font-size: 1.05rem; }
.testi-who { margin-top: 20px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.testi-who b { color: var(--gold-soft); font-weight: 500; }
.testi-nav { display: flex; gap: 10px; margin-top: 36px; }
.testi-dot { width: 34px; height: 3px; background: var(--line-2); border-radius: 4px; transition: background .4s var(--ease); }
.testi-dot.active { background: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { position: relative; background-color: var(--accent); background-image: var(--wood); background-size: 600px 240px; background-repeat: repeat; background-blend-mode: soft-light; margin-top: 0; color: #f3e7df; }

/* CTA band — same solid brown as the "what we build" page sections (var(--bg) in
   dark mode), kept consistent across every page. */
#site-footer .foot-cta { background: #241a12; text-align: center; padding-block: clamp(58px, 7vw, 100px); }
#site-footer .foot-cta .eyebrow { color: var(--gold-soft); }
#site-footer .foot-cta h2 { color: #f5ece0; font-size: clamp(2.1rem, 4.6vw, 3.7rem); margin-bottom: 16px; }
#site-footer .foot-cta .lead { color: rgba(245,236,224,.82); }

/* Main footer (maroon) — brand + all three columns on a single compact line */
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: clamp(26px, 3vw, 52px); align-items: start; padding-block: clamp(34px, 3.6vw, 52px); border-bottom: 1px solid rgba(255,248,243,.14); }
.foot-links { display: contents; }
.foot-brand .brand { margin: 0 0 14px; }
.foot-about { color: rgba(255,248,243,.72); font-size: .9rem; line-height: 1.55; max-width: 34ch; }
.foot-col h4 { font-family: var(--font-mono); font-weight: 500; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--cream); margin-bottom: 16px; }
.foot-col ul { display: flex; flex-direction: column; gap: 13px; }
.foot-link { position: relative; color: rgba(255,248,243,.78); display: inline-block; transition: color .3s var(--ease); }
.foot-link::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--cream); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.foot-link:hover { color: #fff; }
.foot-link:hover::after { transform: scaleX(1); }
.foot-contact { display: flex; flex-direction: column; gap: 15px; }
.foot-contact li { display: flex; gap: 12px; color: rgba(255,248,243,.82); align-items: flex-start; font-size: .95rem; line-height: 1.45; }
.foot-contact svg { width: 17px; height: 17px; color: var(--cream); flex: none; margin-top: 3px; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; align-items: center; padding-block: 18px; color: rgba(255,248,243,.55); font-size: .82rem; }
.foot-blogs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 20px; }
.foot-blogs .mono-label { color: var(--cream); opacity: .8; }
.foot-blogs .foot-link { color: rgba(255,248,243,.6); }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,248,243,.3); color: rgba(255,248,243,.82); transition: all .35s var(--ease); }
.social-row a:hover { color: #fff; border-color: var(--cream); transform: translateY(-3px); }
.social-row svg { width: 18px; height: 18px; }

/* ============================================================
   LOADER + PAGE TRANSITION
   ============================================================ */
#loader { position: fixed; inset: 0; z-index: 10000; background: var(--bg); display: grid; place-items: center; transition: opacity .7s var(--ease), visibility .7s; }
#loader.done { opacity: 0; visibility: hidden; }
.loader-cab { width: 200px; height: 150px; position: relative; }
.cab-frame { position: absolute; inset: 0; border: 2px solid var(--line-2); border-radius: 6px; overflow: hidden; background: var(--surface); }
.cab-door { position: absolute; top: 0; bottom: 0; width: 50%; background: linear-gradient(135deg, var(--surface-2), var(--bg-2)); border: 1px solid var(--line-2); transition: transform 1s var(--ease) .35s; }
.cab-door.left { left: 0; transform-origin: left center; }
.cab-door.right { right: 0; transform-origin: right center; }
.cab-door .knob { position: absolute; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-soft); transform: translateY(-50%); }
.cab-door.left .knob { right: 8px; }
.cab-door.right .knob { left: 8px; }
#loader.open .cab-door.left { transform: perspective(600px) rotateY(-105deg); }
#loader.open .cab-door.right { transform: perspective(600px) rotateY(105deg); }
.cab-logo { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; opacity: 0; transition: opacity .6s var(--ease) .7s; }
#loader.open .cab-logo { opacity: 1; }
.cab-logo b { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: .1em; color: var(--gold-soft); }
.cab-logo small { display: block; font-family: var(--font-mono); font-size: .54rem; letter-spacing: .3em; color: var(--gold); margin-top: 4px; }
.loader-bar { position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%); width: 120px; height: 2px; background: var(--line); overflow: hidden; border-radius: 4px; }
.loader-bar span { position: absolute; inset: 0; left: -100%; background: var(--gold); animation: loadbar 1.4s var(--ease) infinite; }
@keyframes loadbar { to { left: 100%; } }

#page-fade { position: fixed; inset: 0; z-index: 9800; background: var(--bg); pointer-events: none; opacity: 0; transition: opacity .45s var(--ease); }
#page-fade.show { opacity: 1; }
/* Entrance: never persistently hold content hidden (capture/background-tab safe) */
main { opacity: 1; }
body.page-enter.anim-in main { animation: pageIn .7s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ============================================================
   GENERIC SECTION PARTS
   ============================================================ */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(34px, 5vw, 80px); align-items: center; }
/* Full-width About (image removed) */
.about-stretch { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(28px, 5vw, 76px); align-items: start; }
.feat-list.about-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(34px, 4vw, 54px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .about-stretch { grid-template-columns: 1fr; gap: 16px; }
  .feat-list.about-feats { grid-template-columns: 1fr; gap: 16px; }
}
.media-block { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.media-block img, .media-block .ph-img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.media-tag { position: absolute; bottom: 16px; left: 16px; background: rgba(15,12,8,.6); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.14); color: #fff; padding: 8px 14px; border-radius: 100px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.feat-list { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.feat-list li { display: flex; gap: 14px; align-items: flex-start; }
.feat-list .ck { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; flex: none; color: var(--gold); margin-top: 2px; }
.feat-list .ck svg { width: 13px; height: 13px; }
.feat-list p { color: var(--muted); }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* Reusable subtle wood-grain band (texture sits behind content, never over text legibility) */
.wood-band { position: relative; isolation: isolate; }
.wood-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: var(--wood); background-size: 600px 240px; background-repeat: repeat;
  opacity: .05; mix-blend-mode: multiply;
}

/* page hero (interior) */
.phero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; padding-top: clamp(56px, 8vh, 104px); padding-bottom: 200px; overflow: hidden; isolation: isolate; }
.phero .hero-inner { padding-bottom: 10px; }
.phero h1 { color: #fff; margin: 16px 0 0; }
.breadcrumb { display: flex; gap: 10px; align-items: center; color: rgba(245,238,228,.7); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--gold-soft); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 60px); align-items: start; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.field input, .field textarea, .field select {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--text);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); outline: none; background: var(--surface-2); }
.field.err input, .field.err textarea { border-color: var(--maroon-2); }
.field .msg { color: var(--maroon-2); font-size: .8rem; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); filter: saturate(.7) brightness(.85) contrast(1.05); }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.info-card .row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-card .row:last-child { border-bottom: none; }
.info-card .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); flex: none; }
.info-card .ic svg { width: 18px; height: 18px; }
.info-card .row b { display: block; color: var(--text); }
.info-card .row span { color: var(--muted); font-size: .95rem; }
.info-card .row a { color: var(--muted); }
.info-card .row a:hover { color: var(--gold); }

.form-ok { background: linear-gradient(135deg, rgba(200,154,92,.14), rgba(108,26,23,.1)); border: 1px solid var(--gold-deep); border-radius: var(--radius-lg); padding: 26px; color: var(--text); display: none; }
.form-ok.show { display: block; animation: pageIn .6s var(--ease) both; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
/* 4-up card grids (e.g. the About "How we work" steps) go full 4 only on
   wide screens, then fall back to the shared .svc-grid collapse below. */
@media (min-width: 1081px) {
  .svc-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
/* Collapse the primary nav to the hamburger before the desktop header gets
   crowded, so nothing clips or wraps. */
@media (max-width: 1040px) {
  .nav-main { display: none; }
  .cta-head { display: none; }
  .contact-num { display: none; }
  .contact-pill { padding: 9px; }
  .hamburger { display: grid; place-items: center; }
}
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .testi-slide { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .testi-photo { margin-inline: auto; }
  /* Interior-page heroes: soften the bottom padding on tablets */
  .phero { padding-bottom: clamp(130px, 16vw, 200px); }
  .after-hero { margin-top: -80px; }
  /* gallery: 3 cols on tablet is fine, handled above; drop to 2 on narrower */
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .svc-grid { grid-template-columns: 1fr; }
  .stats { gap: 8px; }
  .stat .num { font-size: clamp(1.5rem, 5.6vw, 2.4rem); }
  .stat .lbl { font-size: .72rem; }
  .hdr { --header-h: 74px; }
  #site-header.scrolled .hdr { --header-h: 64px; }
  .brand-logo { height: 58px; }
  #site-header.scrolled .brand-logo { height: 50px; }
  .brand { gap: 8px; }
  .hdr { gap: 8px; padding-inline: 14px; }
  .hdr-tools { gap: 2px; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-links { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-bottom: 180px; }
  .hero-scroll { display: none; }
  .settings { width: 100vw; }
  .hero .eyebrow, .phero .eyebrow { white-space: normal; }
  /* Mobile: reduce interior hero padding & pull-up */
  .phero { padding-bottom: 110px; min-height: 52vh; }
  .after-hero { margin-top: -50px; }
  /* Rein in the display heading so it doesn't crowd small screens */
  .h-display { font-size: clamp(1.9rem, 7.5vw, 2.6rem); }
  /* Gallery: 2 cols on phones */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  /* Map embed: cap height on mobile */
  .map-embed { min-height: 280px !important; }
  /* Save battery: slow kenburns right down on mobile */
  .hero-bg.kenburns { animation-duration: 40s; }
}
/* Phones: counter bar reads better as a centered 2×2 than 4 cramped columns */
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .stat .num { font-size: clamp(2rem, 9vw, 2.8rem); }
  .stat .lbl { font-size: .8rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-bg.kenburns { animation: none !important; }
  #grain { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .clip-wipe { clip-path: none !important; }
}

/* Frozen/throttled timeline fallback (offscreen capture, background tabs):
   show all content instantly with no animation so nothing is ever stuck hidden. */
html.no-anim *, html.no-anim *::before, html.no-anim *::after { transition: none !important; animation: none !important; }
html.no-anim .reveal, html.no-anim .clip-wipe { opacity: 1 !important; transform: none !important; clip-path: none !important; }
html.no-anim .hero-bg.kenburns { animation: none !important; }
html.no-anim #loader { display: none !important; }


/* ============================================================
   STATIC EXPORT OVERRIDES
   ============================================================ */
/* No-JS fallbacks: if JavaScript is disabled the page is still fully readable */
html:not(.has-js) .reveal { opacity: 1 !important; transform: none !important; }
html:not(.has-js) .clip-wipe { clip-path: none !important; }
html:not(.has-js) #loader { display: none !important; }
/* Footer link/about sizing (carried over from the design) */
#site-footer .foot-links a.foot-link,
#site-footer .foot-about,
#site-footer .foot-contact li > span,
#site-footer .foot-contact a.foot-link { font-size: 16px; }
/* Keep the single <nav> rendered on mobile so the nested drawer still works */
@media (max-width: 1040px) {
  #site-header .nav-main { display: flex !important; }
  #site-header .nav-main > a { display: none !important; }
}
