/* ═══════════════════════════════════════════════════════════════════
   ADGstudios — Global Stylesheet
   Design language preserved from the original hand-coded build:
   dark charcoal theme · metallic silver gradients · glassmorphism ·
   neon stat tiles · animated blueprint grid · light/dark toggle.
   Tailwind (CDN) handles layout utilities; this file owns the brand.
═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   BRAND VARIABLES
═══════════════════════════════════════════════════════════ */
:root {
    --black:       #060606;
    --char-deep:   #0f0f0f;
    --char:        #181818;
    --char-light:  #242424;
    --char-mid:    #333333;
    --char-border: #2e2e2e;
    --silver-dim:  #8e8e8e;   /* was #5a5a5a (2.3–2.9:1) — now ≥4.5:1 on every dark surface */
    --silver:      #9a9a9a;
    --silver-lt:   #c8c8c8;
    --silver-br:   #e6e6e6;
    --white:       #f8f8f8;

    /* Bright section palette */
    --bright-bg:   #f4f5f7;
    --bright-card: #ffffff;
    --bright-text: #0a0a0a;
    --bright-sub:  #4a4a4a;
    --bright-bdr:  #e0e0e0;
}

/* ── Brand font: Flatline Sans (real brand typeface).
   Josefin Sans stays as the web fallback while the OTFs load. ── */
@font-face {
    font-family: 'Flatline';
    src: url('../assets/fonts/Flatline-Regular.otf') format('opentype');
    font-weight: 300 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Flatline';
    src: url('../assets/fonts/Flatline-SemiBold.otf') format('opentype');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Flatline';
    src: url('../assets/fonts/Flatline-Bold.otf') format('opentype');
    font-weight: 700 900; font-style: normal; font-display: swap;
}

/* ── Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; }
/* Offset anchor jumps so the sticky header never covers section tops */
:target { scroll-margin-top: 5.5rem; }
section[id] { scroll-margin-top: 5.5rem; }
body {
    font-family: 'Flatline', 'Josefin Sans', sans-serif;
    color: var(--silver-lt);
    background: var(--char-deep);
    letter-spacing: 0.02em;
    overflow-x: hidden; /* guarantee no horizontal scroll on mobile */
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--char-deep); }
::-webkit-scrollbar-thumb { background: var(--char-mid); border-radius: 3px; }

/* Accessible focus states (WCAG) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--silver-br);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-slide.active { animation: none !important; }
}

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--white);
    color: var(--black);
    padding: 0.6rem 1.2rem;
    border-radius: 0 0 0.5rem 0;
    font-weight: 700;
    font-size: 0.85rem;
}
.skip-link:focus { left: 0; }

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY SYSTEM
═══════════════════════════════════════════════════════════ */

/* Static metallic gradient — hero & major dark headings */
.text-metal {
    background: linear-gradient(
        160deg,
        #888888 0%, #e0e0e0 30%, #ffffff 50%, #d8d8d8 70%, #909090 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Static silver gradient — section headings on dark */
.text-silver-grad {
    background: linear-gradient(135deg, #b0b0b0 0%, #f0f0f0 50%, #a8a8a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section label badge */
.label-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--silver);
    border: 1px solid rgba(160,160,160,0.2);
    padding: 0.3rem 0.9rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(4px);
}
.label-badge::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--silver);
    opacity: 0.7;
}

/* Hero sits on photography — the default badge/body treatment is too faint
   there, so lift contrast for anything inside .hero-content. */
.hero-content .label-badge {
    color: #f0f0f0;
    background: rgba(6,6,6,0.55);
    border-color: rgba(255,255,255,0.30);
    backdrop-filter: blur(8px);
    text-shadow: 0 1px 3px rgba(0,0,0,0.55);
}
.hero-content .label-badge::before {
    background: #ffffff;
    opacity: 1;
    box-shadow: 0 0 6px rgba(255,255,255,0.85);
}
.hero-content p {
    text-shadow:
        0 1px 3px rgba(0,0,0,0.60),
        0 2px 14px rgba(0,0,0,0.45);
}

/* Gradient divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(160,160,160,0.25) 50%, transparent 100%);
    margin: 0;
    border: none;
}

/* ── Header/heading contrast: drop-shadows ─────────────────
   Gradient headings use clipped text, so text-shadow won't show —
   filter: drop-shadow() is required to cast a shadow off the glyphs. */
.text-metal      { filter: drop-shadow(0 1px 4px rgba(0,0,0,0.35)); }
.text-silver-grad{ filter: drop-shadow(0 1px 4px rgba(0,0,0,0.30)); }
/* Hero headline sits over photography — stronger shadow for contrast. */
.hero-section .text-metal { filter: drop-shadow(0 3px 14px rgba(0,0,0,0.65)); }
/* Hero body copy over imagery */
.hero-content p { text-shadow: 0 1px 8px rgba(0,0,0,0.60); }
/* Sticky header bar — drop-shadow to separate it from the hero below */
header { box-shadow: 0 6px 22px rgba(0,0,0,0.35); }
html:not(.dark) header { box-shadow: 0 4px 16px rgba(0,0,0,0.10); }

/* ═══════════════════════════════════════════════════════════
   HERO SLIDER
═══════════════════════════════════════════════════════════ */
.hero-section { position: relative; overflow: hidden; }

/* Fallback gradient shows if hero photos are missing — never a broken box */
.hero-fallback {
    position: absolute; inset: 0; z-index: 0;
    background:
        linear-gradient(135deg, #101012 0%, #1b1c1f 50%, #08090b 100%);
}

.hero-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    will-change: opacity, transform;
}
.hero-slide.active {
    opacity: 1;
    animation: kenBurns 10s ease-in-out forwards;
}
@keyframes kenBurns {
    0%   { transform: scale(1.0) translate(0,0); }
    100% { transform: scale(1.09) translate(-0.8%,-0.4%); }
}

.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(6,6,6,0.58) 0%,
        rgba(6,6,6,0.38) 30%,
        rgba(6,6,6,0.42) 60%,
        rgba(6,6,6,0.85) 100%
    );
}
.hero-vignette {
    position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.45) 100%);
}
.hero-spotlight {
    position: absolute; z-index: 1;
    width: 900px; height: 600px;
    max-width: 100%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 40%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }

/* Dot indicators */
.hero-dot {
    height: 3px; width: 20px;
    background: var(--silver-br);
    opacity: 0.3;
    border-radius: 2px;
    cursor: pointer;
    padding: 0;
    border: none;
    transition: opacity 0.35s, width 0.35s;
}
.hero-dot.active { opacity: 1; width: 40px; }

/* Arrows */
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
    backdrop-filter: blur(6px);
}
.hero-arrow:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-50%) scale(1.06);
}

/* ═══════════════════════════════════════════════════════════
   GLASS MORPHISM CARDS  (dark sections)
═══════════════════════════════════════════════════════════ */
.glass-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 1rem;
    transition: background 0.35s, border-color 0.35s, transform 0.35s, box-shadow 0.35s;
    box-shadow:
        0 0 10px rgba(255,255,255,0.06),
        0 0 25px rgba(255,255,255,0.04),
        inset 0 0 20px rgba(255,255,255,0.02);
}
.glass-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-6px);
    box-shadow:
        0 0 18px rgba(255,255,255,0.12),
        0 0 45px rgba(255,255,255,0.07),
        0 0 80px rgba(255,255,255,0.03),
        inset 0 0 25px rgba(255,255,255,0.04);
}

/* ═══════════════════════════════════════════════════════════
   BRIGHT (FLASH) SECTIONS
═══════════════════════════════════════════════════════════ */
.section-bright {
    background: linear-gradient(135deg, #f0f1f3 0%, #ffffff 45%, #ecedf0 100%);
    color: var(--bright-text);
}
.section-bright .label-badge {
    color: var(--char-mid);
    border-color: rgba(0,0,0,0.12);
    background: rgba(0,0,0,0.04);
}
.section-bright .label-badge::before { background: var(--char-mid); }
.section-bright .divider {
    background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.12) 50%, transparent 100%);
}

.bright-card {
    background: var(--bright-card);
    border: 1px solid var(--bright-bdr);
    border-radius: 1rem;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.bright-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0,0,0,0.18);
    box-shadow:
        0 0 16px rgba(0,0,0,0.10),
        0 0 40px rgba(0,0,0,0.05),
        0 20px 40px rgba(0,0,0,0.10);
}

