/*
Theme Name: Locksmith Developer Theme
Theme URI: https://mobilelocksmithsexpress.com
Author: Mobile Locksmith Express
Description: Custom high-performance theme for Mobile Locksmith Express. Designed for speed, SEO, and conversions. Works with the Locksmith Developer Plugin.
Version: 1.8.0
Text Domain: locksmith-developer
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ============================================================
   DESIGN SYSTEM — Material Design 3 Tokens + Brand Overrides
   Fonts: Montserrat (headlines) + Open Sans (body)
   ============================================================ */

:root {
    /* Primary */
    --primary: #745b00;
    --on-primary: #ffffff;
    --primary-container: #f5c518;
    --on-primary-container: #695200;
    --on-primary-fixed: #241a00;
    --on-primary-fixed-variant: #584400;
    --primary-fixed: #ffe08b;
    --primary-fixed-dim: #f0c110;
    --inverse-primary: #f0c110;

    /* Secondary */
    --secondary: #5f5e5e;
    --on-secondary: #ffffff;
    --secondary-container: #e4e2e1;
    --on-secondary-container: #656464;
    --secondary-fixed: #e4e2e1;
    --secondary-fixed-dim: #c8c6c6;
    --on-secondary-fixed: #1b1c1c;
    --on-secondary-fixed-variant: #474747;

    /* Tertiary (teal — availability) */
    --tertiary: #00687c;
    --on-tertiary: #ffffff;
    --tertiary-container: #49dbff;
    --on-tertiary-container: #005e70;
    --tertiary-fixed: #b0ecff;
    --tertiary-fixed-dim: #42d7fb;
    --on-tertiary-fixed: #001f27;
    --on-tertiary-fixed-variant: #004e5e;

    /* Error */
    --error: #ba1a1a;
    --on-error: #ffffff;
    --error-container: #ffdad6;
    --on-error-container: #93000a;

    /* Surface */
    --surface: #fcf9f8;
    --on-surface: #1c1b1b;
    --on-surface-variant: #4e4633;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f6f3f2;
    --surface-container: #f0eded;
    --surface-container-high: #eae7e7;
    --surface-container-highest: #e5e2e1;
    --surface-dim: #dcd9d9;
    --surface-bright: #fcf9f8;
    --surface-variant: #e5e2e1;
    --surface-tint: #745b00;
    --inverse-surface: #313030;
    --inverse-on-surface: #f3f0ef;

    /* Outline */
    --outline: #807660;
    --outline-variant: #d1c5ac;

    /* Background */
    --background: #fcf9f8;
    --on-background: #1c1b1b;

    /* Fonts */
    --font-headline: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --max-w: 1280px;
    --px: 1.5rem;

    /* Radius */
    --radius-sm: 0.125rem;
    --radius-md: 0.25rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    color: var(--on-surface);
    background: var(--surface);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    width: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Prevent any element from causing horizontal scroll */
.site-footer, .hero, section, .container:not(.header-inner), .mobile-nav {
    max-width: 100vw;
    overflow-x: hidden;
}
/* Header inner must have overflow visible for dropdowns and search results */
.site-header .header-inner {
    overflow: visible !important;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-headline); line-height: 1.1; }
::selection { background: var(--primary-container); color: var(--on-primary-container); }

/* ============================================================
   UTILITIES
   ============================================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding-left: var(--px); padding-right: var(--px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.font-headline { font-family: var(--font-headline); }

/* Prose styling for WordPress content (Terms, Privacy, generic pages) */
.prose-content h2 { font-family: var(--font-headline); font-size: 1.375rem; font-weight: 800; margin: 2.5rem 0 1rem; color: var(--on-surface); }
.prose-content h3 { font-family: var(--font-headline); font-size: 1.125rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--on-surface); }
.prose-content h4 { font-family: var(--font-headline); font-size: 1rem; font-weight: 700; margin: 1.5rem 0 0.5rem; color: var(--on-surface); }
.prose-content p { margin: 0 0 1.25rem; }
.prose-content ul, .prose-content ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.prose-content li { margin-bottom: 0.5rem; }
.prose-content strong { color: var(--on-surface); font-weight: 700; }
.prose-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.prose-content a:hover { color: var(--primary-container); }
.prose-content blockquote { border-left: 3px solid var(--primary-container); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--surface-container-low); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.font-body { font-family: var(--font-body); }
.text-display { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 0.95; }
.text-h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 0.95; }
.text-h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.text-h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 700; line-height: 1.2; }
.text-h4 { font-size: clamp(1.1rem, 1.5vw, 1.25rem); font-weight: 700; line-height: 1.3; }
.text-body-lg { font-size: 1.125rem; line-height: 1.7; }
.text-body { font-size: 1rem; line-height: 1.6; }
.text-sm { font-size: 0.875rem; line-height: 1.5; }
.text-xs { font-size: 0.75rem; line-height: 1.4; }
.text-label {
    font-family: var(--font-body);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.02em; }
