/* ─────────────────────────────────────────────────────
   Primo Cabinets — design system
   Brand: refined modern craftsmanship
   ───────────────────────────────────────────────────── */

:root {
    --ink: #14181C;
    --ink-2: #1F2730;
    --charcoal: #2B3540;
    --muted: #6B7280;
    --muted-2: #9CA3AF;
    --line: #E7E1D6;
    --line-2: #DCD3C2;
    --bone: #F8F4ED;
    --cream: #F2EBDD;
    --paper: #FFFFFF;
    --walnut: #6B4A2B;
    --walnut-2: #8C6B4A;
    --brass: #B58A4D;
    --brass-2: #D6B179;
    --sage: #8DA48B;
    --sage-2: #6B8669;
    --olive: #5A6B4A;
    --shadow-sm: 0 1px 2px rgba(20,24,28,0.06);
    --shadow: 0 8px 24px rgba(20,24,28,0.08);
    --shadow-lg: 0 24px 60px rgba(20,24,28,0.16);
    --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --script: 'Italianno', 'Dancing Script', cursive;
    --max: 1280px;
    --gutter: clamp(20px, 5vw, 64px);
    --radius: 4px;
    --radius-lg: 16px;
    --t: 320ms cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bone);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Typography ─────────────────────────────── */
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
.script { font-family: var(--script); font-weight: 400; }
.eyebrow {
    font-family: var(--sans);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--walnut);
    font-weight: 600;
}
h1, .h1 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(40px, 6.2vw, 84px);
    line-height: 1.02;
    letter-spacing: -.02em;
    color: var(--ink);
}
h2, .h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(32px, 4.4vw, 56px);
    line-height: 1.05;
    letter-spacing: -.015em;
}
h3, .h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.01em; }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--charcoal); line-height: 1.6; max-width: 620px; }

/* ─── Layout ─────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section { padding: clamp(64px, 9vw, 140px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .eyebrow { display: inline-block; margin-bottom: 14px; }
.section-head h2 { margin-bottom: 18px; }

/* ─── Buttons ────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 28px;
    font-size: 14px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    border-radius: var(--radius);
    transition: all var(--t);
    border: 1px solid transparent;
    line-height: 1;
    white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bone); }
.btn-primary:hover { background: var(--walnut); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bone); }
.btn-light { background: var(--bone); color: var(--ink); }
.btn-light:hover { background: var(--paper); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-link { background: none; color: var(--ink); padding: 0; text-transform: none; letter-spacing: 0; font-size: 15px; border-bottom: 1px solid var(--ink); border-radius: 0; }
.btn-sm { padding: 11px 18px; font-size: 12px; }
.btn-lg { padding: 20px 36px; font-size: 15px; }

/* ─── Top announcement bar ───────────────────── */
.announce {
    background: var(--ink);
    color: var(--bone);
    text-align: center;
    padding: 11px var(--gutter);
    font-size: 13px;
    letter-spacing: .03em;
    position: relative;
    z-index: 60;
}
.announce strong { color: var(--brass-2); margin-right: 6px; font-weight: 600; }
.announce a { text-decoration: underline; text-underline-offset: 3px; }

/* ─── Nav ────────────────────────────────────── */
.nav {
    position: sticky; top: 0;
    background: rgba(248, 244, 237, .92);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
    z-index: 50;
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0;
}
.brand {
    display: inline-flex; align-items: center; gap: 12px;
}
.logo-mark {
    width: 44px; height: 44px;
    background: var(--ink);
    border-radius: 4px;
    padding: 7px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background var(--t);
}
.brand:hover .logo-mark { background: var(--walnut); }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand .word {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -.01em;
    color: var(--ink);
    line-height: 1;
}
.brand .mark {
    font-family: var(--script);
    font-size: 24px;
    color: var(--walnut);
    line-height: 1;
    margin-left: -2px;
}
.footer .logo-mark { background: rgba(248,244,237,.06); }
.footer .brand:hover .logo-mark { background: var(--walnut); }
@media (max-width: 600px) {
    .logo-mark { width: 38px; height: 38px; padding: 6px; }
    .brand .word { font-size: 22px; }
    .brand .mark { font-size: 20px; }
}
.nav-links {
    display: flex; gap: 36px; align-items: center;
}
.nav-links a {
    font-size: 14px; font-weight: 500;
    color: var(--charcoal);
    transition: color var(--t);
    position: relative;
    letter-spacing: .02em;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
    content: '';
    position: absolute; bottom: -6px; left: 0;
    width: 0; height: 1px;
    background: var(--walnut);
    transition: width var(--t);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: inline-flex; align-items: center; gap: 16px; }
.nav-phone {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--charcoal); font-size: 14px; font-weight: 500;
}
.nav-phone svg { width: 16px; height: 16px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; color: var(--ink); }

/* ─── Hero ───────────────────────────────────── */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--ink);
}
.hero-bg {
    position: absolute; inset: 0;
    background-image: url('https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=2400&q=85');
    background-size: cover;
    background-position: center;
    filter: brightness(.62) saturate(.92);
    transform: scale(1.04);
    transition: transform 1.8s cubic-bezier(.2,.7,.2,1);
}
.hero.loaded .hero-bg { transform: scale(1); }
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,24,28,0) 30%, rgba(20,24,28,.5) 70%, rgba(20,24,28,.85) 100%),
                linear-gradient(110deg, rgba(20,24,28,.65) 0%, rgba(20,24,28,.15) 55%, rgba(20,24,28,0) 100%);
    pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; width: 100%; }
