/* Modern Auto Parts Store Styling */
:root {
    --primary-color: #d4af37; /* Gold */
    --secondary-color: #b8860b; /* Dark Gold */
    --accent-color: #dc143c; /* Red */
    --dark-color: #000000; /* Black */
    --light-color: #f8f8f8;
    --success-color: #28a745;
    --danger-color: #dc143c;
    --text-dark: #000000;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    margin-bottom: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-4 {
    font-weight: 700;
    font-size: 3.5rem;
}

/* Navigation Styling */
.top-bar {
    font-size: 0.875rem;
    background-color: var(--dark-color) !important;
}

.navbar {
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    background-color: #ffffff !important;
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    color: var(--dark-color) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    background-color: #ffffff;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: background-color 0.2s ease;
    color: var(--dark-color);
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: #ffffff;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    color: var(--dark-color);
}

.btn-danger {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-danger:hover {
    background-color: #b91c3c;
    border-color: #b91c3c;
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #333333 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23d4af37" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23d4af37" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23d4af37" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23d4af37" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23d4af37" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Enhanced Landing Hero */
.hero-landing { position:relative; overflow:hidden; }
.hero-overlay-gradient { position:absolute; inset:0; background:radial-gradient(circle at 65% 40%, rgba(212,175,55,0.25), rgba(0,0,0,0) 55%), linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,.65) 60%, rgba(0,0,0,.8) 100%); mix-blend-mode:normal; }
.hero-inner { padding-top:5vh; }
.landing-title { font-size:clamp(2.8rem,6.2vw,5rem); font-weight:600; line-height:1.05; margin-bottom:1.25rem; letter-spacing:.5px; }
.landing-title .brand { display:block; }
.landing-title .accent { color:var(--primary-color); text-shadow:0 0 12px rgba(212,175,55,.45); }
.landing-subtitle { font-size:clamp(1.05rem,1.3vw,1.4rem); font-weight:300; max-width:860px; margin:0 auto 2rem; opacity:.92; }
.rotator { display:inline-block; position:relative; min-width:180px; margin-left:.65rem; font-size:clamp(1.2rem,2.2vw,2.2rem); font-weight:500; background:linear-gradient(90deg,var(--primary-color),#fff); -webkit-background-clip:text; color:transparent; animation:fadeIn 1s ease; }
.rotator::after { content:'|'; position:absolute; right:-10px; top:0; color:var(--primary-color); animation:blink 1s steps(2,start) infinite; }
@keyframes blink { 50% { opacity:0; } }

/* Glass stats card */
.hero-stats { display:inline-flex; gap:1.75rem; padding:1.4rem 2.4rem; border-radius:2.5rem; backdrop-filter:blur(14px) saturate(170%); background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.2); box-shadow:0 10px 35px -10px rgba(0,0,0,.55); animation:fadeInUp 1.1s ease .3s both; }
.hero-stats .divider { width:1px; background:linear-gradient(to bottom, rgba(255,255,255,.1), rgba(255,255,255,.6), rgba(255,255,255,.1)); align-self:stretch; }
.hero-stats .stat-item { text-align:center; min-width:120px; }
.hero-stats .stat-item .value { font-size:1.9rem; font-weight:600; color:var(--primary-color); line-height:1.1; letter-spacing:.5px; }
.hero-stats .stat-item .value span { font-size:1.05rem; margin-left:2px; color:#fff; font-weight:400; }
.hero-stats .stat-item .label { font-size:.78rem; text-transform:uppercase; letter-spacing:1.5px; color:#f5f5f5; opacity:.75; margin-top:.35rem; font-weight:500; }

/* Scroll indicator */
.scroll-indicator { position:absolute; left:50%; bottom:40px; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:.65rem; font-size:.8rem; letter-spacing:1.5px; text-transform:uppercase; color:#eee; animation:fadeIn 1.2s ease 1s both; }
.scroll-indicator .mouse { width:28px; height:46px; border:2px solid rgba(255,255,255,.65); border-radius:18px; position:relative; display:flex; justify-content:center; }
.scroll-indicator .mouse .wheel { width:4px; height:10px; background:var(--primary-color); border-radius:2px; margin-top:8px; animation:wheelSlide 2.2s cubic-bezier(.65,.05,.36,1) infinite; }
@keyframes wheelSlide { 0% { transform:translateY(0); opacity:1;} 60% { opacity:1;} 100% { transform:translateY(16px); opacity:0;} }
.scroll-indicator .text { font-weight:500; font-size:.7rem; opacity:.75; }
.override-scroll-indicator { position:static; transform:none; bottom:auto; left:auto; margin-top:2.25rem; }
.override-scroll-indicator .text { font-size:.65rem; letter-spacing:2px; }
/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--dark-color);
    font-size: 2rem;
}

/* Categories Section */
.categories-section {
    padding: 5rem 0;
}

.category-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    font-size: 3rem;
}

.category-content {
    padding: 1.5rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #333333 100%);
    color: white;
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.testimonial-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    top: -1rem;
    left: 1rem;
    opacity: 0.2;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, #b91c3c 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

/* Contact Info Section */
.contact-item {
    text-align: center;
    padding: 1rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    color: var(--primary-color);
}

/* Game Section */
.game-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #333333 100%);
    color: white;
}

.game-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.game-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.game-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.game-stats .stat i {
    font-size: 1.5rem;
}

.game-controls {
    display: flex;
    gap: 1rem;
}

.game-canvas-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

#gameCanvas {
    border: 3px solid var(--primary-color);
    border-radius: 0.5rem;
    background: #000;
    max-width: 100%;
    height: auto;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

.game-message {
    text-align: center;
    color: white;
}

.game-message h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.game-instructions {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-instructions h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.game-instructions ul li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Game */
@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .game-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .game-controls {
        justify-content: center;
    }
    
    #gameCanvas {
        width: 100%;
        height: auto;
    }
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer h5, .footer h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #333333;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var,--dark-color) !important;
    transform: translateY(-2px);
}