.tracking-wide { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.15em; }
.italic { font-style: italic; }
.font-black { font-weight: 900; }
.font-extrabold { font-weight: 800; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* ============================================================
   COLORS
   ============================================================ */
.text-primary { color: var(--primary); }
.text-primary-container { color: var(--primary-container); }
.text-on-surface { color: var(--on-surface); }
.text-on-surface-variant { color: var(--on-surface-variant); }
.text-tertiary { color: var(--tertiary); }
.text-white { color: #fff; }
.bg-surface { background: var(--surface); }
.bg-surface-container { background: var(--surface-container); }
.bg-surface-container-low { background: var(--surface-container-low); }
.bg-surface-container-lowest { background: var(--surface-container-lowest); }
.bg-surface-container-high { background: var(--surface-container-high); }
.bg-on-surface { background: var(--on-surface); }
.bg-primary-container { background: var(--primary-container); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-family: var(--font-headline); font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.05em; border: none; cursor: pointer;
    transition: all 0.2s ease; text-decoration: none;
}
.btn-primary {
    background: var(--primary-container); color: var(--on-primary-fixed);
    padding: 0.875rem 2rem; border-radius: var(--radius-xl);
    font-size: 0.875rem;
}
.btn-primary:hover { background: var(--primary-fixed-dim); box-shadow: 0 8px 24px rgba(245,197,24,0.25); transform: translateY(-1px); }
.btn-dark {
    background: var(--on-surface); color: var(--primary-container);
    padding: 0.875rem 2rem; border-radius: var(--radius-xl);
    font-size: 0.875rem;
}
.btn-dark:hover { background: var(--primary); }
.btn-outline {
    background: transparent; border: 2px solid var(--primary-container);
    color: var(--primary-container); padding: 0.875rem 2rem;
    border-radius: var(--radius-xl); font-size: 0.875rem;
}
.btn-outline:hover { background: var(--primary-container); color: var(--on-primary-fixed); }
.btn-phone {
    background: var(--tertiary); color: #fff;
    padding: 0.875rem 2rem; border-radius: var(--radius-xl);
    font-size: 0.875rem;
}
.btn-phone:hover { filter: brightness(0.9); }
.btn-lg { padding: 1.25rem 3rem; font-size: 1.125rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky; top: 0; width: 100%; z-index: 50;
    background: var(--surface-bright);
    box-shadow: 0 32px 32px rgba(28,27,27,0.06);
    overflow: visible;
}
.site-header .header-inner {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem var(--px); max-width: var(--max-w); margin: 0 auto; gap: 1.5rem;
}
.site-header .site-logo {
    font-family: var(--font-headline); font-size: 1.25rem; font-weight: 900;
    font-style: italic; text-transform: uppercase; letter-spacing: -0.02em;
    color: var(--on-surface); flex-shrink: 0;
}
.site-header .site-logo img { height: 40px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 2rem; flex-shrink: 1; min-width: 0; }
.site-header nav > a,
.site-header nav > .nav-dropdown-wrap > a {
    font-family: var(--font-headline); font-weight: 700; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: -0.01em;
    color: var(--on-surface); opacity: 0.8;
    transition: color 0.3s, opacity 0.3s; white-space: nowrap;
}
.site-header nav > a:hover, .site-header nav > a.active,
.site-header nav > .nav-dropdown-wrap:hover > a {
    color: var(--primary-container); opacity: 1;
}
.site-header nav > a.active { border-bottom: 2px solid var(--primary-container); color: var(--primary); }
.nav-dropdown-wrap { position: relative; }
.header-search { flex-shrink: 1; min-width: 0; }
.header-phone {
    display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0;
}
.header-phone .phone-label { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--primary); }
.header-phone .phone-number { font-family: var(--font-headline); font-size: 1.125rem; font-weight: 900; color: var(--on-surface); }
.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--on-surface); }
.menu-toggle .material-symbols-outlined { font-size: 1.75rem; }