/* ═══════════════════════════════════════════════════════════
   AMBIENT LIGHT ORBS
═══════════════════════════════════════════════════════════ */
.light-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.light-orb-xl {
    width: 800px; height: 800px; max-width: 100vw;
    background: radial-gradient(circle, rgba(255,255,255,0.065) 0%, transparent 65%);
    filter: blur(60px);
    animation: orbDrift 20s ease-in-out infinite;
}
.light-orb-lg {
    width: 560px; height: 560px; max-width: 100vw;
    background: radial-gradient(circle, rgba(255,255,255,0.055) 0%, transparent 65%);
    filter: blur(70px);
    animation: orbDrift 24s ease-in-out infinite reverse;
}
.light-orb-md {
    width: 380px; height: 380px; max-width: 100vw;
    background: radial-gradient(circle, rgba(255,255,255,0.045) 0%, transparent 65%);
    filter: blur(55px);
    animation: orbDrift 16s ease-in-out infinite;
}
.light-orb-sm {
    width: 240px; height: 240px; max-width: 100vw;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 65%);
    filter: blur(45px);
    animation: orbDrift 12s ease-in-out infinite reverse;
}
@keyframes orbDrift {
    0%,100% { transform: translate(0, 0); }
    25%      { transform: translate(35px, -40px); }
    50%      { transform: translate(-25px, 25px); }
    75%      { transform: translate(40px, 35px); }
}

/* ═══════════════════════════════════════════════════════════
   SPOTLIGHT GLOW  (behind glass cards)
═══════════════════════════════════════════════════════════ */
.spotlight-section { position: relative; }
.spotlight-section::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 65% 55% at 50% 50%, rgba(220,220,220,0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.spotlight-section > * { position: relative; z-index: 1; }
/* Decorative orbs must stay absolutely positioned even inside a
   blueprint-bg / spotlight-section (whose `> *` rule would otherwise
   pull them into normal flow and inject huge empty gaps). */
.spotlight-section > .light-orb,
.blueprint-bg > .light-orb { position: absolute !important; z-index: 0; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
/* White button: ALWAYS a white background with dark text, in both
   themes (never inverts) — guarantees legible dark-on-white contrast. */
.btn-white {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: #f7f7f7;
    color: #0a0a0a;
    font-family: 'Flatline', 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 0.8rem 2.2rem;
    min-height: 44px; /* tap target */
    border-radius: 0.375rem;
    border: 1px solid rgba(0,0,0,0.08);
    transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
    white-space: nowrap;
    cursor: pointer;
}
.btn-white:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow:
        0 0 14px rgba(255,255,255,0.35),
        0 0 35px rgba(255,255,255,0.15),
        0 8px 20px rgba(0,0,0,0.2);
}

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: transparent;
    color: var(--white);
    font-family: 'Flatline', 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 0.8rem 2.2rem;
    min-height: 44px;
    border-radius: 0.375rem;
    border: 1.5px solid rgba(255,255,255,0.35);
    transition: border-color 0.2s, background 0.2s, transform 0.18s;
    white-space: nowrap;
    cursor: pointer;
}
.btn-ghost:hover {
    border-color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.07);
    transform: translateY(-2px);
    box-shadow:
        0 0 14px rgba(255,255,255,0.18),
        0 0 35px rgba(255,255,255,0.07);
}

.btn-dark {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: var(--char-light);
    color: var(--white);
    font-family: 'Flatline', 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.8rem;
    min-height: 44px;
    border-radius: 0.375rem;
    border: 1px solid var(--char-mid);
    transition: background 0.2s, border-color 0.2s, transform 0.18s;
    white-space: nowrap;
    cursor: pointer;
}
.btn-dark:hover {
    background: var(--char-mid);
    border-color: rgba(255,255,255,0.30);
    transform: translateY(-2px);
    box-shadow:
        0 0 12px rgba(255,255,255,0.10),
        0 0 30px rgba(255,255,255,0.04);
}

/* ═══════════════════════════════════════════════════════════
   LOGO SWAP  (dark = white logo · light = black logo)
═══════════════════════════════════════════════════════════ */
.logo-dark  { display: block; }
.logo-light { display: none;  }
html:not(.dark) .logo-dark  { display: none;  }
html:not(.dark) .logo-light { display: block; }

/* ═══════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════ */
/* Never recolor button-style links — .active would turn white-on-white. */
.nav-link.active:not([class*="btn-"]) { color: var(--white); }

.nav-link:not([class*="btn-"]) {
    transition: color 0.2s, text-shadow 0.2s;
}
.nav-link:not([class*="btn-"]):hover,
.nav-link:not([class*="btn-"]).active {
    color: #ffffff !important;
    text-shadow:
        0 0 6px rgba(255,255,255,0.90),
        0 0 18px rgba(255,255,255,0.55),
        0 0 40px rgba(255,255,255,0.25);
}
html:not(.dark) .nav-link:not([class*="btn-"]):hover,
html:not(.dark) .nav-link:not([class*="btn-"]).active {
    color: #0a0a0a !important;
    text-shadow:
        0 0 6px rgba(0,0,0,0.70),
        0 0 18px rgba(0,0,0,0.35),
        0 0 40px rgba(0,0,0,0.15);
}

/* ═══════════════════════════════════════════════════════════
   ANIMATED BLUEPRINT GRID  (dark sections)
═══════════════════════════════════════════════════════════ */
.blueprint-bg { position: relative; overflow: hidden; }
.blueprint-bg::before {
    content: '';
    position: absolute; inset: 0; z-index: 0;
    background-image: url('data:image/svg+xml;utf8,<svg width="80" height="80" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="g" width="80" height="80" patternUnits="userSpaceOnUse"><path d="M 80 0 L 0 0 0 80" fill="none" stroke="%23a0a0a0" stroke-width="0.35"/></pattern></defs><rect width="100%25" height="100%25" fill="url(%23g)"/></svg>');
    background-size: 80px 80px;
    opacity: 0.05;
    animation: pan 150s linear infinite;
}
.blueprint-bg > * { position: relative; z-index: 1; }
@keyframes pan {
    0%   { background-position: 0 0; }
    100% { background-position: 1600px 1600px; }
}

/* ═══════════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════════ */
.form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    min-height: 44px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--char-mid);
    border-radius: 0.5rem;
    color: var(--white);
    outline: none;
    font-size: 0.95rem; /* >=16px-ish avoids iOS zoom on focus */
    font-family: 'Flatline', 'Josefin Sans', sans-serif;
    transition: border-color 0.2s, background 0.2s;
}
.form-input::placeholder { color: var(--silver-dim); }
.form-input:focus {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
    box-shadow:
        0 0 10px rgba(255,255,255,0.08),
        0 0 25px rgba(255,255,255,0.03);
}
/* Inline validation error text */
.field-error {
    color: #f0a4a4;
    font-size: 0.75rem;
    margin-top: 0.35rem;
    display: none;
}
.form-input.invalid { border-color: #b45454; }
.form-input.invalid + .field-error { display: block; }
/* Honeypot — visually hidden, off-screen, not focusable */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* ═══════════════════════════════════════════════════════════
   MISC
═══════════════════════════════════════════════════════════ */
.star-filled { color: #e8b84b; }
.star-empty  { color: var(--char-mid); }

.google-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 9999px;
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    backdrop-filter: blur(8px);
}

.testimonial-card { position: relative; }
.testimonial-card::before {
    content: '\201C';
    position: absolute; top: -0.5rem; left: 1.25rem;
    font-size: 5.5rem; line-height: 1;
    background: linear-gradient(135deg, rgba(160,160,160,0.4), rgba(80,80,80,0.1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: Georgia, serif;
    pointer-events: none;
}

@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.25);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════
   PROJECT / PLAN / PORTFOLIO CARDS
═══════════════════════════════════════════════════════════ */
.project-card {
    position: relative; overflow: hidden; border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.08);
    transition: border-color 0.35s, box-shadow 0.35s;
    box-shadow: 0 0 12px rgba(255,255,255,0.03);
}
.project-card:hover {
    border-color: rgba(255,255,255,0.28);
    box-shadow:
        0 0 18px rgba(255,255,255,0.10),
        0 0 50px rgba(255,255,255,0.04);
}
.project-card img { transition: transform 0.6s ease; display: block; width: 100%; }
.project-card:hover img { transform: scale(1.06); }
.project-card .project-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0.85;
    transition: opacity 0.35s;
}
.project-card:hover .project-overlay { opacity: 1; }

