/* =========================================================================
   LOCAL CHEROKEE - CRITICAL ABOVE-THE-FOLD CSS
   Awwwards High-Fidelity Performance Architecture
   ========================================================================= */

:root {
    --bg-primary: #fcfcfc;
    --bg-secondary: #f3f3f3;
    --text-primary: #121212;
    --text-secondary: #6e6e6e;
    --accent: #E55039;
    --accent-dark: #b33929;
    --verified: #000000;

    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-max: 1600px;
    --padding-global: 5vw;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.nav-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--padding-global);
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: white !important;
    font-family: 'Inter', sans-serif !important;
}

.logo {
    font-family: 'Syne', sans-serif !important;
    font-size: clamp(16px, 4vw, 22px);
    font-weight: 800;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: white !important;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600;
    font-size: 13px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.5;
}

.nav-action-btn {
    background: var(--text-primary);
    color: white !important;
    padding: 10px 22px;
    border-radius: 40px;
    font-size: 13px !important;
}

.nav-action-btn:hover {
    opacity: 0.8 !important;
}

.nav-hamburger {
    display: none;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    padding: 5px;
}

.engine-hero {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--padding-global);
    position: relative;
    background-color: #0c0c0c;
    color: white;
    overflow: hidden;
}

.hero-bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
    background-size: cover;
    background-position: center;
}

.hero-bg-media picture,
.hero-bg-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
}

.hero-content h1 {
    font-size: clamp(2rem, 4.5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 30px;
    color: white;
    font-weight: 800;
}

.decision-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 12px 12px 12px 28px;
    width: 100%;
    max-width: 900px;
    transition: background 0.3s, border-color 0.3s;
}

.decision-bar:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.search-input {
    flex: 2;
    background: transparent;
    border: none;
    color: white;
    font-family: var(--font-heading);
    font-size: 24px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.location-input {
    flex: 1;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--font-body);
    font-size: 18px;
    padding-left: 20px;
    outline: none;
}

.submit-decision {
    background: var(--accent);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 20px;
}

.submit-decision:hover {
    transform: scale(1.1);
}

.hero-tags {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    align-items: center;
}

.h-tag {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: 0.3s;
}

.h-tag:hover {
    background: white;
    color: black;
}

@media (max-width: 768px) {
    :root {
        --padding-global: 18px;
    }
    .nav-hamburger {
        display: block;
    }
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(26,26,46,0.98);
        padding: 20px var(--padding-global) 30px;
        gap: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        z-index: 999;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 16px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .nav-links a:last-child {
        border-bottom: none;
    }
    .engine-hero {
        padding-top: 80px;
        justify-content: flex-end;
        padding-bottom: 50px;
        height: auto;
        min-height: 100vh;
    }
    .hero-content h1 {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
        line-height: 1.15;
        margin-bottom: 24px;
    }
    .decision-bar {
        flex-direction: column;
        align-items: stretch;
        border-radius: 16px;
        padding: 16px;
        gap: 12px;
    }
    .search-input,
    .location-input {
        width: 100%;
        border-left: none;
        padding-left: 0;
        font-size: 18px;
    }
    .submit-decision {
        width: 100%;
        border-radius: 12px;
        height: 52px;
    }
    .hero-tags {
        flex-wrap: wrap;
        margin-top: 24px;
    }
}

/* ==========================================================================
   UNIVERSAL STAT BOX & METRIC SYSTEM (CRITICAL INLINE PRE-PAINT)
   Prevents text clipping, horizontal overflow, and grid overlap site-wide
   ========================================================================== */
.stat-box,
.stat-box-custom,
.stat-box-ers,
.stat-box-adlg {
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 16px 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background: var(--bg-secondary, #f8fafc) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
    position: relative !important;
}

.stat-box:hover,
.stat-box-custom:hover,
.stat-box-ers:hover,
.stat-box-adlg:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06) !important;
}

.stat-number,
.stat-number-custom,
.stat-number-ers,
.stat-number-adlg {
    display: block !important;
    font-size: clamp(16px, 1.3vw, 22px) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: var(--navy-custom, #1a202c) !important;
    font-family: var(--font-heading, 'Syne', sans-serif) !important;
    max-width: 100% !important;
    width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    letter-spacing: -0.02em !important;
    text-align: center !important;
    box-sizing: border-box !important;
    padding: 0 2px !important;
}

/* Scale text words down so they never clip or truncate */
.stat-number.is-text,
.stat-number-custom.is-text,
.stat-number-ers.is-text,
.stat-number-adlg.is-text {
    font-size: clamp(13px, 0.95vw, 15px) !important;
    letter-spacing: -0.01em !important;
}

.stat-label,
.stat-label-custom,
.stat-label-ers,
.stat-label-adlg {
    display: block !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--text-secondary, #64748b) !important;
    margin-top: 6px !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    text-align: center !important;
    box-sizing: border-box !important;
}