.hero-content { max-width: 760px; color: var(--bone); }
.hero .eyebrow { color: var(--brass-2); }
.hero h1 {
    color: var(--bone);
    margin: 18px 0 24px;
}
.hero h1 em {
    font-style: italic;
    color: var(--brass-2);
    font-weight: 400;
}
.hero .lede {
    color: rgba(248,244,237,.92);
    font-size: clamp(17px, 1.5vw, 21px);
    margin-bottom: 36px;
    max-width: 580px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn-primary { background: var(--bone); color: var(--ink); }
.hero-actions .btn-primary:hover { background: var(--brass-2); color: var(--ink); }
.hero-actions .btn-ghost { color: var(--bone); border-color: rgba(248,244,237,.5); }
.hero-actions .btn-ghost:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

.hero-meta {
    display: flex; gap: clamp(24px, 4vw, 56px);
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid rgba(248,244,237,.18);
    flex-wrap: wrap;
}
.hero-meta-item { color: rgba(248,244,237,.92); }
.hero-meta-item .num {
    font-family: var(--serif);
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 500;
    color: var(--brass-2);
    line-height: 1;
}
.hero-meta-item .lbl {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-top: 8px;
    color: rgba(248,244,237,.7);
}

/* ─── Trust bar ──────────────────────────────── */
.trust {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 36px 0;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    align-items: center;
}
.trust-item {
    display: flex; align-items: center; gap: 14px;
    color: var(--charcoal);
}
.trust-item svg {
    width: 32px; height: 32px;
    color: var(--walnut);
    flex-shrink: 0;
}
.trust-item .t-title { font-weight: 600; font-size: 15px; color: var(--ink); }
.trust-item .t-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ─── Door styles section ────────────────────── */
.doors {
    background: var(--bone);
}
.doors-head {
    display: flex; justify-content: space-between; align-items: end;
    gap: 40px; flex-wrap: wrap;
    margin-bottom: clamp(40px, 6vw, 64px);
}
.doors-head .section-head { margin-bottom: 0; }
.doors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.door-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    cursor: pointer;
    position: relative;
}
.door-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--line-2);
}
.door-vis {
    aspect-ratio: 4/5;
    position: relative;
    overflow: hidden;
    background: var(--cream);
}
.door-photo {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.door-card:hover .door-photo { transform: scale(1.05); }
.door-photo::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(20,24,28,.45) 100%);
    pointer-events: none;
}
/* finish-tint: now uses mix-blend-mode: color which only colors the cabinet on
   product photos that already isolate the door (white background stays white). */
.finish-tint {
    position: absolute; inset: 0;
    background: transparent;
    mix-blend-mode: color;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    transition: opacity .5s cubic-bezier(.2,.7,.2,1), background-color .5s;
}
.finish-tint.active { opacity: 0.85; }