/* House plan cards */
.plan-card {
    background: var(--char-light);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
    box-shadow:
        0 0 10px rgba(255,255,255,0.04),
        0 0 22px rgba(255,255,255,0.02);
    display: flex;
    flex-direction: column;
}
.plan-card:hover {
    border-color: rgba(255,255,255,0.30);
    transform: translateY(-5px);
    box-shadow:
        0 0 18px rgba(255,255,255,0.10),
        0 0 45px rgba(255,255,255,0.05),
        0 20px 40px rgba(0,0,0,0.5);
}
.plan-card img { transition: transform 0.5s ease; display: block; }
.plan-card:hover img { transform: scale(1.04); }

/* ── Per-plan license options (purchase choices shown on a plan card) ── */
.plan-offerings { margin-top: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.offer-heading {
    font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--silver); font-weight: 600; margin-bottom: 0.1rem;
}
.offer-row {
    display: flex; align-items: center; justify-content: space-between; gap: 0.7rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 0.55rem;
    background: rgba(255,255,255,0.02);
    text-decoration: none;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.offer-row:hover {
    border-color: rgba(255,255,255,0.32);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 16px rgba(255,255,255,0.06);
    transform: translateY(-1px);
}
.offer-row-featured { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.045); }
.offer-main { display: flex; flex-direction: column; gap: 0.18rem; min-width: 0; }
.offer-tier-line { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.offer-tier {
    font-family: 'Josefin Sans', sans-serif; font-weight: 700;
    color: var(--white); font-size: 0.9rem;
}
.offer-tag {
    font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--silver-lt); white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.22); border-radius: 999px;
    padding: 0.08rem 0.42rem;
}
.offer-desc { font-size: 0.68rem; line-height: 1.35; color: var(--silver); }
.offer-side { display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0; }
.offer-price { font-size: 0.68rem; font-weight: 600; color: var(--silver-lt); white-space: nowrap; }
.offer-cta {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.6rem; height: 1.6rem; border-radius: 999px; flex-shrink: 0;
    background: rgba(255,255,255,0.06); color: var(--silver-lt);
    transition: background 0.3s, color 0.3s, transform 0.3s;
}
.offer-row:hover .offer-cta { background: var(--white); color: var(--black); transform: translateX(2px); }

html:not(.dark) .offer-row { border-color: rgba(0,0,0,0.12); background: rgba(0,0,0,0.02); }
html:not(.dark) .offer-row:hover { border-color: rgba(0,0,0,0.35); background: rgba(0,0,0,0.05); box-shadow: 0 0 16px rgba(0,0,0,0.06); }
html:not(.dark) .offer-row-featured { border-color: rgba(0,0,0,0.26); background: rgba(0,0,0,0.04); }
html:not(.dark) .offer-tag { border-color: rgba(0,0,0,0.25); }
html:not(.dark) .offer-cta { background: rgba(0,0,0,0.06); }

/* Plan-package (license tier) price block — house-plans.html */
.tier-price { margin: 0.15rem 0 0.9rem; line-height: 1; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.tier-price-amount { font-family: 'Josefin Sans', sans-serif; font-weight: 800; font-size: 2.15rem; color: var(--white); letter-spacing: -0.02em; }
.tier-price-unit { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--silver-dim); }
.tier-card-featured { border-color: rgba(255,255,255,0.28); box-shadow: 0 0 34px rgba(255,255,255,0.05); }
html:not(.dark) .tier-price-amount { color: var(--white); } /* --bright-text is #f0f0f0 in light mode (1.1:1) */
html:not(.dark) .tier-card-featured { border-color: rgba(0,0,0,0.28); box-shadow: 0 0 24px rgba(0,0,0,0.06); }

/* Package benefit list — "Everything in X, plus" label + checkmarked added value */
.tier-includes {
    display: flex; align-items: center; gap: 0.65rem;
    margin: 0.15rem 0 1.05rem;
    font-size: 0.64rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--silver-lt); white-space: nowrap;
}
.tier-includes::before, .tier-includes::after { content: ""; height: 1px; flex: 1; background: rgba(255,255,255,0.14); }
.tier-features { list-style: none; margin: 0 0 0.25rem; padding: 0; flex: 1; text-align: left; display: flex; flex-direction: column; gap: 0.7rem; }
.tier-feature { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; line-height: 1.4; color: var(--silver-lt); }
.tier-check {
    width: 1.05rem; height: 1.05rem; flex-shrink: 0; margin-top: 0.12rem; color: #fff;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.35));
}
html:not(.dark) .tier-includes::before, html:not(.dark) .tier-includes::after { background: rgba(0,0,0,0.14); }
html:not(.dark) .tier-feature { color: #333; }
html:not(.dark) .tier-check { color: #111; filter: none; }

/* Product-card license packages — mirrors the upper Plan Packages, product scale */
.offer-pkg {
    border: 1px solid rgba(255,255,255,0.10); border-radius: 14px;
    background: rgba(255,255,255,0.02);
    padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column;
}
.offer-pkg-featured { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.05); box-shadow: 0 0 26px rgba(255,255,255,0.04); }
.offer-pkg-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.5rem; }
.offer-pkg-tier { display: inline-flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; font-family: 'Josefin Sans', sans-serif; font-weight: 700; color: var(--white); font-size: 1.02rem; }
.offer-pkg-price { font-family: 'Josefin Sans', sans-serif; font-weight: 800; color: var(--white); font-size: 1.02rem; white-space: nowrap; }
.offer-pkg .tier-includes { margin: 0.1rem 0 0.7rem; }
.offer-pkg .tier-features { flex: none; gap: 0.55rem; margin-bottom: 0.35rem; }
.offer-pkg .tier-feature { font-size: 0.82rem; }
.offer-pkg .tier-check { width: 0.95rem; height: 0.95rem; }
.offer-pkg-btn { margin-top: 0.95rem; width: 100%; }
html:not(.dark) .offer-pkg { border-color: rgba(0,0,0,0.12); background: rgba(0,0,0,0.02); }
html:not(.dark) .offer-pkg-featured { border-color: rgba(0,0,0,0.28); background: rgba(0,0,0,0.04); }
html:not(.dark) .offer-pkg-tier, html:not(.dark) .offer-pkg-price { color: var(--white); }

/* Service-card subtitle (e.g. "Residential & Commercial") — homepage services */
.service-subtitle {
    font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--silver-lt); font-weight: 600; margin-bottom: 0.85rem;
}

/* LiDAR "difference" story image slots — auto-swap to a labeled placeholder
   until the real image file exists (onerror adds .is-missing). */
.lidar-shot {
    position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02);
    margin: 0;
}
.lidar-shot-feature { aspect-ratio: 4 / 3; }
.lidar-shot > img, .lidar-shot > .lidar-shot-ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.lidar-shot > img { object-fit: cover; }
.lidar-shot > .lidar-shot-ph { display: none; align-items: center; justify-content: center; text-align: center; }
.lidar-shot.is-missing > img { display: none; }
.lidar-shot.is-missing > .lidar-shot-ph { display: flex; }
/* Card = title above the image, image below with a fade-to-black caption */
.lidar-card { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.lidar-card-title {
    color: #fff; font-family: 'Josefin Sans', sans-serif; font-weight: 700;
    font-size: 1rem; letter-spacing: -0.01em; line-height: 1.2;
}
.lidar-shot-cap {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 2.8rem 1rem 0.95rem; pointer-events: none;
    background: linear-gradient(to top,
        rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.86) 30%, rgba(0,0,0,0.45) 66%, rgba(0,0,0,0) 100%);
    color: rgba(255,255,255,0.9); font-size: 0.78rem; line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0,0,0,0.95);
}
.lidar-shot.is-missing .lidar-shot-cap { display: none; }
html:not(.dark) .lidar-shot { border-color: rgba(0,0,0,0.10); }
html:not(.dark) .lidar-card-title { color: var(--white); }

/* Portfolio grid */
.portfolio-item {
    overflow: hidden; border-radius: 0.5rem;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.35s, box-shadow 0.35s;
}
.portfolio-item:hover {
    border-color: rgba(255,255,255,0.25);
    box-shadow:
        0 0 16px rgba(255,255,255,0.09),
        0 0 40px rgba(255,255,255,0.04);
}
.portfolio-item { position: relative; }
.portfolio-item img { display: block; width: 100%; transition: transform 0.5s; }
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 1.4rem 0.85rem 0.6rem; pointer-events: none;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0));
    opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s;
}
.portfolio-item:hover .portfolio-caption { opacity: 1; transform: translateY(0); }