@media (max-width: 1200px) {
    .header-cta-btn { display: none !important; }
}
@media (max-width: 900px) {
    .site-header nav { display: none; }
    .header-search { display: none !important; }
    .header-phone { display: none !important; }
    .menu-toggle { display: block; }
}
@media (max-width: 768px) {
    .header-actions .btn { display: none !important; }
    .header-search { display: none !important; }
    .header-phone { display: none !important; }
    .site-header nav { display: none !important; }
    .site-header .header-inner { gap: 0.75rem; padding: 0.75rem 1rem; }
}

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.mobile-nav {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 50;
    background: rgba(28,27,27,0.92); backdrop-filter: blur(20px);
    padding: 0.75rem 1rem; padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    justify-content: space-around; align-items: center;
}
.mobile-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7); padding: 0.5rem; text-decoration: none;
    transition: color 0.2s;
}
.mobile-nav a span.nav-label {
    font-family: var(--font-body); font-size: 0.625rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.25rem;
}
.mobile-nav a.active {
    color: var(--primary-container); background: rgba(245,197,24,0.1);
    border-radius: var(--radius-xl); padding: 0.5rem 0.75rem;
}
@media (max-width: 768px) {
    .mobile-nav { display: flex; }
    body { padding-bottom: 5rem; }
    .contact-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
}

/* ============================================================
   AVAILABILITY DOT
   ============================================================ */
.availability-badge {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 1rem; border-radius: 9999px;
    background: rgba(0,104,124,0.2); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
}
.pulse-dot {
    position: relative; display: inline-flex; width: 0.75rem; height: 0.75rem;
}
.pulse-dot::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: var(--dot-color, #00687c); opacity: 0.75;
    animation: pulse-ring 2s infinite;
}
.pulse-dot::after {
    content: ''; position: relative; display: inline-flex;
    width: 0.75rem; height: 0.75rem; border-radius: 50%;
    background: var(--dot-color, #00687c);
}
@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(var(--dot-color-rgb, 0,104,124), 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0,0,0,0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}
.availability-badge .badge-text {
    color: #fff; font-weight: 700; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.15em;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--surface-container-lowest);
    padding: 2rem; border-radius: var(--radius-xl);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}
.card-icon {
    width: 4rem; height: 4rem; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-2xl); margin-bottom: 1.5rem;
    background: rgba(245,197,24,0.1); transition: background 0.3s;
}
.card:hover .card-icon { background: var(--primary-container); }
.card-icon .material-symbols-outlined { font-size: 2rem; color: var(--primary); transition: color 0.3s; }
.card:hover .card-icon .material-symbols-outlined { color: var(--on-primary-fixed); }
.card-border-primary { border-bottom: 4px solid var(--primary-container); }
.card-border-tertiary { border-bottom: 4px solid var(--tertiary); }
.card-border-dark { border-bottom: 4px solid var(--on-surface); }
.card-dark {
    background: var(--on-surface); color: #fff;
    border-bottom: 4px solid var(--primary);
}
.card-dark p { color: rgba(255,255,255,0.6); }

/* ============================================================
   FORMS
   ============================================================ */