/* SVG cabinet door illustration system */
.cab-door {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--door-bg, #F4EDE0);
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 8px 24px -8px rgba(0,0,0,.18);
    transition: background-color .5s cubic-bezier(.2,.7,.2,1);
    position: relative;
    overflow: hidden;
}
.cab-door svg { width: 86%; height: 86%; display: block; }
.cab-door .door-paint {
    fill: var(--door-color, #F4EDE0);
    stroke: var(--door-trim, rgba(0,0,0,.18));
    stroke-width: 1.2;
    transition: fill .5s cubic-bezier(.2,.7,.2,1);
}
.cab-door .door-shadow { fill: rgba(0,0,0,.10); }
.cab-door .door-highlight { fill: rgba(255,255,255,.18); }
.cab-door .door-pull {
    fill: var(--hardware, #B58A4D);
    transition: fill .3s;
}

/* Per-card label */
.cab-finish-label {
    margin-top: 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 600;
    color: var(--walnut);
}
.style-card .vis-wrap, .door-card .door-vis { position: relative; }
.swatch, .swatch-mini { cursor: pointer; transition: transform .2s, box-shadow .2s; }
.swatch:hover, .swatch-mini:hover { transform: scale(1.3); z-index: 2; }
.swatch.active, .swatch-mini.active {
    box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--paper);
    transform: scale(1.2);
}
/* NorthPoint finish-chip click feedback */
.finish-chip { cursor: pointer; transition: all .2s; }
.finish-chip:hover { background: var(--cream); border-color: var(--walnut); transform: translateY(-1px); }
.finish-chip.active { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.finish-chip.active .swatch-dot { border-color: rgba(255,255,255,.4); }
.finish-flash {
    position: fixed; bottom: 100px; left: 50%;
    transform: translate(-50%, 12px); opacity: 0;
    background: var(--ink); color: var(--bone);
    padding: 10px 18px; border-radius: 999px;
    font-size: 13px; font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 200; pointer-events: none;
    transition: all .25s;
}
.finish-flash.show { opacity: 1; transform: translate(-50%, 0); }
.door-tag {
    position: absolute;
    bottom: 14px; left: 14px;
    z-index: 2;
    background: rgba(248, 244, 237, 0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--ink);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 600;
}
.door-mock {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    border-radius: 6px;
    box-shadow: 0 30px 60px -20px rgba(20,24,28,.35), inset 0 0 0 1px rgba(20,24,28,.08);
    position: relative;
    transition: transform var(--t);
}
.door-card:hover .door-mock { transform: translateY(-4px); }

/* Door style mockup variants — drawn in CSS */
.door-mock.shaker {
    background: #F4EDE0;
    padding: 14% 14% 26% 14%;
}
.door-mock.shaker::before {
    content: '';
    flex: 1;
    background: #F4EDE0;
    border: 2px solid rgba(20,24,28,.12);
    border-radius: 2px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.door-mock.shaker::after {
    content: '';
    position: absolute;
    bottom: 14%; left: 50%;
    transform: translateX(-50%);
    width: 32%; height: 6px;
    background: var(--brass);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,.18);
}
.door-mock.slab {
    background: linear-gradient(135deg, #1A1D1F 0%, #2A2D30 100%);
    padding: 0;
}
.door-mock.slab::after {
    content: '';
    position: absolute;
    right: 8%; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 40%;
    background: #444;
    border-radius: 4px;
}
.door-mock.raised {
    background: linear-gradient(180deg, #6B4423 0%, #4F3119 100%);
    padding: 12%;
}
.door-mock.raised::before {
    content: '';
    flex: 1;
    background: linear-gradient(180deg, #8B5E3C 0%, #6B4423 100%);
    border-radius: 8px 8px 4px 4px;
    box-shadow: inset 0 0 20px rgba(0,0,0,.3);
    position: relative;
}
.door-mock.raised::after {
    content: '';
    position: absolute;
    top: 28%; left: 50%;
    transform: translateX(-50%);
    width: 14px; height: 14px;
    background: var(--brass);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,.4);
}
.door-mock.beaded {
    background: #B5C4AD;
    padding: 14%;
}
.door-mock.beaded::before {
    content: '';
    flex: 1;
    background: #C4D2BC;
    border: 2px solid rgba(20,24,28,.18);
    border-radius: 2px;
    outline: 2px solid rgba(20,24,28,.06);
    outline-offset: 4px;
}
.door-mock.beaded::after {
    content: '';
    position: absolute;
    top: 28%; right: 18%;
    width: 11px; height: 11px;
    background: #C0C0C0;
    border-radius: 50%;
    box-shadow: 0 2px 3px rgba(0,0,0,.3);
}
.door-mock.rustic {
    background: linear-gradient(180deg, #B8884E 0%, #9A6D3D 100%);
    padding: 0;
    overflow: hidden;
}
.door-mock.rustic::before {
    content: '';
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(180deg, transparent 0 14px, rgba(0,0,0,.08) 14px 15px),
        radial-gradient(circle at 30% 30%, rgba(0,0,0,.15) 0 4px, transparent 5px),
        radial-gradient(circle at 70% 65%, rgba(0,0,0,.12) 0 5px, transparent 6px);
}
.door-mock.rustic::after {
    content: '';
    position: absolute;
    top: 50%; right: 12%;
    transform: translateY(-50%);
    width: 8px; height: 50%;
    background: #2A2D30;
    border-radius: 2px;
}
.door-mock.european {
    background: linear-gradient(135deg, #C8C9CC 0%, #DCDDDF 50%, #C8C9CC 100%);
    padding: 0;
    overflow: hidden;
}
.door-mock.european::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 45%, transparent 55%);
}

.door-meta { padding: 26px 28px 28px; }
.door-meta h3 { margin-bottom: 6px; }
.door-meta p { color: var(--muted); font-size: 14px; }
.door-finishes {
    display: flex; gap: 6px; margin-top: 16px;
}
.door-finishes .swatch {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid var(--paper);
    box-shadow: 0 0 0 1px var(--line-2);
}
.door-finishes .more {
    font-size: 12px; color: var(--muted);
    align-self: center; margin-left: 6px;
}

/* ─── Finishes / colors section ──────────────── */
.finishes {
    background: var(--paper);
    border-top: 1px solid var(--line);
}
.finish-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin-top: 36px;
}
.finish-tile {
    aspect-ratio: 1/1;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(20,24,28,.06), 0 6px 14px rgba(20,24,28,.06);
    cursor: pointer;
    transition: transform var(--t);
    position: relative;
    overflow: hidden;
}
.finish-tile:hover { transform: scale(1.06); z-index: 2; }
.finish-tile .lbl {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: rgba(20,24,28,.85); color: var(--bone);
    padding: 8px 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-align: center;
    opacity: 0;
    transition: opacity var(--t);
}
.finish-tile:hover .lbl { opacity: 1; }

/* ─── Gallery ────────────────────────────────── */
.gallery { background: var(--bone); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 200px;
    gap: 14px;
}
.g-item {
    overflow: hidden;
    border-radius: var(--radius-lg);
    position: relative;
    background: var(--cream);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.g-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.g-item:hover img { transform: scale(1.06); }
.g-item .g-meta {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 22px;
    background: linear-gradient(180deg, transparent 0%, rgba(20,24,28,.85) 100%);
    color: var(--bone);
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--t);
}
.g-item:hover .g-meta { transform: translateY(0); opacity: 1; }
.g-item .g-meta .t { font-family: var(--serif); font-size: 22px; }
.g-item .g-meta .s { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .7; margin-top: 4px; }

.g-1 { grid-column: span 7; grid-row: span 2; }
.g-2 { grid-column: span 5; grid-row: span 1; }
.g-3 { grid-column: span 5; grid-row: span 1; }
.g-4 { grid-column: span 4; grid-row: span 2; }
.g-5 { grid-column: span 4; grid-row: span 1; }
.g-6 { grid-column: span 4; grid-row: span 1; }

/* ─── Process section ────────────────────────── */
.process {
    background: var(--ink);
    color: var(--bone);
    overflow: hidden;
    position: relative;
}
.process::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(181,138,77,.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.process .eyebrow { color: var(--brass-2); }
.process h2 { color: var(--bone); }
.process .lede { color: rgba(248,244,237,.78); }
.process-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    align-items: start;
}
.steps-list { display: flex; flex-direction: column; gap: 0; }
.step-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid rgba(248,244,237,.14);
    align-items: start;
    cursor: pointer;
    transition: padding var(--t);
}
.step-item:last-child { border-bottom: 1px solid rgba(248,244,237,.14); }
.step-item:hover { padding-left: 8px; }
.step-num {
    font-family: var(--serif);
    font-size: 28px;
    color: var(--brass-2);
    line-height: 1;
    padding-top: 4px;
}
.step-content h3 { color: var(--bone); margin-bottom: 6px; font-size: 22px; }
.step-content p { color: rgba(248,244,237,.72); font-size: 14.5px; line-height: 1.6; }

.process-callout {
    background: rgba(248,244,237,.04);
    border: 1px solid rgba(248,244,237,.12);
    padding: 40px;
    border-radius: var(--radius-lg);
    position: sticky;
    top: 100px;
}
.process-callout .quote {
    font-family: var(--script);
    font-size: 36px;
    color: var(--brass-2);
    line-height: 1.1;
    margin-bottom: 18px;
}
.process-callout p { color: rgba(248,244,237,.85); margin-bottom: 28px; line-height: 1.7; }

/* ─── Brands ─────────────────────────────────── */
.brands { background: var(--paper); padding: 60px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 40px; flex-wrap: wrap;
}
.brands-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .25em;
    color: var(--muted);
    font-weight: 600;
}
.brand-logo {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--ink);
    font-weight: 500;
    letter-spacing: -.01em;
    opacity: .7;
    transition: opacity var(--t);
}
.brand-logo:hover { opacity: 1; }
.brand-logo small { font-family: var(--sans); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; display: block; color: var(--muted); margin-top: 2px; font-weight: 600; }