/* ── TODO placeholder tile (used until real photography lands) ──
   Clearly-marked, never faked stock. Blueprint texture + label. */
.todo-media {
    position: relative;
    width: 100%;
    background:
        linear-gradient(135deg, #17181b 0%, #1f2024 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--silver-dim);
    overflow: hidden;
}
.todo-media::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="g" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%23ffffff" stroke-width="0.5"/></pattern></defs><rect width="100%25" height="100%25" fill="url(%23g)"/></svg>');
    background-size: 40px 40px;
    opacity: 0.06;
}
.todo-media .todo-inner {
    position: relative; z-index: 1;
    text-align: center;
    padding: 1rem;
}
.todo-media .todo-tag {
    display: inline-block;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--silver-dim);
    border: 1px dashed rgba(255,255,255,0.18);
    border-radius: 9999px;
    padding: 0.25rem 0.7rem;
    margin-top: 0.6rem;
}
html:not(.dark) .todo-media { background: linear-gradient(135deg, #e6e7ea 0%, #d8dade 100%); color: #7a7a7a; }
html:not(.dark) .todo-media::before { background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="g" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%23000000" stroke-width="0.5"/></pattern></defs><rect width="100%25" height="100%25" fill="url(%23g)"/></svg>'); opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   NEON STATS SECTION
═══════════════════════════════════════════════════════════ */
.stats-neon {
    background: #060606;
    position: relative;
    overflow: hidden;
}
.stats-neon::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 90% 140% at 50% 50%,
        rgba(255,255,255,0.07) 0%,
        rgba(255,255,255,0.02) 45%,
        transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.stats-neon > * { position: relative; z-index: 1; }

.neon-tile {
    background: rgba(255,255,255,0.028);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 1rem;
    padding: 2rem 1.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.35s, box-shadow 0.35s, background 0.35s;
}
.neon-tile::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
}
.neon-tile::after {
    content: '';
    position: absolute; inset: 0; border-radius: 1rem;
    background: radial-gradient(ellipse 80% 60% at 50% 0%,
        rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.neon-tile:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.055);
    box-shadow:
        0 0 35px rgba(255,255,255,0.07),
        0 0 80px rgba(255,255,255,0.03),
        inset 0 0 30px rgba(255,255,255,0.03);
}

.neon-heading {
    color: #e8e8e8;
    text-shadow:
        0 0 12px rgba(255,255,255,0.35),
        0 0 28px rgba(255,255,255,0.18),
        0 0 55px rgba(255,255,255,0.08);
}
.neon-num {
    color: #e8e8e8;
    text-shadow:
        0 0 12px rgba(255,255,255,0.35),
        0 0 28px rgba(255,255,255,0.18),
        0 0 55px rgba(255,255,255,0.08);
}
.neon-num .neon-suffix {
    color: rgba(255,255,255,0.45);
    text-shadow: none;
}

/* ═══════════════════════════════════════════════════════════
   FAQ ACCORDION  (LiDAR page — FAQPage schema-eligible)
═══════════════════════════════════════════════════════════ */
.faq-item {
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.03);
    overflow: hidden;
    transition: border-color 0.3s, background 0.3s;
}
.faq-item + .faq-item { margin-top: 0.85rem; }
.faq-item:hover { border-color: rgba(255,255,255,0.20); }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    padding: 1.15rem 1.35rem;
    min-height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--white);
    font-family: 'Flatline', 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
}
.faq-question .faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--silver);
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--white); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.faq-answer-inner {
    padding: 0 1.35rem 1.25rem;
    color: var(--silver);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   LEAD-GEN PAGE HELPERS
═══════════════════════════════════════════════════════════ */
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem; height: 2.75rem;
    border-radius: 9999px;
    font-family: 'Flatline', 'Josefin Sans', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--white);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 1.1rem;
}
.benefit-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 0;
}
.benefit-row .benefit-check {
    flex-shrink: 0;
    color: var(--silver-lt);
    margin-top: 0.1rem;
}
.lead-form-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: 1rem;
    box-shadow:
        0 0 18px rgba(255,255,255,0.06),
        0 20px 50px rgba(0,0,0,0.5);
}

/* ═══════════════════════════════════════════════════════════
   LIGHT MODE  (html without .dark class)
═══════════════════════════════════════════════════════════ */
/* Light-mode token override. Every inline style="color:var(--silver…)" in the
   markup resolves through these, so contrast is fixed here, not per element.
   Ratios checked against the lightest→darkest light surfaces
   (#f6f7f9 plan card … #dcdde0 --char-light). */
