/* ============================================================
   CHIEF CABINETS — Design System
   Clean & modern. Monochrome brand + warm wood accent.
   ============================================================ */

/* ---------- Fonts (Fontshare) ---------- */
@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@400,500,700,800,900&f[]=general-sans@400,500,600,700&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Brand palette — monochrome + warm wood accent */
  --charcoal:      #1a1916;
  --charcoal-2:    #26241f;
  --ink:           #2b2a26;
  --graphite:      #4a4843;
  --stone:         #8a857c;

  --cream:         #f5f2ec;
  --cream-2:       #efebe2;
  --paper:         #fbfaf6;
  --white:         #ffffff;

  --accent:        #b6803a;   /* warm wood / amber */
  --accent-2:      #9a6a2e;
  --accent-soft:   #d8b985;

  /* Semantic — light mode (default) */
  --bg:            var(--paper);
  --bg-alt:        var(--cream);
  --bg-deep:       var(--charcoal);
  --surface:       var(--white);
  --surface-2:     var(--cream-2);
  --text:          var(--charcoal);
  --text-soft:     var(--graphite);
  --text-mute:     var(--stone);
  --border:        rgba(26,25,22,0.10);
  --border-strong: rgba(26,25,22,0.18);
  --on-deep:       #f0ece3;
  --on-deep-mute:  rgba(240,236,227,0.62);

  --shadow-sm: 0 1px 2px rgba(26,25,22,.06), 0 2px 6px rgba(26,25,22,.05);
  --shadow-md: 0 4px 14px rgba(26,25,22,.08), 0 12px 30px rgba(26,25,22,.06);
  --shadow-lg: 0 18px 50px rgba(26,25,22,.14);

  /* Type scale */
  --font-display: 'Cabinet Grotesk', -apple-system, system-ui, sans-serif;
  --font-body:    'General Sans', -apple-system, system-ui, sans-serif;

  --text-xs:   0.78rem;
  --text-sm:   0.9rem;
  --text-base: 1rem;
  --text-lg:   1.18rem;
  --text-xl:   1.45rem;
  --text-2xl:  1.9rem;
  --text-3xl:  2.5rem;
  --text-4xl:  3.4rem;
  --text-hero: clamp(2.6rem, 6vw, 5.2rem);

  /* Spacing / layout */
  --container: 1240px;
  --container-narrow: 880px;
  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --gutter:    clamp(1.25rem, 4vw, 2.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Dark mode ---------- */
[data-theme="dark"] {
  --bg:            #141310;
  --bg-alt:        #1c1a16;
  --bg-deep:       #0f0e0c;
  --surface:       #1f1d19;
  --surface-2:     #26231e;
  --text:          #f0ece3;
  --text-soft:     #cbc6ba;
  --text-mute:     #948e82;
  --border:        rgba(240,236,227,0.12);
  --border-strong: rgba(240,236,227,0.22);
  --on-deep:       #f0ece3;
  --on-deep-mute:  rgba(240,236,227,0.6);
  --accent:        #cf9a4e;
  --accent-2:      #b6803a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); font-weight: 700; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.lead { font-size: var(--text-lg); color: var(--text-soft); line-height: 1.6; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--container-narrow); }
section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 0.85rem; }
.section-head h2 { margin-bottom: 1rem; }

.bg-alt { background: var(--bg-alt); }
.bg-deep { background: var(--bg-deep); color: var(--on-deep); }
.bg-deep h1, .bg-deep h2, .bg-deep h3 { color: var(--on-deep); }
.bg-deep .lead { color: var(--on-deep-mute); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  padding: 0.95rem 1.7rem; border-radius: 100px;
  letter-spacing: 0.01em;
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #1a1308; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--charcoal); color: var(--cream); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
[data-theme="dark"] .btn-dark { background: var(--surface-2); color: var(--text); border: 1.5px solid var(--border-strong); }
[data-theme="dark"] .btn-dark:hover { background: var(--surface); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }
.bg-deep .btn-ghost { color: var(--on-deep); border-color: rgba(240,236,227,.28); }
.bg-deep .btn-ghost:hover { border-color: var(--accent); color: var(--accent-soft); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo .logo-light { display: none; }
[data-theme="dark"] .nav-logo .logo-dark { display: none; }
[data-theme="dark"] .nav-logo .logo-light { display: block; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: var(--text-sm); font-weight: 500; color: var(--text-soft);
  position: relative; transition: color .25s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0;
  background: var(--accent); transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta-mobile { display: none; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 0.9rem; }

/* ---------- Nav dropdown (Resources) ---------- */
.nav-dd { position: relative; }
/* Invisible bridge so the menu doesn't close in the gap between button and menu */
.nav-dd::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 18px; }
.nav-dd-toggle {
  font-size: var(--text-sm); font-weight: 500; color: var(--text-soft);
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem;
  font-family: inherit; padding: 0; transition: color .25s var(--ease);
}
.nav-dd-toggle svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav-dd:hover .nav-dd-toggle, .nav-dd:focus-within .nav-dd-toggle, .nav-dd.open .nav-dd-toggle { color: var(--text); }
.nav-dd:hover .nav-dd-toggle svg, .nav-dd:focus-within .nav-dd-toggle svg, .nav-dd.open .nav-dd-toggle svg { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 244px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .5rem;
  opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), transform .22s var(--ease); z-index: 60;
}
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dd-menu a {
  display: block; padding: .7rem .85rem; border-radius: var(--radius-sm);
  font-size: var(--text-sm); font-weight: 500; color: var(--text); transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-dd-menu a::after { display: none; }
.nav-dd-menu a:hover { background: var(--surface-2); color: var(--accent-2); }
.nav-dd-menu a span { display: block; font-size: var(--text-xs); font-weight: 400; color: var(--text-soft); margin-top: .15rem; }
.nav-dd-menu a:hover span { color: var(--text-soft); }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--text-soft);
  transition: background .25s var(--ease), color .25s, transform .25s;
}
.theme-toggle:hover { background: var(--surface-2); color: var(--text); transform: rotate(15deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 30px; height: 30px; justify-content: center; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.hero-copy h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); font-weight: 900; margin-bottom: 1.4rem; letter-spacing: -0.01em; line-height: 1.04; }
.hero-copy h1 .accent { color: var(--accent-2); }
.hero-copy .lead { margin-bottom: 2rem; max-width: 30rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; object-fit: cover; width: 100%; }
.hero-badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.3rem; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .85rem;
}
.hero-badge .num { font-family: var(--font-display); font-weight: 800; font-size: var(--text-2xl); color: var(--accent-2); line-height: 1; }
.hero-badge .lbl { font-size: var(--text-xs); color: var(--text-soft); line-height: 1.3; }