/* ─── Reviews ────────────────────────────────── */
.reviews { background: var(--bone); }
.reviews-head {
    display: flex; justify-content: space-between; align-items: end;
    gap: 40px; flex-wrap: wrap;
    margin-bottom: 50px;
}
.google-badge {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 14px 22px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.google-badge .stars { color: #F5B800; font-size: 16px; letter-spacing: 1px; }
.google-badge .num { font-weight: 700; font-size: 15px; color: var(--ink); }
.google-badge .lbl { font-size: 12px; color: var(--muted); }
.google-badge svg { width: 20px; height: 20px; }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.review {
    background: var(--paper);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    transition: transform var(--t), box-shadow var(--t);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review .stars { color: #F5B800; font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }
.review .quote { font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--ink); margin-bottom: 20px; }
.review .who { display: flex; align-items: center; gap: 12px; }
.review .av {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--walnut);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 14px;
}
.review .name { font-size: 14px; font-weight: 600; color: var(--ink); }
.review .meta { font-size: 12px; color: var(--muted); margin-top: 1px; }

/* ─── Portal teaser ──────────────────────────── */
.portal-teaser {
    background: var(--cream);
    position: relative;
    overflow: hidden;
}
.portal-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}
.portal-content .eyebrow { color: var(--walnut); }
.portal-features {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 32px 0;
}
.portal-features li {
    font-size: 14.5px; color: var(--charcoal);
    display: flex; gap: 10px; align-items: start;
    line-height: 1.5;
}
.portal-features li svg {
    width: 18px; height: 18px;
    color: var(--walnut);
    flex-shrink: 0; margin-top: 2px;
}
.portal-mock {
    background: var(--paper);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--line);
}
.portal-mock-bar {
    background: var(--bone);
    padding: 12px 18px;
    display: flex; gap: 6px; align-items: center;
    border-bottom: 1px solid var(--line);
}
.portal-mock-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.portal-mock-bar .url {
    margin-left: 16px;
    font-size: 12px;
    color: var(--muted);
    font-family: var(--sans);
}
.portal-mock-body {
    padding: 26px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.pm-tile {
    padding: 18px;
    background: var(--bone);
    border-radius: 8px;
    border: 1px solid var(--line);
}
.pm-tile .pm-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.pm-tile .pm-val { font-family: var(--serif); font-size: 24px; color: var(--ink); }
.pm-tile.full { grid-column: span 2; }
.pm-progress { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.pm-progress > div { height: 100%; background: var(--walnut); border-radius: 4px; width: 65%; }

/* ─── Final CTA ──────────────────────────────── */
.cta {
    background: var(--paper);
    border-top: 1px solid var(--line);
}
.cta-inner {
    background: var(--ink);
    border-radius: 24px;
    padding: clamp(48px, 8vw, 96px) clamp(36px, 6vw, 80px);
    color: var(--bone);
    text-align: center;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(181,138,77,.18) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(181,138,77,.10) 0%, transparent 50%);
}
.cta h2 { color: var(--bone); margin-bottom: 18px; max-width: 760px; margin-left: auto; margin-right: auto; }
.cta h2 em { font-style: italic; color: var(--brass-2); font-weight: 400; }
.cta .lede { color: rgba(248,244,237,.85); margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-actions .btn-primary { background: var(--bone); color: var(--ink); }
.cta-actions .btn-primary:hover { background: var(--brass-2); color: var(--ink); }
.cta-actions .btn-ghost { color: var(--bone); border-color: rgba(248,244,237,.5); }
.cta-actions .btn-ghost:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

/* ─── Footer ─────────────────────────────────── */
.footer {
    background: var(--ink);
    color: rgba(248,244,237,.78);
    padding: clamp(60px, 8vw, 100px) 0 36px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}
.footer .brand .word { color: var(--bone); }
.footer-tag { color: rgba(248,244,237,.7); margin-top: 12px; max-width: 320px; line-height: 1.7; font-size: 14px; }
.footer-col h4 {
    font-size: 12px; text-transform: uppercase; letter-spacing: .15em;
    color: var(--brass-2); font-family: var(--sans); font-weight: 600;
    margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col ul li a { color: rgba(248,244,237,.7); transition: color var(--t); }
.footer-col ul li a:hover { color: var(--brass-2); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(248,244,237,.2);
    display: flex; align-items: center; justify-content: center;
    color: rgba(248,244,237,.78);
    transition: all var(--t);
}
.footer-social a:hover { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 28px;
    border-top: 1px solid rgba(248,244,237,.14);
    flex-wrap: wrap; gap: 16px;
    font-size: 13px;
    color: rgba(248,244,237,.55);
}
.footer-bottom a { transition: color var(--t); }
.footer-bottom a:hover { color: var(--brass-2); }

/* ─── Sticky design CTA (chat-style) ─────────── */
.sticky-cta {
    position: fixed; bottom: 24px; right: 24px;
    z-index: 80;
    display: flex; flex-direction: column; gap: 12px;
    align-items: end;
}
.sticky-bubble {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: var(--shadow-lg);
    max-width: 280px;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--t);
    pointer-events: none;
}
.sticky-bubble.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.sticky-bubble .b-title { font-family: var(--serif); font-size: 20px; line-height: 1.2; margin-bottom: 6px; }
.sticky-bubble .b-text { font-size: 13.5px; color: var(--charcoal); line-height: 1.5; margin-bottom: 14px; }
.sticky-bubble .b-actions { display: flex; gap: 8px; }
.sticky-bubble .b-actions .btn { flex: 1; }
.sticky-fab {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--bone);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 28px rgba(20,24,28,.3);
    transition: all var(--t);
    position: relative;
}
.sticky-fab:hover { background: var(--walnut); transform: scale(1.06); }
.sticky-fab svg { width: 26px; height: 26px; }
.sticky-fab .pulse {
    position: absolute; inset: -4px;
    border-radius: 50%;
    background: var(--walnut);
    opacity: .35;
    animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
    0% { transform: scale(.95); opacity: .4; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ─── Modal (Start Design) ───────────────────── */
.modal {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(20,24,28,.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t);
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card {
    background: var(--paper);
    border-radius: 20px;
    width: 100%; max-width: 620px;
    max-height: 92vh;
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px) scale(.98);
    transition: transform var(--t);
}
.modal.open .modal-card { transform: translateY(0) scale(1); }
.modal-head {
    padding: 26px 32px 16px;
    border-bottom: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center;
}
.modal-head .progress {
    flex: 1;
    height: 3px;
    background: var(--line);
    border-radius: 4px;
    margin-right: 18px;
    overflow: hidden;
}
.modal-head .progress > div {
    height: 100%; background: var(--walnut);
    transition: width .4s ease;
}
.modal-head .step-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .15em; margin-right: 18px; }
.modal-close { width: 36px; height: 36px; border-radius: 50%; background: var(--bone); color: var(--ink); display: flex; align-items: center; justify-content: center; transition: background var(--t); }
.modal-close:hover { background: var(--line); }
.modal-close svg { width: 16px; height: 16px; }

.modal-body { padding: 32px; overflow-y: auto; }
.modal-body h3 { margin-bottom: 8px; }
.modal-body .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 28px; }
.modal-step { display: none; }
.modal-step.active { display: block; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px 18px;
    cursor: pointer;
    transition: all var(--t);
    text-align: left;
    background: var(--paper);
    display: flex; align-items: start; gap: 14px;
}
.choice:hover { border-color: var(--walnut); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.choice.selected { border-color: var(--ink); background: var(--bone); }
.choice-icon {
    width: 44px; height: 44px;
    background: var(--cream);
    color: var(--walnut);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.choice-icon svg { width: 22px; height: 22px; }
.choice-text .t { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.choice-text .s { font-size: 13px; color: var(--muted); }

.field-group { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--charcoal); }
.field input, .field textarea, .field select {
    padding: 13px 16px;
    border: 1px solid var(--line-2);
    background: var(--paper);
    border-radius: 8px;
    font-size: 15px;
    color: var(--ink);
    transition: border-color var(--t), box-shadow var(--t);
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--walnut);
    box-shadow: 0 0 0 3px rgba(107,74,43,.1);
}
.field textarea { resize: vertical; min-height: 90px; }

.modal-foot {
    padding: 20px 32px 28px;
    display: flex; justify-content: space-between; gap: 12px;
    border-top: 1px solid var(--line);
}
.modal-foot .btn-back { background: none; color: var(--muted); padding: 14px 0; }
.modal-foot .btn-back:hover { color: var(--ink); }

.modal-success { text-align: center; padding: 20px; }
.modal-success .check {
    width: 72px; height: 72px;
    margin: 0 auto 24px;
    background: var(--sage-2);
    color: var(--bone);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.modal-success .check svg { width: 36px; height: 36px; }

/* ─── Quote / Sketch upload page ─────────────── */
.quote-hero {
    padding: 80px 0 40px;
    background: var(--bone);
    border-bottom: 1px solid var(--line);
}
.quote-form {
    background: var(--paper);
    padding: 60px 0;
    border-bottom: 1px solid var(--line);
}
.quote-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}
.quote-side { position: sticky; top: 100px; }
.quote-side h3 { margin-bottom: 14px; }
.quote-side p { color: var(--muted); margin-bottom: 24px; line-height: 1.65; }
.quote-side ul li {
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--charcoal);
    display: flex; align-items: start; gap: 10px;
}
.quote-side ul li:first-child { border-top: 0; }
.quote-side ul li svg { width: 18px; height: 18px; color: var(--walnut); flex-shrink: 0; margin-top: 2px; }
.quote-form-card {
    background: var(--bone);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
}
.quote-form-card .field-group { gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dropzone {
    border: 2px dashed var(--line-2);
    background: var(--paper);
    border-radius: 12px;
    padding: 36px;
    text-align: center;
    cursor: pointer;
    transition: all var(--t);
}
.dropzone:hover, .dropzone.drag { border-color: var(--walnut); background: var(--cream); }
.dropzone svg { width: 36px; height: 36px; color: var(--walnut); margin: 0 auto 12px; display: block; }
.dropzone .drop-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.dropzone .drop-sub { font-size: 13px; color: var(--muted); }
.dropzone input[type=file] { display: none; }
.file-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.file-list .file-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; background: var(--paper);
    border: 1px solid var(--line); border-radius: 8px;
    font-size: 13px;
}
.file-list .file-row .name { display: flex; align-items: center; gap: 10px; }
.file-list .file-row svg { width: 16px; height: 16px; color: var(--walnut); }
.file-list .file-row button { color: var(--muted); font-size: 12px; }
.file-list .file-row button:hover { color: var(--ink); }

/* ─── Portal page ───────────────────────────── */
.portal-page {
    min-height: 80vh;
    background: var(--bone);
    padding: 60px 0;
}
.portal-card {
    background: var(--paper);
    max-width: 460px;
    margin: 40px auto;
    padding: 48px 44px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.portal-card .eyebrow { color: var(--walnut); display: block; text-align: center; margin-bottom: 8px; }
.portal-card h2 { text-align: center; font-size: 32px; margin-bottom: 8px; }
.portal-card p.sub { text-align: center; color: var(--muted); margin-bottom: 32px; }
.portal-card .field-group { gap: 18px; }
.portal-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 18px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .15em; }
.portal-divider::before, .portal-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.portal-card .alt-link { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.portal-card .alt-link a { color: var(--walnut); border-bottom: 1px solid var(--walnut); }

/* ─── Generic page hero ─────────────────────── */
.page-hero {
    padding: 80px 0 48px;
    background: var(--bone);
    border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 12px; }
.page-hero .lede { max-width: 680px; }

.crumbs {
    display: flex; gap: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--muted);
}
.crumbs a { color: var(--muted); transition: color var(--t); }
.crumbs a:hover { color: var(--ink); }

/* ─── Doors page (full catalog) ─────────────── */
.doors-catalog { padding: 60px 0; background: var(--paper); }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.cat-card {
    background: var(--bone);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: all var(--t);
}
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-vis {
    aspect-ratio: 16/10;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}
.cat-photo {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.cat-card:hover .cat-photo { transform: scale(1.04); }
.cat-card .door-mock { width: 60%; height: 100%; }
.cat-meta { padding: 28px 32px 32px; }
.cat-meta h3 { margin-bottom: 8px; }
.cat-meta p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.cat-finishes-label { font-size: 11px; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.cat-finish-row {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.cat-finish-row .finish-tile {
    width: 36px; height: 36px;
    aspect-ratio: 1;
    border-radius: 8px;
    margin: 0;
}

/* ─── Contact page ──────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info { padding-right: 20px; }
.contact-info h3 { margin-bottom: 16px; }
.contact-info p { color: var(--charcoal); line-height: 1.7; margin-bottom: 32px; }
.contact-info ul li { padding: 16px 0; border-top: 1px solid var(--line); display: flex; gap: 14px; align-items: start; }
.contact-info ul li:first-child { border-top: 0; }
.contact-info ul li svg { width: 22px; height: 22px; color: var(--walnut); flex-shrink: 0; }
.contact-info ul li .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact-info ul li .val { font-weight: 500; color: var(--ink); margin-top: 2px; }
.contact-info ul li .val a { color: var(--ink); border-bottom: 1px solid var(--line-2); transition: border-color var(--t); }
.contact-info ul li .val a:hover { border-color: var(--walnut); }

/* ─── FAQ ───────────────────────────────────── */
.faq { background: var(--paper); border-top: 1px solid var(--line); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
    border-top: 1px solid var(--line);
    padding: 24px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
    width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    text-align: left;
    font-family: var(--serif);
    font-size: clamp(20px, 2vw, 24px);
    color: var(--ink);
    transition: color var(--t);
    gap: 20px;
}
.faq-q:hover { color: var(--walnut); }
.faq-q .icon {
    width: 32px; height: 32px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all var(--t);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 22px;
    line-height: 1;
}
.faq-item.open .faq-q .icon { background: var(--ink); color: var(--bone); border-color: var(--ink); transform: rotate(45deg); }
.faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height .5s cubic-bezier(.2,.7,.2,1);
}
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner { padding: 16px 0 0; color: var(--charcoal); line-height: 1.7; max-width: 720px; font-size: 15.5px; }

/* ─── Toast ─────────────────────────────────── */
.toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translate(-50%, 24px);
    background: var(--ink); color: var(--bone);
    padding: 14px 22px;
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    z-index: 200;
    opacity: 0;
    transition: all var(--t);
    pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ─── Reveal animations ─────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: all .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d-1 { transition-delay: .1s; }
.reveal-d-2 { transition-delay: .2s; }
.reveal-d-3 { transition-delay: .3s; }

/* ─── Mobile nav drawer (hidden by default everywhere) ─── */
.nav-mobile {
    display: none;
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 20px var(--gutter);
}
.nav-mobile.open { display: block; }

/* ─── Responsive ────────────────────────────── */
@media (max-width: 980px) {
    .nav-links, .nav-phone { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav-mobile a { display: block; padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
    .nav-mobile a:last-of-type { border-bottom: 0; }
    .nav-mobile .btn { display: flex; margin-top: 14px; width: 100%; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .doors-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .gallery-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 180px; }
    .g-1 { grid-column: span 6; grid-row: span 2; }
    .g-2, .g-3 { grid-column: span 3; }
    .g-4 { grid-column: span 6; grid-row: span 2; }
    .g-5, .g-6 { grid-column: span 3; }
    .process-steps { grid-template-columns: 1fr; gap: 40px; }
    .process-callout { position: static; }
    .reviews-grid { grid-template-columns: 1fr; }
    .portal-grid { grid-template-columns: 1fr; gap: 50px; }
    .quote-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .quote-side { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
    .finish-grid { grid-template-columns: repeat(6, 1fr); }
    .cat-grid { grid-template-columns: 1fr; }
    .hero { min-height: 76vh; }
}
@media (max-width: 600px) {
    .doors-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; gap: 18px; }
    .footer-grid { grid-template-columns: 1fr; }
    .row { grid-template-columns: 1fr; }
    .choice-grid { grid-template-columns: 1fr; }
    .portal-features { grid-template-columns: 1fr; }
    .finish-grid { grid-template-columns: repeat(4, 1fr); }
    .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; }
    .g-1, .g-4 { grid-column: span 4; }
    .g-2, .g-3, .g-5, .g-6 { grid-column: span 2; }
    .modal-card { max-height: 96vh; }
    .modal-body { padding: 24px; }
    .modal-head { padding: 18px 24px 12px; }
    .modal-foot { padding: 16px 24px 22px; }
    .sticky-cta { bottom: 16px; right: 16px; }
    .reviews-head, .doors-head { flex-direction: column; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ─── Mobile polish (≤ 760px) ─────────────────────────────────────
   Targets phones/tablets. Overrides inline styles where needed via
   higher specificity and !important on layout-critical rules so
   any inline `style="grid-template-columns:..."` collapses cleanly. */
@media (max-width: 760px) {
    /* Generic 2-column wrap (Welcome, Quality Features, etc.) → stack */
    .wrap-2col { grid-template-columns: 1fr !important; gap: 28px !important; align-items: start !important; }
    .wrap-2col > div[style*="padding-top"] { padding-top: 0 !important; }

    /* Reduce all section padding */
    section[style*="padding"] { padding-top: clamp(48px, 9vw, 72px) !important; padding-bottom: clamp(48px, 9vw, 72px) !important; }

    /* Hero — shorter on phones */
    .hero { min-height: 62vh; }
    .hero h1 { font-size: clamp(34px, 8vw, 46px) !important; line-height: 1.05 !important; }
    .hero .lede, .hero p { font-size: 15px !important; line-height: 1.55 !important; }
    .hero .hero-cta { flex-wrap: wrap; gap: 10px; }
    .hero .hero-cta .btn { flex: 1 1 100%; min-width: 0; }

    /* Top promo bar */
    .promo { font-size: 12px; padding: 8px 14px; }

    /* Nav — hide the desktop CTA button at this size, hamburger only */
    .nav-cta .btn { padding: 8px 12px; font-size: 12px; letter-spacing: .04em; }
    .nav-inner { gap: 8px; }
    .brand .word, .brand .mark { font-size: 18px; }
    .logo-mark img { width: 26px; height: 26px; }

    /* Sticky CTA bubble — make smaller, never overlap content */
    .sticky-cta { bottom: 14px; right: 14px; left: 14px; align-items: stretch; pointer-events: none; }
    .sticky-cta > * { pointer-events: auto; }
    .sticky-bubble { max-width: none; width: 100%; padding: 14px 16px; border-radius: 14px; }
    .sticky-bubble .b-title { font-size: 16px; margin-bottom: 4px; }
    .sticky-bubble .b-text { font-size: 12.5px; line-height: 1.4; margin-bottom: 10px; }
    .sticky-bubble .b-actions .btn { padding: 8px 12px; font-size: 12.5px; }
    .sticky-fab { width: 52px; height: 52px; align-self: flex-end; }

    /* Pad the page bottom so the sticky CTA never sits on top of the footer link */
    body { padding-bottom: 90px; }

    /* Headings sit a touch tighter */
    h2, .h2 { font-size: clamp(28px, 6.4vw, 38px) !important; line-height: 1.1 !important; }
    h3, .h3 { font-size: clamp(20px, 5vw, 26px) !important; }

    /* Buttons fill width and have bigger touch targets */
    .btn-lg { padding: 14px 18px; font-size: 14px; min-height: 48px; }

    /* Grids that still need to stack at this size */
    .doors-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }

    /* Tables/long content */
    .crumbs { font-size: 12px; }
    .lede { font-size: 16px; line-height: 1.55; }

    /* Doors page line-grid — let smaller cards fit so they don't overflow */
    .line-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
    .style-card .photo { aspect-ratio: 4/3; }

    /* Brand banner on doors page */
    .brand-tabs { flex-wrap: wrap; gap: 4px; padding: 4px; }
    .brand-tabs button { padding: 10px 8px; font-size: 12px; }
    .brand-tabs button .sub { font-size: 9.5px; }
    .brand-banner { padding: 28px 22px !important; gap: 22px !important; margin-bottom: 22px; }
    .brand-banner .copy h2 { font-size: 26px !important; }
    .brand-banner .copy p { font-size: 14.5px; }
    .brand-banner .copy .perks { gap: 14px; }

    /* Countertops page material tabs */
    .material-tabs { flex-wrap: wrap; }
    .material-tabs button { flex: 1 1 calc(50% - 4px); min-width: 0 !important; padding: 10px 8px; font-size: 12.5px; }
    .mat-banner { gap: 20px !important; padding: 28px 22px !important; }
}

/* ─── Phone-only tweaks (≤ 480px) ───────────────────────────────── */
@media (max-width: 480px) {
    /* Even tighter promo bar */
    .promo { font-size: 11px; padding: 7px 10px; }
    .promo a { display: block; margin-top: 2px; }

    /* Hide the nav CTA button entirely on tiny phones — hamburger has it */
    .nav-cta .btn { display: none; }
    .nav-cta .nav-phone { display: none; }

    /* Hero CTAs stack with full width */
    .hero h1 { font-size: 32px !important; }

    /* Smaller pillar/eyebrow text */
    .eyebrow { font-size: 10.5px; }

    /* Style cards meta tighter */
    .style-card .meta { padding: 14px 16px 16px; }
    .style-card h4 { font-size: 19px; }
    .style-card p { font-size: 12.5px; }

    /* Door cards & door-meta */
    .door-card .meta, .door-meta { padding: 16px 18px 18px; }

    /* Visualize swatches */
    .viz-finish-grid { grid-template-columns: repeat(4, 1fr) !important; }

    /* Forms */
    .field input, .field textarea, .field select { font-size: 16px; padding: 12px 14px; } /* 16px prevents iOS zoom */

    /* Pricing block specifically */
    .pricing-block { padding: 28px 22px !important; gap: 24px !important; }
    .pricing-block .price-amt { font-size: 38px !important; }
}

/* ─── Admin panel mobile (≤ 760px) ──────────────────────────────── */
@media (max-width: 760px) {
    .adm-shell { grid-template-columns: 1fr !important; height: auto !important; min-height: 100vh; }
    .adm-side {
        position: relative !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        border-right: none !important;
        border-bottom: 1px solid var(--line);
    }
    .adm-side .head { padding: 16px 18px; }
    .adm-tabs { flex-wrap: wrap; padding: 0 12px; gap: 2px; }
    .adm-tabs button { flex: 1 1 calc(50% - 2px); padding: 10px 6px !important; font-size: 12.5px !important; min-width: 0; white-space: nowrap; }
    .adm-main { width: 100% !important; }
    .adm-rail { display: none !important; }
    .conv-list { max-height: 50vh; overflow-y: auto; }
    .conv-row { padding: 12px 14px; }
    #conv-controls { padding: 10px 14px 8px !important; }
    #conv-controls input, #conv-controls select { font-size: 14px !important; padding: 8px 10px !important; }
    .adm-thread-head { padding: 14px 18px !important; flex-direction: column; align-items: flex-start !important; gap: 8px !important; }
    .adm-thread-body { padding: 16px 18px !important; }
    .adm-input { padding: 10px 14px !important; }
    /* Users table → cards on mobile */
    #users-grid > div:first-child { display: none !important; }
    #users-grid .user-row {
        display: block !important;
        grid-template-columns: none !important;
        padding: 14px 16px !important;
    }
    #users-grid .user-row > div { margin-bottom: 6px; }
    /* Showroom upload form */
    #adm-showroom { padding: 20px !important; }
    #adm-settings { padding: 20px !important; }
    #showroom-grid { grid-template-columns: 1fr !important; }
    .settings-card { padding: 22px !important; }
}