/* ============================================================
   CONTACTLESS CONVERSION COMPONENTS
   ============================================================ */

/* --- Req 1: Call-to-Check-Stock Button --- */
.btn-call-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #1a3c8f;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    position: relative;
    cursor: pointer;
}
.btn-call-stock:hover,
.btn-call-stock:focus {
    background: #122a6a;
    color: #fff;
    box-shadow: 0 6px 20px rgba(26, 60, 143, 0.45);
    transform: translateY(-1px);
}
/* Desktop tooltip */
.btn-call-stock::after {
    content: attr(data-phone);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.btn-call-stock:hover::after { opacity: 1; }

/* Mobile sticky call bar */
.sticky-call-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    background: #1a3c8f;
    color: #fff;
    padding: 0.85rem 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.25);
}
@media (max-width: 767.98px) {
    .sticky-call-bar { display: flex; }
    /* Push page content above bar */
    body { padding-bottom: 58px; }
}

/* --- Req 2: LINE FAB --- */
.line-fab-wrap {
    position: fixed;
    bottom: 80px;
    right: calc(24px + env(safe-area-inset-right));
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
@media (max-width: 767.98px) {
    /* Sit above sticky call bar */
    .line-fab-wrap { bottom: 72px; }
}
.line-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #06C755;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(6,199,85,0.45);
    animation: linePulse 2.4s ease-out 0.6s 3;
    transition: transform 0.2s, box-shadow 0.2s;
}
.line-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(6,199,85,0.6);
    color: #fff;
}
@keyframes linePulse {
    0%   { box-shadow: 0 0 0 0 rgba(6,199,85,0.6); }
    60%  { box-shadow: 0 0 0 14px rgba(6,199,85,0); }
    100% { box-shadow: 0 0 0 0 rgba(6,199,85,0); }
}
.line-fab-tooltip {
    background: #fff;
    color: #111;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 230px;
    transition: opacity 0.3s;
}
.line-fab-tooltip .dismiss-tip {
    background: none;
    border: none;
    padding: 0 0 0 4px;
    font-size: 1rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
}
.line-fab-tooltip.hidden { display: none; }