.ldp-form input, .ldp-form select, .ldp-form textarea {
    width: 100%; padding: 0.75rem 1rem;
    background: var(--surface-container-low);
    border: none; border-bottom: 2px solid var(--outline-variant);
    font-family: var(--font-body); font-size: 1rem; color: var(--on-surface);
    transition: border-color 0.2s;
    outline: none;
}
.ldp-form input:focus, .ldp-form select:focus, .ldp-form textarea:focus {
    border-color: var(--primary-container);
}
.ldp-form input::placeholder, .ldp-form textarea::placeholder {
    color: var(--on-surface-variant); opacity: 0.6;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-item {
    background: var(--surface-container-low);
    border-radius: var(--radius-2xl); padding: 1.5rem;
    margin-bottom: 1rem; transition: background 0.2s;
}
.faq-item[open] { background: rgba(245,197,24,0.05); }
.faq-item summary {
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-headline); font-weight: 700; font-size: 1.125rem;
    cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform 0.2s; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item .faq-answer {
    margin-top: 1rem; color: var(--on-surface-variant); line-height: 1.7;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.section-lg { padding: 8rem 0; }
.section-dark { background: var(--on-surface); color: #fff; }
.section-dark p { color: rgba(255,255,255,0.6); }

/* Hero */
.hero {
    position: relative; min-height: 600px; display: flex; align-items: center;
    overflow: hidden; padding: 5rem 0;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, var(--on-surface), rgba(28,27,27,0.8), transparent);
}
.hero-content { position: relative; z-index: 10; }

/* Trust Bar */
.trust-bar {
    background: var(--surface-container-low); padding: 2rem 0; overflow: hidden;
}
.trust-bar .trust-inner {
    display: flex; flex-wrap: wrap; justify-content: center;
    align-items: center; gap: 2rem 3rem;
}
.trust-item {
    display: flex; align-items: center; gap: 0.75rem;
    opacity: 0.6; transition: opacity 0.3s;
}
.trust-item:hover { opacity: 1; }
.trust-item span.trust-text { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; }

/* Nearby Pills */
.nearby-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.nearby-pill {
    padding: 0.5rem 1.5rem; border-radius: 9999px;
    background: var(--surface-container-low);
    border: 1px solid rgba(209,197,172,0.2);
    font-weight: 500; font-size: 0.875rem;
    transition: all 0.2s;
}
.nearby-pill:hover {
    background: var(--primary-container); color: var(--on-primary-fixed);
}

/* CTA Strip */
.cta-strip {
    background: var(--primary-container); padding: 3rem 0;
}
.cta-strip .cta-inner {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 2rem;
}
.cta-strip-dark { background: var(--on-surface); }

/* ============================================================
   GRID HELPERS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    /* Force inline grids to single column on mobile */
    .container > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    .container > div > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    /* CTA strip stack */
    .cta-inner { flex-direction: column !important; text-align: center; gap: 1.5rem !important; }
    .cta-inner .btn { width: 100%; justify-content: center; }
    /* Sections breathing room */
    .section { padding: 3rem 0; }
    .hero-content { padding: 3rem 0 !important; }
    /* Hero stats: horizontal centered row, reduce bottom space */
    .hero-stats {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        text-align: center;
        gap: 1rem 2rem !important;
        margin-top: 2rem !important;
        padding-top: 1.25rem !important;
        width: 100%;
    }
    .hero-stats > div { text-align: center; }
    /* Hide vertical dividers on mobile */
    .hero-stats > div[style*="width:1px"] { display: none !important; }
    .hero { padding-bottom: 0 !important; }
    /* Prevent iOS zoom on input focus */
    input[type="text"], input[type="email"], input[type="tel"], input[type="search"], textarea, select {
        font-size: 16px !important;
    }
    /* Lock viewport - prevent any horizontal shift */
    .mobile-menu-overlay input { font-size: 16px !important; touch-action: manipulation; }
    /* Hero CTA buttons stack on mobile */
    .hero-content > div > div[style*="display:flex"][style*="flex-wrap"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .hero-content > div > div[style*="display:flex"][style*="flex-wrap"] > a {
        text-align: center;
        justify-content: center;
    }
    /* Flex layouts stack on mobile (except hero-stats which stays row) */
    .container > div[style*="flex-wrap"]:not(.hero-stats),
    .container > div[style*="display:flex"]:not(.hero-stats),
    .container > div[style*="display: flex"]:not(.hero-stats) {
        flex-direction: column !important;
    }
    /* Hero two-column → stack */
    .hero-content[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    /* Text sizing */
    .text-display { font-size: 2.5rem !important; }
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.5rem !important; }
    /* Full-width buttons */
    .btn-lg { width: 100%; justify-content: center; text-align: center; }
    /* Map section: panel below map */
    #state-panel { position: static !important; }
    /* Forms: full width fields */
    .ldp-form-grid { grid-template-columns: 1fr !important; }
    /* Stats bar stack */
    section > .container[style*="gap:4rem"] { gap: 2rem !important; }
    /* Footer grid */
    .site-footer .container > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 2rem !important; }
    /* Service cards */
    div[style*="grid-template-columns: repeat(4"],
    div[style*="grid-template-columns:repeat(4"],
    div[style*="grid-template-columns: repeat(3"],
    div[style*="grid-template-columns:repeat(3"],
    div[style*="grid-template-columns: repeat(2"],
    div[style*="grid-template-columns:repeat(2"] {
        grid-template-columns: 1fr !important;
    }
    /* Sticky elements: un-stick on mobile */
    div[style*="position:sticky"],
    div[style*="position: sticky"] {
        position: static !important;
    }
    /* Near Me hero form */
    div[style*="flex:0 0 420px"],
    div[style*="flex:0 0 380px"] {
        flex: 1 1 100% !important;
        min-width: 100% !important;
    }
    /* Padding adjustments */
    .container { padding-left: 1rem; padding-right: 1rem; }
    /* Stats bar: horizontal row on mobile, not stacked tall */
    section > .container[style*="gap:4rem"],
    section > .container[style*="gap: 4rem"] {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 1.5rem 2rem !important;
        justify-content: center !important;
    }
    section > .container[style*="gap:4rem"] > div,
    section > .container[style*="gap: 4rem"] > div {
        flex: 0 0 auto !important;
        text-align: center;
    }
    section > .container[style*="gap:4rem"] .font-headline,
    section > .container[style*="gap: 4rem"] .font-headline {
        font-size: 1.75rem !important;
    }
    /* Brand logos section compact */
    section[style*="background:var(--on-surface)"] .brand-scroll-wrap,
    div[style*="flex-wrap:wrap"][style*="justify-content:center"][style*="gap:2.5rem"] {
        gap: 1.5rem 2rem !important;
    }
    div[style*="flex-wrap:wrap"][style*="justify-content:center"] .font-headline[style*="font-size:1.5rem"],
    div[style*="flex-wrap:wrap"][style*="justify-content:center"] .font-headline[style*="font-size:2rem"] {
        font-size: 1rem !important;
    }
    /* Trust section: stack on mobile */
    div[style*="grid-template-columns:1fr 1fr"][style*="gap:3rem"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    /* Trust badges: center */
    div[style*="grid-template-columns:1fr 1fr"][style*="gap:1rem"][style*="margin-top"] {
        justify-items: start;
    }
    /* Payment icons: center on mobile */
    .payment-icons { justify-content: center; }
    /* Footer: center content */
    .site-footer { text-align: center; }
    .site-footer .footer-logo { display: flex; justify-content: center; }
    .site-footer p { max-width: 100% !important; }
    .site-footer div[style*="display:flex"][style*="gap:1rem"] { justify-content: center; }
    .site-footer h4 { text-align: center; }
    .site-footer ul { align-items: center; }
    .site-footer a[style*="display:flex"] { justify-content: center; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #1c1b1b; color: rgba(255,255,255,0.5);
    padding: 4rem 0 6rem;
}
.site-footer h4 {
    color: var(--primary-container); font-weight: 700;
    text-transform: uppercase; font-size: 0.75rem;
    letter-spacing: 0.15em; margin-bottom: 1.5rem;
}
.site-footer a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-logo {
    font-family: var(--font-headline); font-size: 1.5rem; font-weight: 900;
    color: #fff; text-transform: uppercase; font-style: italic;
    margin-bottom: 1.5rem;
}
.payment-icons {
    display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
}
.payment-icons img { height: 28px; width: auto; opacity: 0.6; transition: opacity 0.2s; }
.payment-icons img:hover { opacity: 1; }

/* ============================================================
   NAV DROPDOWN
   ============================================================ */
.nav-dropdown-wrap > a { padding-bottom: 0; }
.nav-dropdown {
    visibility: hidden; opacity: 0; position: absolute; top: calc(100% + 0.75rem); left: 50%; transform: translateX(-50%);
    background: #fff; border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px; box-shadow: 0 16px 48px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.05);
    padding: 0.625rem; min-width: 230px; z-index: 100;
    transition: opacity 0.15s, visibility 0.15s;
    pointer-events: none;
}
.nav-dropdown::after {
    content: ''; position: absolute; top: -20px; left: 0; right: 0; height: 20px;
}
.nav-dropdown::before {
    content: ''; position: absolute; top: -6px; left: 50%;
    width: 12px; height: 12px; background: #fff;
    border: 1px solid rgba(0,0,0,0.08); border-bottom: none; border-right: none;
    transform: translateX(-50%) rotate(45deg); z-index: 1;
}
.nav-dropdown a {
    display: flex !important; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem !important; border-radius: 8px;
    color: #1c1b1b !important; font-weight: 600 !important;
    font-size: 0.875rem !important; text-transform: none !important;
    letter-spacing: 0 !important; transition: background 0.15s;
    opacity: 1 !important; font-family: var(--font-body) !important;
    white-space: nowrap;
}
.nav-dropdown a:hover {
    background: #f6f3f2 !important;
    color: #c49b00 !important;
}
.nav-dropdown a .material-symbols-outlined { color: #f5c518; font-size: 1.25rem; }
.nav-dropdown-wrap:hover .nav-dropdown {
    visibility: visible; opacity: 1; pointer-events: auto;
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mob-nav-link {
    display: block; padding: 0.875rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #fff; font-family: var(--font-headline); font-weight: 700;
    font-size: 1rem; text-transform: uppercase; letter-spacing: 0.02em;
    text-decoration: none;
}
.mob-nav-link:hover { color: var(--primary-container); }
.mob-nav-group { border-bottom: 1px solid rgba(255,255,255,0.06); }
.mob-nav-sub {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    padding-left: 1rem;
}
.mob-nav-group.open .mob-nav-sub { max-height: 300px; }
.mob-nav-group.open button .material-symbols-outlined { transform: rotate(180deg); }
.mob-nav-sub a {
    display: flex; align-items: center; gap: 0.625rem;
    padding: 0.5rem 0; color: rgba(255,255,255,0.5);
    font-size: 0.875rem; font-weight: 600; text-decoration: none;
}
.mob-nav-sub a .material-symbols-outlined { color: var(--primary-container); font-size: 1.125rem; }
.mob-nav-sub a:hover { color: var(--primary-container); }

/* ============================================================
   BRAND LOGOS MARQUEE (mobile-friendly scrolling)
   ============================================================ */
.brand-scroll-wrap {
    overflow: hidden; position: relative;
}
.brand-scroll-wrap::before,
.brand-scroll-wrap::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 3rem; z-index: 2; pointer-events: none;
}
.brand-scroll-wrap::before { left: 0; background: linear-gradient(to right, var(--on-surface), transparent); }
.brand-scroll-wrap::after { right: 0; background: linear-gradient(to left, var(--on-surface), transparent); }
.brand-scroll {
    display: flex; gap: 3rem; align-items: center;
    animation: brandScroll 20s linear infinite;
    width: max-content;
}
.brand-scroll:hover { animation-play-state: paused; }
@keyframes brandScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   FOOTER LOGO
   ============================================================ */
.footer-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.footer-logo a { display: inline-block; }

/* ============================================================
   PAYMENT/TRUST ICONS CENTERING (mobile)
   ============================================================ */
@media (max-width: 640px) {
    .payment-icons { justify-content: center; }
}

/* ============================================================
   HOMEPAGE HERO
   ============================================================ */
.homepage-hero { min-height: 870px; }
@media (max-width: 640px) {
    .homepage-hero { min-height: auto !important; }
    .homepage-hero .hero-content { padding: 3rem 0 2rem !important; }
}

/* ============================================================
   MATERIAL SYMBOLS
   ============================================================ */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block; line-height: 1; text-transform: none;
    letter-spacing: normal; word-wrap: normal; white-space: nowrap; direction: ltr;
}
.icon-filled { font-variation-settings: 'FILL' 1; }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .site-header, .site-footer, .mobile-nav, .cta-strip { display: none; }
    .hero { min-height: auto; padding: 2rem 0; }
    body { font-size: 12pt; color: #000; }
}