/* ---------- Trust strip ---------- */
.trust-strip { border-block: 1px solid var(--border); padding-block: 1.6rem; }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, 5vw, 4rem); }
.trust-item { display: flex; align-items: center; gap: .65rem; color: var(--text-soft); font-size: var(--text-sm); font-weight: 500; }
.trust-item svg { width: 20px; height: 20px; color: var(--accent-2); flex-shrink: 0; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card-media { overflow: hidden; aspect-ratio: 4/3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .5rem; }
.card-body p { color: var(--text-soft); font-size: var(--text-sm); margin-bottom: 1.1rem; flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: var(--text-sm); color: var(--accent-2); }
.card-link svg { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---------- Brand logos / lines ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.brand-chip {
  display: block; color: inherit; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1rem; text-align: center; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.brand-chip:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.brand-chip:hover .bname { color: var(--accent); }
.brand-chip .bname { font-family: var(--font-display); font-weight: 700; font-size: var(--text-base); letter-spacing: -0.01em; transition: color .3s; }
.brand-chip .btag { font-size: var(--text-xs); color: var(--text-mute); margin-top: .25rem; }
.brand-link {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
  color: var(--accent); text-decoration: none; transition: gap .3s var(--ease), opacity .3s;
}
.brand-link svg { width: 1em; height: 1em; }
.brand-link:hover { gap: .7rem; opacity: .82; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.split-copy h2 { margin-bottom: 1.1rem; }
.split-copy .lead { margin-bottom: 1.5rem; }
.feature-list { display: flex; flex-direction: column; gap: .85rem; margin-bottom: 1.8rem; }
.feature-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text-soft); font-size: var(--text-sm); }
.feature-list svg { width: 20px; height: 20px; color: var(--accent-2); flex-shrink: 0; margin-top: 2px; }

/* ---------- Service area ---------- */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.area-tiers { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.8rem; }
.tier {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.3rem 1.4rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: border-color .3s, transform .3s var(--ease);
}
.tier:hover { border-color: var(--accent); transform: translateX(4px); }
.tier-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.tier-1 .tier-dot { background: var(--accent); }
.tier-2 .tier-dot { background: var(--accent-soft); }
.tier-3 .tier-dot { background: var(--stone); }
.tier h4 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; margin-bottom: .25rem; }
.tier p { font-size: var(--text-sm); color: var(--text-soft); }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.map-wrap iframe, .map-wrap img { display: block; width: 100%; height: 440px; border: 0; object-fit: cover; }

/* ---------- Legal / prose ---------- */
.legal { max-width: 46rem; }
.legal .updated { font-size: var(--text-sm); color: var(--text-soft); margin-bottom: 2.5rem; }
.legal h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; margin: 2.5rem 0 .75rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { color: var(--text-soft); margin-bottom: 1rem; line-height: 1.7; }
.legal ul { margin: 0 0 1rem 1.1rem; color: var(--text-soft); line-height: 1.7; }
.legal ul li { margin-bottom: .5rem; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent-2); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 900; font-size: var(--text-4xl); color: var(--accent); line-height: 1; }
.stat .lbl { font-size: var(--text-sm); color: var(--on-deep-mute); margin-top: .5rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--text-3xl); margin-bottom: 1rem; }
.cta-band .lead { max-width: 42rem; margin: 0 auto 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Quote form ---------- */
.form-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.quote-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: .45rem; }
.field label .req { color: var(--accent-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; background: var(--bg);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); transition: border-color .25s var(--ease), box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: var(--text-xs); color: var(--text-mute); margin-top: .8rem; text-align: center; }
.contact-aside h3 { margin-bottom: 1rem; }
.contact-line { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.contact-line:last-child { border-bottom: none; }
.contact-line svg { width: 22px; height: 22px; color: var(--accent-2); flex-shrink: 0; margin-top: 3px; }
.contact-line .cl-label { font-size: var(--text-xs); color: var(--text-mute); text-transform: uppercase; letter-spacing: .1em; }
.contact-line .cl-val { font-weight: 600; font-size: var(--text-base); }
.contact-line .cl-val a:hover { color: var(--accent-2); }
.form-success { background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius-lg); padding: 2.5rem; text-align: center; box-shadow: var(--shadow-md); }
.form-success svg { width: 56px; height: 56px; color: var(--accent); margin: 0 auto 1rem; }
.form-success h3 { margin-bottom: .6rem; }
.form-success p { color: var(--text-soft); }
.hidden { display: none; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); }
.page-hero .eyebrow { display: block; margin-bottom: .9rem; }
.page-hero h1 { font-size: var(--text-4xl); margin-bottom: 1rem; max-width: 18ch; }
.page-hero .lead { max-width: 46rem; }
.breadcrumb { font-size: var(--text-sm); color: var(--text-mute); margin-bottom: 1.2rem; }
.breadcrumb a:hover { color: var(--accent-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--on-deep); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
[data-theme="dark"] .site-footer { background: var(--bg-deep); border-top: 1px solid var(--border); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: 2.5rem; border-bottom: 1px solid rgba(240,236,227,.12); }
.footer-brand img { height: 38px; margin-bottom: 1.1rem; }
.footer-brand p { color: var(--on-deep-mute); font-size: var(--text-sm); max-width: 26rem; }
.footer-col h4 { font-family: var(--font-display); font-size: var(--text-base); color: var(--on-deep); margin-bottom: 1.1rem; }
.footer-col a, .footer-col li { color: var(--on-deep-mute); font-size: var(--text-sm); display: block; margin-bottom: .65rem; transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--accent-soft); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.8rem; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { color: var(--on-deep-mute); font-size: var(--text-xs); }
.footer-bottom .made { color: var(--on-deep-mute); font-size: var(--text-xs); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 560px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .split, .area-grid, .form-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-links, .nav .btn-desktop { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.3rem;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 1.8rem var(--gutter) 2.2rem; box-shadow: var(--shadow-md);
  }
  .nav-links.open a { font-size: var(--text-lg); }
  .nav-links.open .btn { width: 100%; justify-content: center; margin-top: .5rem; }
  /* Resources dropdown becomes inline group on mobile */
  .nav-dd { width: 100%; }
  .nav-dd::after { display: none; }
  .nav-dd-toggle { font-size: var(--text-lg); }
  .nav-dd-menu,
  .nav-dd:hover .nav-dd-menu,
  .nav-dd:focus-within .nav-dd-menu {
    position: static; left: auto; top: auto; transform: none; opacity: 1; visibility: visible;
    min-width: 0; box-shadow: none; border: 0; background: none; padding: .4rem 0 0 .9rem;
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease);
  }
  .nav-dd.open .nav-dd-menu { max-height: 240px; }
  .nav-dd-menu a { font-size: var(--text-base); padding: .5rem 0; }
  .nav-dd-menu a span { display: none; }
  .nav-cta-mobile { display: inline-flex; }
  .nav-cta-mobile::after { display: none; }
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  .grid-2, .grid-3, .brand-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-badge { left: 0; bottom: -16px; padding: .8rem 1rem; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Hardware page ---------- */
.hw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.hw-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.hw-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hw-thumb { aspect-ratio: 4/3; background: #fff; display: grid; place-items: center; padding: 1.2rem; }
.hw-thumb img { width: 100%; height: 100%; object-fit: contain; }
.hw-body { padding: 1rem 1.15rem 1.25rem; }
.hw-body h3 { font-family: var(--font-display); font-size: var(--text-base); font-weight: 700; margin-bottom: .2rem; }
.hw-body .hw-finish { font-size: var(--text-sm); color: var(--text-soft); }
.hw-tag {
  display: inline-block; margin-top: .7rem; font-size: var(--text-xs); font-weight: 600; letter-spacing: .02em;
  padding: .3rem .7rem; border-radius: 999px; text-transform: uppercase;
}
.hw-tag.included { background: rgba(76,125,74,.12); color: #3f7a3d; }
.hw-tag.upcharge { background: rgba(182,128,58,.14); color: var(--accent-2); }
[data-theme="dark"] .hw-tag.included { background: rgba(120,180,118,.16); color: #8fca8c; }
[data-theme="dark"] .hw-tag.upcharge { background: rgba(207,154,78,.18); color: var(--accent-soft); }

.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.board-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.board-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.board-card img { display: block; width: 100%; height: auto; }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem 1.3rem; }
.board-head h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; }
.board-price { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--accent-2); white-space: nowrap; }
.board-price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--text-xs); color: var(--text-soft); text-align: right; }

@media (max-width: 980px) {
  .hw-grid { grid-template-columns: repeat(2, 1fr); }
  .board-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .hw-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* ---------- Steps / checklist ---------- */
.step-list { display: grid; gap: 1.25rem; max-width: 52rem; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm);
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--charcoal); color: var(--cream);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: var(--text-base);
}
[data-theme="dark"] .step-num { background: var(--accent); color: #1a1308; }
.step h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; margin-bottom: .3rem; }
.step p { color: var(--text-soft); line-height: 1.65; margin-bottom: .5rem; }
.step p:last-child { margin-bottom: 0; }
.callout {
  border-left: 3px solid var(--accent); background: var(--surface-2);
  padding: 1.3rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; max-width: 52rem;
}
.callout h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; margin-bottom: .4rem; }
.callout p { color: var(--text-soft); line-height: 1.65; margin-bottom: .6rem; }
.callout p:last-child { margin-bottom: 0; }