/* ============================================================ */

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .features-section,
    .categories-section,
    .testimonials-section {
        padding: 3rem 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.text-danger {
    color: var(--accent-color) !important;
}

.bg-danger {
    background-color: var(--accent-color) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* Focus States */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

/* Tesla-like Fullscreen Sections */
.scroll-container {
    width: 100%;
    overflow-x: hidden;
}
.fullscreen-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
    color: #111;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fullscreen-section.section-dark { color: #fff; }
.fullscreen-section.section-dark .section-title { color: #fff; }
.fullscreen-section.section-light { color: #111; }
.section-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 30%, rgba(0,0,0,.1) 60%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}
.section-content {
    position: relative;
    max-width: 780px;
    width: 100%;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}
.section-title {
    font-size: clamp(2.75rem, 6vw, 4.25rem);
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: .5px;
    margin-bottom: 2.25rem;
    opacity: .9;
}
.section-actions .btn {
    min-width: 180px;
    font-weight: 500;
    border-radius: 2rem;
    padding: .9rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.25);
}
.section-actions .btn + .btn { margin-left: 1rem; }
.section-actions .btn-outline-light,
.section-actions .btn-outline-dark {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.35);
}
.section-actions .btn-outline-dark { border-color: rgba(0,0,0,.4); background: rgba(255,255,255,.6); }
.section-actions .btn-outline-light:hover { background:#fff; color:#111 !important; }
.section-actions .btn-outline-dark:hover { background:#111; color:#fff !important; }

/* Contact final section */
.contact-final-section {
    background: #fff;
}
.contact-mini {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 2rem 1.25rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform .4s ease, box-shadow .4s ease;
}
.contact-mini:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* Hide old section styles on new layout context */
.hero-section, .features-section, .categories-section, .stats-section, .testimonials-section, .cta-section { display:none; }

@media (max-width: 768px) {
    .section-title { font-size: clamp(2.25rem, 8vw, 3.25rem); }
    .section-subtitle { font-size: 1.05rem; }
    .section-actions .btn { min-width:140px; padding:.75rem 1.25rem; }
    .section-actions .btn + .btn { margin-left: .75rem; }
}

/* Smooth fade-in on scroll */
.fullscreen-section { opacity:0; transform:translateY(30px); }
.fullscreen-section.is-visible { opacity:1; transform:translateY(0); }
.storefront-section {
    background: #f8f8f8;
    display: flex;
    align-items: center;
}

.storefront-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.storefront-image {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, .35);
    object-fit: cover;
    margin-bottom: 2.5rem;
}

.storefront-caption {
    max-width: 900px;
    text-align: center;
}

.storefront-caption p {
    font-size: 1.15rem;
}

@media (max-width: 768px) {
    .storefront-wrapper {
        padding: 3rem 1.25rem;
    }

    .storefront-image {
        margin-bottom: 1.75rem;
    }

    .storefront-caption p {
        font-size: 1rem;
    }
}
.brand-jrk { color: var(--primary-color); }
.brand-auto { color: var(--accent-color); margin-left:1.2rem; }
.brand-zone { color: #000; margin-left:1.2rem;}
/* Brand title outline */
.landing-title .brand span { 
    -webkit-text-stroke: 10px #ffffff; /* Chrome / Safari */
    text-stroke: 10px #ffffff; /* Future spec */
    paint-order: stroke fill; /* Ensure stroke behind fill */
    text-shadow:
        -2px -2px 0 #ffffff,
         2px -2px 0 #ffffff,
        -2px  2px 0 #ffffff,
         2px  2px 0 #ffffff,
         0   2px 0 #ffffff,
         2px  0   0 #ffffff,
         0  -2px 0 #ffffff,
        -2px  0   0 #ffffff; /* Fallback for browsers without stroke */
}

/* Landing page responsive enhancements */
/* Use small-viewport height for better mobile behavior */
.fullscreen-section { min-height: 100svh; }
/* Keep scroll-indicator right under hero-stats on landing */
.hero-landing .scroll-indicator { position: static; transform: none; bottom: auto; left: auto; margin-top: 1.5rem; justify-content: center; }
/* XL to LG tweaks */
@media (max-width: 1200px) {
  .landing-title { letter-spacing: .3px; }
  .landing-title .brand span { -webkit-text-stroke: 8px #fff; text-stroke: 8px #fff; }
  .brand-auto, .brand-zone { margin-left: .8rem; }
  .hero-stats { gap: 1.25rem; padding: 1.2rem 2rem; border-radius: 2rem; }
}

/* Tablets */
@media (max-width: 992px) {
  .hero-inner { padding-top: 4vh; }
  .landing-title .brand span { -webkit-text-stroke: 6px #fff; text-stroke: 6px #fff; }
  .brand-auto, .brand-zone { margin-left: .6rem; }
  .landing-subtitle { max-width: 680px; }
  .section-actions { gap: .6rem; }
  .section-actions .btn { min-width: 160px; margin-bottom: .5rem; }
  .hero-stats { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); }
  .hero-stats .divider { display: none; }
}

/* Phones */
@media (max-width: 768px) {
  .landing-title { font-size: clamp(2.1rem, 8.5vw, 3.2rem); }
  .landing-title .brand { line-height: 1.05; }
  .landing-title .brand span { -webkit-text-stroke: 4px #fff; text-stroke: 4px #fff; }
  .brand-auto, .brand-zone { margin-left: .4rem; }
  .rotator { display: block; margin: .5rem auto 0; text-align: center; }
  .section-actions .btn { min-width: 100%; padding: .75rem 1.1rem; }
  .hero-stats { grid-template-columns: repeat(2, minmax(140px, 1fr)); border-radius: 1.5rem; gap: .85rem; padding: 1rem 1.25rem; }
  .hero-stats .stat-item { min-width: auto; }
  .hero-stats .stat-item .value { font-size: 1.55rem; }
  .hero-stats .stat-item .label { font-size: .74rem; }
  .scroll-indicator .text { font-size: .65rem; letter-spacing: 2px; }
}

/* Small phones */
@media (max-width: 576px) {
  .hero-inner { padding-top: 3vh; }
  .landing-title .brand span { -webkit-text-stroke: 3px #fff; text-stroke: 3px #fff; }
  .brand-auto, .brand-zone { margin-left: .3rem; }
  .landing-subtitle { margin-bottom: 1.2rem; padding: 0 .25rem; }
  .section-actions .btn { min-width: 100%; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* Mobile: stack hero landing actions vertically */
@media (max-width: 768px) {
  .hero-landing .section-actions { display: flex; flex-direction: column; align-items: center; width: 100%; gap: .6rem; }
  .hero-landing .section-actions .btn { width: 100%; max-width: 560px; }
  .hero-landing .section-actions .btn + .btn { margin-left: 0; }
}

/* JRK Garage Dash */
.garage-dash-section {
    background: linear-gradient(180deg, #111 0%, #1b1b1b 46%, #090909 100%);
    color: #fff;
}

.garage-eyebrow {
    color: var(--primary-color);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.garage-title {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 800;
}

.garage-copy {
    color: rgba(255,255,255,.78);
    font-size: 1.05rem;
    max-width: 760px;
}

.garage-reward-panel {
    background: #fff;
    color: #111;
    border-left: 6px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 18px 38px rgba(0,0,0,.35);
}

.reward-label {
    color: #5f5f5f;
    font-size: .82rem;
    font-weight: 700;
}

.reward-main {
    color: var(--accent-color);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin: .35rem 0;
}

.reward-note {
    color: #4b4b4b;
    font-size: .9rem;
}

.garage-game-shell {
    background: #151515;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.42);
}

.garage-hud {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: .85rem;
}

.garage-hud div {
    background: #242424;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: .7rem .8rem;
}

.garage-hud span {
    display: block;
    color: rgba(255,255,255,.58);
    font-size: .75rem;
}

.garage-hud strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.35rem;
    line-height: 1.05;
}

.garage-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: .85rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 48px;
    border-radius: 8px;
    padding: .65rem .85rem;
    background: #202020;
    border: 1px solid rgba(255,255,255,.1);
}

.legend-item strong {
    font-size: 1rem;
}

.legend-item span:last-child {
    color: rgba(255,255,255,.72);
    font-size: .88rem;
}

.legend-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.legend-item.collect {
    border-color: rgba(30, 190, 95, .55);
}

.legend-item.collect .legend-badge {
    background: #1ebe5f;
    color: #071409;
}

.legend-item.avoid {
    border-color: rgba(220, 20, 60, .62);
}

.legend-item.avoid .legend-badge {
    background: var(--accent-color);
    color: #fff;
}

.garage-canvas-wrap {
    position: relative;
    width: 100%;
    min-height: 430px;
    background: #050505;
    border-radius: 8px;
    overflow: hidden;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

#flappyCanvas {
    display: block;
    width: 100%;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.garage-drive-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 clamp(16px, 6vw, 64px);
    pointer-events: none;
}

.garage-drive-btn {
    pointer-events: auto;
    width: clamp(64px, 10vw, 86px);
    height: clamp(64px, 10vw, 86px);
    border: 2px solid rgba(255,255,255,.9);
    border-radius: 50%;
    background: rgba(0,0,0,.58);
    color: #fff;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(0,0,0,.5), inset 0 0 0 2px rgba(212,175,55,.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.garage-drive-btn:hover,
.garage-drive-btn:focus {
    background: rgba(212,175,55,.86);
    border-color: #fff;
    color: #111;
    transform: translateY(-2px);
}

.garage-drive-btn:active {
    transform: translateY(1px) scale(.96);
}

.garage-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0,0,0,.66);
    text-align: center;
}

.garage-message {
    max-width: 520px;
}

.garage-message h3 {
    color: var(--primary-color);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800;
}

.garage-message p {
    color: rgba(255,255,255,.86);
    font-size: 1rem;
}

.garage-controls {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin-top: 1rem;
}

.garage-controls .btn {
    min-width: 58px;
    border-radius: 8px;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.garage-controls #garageStart {
    min-width: 150px;
}

#garageSound[aria-pressed="false"] {
    opacity: .62;
}

.garage-claim {
    display: none;
    margin-top: 1rem;
    background: #fff;
    color: #111;
    border-radius: 8px;
    padding: 1rem;
}

.garage-claim .form-label {
    font-weight: 700;
}

.garage-coupon {
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    padding: 1rem;
    background: #fffdf3;
}

.garage-coupon-label {
    color: #666;
    font-size: .78rem;
    font-weight: 700;
}

.garage-coupon-code {
    color: #111;
    font-size: clamp(1.45rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1.1;
    margin: .35rem 0;
}

.garage-coupon-reward {
    color: var(--accent-color);
    font-weight: 800;
}

.garage-coupon-note {
    color: #555;
    margin-top: .35rem;
    font-size: .92rem;
}

@media (max-width: 768px) {
    .garage-hud {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .garage-legend {
        grid-template-columns: 1fr;
    }

    .garage-canvas-wrap {
        min-height: 430px;
    }

    .garage-drive-controls {
        bottom: 14px;
        padding: 0 18px;
    }
}