html:not(.dark) {
    --black:       #f6f6f6;
    --char-deep:   #f0f1f3;
    --char:        #e8e9ec;
    --char-light:  #dcdde0;
    --char-mid:    #b0b2b6;
    --char-border: #d0d2d6;
    --silver-dim:  #5c5c5c;   /* small print — ≥4.9:1 (was #909090, 2.4–3.2:1) */
    --silver:      #474747;   /* body copy — ≥6.8:1 */
    --silver-lt:   #252525;   /* near-black body text — ≥12:1 */
    --silver-br:   #101010;
    --white:       #0a0a0a;   /* used as a text colour — near-black in light mode */
    --bright-bg:   #111111;
    --bright-card: #1c1c1c;
    --bright-text: #f0f0f0;
    --bright-sub:  #a0a0a0;
    --bright-bdr:  #333333;
}
html:not(.dark)       { background: #f6f6f6; }
html:not(.dark) body  { background: #f0f1f3; color: #252525; }

html:not(.dark) ::-webkit-scrollbar-track { background: #f0f1f3; }
html:not(.dark) ::-webkit-scrollbar-thumb { background: #c0c2c6; }

html:not(.dark) header { background: rgba(240,241,243,0.94) !important; }
html:not(.dark) nav a.nav-link:not([class*="btn-"]):hover,
html:not(.dark) #mobile-menu a.nav-link:not([class*="btn-"]):hover {
    color: #0a0a0a !important;
}

html:not(.dark) .btn-dark {
    background: #1a1a1a;
    color: #f0f0f0;
    border-color: #383838;
}
html:not(.dark) .btn-dark:hover {
    background: #333333;
    border-color: rgba(255,255,255,0.20);
    box-shadow: 0 0 12px rgba(0,0,0,0.18), 0 0 30px rgba(0,0,0,0.06);
}
html:not(.dark) .btn-white:hover {
    box-shadow: 0 0 14px rgba(0,0,0,0.18), 0 0 35px rgba(0,0,0,0.08), 0 8px 20px rgba(0,0,0,0.10);
}
html:not(.dark) .btn-ghost {
    color: #0a0a0a;
    border-color: rgba(0,0,0,0.30);
}
html:not(.dark) .btn-ghost:hover {
    border-color: rgba(0,0,0,0.70);
    background: rgba(0,0,0,0.06);
    box-shadow: 0 0 14px rgba(0,0,0,0.10), 0 0 35px rgba(0,0,0,0.04);
}
/* Hero ghost button sits over dark imagery — keep it light in both
   themes so it stays legible (matches the hero badge treatment). */
html:not(.dark) .hero-section .btn-ghost {
    color: #ffffff;
    border-color: rgba(255,255,255,0.45);
}
html:not(.dark) .hero-section .btn-ghost:hover {
    color: #ffffff;
    border-color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.10);
    box-shadow: 0 0 14px rgba(255,255,255,0.18), 0 0 35px rgba(255,255,255,0.07);
}

html:not(.dark) .text-metal {
    background: linear-gradient(160deg, #444 0%, #1c1c1c 30%, #000 50%, #222 70%, #444 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
html:not(.dark) .hero-section .text-metal {
    background: linear-gradient(160deg, #888 0%, #e0e0e0 30%, #fff 50%, #d8d8d8 70%, #909090 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
html:not(.dark) .text-silver-grad {
    background: linear-gradient(135deg, #555 0%, #111 50%, #444 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
html:not(.dark) .neon-heading {
    color: #0a0a0a;
    text-shadow:
        0 0 8px rgba(0,0,0,0.55),
        0 0 20px rgba(0,0,0,0.30),
        0 0 45px rgba(0,0,0,0.15),
        0 0 90px rgba(0,0,0,0.07);
}
/* Keep hero neon-heading bright (sits over dark imagery) */
html:not(.dark) .hero-section .neon-heading {
    color: #e8e8e8;
    text-shadow:
        0 0 12px rgba(255,255,255,0.35),
        0 0 28px rgba(255,255,255,0.18),
        0 0 55px rgba(255,255,255,0.08);
}
html:not(.dark) .label-badge {
    color: #505050;
    border-color: rgba(0,0,0,0.12);
    background: rgba(0,0,0,0.04);
}
html:not(.dark) .label-badge::before { background: #505050; }
html:not(.dark) .hero-section .label-badge {
    color: #c8c8c8;
    border-color: rgba(160,160,160,0.20);
    background: rgba(255,255,255,0.03);
}
html:not(.dark) .hero-section .label-badge::before { background: #c8c8c8; }
html:not(.dark) .divider {
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.12), transparent);
}

html:not(.dark) .glass-card {
    background: rgba(255,255,255,0.65);
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 2px 14px rgba(0,0,0,0.07), inset 0 0 20px rgba(255,255,255,0.50);
}
html:not(.dark) .glass-card:hover {
    background: rgba(255,255,255,0.90);
    border-color: rgba(0,0,0,0.16);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 60px rgba(0,0,0,0.04), inset 0 0 25px rgba(255,255,255,0.60);
}
html:not(.dark) .lead-form-card {
    background: rgba(255,255,255,0.80);
    border-color: rgba(0,0,0,0.10);
    box-shadow: 0 2px 14px rgba(0,0,0,0.08), 0 20px 50px rgba(0,0,0,0.10);
}

html:not(.dark) .light-orb-xl { background: radial-gradient(circle, rgba(0,0,0,0.04) 0%, transparent 65%); }
html:not(.dark) .light-orb-lg { background: radial-gradient(circle, rgba(0,0,0,0.035) 0%, transparent 65%); }
html:not(.dark) .light-orb-md { background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, transparent 65%); }
html:not(.dark) .light-orb-sm { background: radial-gradient(circle, rgba(0,0,0,0.04) 0%, transparent 65%); }

html:not(.dark) .blueprint-bg::before {
    background-image: url('data:image/svg+xml;utf8,<svg width="80" height="80" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="g" width="80" height="80" patternUnits="userSpaceOnUse"><path d="M 80 0 L 0 0 0 80" fill="none" stroke="%23303030" stroke-width="0.35"/></pattern></defs><rect width="100%25" height="100%25" fill="url(%23g)"/></svg>');
    opacity: 0.05;
}
html:not(.dark) .spotlight-section::after {
    background: radial-gradient(ellipse 65% 55% at 50% 50%, rgba(0,0,0,0.04) 0%, transparent 70%);
}

html:not(.dark) .stats-neon { background: #e8e9ec; }
html:not(.dark) .stats-neon::before {
    background: radial-gradient(ellipse 90% 140% at 50% 50%,
        rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.01) 45%, transparent 70%);
}
html:not(.dark) .neon-tile {
    background: rgba(255,255,255,0.65);
    border-color: rgba(0,0,0,0.08);
}
html:not(.dark) .neon-tile::before {
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.12), transparent);
}
html:not(.dark) .neon-tile::after {
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,0,0,0.04) 0%, transparent 70%);
}
html:not(.dark) .neon-tile:hover {
    border-color: rgba(0,0,0,0.18);
    background: rgba(255,255,255,0.90);
    box-shadow: 0 0 35px rgba(0,0,0,0.06), 0 0 80px rgba(0,0,0,0.02), inset 0 0 30px rgba(255,255,255,0.40);
}
html:not(.dark) .neon-num {
    color: #0a0a0a;
    text-shadow:
        0 0 8px rgba(0,0,0,0.55),
        0 0 20px rgba(0,0,0,0.30),
        0 0 45px rgba(0,0,0,0.15),
        0 0 90px rgba(0,0,0,0.07);
}
html:not(.dark) .neon-num .neon-suffix { color: rgba(0,0,0,0.50); }

html:not(.dark) .hero-dot { background: #e6e6e6; }

html:not(.dark) .form-input {
    background: rgba(255,255,255,0.80);
    border-color: #d0d2d6;
    color: #0a0a0a;
}
html:not(.dark) .form-input::placeholder { color: #6b6b6b; }
html:not(.dark) .form-input:focus {
    border-color: rgba(0,0,0,0.30);
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.06), 0 0 25px rgba(0,0,0,0.02);
}

html:not(.dark) .section-bright {
    background: linear-gradient(135deg, #111111 0%, #1c1c1c 45%, #0f0f0f 100%);
}
html:not(.dark) .section-bright .label-badge {
    color: #909090; border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.04);
}
html:not(.dark) .section-bright .label-badge::before { background: #909090; }
html:not(.dark) .section-bright .divider {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}
html:not(.dark) .section-bright h2 { color: #f0f0f0 !important; }
html:not(.dark) .bright-card {
    background: #242424;
    border-color: #383838;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
html:not(.dark) .bright-card:hover {
    border-color: #555555;
    box-shadow: 0 0 16px rgba(255,255,255,0.04), 0 20px 40px rgba(0,0,0,0.45);
    transform: translateY(-5px);
}
html:not(.dark) .testimonial-card::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(200,200,200,0.05));
    -webkit-background-clip: text; background-clip: text;
}
html:not(.dark) #google-reviews-link { color: #a0a0a0 !important; }
html:not(.dark) #google-reviews-link:hover { color: #f0f0f0 !important; }

html:not(.dark) .project-card { border-color: rgba(0,0,0,0.10); }
html:not(.dark) .project-card:hover {
    border-color: rgba(0,0,0,0.22);
    box-shadow: 0 0 18px rgba(0,0,0,0.10), 0 0 50px rgba(0,0,0,0.04);
}
html:not(.dark) .plan-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.10);
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
html:not(.dark) .plan-card:hover {
    border-color: rgba(0,0,0,0.22);
    box-shadow: 0 0 18px rgba(0,0,0,0.10), 0 20px 40px rgba(0,0,0,0.12);
}
html:not(.dark) .portfolio-item { border-color: rgba(0,0,0,0.08); }
html:not(.dark) .portfolio-item:hover {
    border-color: rgba(0,0,0,0.20);
    box-shadow: 0 0 16px rgba(0,0,0,0.08), 0 0 40px rgba(0,0,0,0.04);
}

html:not(.dark) .faq-item { border-color: rgba(0,0,0,0.10); background: rgba(255,255,255,0.55); }
html:not(.dark) .faq-item:hover { border-color: rgba(0,0,0,0.20); }
html:not(.dark) .faq-question { color: #0a0a0a; }
html:not(.dark) .faq-answer-inner { color: #4a4a4a; }
html:not(.dark) .step-num { color: #0a0a0a; background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.12); }
html:not(.dark) .benefit-row .benefit-check { color: #252525; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE REFINEMENTS  (mobile-first; these are >=breakpoint tweaks)
═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    /* HERO — 70vh squeezed badge + h1 + 2 paragraphs + 2 buttons into a
       fixed box, causing overlap. Let it grow to fit its content instead. */
    .hero-section {
        height: auto !important;
        min-height: 86vh;
        padding-top: 3rem;
        padding-bottom: 3.5rem;
    }
    /* Side arrows sat on top of the headline on narrow screens.
       Dots + autoplay + swipe still give full access to every slide. */
    .hero-arrow { display: none !important; }
    #hero-dots { bottom: 1.5rem; }

    /* Long badge label wrapped mid-word at desktop letter-spacing */
    .label-badge {
        font-size: 0.56rem;
        letter-spacing: 0.13em;
        padding: 0.32rem 0.7rem;
        line-height: 1.55;
        max-width: 100%;
    }

    /* Equal, thumb-sized CTAs beat two mismatched auto-width buttons */
    .hero-content .btn-white,
    .hero-content .btn-ghost {
        width: 100%;
        max-width: 19rem;
        margin-left: auto;
        margin-right: auto;
    }

    /* Buttons and inputs need a comfortable tap target */
    .btn-white, .btn-ghost, .btn-dark { min-height: 46px; }
    .form-input { font-size: 16px; }  /* stops iOS zooming the page on focus */

    /* Cards were edge-to-edge tight */
    .glass-card { padding: 1.5rem !important; }
    .neon-tile  { padding: 1.5rem 0.75rem; }
    .testimonial-card::before { font-size: 4rem; }

    /* Plan card CTA row stacks rather than cramping price against button */
    .plan-card .flex.justify-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }
}

/* Very narrow phones (iPhone SE / mini) */
@media (max-width: 380px) {
    .label-badge { font-size: 0.52rem; letter-spacing: 0.1em; }
    .hero-section { min-height: 90vh; }
}

/* ═══════════════════════════════════════════════════════════
   OWNER REFINEMENTS  (appended — later rules win the cascade)
═══════════════════════════════════════════════════════════ */

/* ── Light mode: softer whites ─────────────────────────────
   Pure #fff surfaces read as glaring in daylight — tone to a
   soft off-white and ease the brightest hover states. */
html:not(.dark) .plan-card            { background: #f6f7f9; }
html:not(.dark) .plan-card:hover      { background: #fbfbfd; }
html:not(.dark) .glass-card:hover     { background: rgba(249,250,252,0.88); }
html:not(.dark) .neon-tile:hover      { background: rgba(249,250,252,0.86); }
html:not(.dark) .form-input:focus     { background: #fbfcfd; }
html:not(.dark) .lead-form-card       { background: rgba(250,251,253,0.82); }

/* ── Light mode: legible card headings ─────────────────────
   Card titles are `text-white`; on light cards that vanishes.
   Inside light-surfaced cards, render them near-black. */
html:not(.dark) .glass-card .text-white,
html:not(.dark) .plan-card  .text-white { color: #161616 !important; text-shadow: none; }

/* ── Light mode: softer text glow ──────────────────────────
   The heavy dark halo reads as bold — dial it back to a hint. */
html:not(.dark) .neon-heading {
    text-shadow: 0 1px 2px rgba(0,0,0,0.13), 0 0 16px rgba(0,0,0,0.07);
}
html:not(.dark) .neon-num {
    text-shadow: 0 1px 2px rgba(0,0,0,0.13), 0 0 16px rgba(0,0,0,0.07);
}
html:not(.dark) .text-silver-grad {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.12));
}
/* Hero headings sit over dark photography — keep their glow. */
html:not(.dark) .hero-section .neon-heading,
html:not(.dark) .hero-section .text-metal { filter: none; }

/* ═══════════════════════════════════════════════════════════
   PRODUCT-CARD CORNER RIBBON  (editable callout, top corner)
═══════════════════════════════════════════════════════════ */
.plan-card { position: relative; }
.plan-ribbon {
    position: absolute;
    top: 0; right: 0;
    width: 116px; height: 116px;
    overflow: hidden;
    z-index: 4;
    pointer-events: none;
}
/* The diagonal gold band. Horizontal padding = the inset that keeps text
   off the clipped corners; it also defines the "fits" width that JS
   measures against to decide whether to switch on the ticker. */
.plan-ribbon-band {
    position: absolute;
    top: 24px; right: -44px;
    width: 170px;
    box-sizing: border-box;
    padding: 6px 40px;
    overflow: hidden;
    text-align: center;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #d8b25a 0%, #b98f34 100%);
    color: #1a1400;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
.plan-ribbon-text {
    display: inline-block;
    white-space: nowrap;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: inherit;
}
/* Colour variants — set plan.bannerStyle to "dark" | "accent" */
.plan-ribbon.ribbon-dark   .plan-ribbon-band { background: linear-gradient(135deg, #2a2a2a 0%, #101010 100%); color: #f0f0f0; }
.plan-ribbon.ribbon-accent .plan-ribbon-band { background: linear-gradient(135deg, #6ea8c7 0%, #3f7a99 100%); color: #06121a; }

/* Ticker — only added by JS when the banner text overflows the ribbon.
   Two copies scroll edge-to-edge for a seamless, slow marquee. */
.plan-ribbon-band.is-ticker { padding-left: 0; padding-right: 0; }
.plan-ribbon-band.is-ticker .plan-ribbon-track {
    display: inline-flex;
    flex-wrap: nowrap;
    will-change: transform;
    animation: ribbon-ticker linear infinite;
}
.plan-ribbon-band.is-ticker .plan-ribbon-text { padding-right: 28px; }
@keyframes ribbon-ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-1 * var(--ticker-shift, 150px))); }
}
@media (prefers-reduced-motion: reduce) {
    .plan-ribbon-band.is-ticker .plan-ribbon-track { animation: none; }
}

/* clickable card image (opens lightbox) */
.card-media-clickable { position: relative; cursor: zoom-in; display: block; width: 100%; padding: 0; border: 0; background: none; }
.card-zoom-hint {
    position: absolute; bottom: 0.75rem; right: 0.75rem;
    width: 34px; height: 34px; border-radius: 9999px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(6,6,6,0.55); color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    opacity: 0; transform: translateY(4px);
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
}
.plan-card:hover .card-zoom-hint { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX  (image gallery overlay)
═══════════════════════════════════════════════════════════ */
.lightbox-overlay {
    position: fixed; inset: 0; z-index: 200;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: rgba(6,6,6,0.93);
    backdrop-filter: blur(6px);
    padding: 2rem 1rem;
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox-stage { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 1080px; flex: 1; min-height: 0; }
.lightbox-img {
    max-width: min(92vw, 1080px); max-height: 76vh;
    object-fit: contain; border-radius: 10px;
    background: #0f0f0f;
    box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}
.lightbox-caption { color: #c8c8c8; font-size: 0.85rem; margin-top: 1rem; text-align: center; letter-spacing: 0.02em; }
.lightbox-counter { color: #8e8e8e; font-size: 0.75rem; margin-top: 0.35rem; letter-spacing: 0.08em; }
.lightbox-close, .lightbox-nav {
    background: rgba(6,6,6,0.62);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff; border-radius: 9999px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; line-height: 1;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    box-shadow: 0 3px 14px rgba(0,0,0,0.45);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.lightbox-close:hover, .lightbox-nav:hover:not([disabled]) { background: rgba(6,6,6,0.9); border-color: #fff; }
.lightbox-nav:hover:not([disabled]) { transform: translateY(-50%) scale(1.06); }
.lightbox-close { position: absolute; top: 1.25rem; right: 1.25rem; width: 44px; height: 44px; z-index: 2; font-size: 1.5rem; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; z-index: 2; }
.lightbox-prev { left: 0; } .lightbox-next { right: 0; }
.lightbox-nav[disabled] { opacity: 0.25; cursor: default; }
.lightbox-thumbs { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; justify-content: center; }
.lightbox-thumb { width: 60px; height: 44px; object-fit: cover; border-radius: 6px; opacity: 0.45; cursor: pointer; border: 2px solid transparent; transition: opacity 0.2s, border-color 0.2s; }
.lightbox-thumb:hover { opacity: 0.8; }
.lightbox-thumb.active { opacity: 1; border-color: #fff; }
@media (max-width: 640px) { .lightbox-nav { width: 40px; height: 40px; } .lightbox-img { max-height: 66vh; } }

/* ═══════════════════════════════════════════════════════════
   FILTER BAR  (house-plans collection)
═══════════════════════════════════════════════════════════ */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 0.85rem;
    align-items: flex-end; justify-content: center;
    margin-bottom: 2rem;
}
.filter-field { display: flex; flex-direction: column; gap: 0.35rem; }
.filter-field label { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver-dim); padding-left: 0.15rem; }
.filter-select {
    appearance: none; -webkit-appearance: none;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--silver-lt);
    border-radius: 9px; padding: 0.6rem 2.2rem 0.6rem 0.9rem;
    font-size: 0.8rem; cursor: pointer; min-width: 150px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%239a9a9a" stroke-width="2"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat; background-position: right 0.75rem center;
    transition: border-color 0.2s;
}
.filter-select:focus { outline: none; border-color: rgba(255,255,255,0.4); }
.filter-clear {
    background: none; border: none; color: var(--silver);
    font-size: 0.75rem; letter-spacing: 0.04em; cursor: pointer;
    text-decoration: underline; padding: 0.6rem 0.4rem;
}
.filter-clear:hover { color: #fff; }
.filter-count { text-align: center; color: var(--silver-dim); font-size: 0.8rem; margin-bottom: 1.5rem; }
.filter-empty { text-align: center; color: var(--silver); padding: 3rem 1rem; }
html:not(.dark) .filter-select { background-color: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.14); color: #333; }
html:not(.dark) .filter-field label { color: var(--silver); }
html:not(.dark) .filter-clear { color: #555; }

/* ═══════════════════════════════════════════════════════════
   REVIEWS CAROUSEL  (single 4:3 card, autoplay)
═══════════════════════════════════════════════════════════ */
.review-carousel { max-width: 600px; margin: 0 auto; }
.review-stage { position: relative; }
.review-viewport { overflow: hidden; border-radius: 16px; }
.review-track { display: flex; transition: transform 0.6s ease; }
.review-slide { flex: 0 0 100%; box-sizing: border-box; }
.review-card {
    aspect-ratio: 4 / 3;
    box-sizing: border-box;
    background: var(--bright-card);
    border: 1px solid var(--bright-bdr);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}
.review-stars { margin-bottom: 0.9rem; font-size: 0.95rem; letter-spacing: 2px; }
.review-stars .star-filled { color: #fbbc05; }
.review-stars .star-empty  { color: #dcdcdc; }
.review-text {
    color: var(--bright-sub);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.15rem;
    max-width: 46ch;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.review-author { display: flex; align-items: center; gap: 0.6rem; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review-avatar-initial { display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; color: #fff; background: var(--char-mid); }
.review-author-meta { text-align: left; }
.review-name { font-weight: 600; font-size: 0.9rem; color: var(--bright-text); margin: 0; }
.review-when { font-size: 0.75rem; color: var(--bright-sub); margin: 0; }
.review-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--bright-bdr);
    background: var(--bright-card);
    color: var(--bright-text);
    font-size: 20px; line-height: 1;
    cursor: pointer; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    transition: background 0.2s;
}
.review-arrow:hover { background: rgba(127,127,127,0.14); }
.review-prev { left: -18px; }
.review-next { right: -18px; }
.review-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.review-dot {
    width: 8px; height: 8px; padding: 0;
    border: none; border-radius: 50%;
    background: rgba(150,150,150,0.55);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}
.review-dot.on { background: var(--bright-text); transform: scale(1.3); }
@media (max-width: 640px) {
    .review-arrow { display: none; }
    .review-text { font-size: 0.9rem; -webkit-line-clamp: 7; }
    .review-card { padding: 1.5rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .review-track { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   SCHEDULE PAGE  (schedule.html — Calendly self-scheduling)
═══════════════════════════════════════════════════════════════════ */
/* At-a-glance detail chips under the page heading */
.sched-chip {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--char-border);
    border-radius: 9999px;
    background: rgba(255,255,255,0.02);
    color: var(--silver-lt);
    font-weight: 500;
    white-space: nowrap;
}
.sched-chip i, .sched-chip svg { color: var(--silver-br); }

/* "How it works" 1-2-3 steps */
.sched-step {
    position: relative;
    padding: 1.5rem 1.4rem 1.4rem;
    border: 1px solid var(--char-border);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
    text-align: left;
}
.sched-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; margin-bottom: 0.8rem;
    border-radius: 50%;
    border: 1px solid var(--char-mid);
    background: var(--char);
    color: var(--silver-br);
    font-weight: 700; font-size: 0.9rem;
}
.sched-step-title {
    font-family: inherit; font-weight: 700; font-size: 1.02rem;
    color: var(--silver-br); margin-bottom: 0.35rem;
}
.sched-step-text { font-size: 0.85rem; line-height: 1.5; color: var(--silver); }

/* Graceful fallback shown before a live Calendly link is connected */
.sched-fallback {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center; gap: 1rem;
    min-height: 640px; max-width: 30rem; margin: 0 auto;
    padding: 2rem 1.25rem;
}
.sched-fallback i, .sched-fallback svg { color: var(--silver-br); }

/* Keep the embedded Calendly iframe corners consistent with the card */
.calendly-inline-widget { border-radius: 10px; overflow: hidden; }

@media (max-width: 640px) {
    .sched-step { text-align: center; }
    .sched-step-num { margin-left: auto; margin-right: auto; }
}

/* ═══════════════════════════════════════════════════════════
   LIGHT-MODE READABILITY SWEEP  (Sept 2026)
   Things the token override can't reach: Tailwind's hard-coded
   .text-white / hover:text-white (#fff on a light page).
═══════════════════════════════════════════════════════════ */
html:not(.dark) main .text-white:not(.hero-section) { color: var(--white); }
html:not(.dark) .hero-section .text-white,
html:not(.dark) .section-bright .text-white { color: #ffffff; }
html:not(.dark) .hover\:text-white:hover { color: var(--white); }
html:not(.dark) .filter-clear:hover { color: var(--white); }

/* ═══════════════════════════════════════════════════════════
   LIGHT PLATE  (black-on-white floor plans — image "plate": "light")
   Silver plate + the .neon-heading glow inverted to a dark shadow.
   Only applied once the real light export exists (render.js).
═══════════════════════════════════════════════════════════ */
.lightbox-img--light-plate {
    background: linear-gradient(145deg, #eef0f3 0%, #dfe2e6 100%);
    padding: clamp(0.6rem, 2vw, 1.4rem);
    box-shadow:
        0 0 12px rgba(0,0,0,0.35),
        0 0 28px rgba(0,0,0,0.18),
        0 0 55px rgba(0,0,0,0.08),
        0 24px 70px rgba(0,0,0,0.55);
}
.plan-media--light-plate > div { background: linear-gradient(145deg, #eef0f3 0%, #dfe2e6 100%); }
.plan-media--light-plate img {
    object-fit: contain;
    padding: 0.75rem;
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.18));
}

/* ═══════════════════════════════════════════════════════════
   NATIVE CONTROLS  (select dropdown lists)
   <option> lists are drawn by the browser/OS, not the page. Chrome
   gave them the select's near-white text on a default white list in
   dark mode (invisible). color-scheme tells the UA which palette to
   use; the option rule pins the list colours explicitly.
═══════════════════════════════════════════════════════════ */
html.dark           { color-scheme: dark; }
html:not(.dark)     { color-scheme: light; }
.form-input option,
.filter-select option { background: var(--char); color: var(--silver-lt); }

/* ═══════════════════════════════════════════════════════════
   UX READABILITY PASS  (Sept 2026 — consumer-eye review)
   Contrast math passed, but real reading didn't: tiny uppercase
   labels, a synthetic-bold price face, and white buttons that
   vanished on light cards. Later rules win the cascade.
═══════════════════════════════════════════════════════════ */

/* Primary buttons in light mode: a white button on a near-white card
   read as a disabled field. Make the primary action solid black.
   Hero photography keeps the white button (it sits on dark imagery). */
html:not(.dark) .btn-white {
    background: #111111; color: #fafafa; border-color: #111111;
}
html:not(.dark) .btn-white:hover { background: #2b2b2b; }
html:not(.dark) .hero-section .btn-white {
    background: #f7f7f7; color: #0a0a0a; border-color: rgba(0,0,0,0.08);
}
/* Dark-mode secondary buttons: lift the fill so they read as buttons,
   not as flat panels, on the glass cards. */
.btn-dark { border-color: rgba(255,255,255,0.28); }
html:not(.dark) .btn-dark { border-color: #111111; }

/* Long labels ("Get the Free Utah As-Built Pricing Guide") must wrap on
   phones instead of running off the screen. */
@media (max-width: 480px) {
    .btn-white, .btn-ghost, .btn-dark { white-space: normal; text-align: center; line-height: 1.3; }
}

/* Plan Package prices — Josefin had no 800 weight loaded (browser faked
   the bold) and tight tracking blurred "$0.40". Brand face, real 700
   weight, even-width digits, normal spacing. */
.tier-price { margin: 0.35rem 0 1.1rem; gap: 0.35rem; }
.tier-price-amount {
    font-family: 'Flatline', 'Josefin Sans', sans-serif;
    font-weight: 700; font-size: 2.6rem; letter-spacing: 0.01em;
    font-variant-numeric: lining-nums tabular-nums;
}
.tier-price-unit {
    font-size: 0.85rem; text-transform: none; letter-spacing: 0.04em;
    color: var(--silver);
}
/* "What's included" / "Everything in X, plus" dividers */
.tier-includes { font-size: 0.74rem; letter-spacing: 0.1em; }
.tier-feature { font-size: 0.95rem; line-height: 1.5; }

/* "Most popular" sits on the card edge so all three prices line up. */
.tier-card-featured { position: relative; }
.tier-card-featured > .offer-tag:first-child {
    position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%);
    margin: 0; background: var(--char); padding: 0.25rem 0.8rem;
}
.offer-tag { font-size: 0.68rem; letter-spacing: 0.08em; }

/* Small labels: nothing under ~11px. */
.label-badge { font-size: 0.72rem; letter-spacing: 0.18em; }
.filter-field label { font-size: 0.72rem; letter-spacing: 0.1em; }
.filter-count { font-size: 0.9rem; }
.service-subtitle { font-size: 0.72rem; }
@media (max-width: 767px) {
    .label-badge { font-size: 0.68rem; letter-spacing: 0.1em; }
}
@media (max-width: 380px) {
    .label-badge { font-size: 0.64rem; letter-spacing: 0.08em; }
}

/* Forms — a little more air between fields, and readable fine print. */
.adg-form .mb-4 { margin-bottom: 1.15rem; }
.adg-form label { margin-bottom: 0.45rem; }
.adg-form button[type="submit"] { font-size: 0.95rem; min-height: 50px; margin-top: 0.25rem; }
.adg-form .text-xs { font-size: 0.8rem; }
.lead-form-card h2 + p, .lead-form-card h2 + p.text-sm { line-height: 1.55; }
/* Bottom LiDAR form + custom-plan form: two-column rows need a bit more width. */
#book .lead-form-card, #custom-plan .lead-form-card { max-width: 36rem; }

/* Readable minimums on phones (overrides the older 0.52–0.56rem badge rules). */
@media (max-width: 767px) { .label-badge { font-size: 0.72rem; letter-spacing: 0.08em; } }
@media (max-width: 380px) { .label-badge { font-size: 0.7rem;  letter-spacing: 0.06em; } }
.offer-tag { font-size: 0.72rem; }

/* Tap targets — the visible style stays the same, the touch area grows to ~44px. */
a[href^="tel:"], a[href^="mailto:"] { padding-top: 0.7rem; padding-bottom: 0.7rem; }
#services-grid a.nav-link { display: inline-block; padding: 0.75rem 0; margin-bottom: -0.75rem; }
#google-reviews-link { display: inline-block; padding: 0.7rem 0; }
.hero-dot, .review-dot { position: relative; }
.hero-dot::after, .review-dot::after { content: ""; position: absolute; inset: -16px -6px; }

/* Phones: "coming soon" slots were full-height empty tiles — screens of
   scrolling past nothing. Collapse them to compact text cards, and drop
   the empty slots from the Top Sellers row entirely. */
@media (max-width: 767px) {
    .plan-card--slot .todo-media { display: none; }
    .plan-card--slot > .p-6 { padding: 1rem 1.25rem; }
    #featured-plans .plan-card--slot { display: none; }
    #plans-listing { gap: 1rem; }
}

/* Phones: filters as a tidy 2×2 grid with full-width selects. */
@media (max-width: 639px) {
    .filter-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
    .filter-field { min-width: 0; }
    .filter-select { width: 100%; min-width: 0; font-size: 16px; }
    .filter-bar .filter-clear { grid-column: 1 / -1; justify-self: center; padding: 0.7rem 1rem; }
}
@media (max-width: 767px) { .plan-card--slot-repeat { display: none; } }
/* Phones: the fixed 4:3 review card was shorter than its 7-line clamp,
   slicing a line in half. Let the card size to its clamped text. */
@media (max-width: 640px) {
    .review-card { aspect-ratio: auto; min-height: 20rem; }
    .review-text { -webkit-line-clamp: 8; }
}
/* Footer social icons: 20px glyph, 44px touch area. */
#site-footer a[aria-label] { display: inline-flex; padding: 12px; margin: -12px 0; }

/* ═══════════════════════════════════════════════════════════
   REQUEST A PLAN  (request-plan.html)
   Big, tappable choice cards: package → as-is / changes → contact.
═══════════════════════════════════════════════════════════ */
.req-card { max-width: 46rem; }
.req-plan-hero { margin: 0 0 1.1rem; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,0.16); aspect-ratio: 16 / 9; background: rgba(255,255,255,0.03); }
.req-plan-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
html:not(.dark) .req-plan-hero { border-color: rgba(0,0,0,0.14); }
.req-step { border: 0; padding: 0; margin: 0 0 2rem; min-width: 0; }
.req-step:last-of-type { margin-bottom: 0; }
.req-legend {
    display: flex; align-items: center; gap: 0.7rem; padding: 0; margin-bottom: 1rem;
    font-family: 'Josefin Sans', sans-serif; font-weight: 700; font-size: 1.12rem; color: var(--white);
}
.req-num {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 1.9rem; height: 1.9rem; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35); font-size: 0.9rem; line-height: 1; padding-top: 0.12em;
}
.req-options { display: grid; gap: 0.85rem; }
@media (min-width: 640px) { .req-options--two { grid-template-columns: 1fr 1fr; } }
.req-option { position: relative; display: block; cursor: pointer; }
.req-option input { position: absolute; opacity: 0; pointer-events: none; }
.req-option-body {
    display: flex; flex-direction: column; gap: 0.45rem; height: 100%;
    padding: 1rem 1.15rem 1.05rem 3.1rem;
    border: 1px solid rgba(255,255,255,0.16); border-radius: 14px;
    background: rgba(255,255,255,0.03);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.req-option-body::before {            /* radio dot */
    content: ""; position: absolute; left: 1.1rem; top: 1.1rem;
    width: 1.25rem; height: 1.25rem; border-radius: 999px;
    border: 2px solid var(--silver); background: transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.req-option:hover .req-option-body { border-color: rgba(255,255,255,0.34); }
.req-option input:checked + .req-option-body {
    border-color: #fff; background: rgba(255,255,255,0.08);
    box-shadow: 0 0 22px rgba(255,255,255,0.08);
}
.req-option input:checked + .req-option-body::before { border-color: #fff; box-shadow: inset 0 0 0 4px var(--char-deep), inset 0 0 0 12px #fff; }
.req-option input:focus-visible + .req-option-body { outline: 2px solid #fff; outline-offset: 3px; }
.req-option-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.req-option-title { display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-family: 'Josefin Sans', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--white); }
.req-option-price { font-family: 'Josefin Sans', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--white); white-space: nowrap; }
.req-option-price small { font-weight: 400; font-size: 0.8rem; color: var(--silver); }
.req-option-text { font-size: 0.9rem; line-height: 1.45; color: var(--silver-lt); }
.req-option .tier-features { flex: none; gap: 0.45rem; margin: 0.15rem 0 0; }
.req-option .tier-feature { font-size: 0.88rem; }
html:not(.dark) .req-num { border-color: rgba(0,0,0,0.4); }
html:not(.dark) .req-option-body { border-color: rgba(0,0,0,0.18); background: rgba(255,255,255,0.55); }
html:not(.dark) .req-option-body::before { border-color: #555; }
html:not(.dark) .req-option:hover .req-option-body { border-color: rgba(0,0,0,0.4); }
html:not(.dark) .req-option input:checked + .req-option-body { border-color: #111; background: #fff; box-shadow: 0 0 18px rgba(0,0,0,0.10); }
html:not(.dark) .req-option input:checked + .req-option-body::before { border-color: #111; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 12px #111; }
html:not(.dark) .req-option input:focus-visible + .req-option-body { outline-color: #111; }
html:not(.dark) .req-option-text { color: #333; }
html:not(.dark) .req-option-price small { color: #444; }

/* Floor plans in the lightbox get more room so room labels stay readable */
.lightbox-stage { max-width: 1320px; }
.lightbox-img { max-width: min(94vw, 1320px); max-height: 80vh; }
.lightbox-img[src*="floorplan"] { background: transparent; box-shadow: none; }
@media (max-width: 640px) { .lightbox-img { max-height: 70vh; } }
/* Phones: park the lightbox arrows under the image so they never cover a floor plan */
@media (max-width: 640px) {
    .lightbox-nav, .lightbox-nav:hover:not([disabled]) { top: auto; bottom: 0.25rem; transform: none; }
    .lightbox-prev { left: 0.5rem; } .lightbox-next { right: 0.5rem; }
}

/* LiDAR "See the difference" rows — Residential / Commercial. Image leads on
   phones; the second row flips the image to the right on desktop. */
.lidar-row + .lidar-row { margin-top: 3rem; }
@media (min-width: 1024px) {
    .lidar-row { column-gap: 3rem; }
    .lidar-row--flip > figure { order: 2; }
}


/* Buy Now button (plans with a checkout link in the plans sheet) */
.plan-buy-btn { display: flex; width: 100%; text-align: center; }
