/* JRK Auto Zone premium motorsport presentation layer. */
:root {
    --jrk-gold: #d4af37;
    --jrk-gold-bright: #f2d675;
    --jrk-red: #dc143c;
    --jrk-red-deep: #8d0d28;
    --jrk-ink: #070809;
    --jrk-graphite: #101317;
    --jrk-panel: #171b20;
    --jrk-steel: #aeb6c0;
    --jrk-paper: #f5f3ed;
    --jrk-line: rgba(255,255,255,.12);
    --jrk-radius: 20px;
    --jrk-shadow: 0 28px 70px rgba(0,0,0,.38);
    --jrk-ease: cubic-bezier(.2,.75,.2,1);
}

html { scroll-behavior: smooth; background: var(--jrk-ink); }
body.premium-shell {
    background: var(--jrk-ink);
    color: #f7f7f5;
    font-family: Inter, "Noto Sans Thai", system-ui, sans-serif;
    overflow-x: hidden;
}
body.premium-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 15% 8%, rgba(212,175,55,.08), transparent 28%),
                radial-gradient(circle at 85% 36%, rgba(220,20,60,.06), transparent 26%),
                linear-gradient(135deg, #090a0c, #12151a 52%, #070809);
}

::selection { background: var(--jrk-gold); color: #080808; }
:focus-visible { outline: 3px solid var(--jrk-gold-bright) !important; outline-offset: 4px; }

.top-bar {
    position: relative;
    z-index: 50;
    background: rgba(7,8,9,.92) !important;
    border-bottom: 1px solid rgba(212,175,55,.24);
    backdrop-filter: blur(18px);
    letter-spacing: .02em;
}
.top-bar small { color: rgba(255,255,255,.72); }
.top-bar i { color: var(--jrk-gold); }

.hero-landing {
    min-height: calc(100svh - 39px);
    isolation: isolate;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}
.hero-landing::before,
.hero-landing::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-landing::before {
    z-index: 1;
    background: linear-gradient(90deg, rgba(5,6,7,.96) 0%, rgba(5,6,7,.78) 37%, rgba(5,6,7,.3) 70%, rgba(5,6,7,.5) 100%),
                linear-gradient(0deg, #08090b 0%, transparent 25%);
}
.hero-landing::after {
    z-index: 2;
    opacity: .34;
    background: repeating-linear-gradient(105deg, transparent 0 104px, rgba(255,255,255,.035) 105px, transparent 107px);
    mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}
.hero-overlay-gradient { z-index: 2; overflow: hidden; }
.hero-overlay-gradient::after {
    content: "";
    position: absolute;
    top: -35%; left: -25%;
    width: 45%; height: 180%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(242,214,117,.2), transparent);
    animation: jrkLightSweep 9s var(--jrk-ease) infinite;
}
.hero-inner {
    z-index: 4;
    width: min(1180px, calc(100% - 32px));
    max-width: 1180px !important;
    text-align: left !important;
    align-items: flex-start;
}
.landing-title { max-width: 970px; margin-bottom: 1.5rem; }
.landing-title .brand {
    display: block;
    width: fit-content;
    font-size: clamp(3rem, 8vw, 7.4rem);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: .88;
    white-space: nowrap;
    filter: drop-shadow(0 15px 28px rgba(0,0,0,.55));
}
.brand-jrk { color: var(--jrk-gold) !important; }
.brand-auto { color: var(--jrk-red) !important; }
.brand-zone { color: #080808 !important; text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0 8px 20px #000 !important; }
.landing-title .rotator {
    display: block;
    min-height: 1.5em;
    margin: 1.5rem 0 0;
    font-size: clamp(1.35rem, 2.5vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -.02em;
    background: linear-gradient(90deg, #fff 0%, var(--jrk-gold-bright) 60%, var(--jrk-gold) 100%);
    -webkit-background-clip: text;
}
.landing-subtitle { max-width: 720px; color: rgba(255,255,255,.75); font-size: clamp(1rem, 1.5vw, 1.25rem); }
.hero-inner .section-actions { justify-content: flex-start !important; gap: .75rem; }

.premium-shell .btn {
    border-radius: 999px;
    border-width: 1px;
    font-weight: 700;
    letter-spacing: .01em;
    padding: .78rem 1.25rem;
    transition: transform .25s var(--jrk-ease), box-shadow .25s ease, color .25s ease, background .25s ease;
}
.premium-shell .btn:hover { transform: translateY(-3px); }
.premium-shell .btn-primary,
.premium-shell .btn-save-contact,
.premium-shell .btn-call-stock {
    color: #080808 !important;
    border-color: var(--jrk-gold);
    background: linear-gradient(135deg, var(--jrk-gold-bright), var(--jrk-gold));
    box-shadow: 0 12px 30px rgba(212,175,55,.22);
}
.premium-shell .btn-primary:hover,
.premium-shell .btn-save-contact:hover,
.premium-shell .btn-call-stock:hover { box-shadow: 0 16px 38px rgba(212,175,55,.38); }
.premium-shell .btn-outline-light { background: rgba(8,9,11,.42); border-color: rgba(255,255,255,.45); backdrop-filter: blur(12px); }
.premium-shell .btn-dark { background: #11151a; border-color: rgba(255,255,255,.16); }

.hero-stats {
    margin-top: clamp(2rem, 5vh, 4rem) !important;
    background: linear-gradient(130deg, rgba(24,28,33,.84), rgba(7,8,9,.62));
    border: 1px solid rgba(212,175,55,.26);
    border-radius: var(--jrk-radius);
    box-shadow: var(--jrk-shadow), inset 0 1px rgba(255,255,255,.08);
}
.hero-stats .stat-item .value { color: var(--jrk-gold-bright); font-weight: 850; }
.hero-stats .stat-item .label { color: rgba(255,255,255,.62); }

.promotion-banner-section {
    padding: clamp(1rem, 3vw, 2rem);
    background: linear-gradient(180deg, #090b0e, #12151a);
    border-block: 1px solid var(--jrk-line);
}
.promotion-banner-scroller { gap: 1rem; border-radius: var(--jrk-radius); scroll-snap-type: x mandatory; }
.promotion-banner-slide {
    overflow: hidden;
    border: 1px solid rgba(212,175,55,.2);
    border-radius: var(--jrk-radius);
    box-shadow: var(--jrk-shadow);
    scroll-snap-align: center;
}
.promotion-banner-image { transition: transform .8s var(--jrk-ease), filter .8s ease; }
.promotion-banner-slide:hover .promotion-banner-image { transform: scale(1.015); filter: saturate(1.08) contrast(1.03); }

.garage-dash-section {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 12% 18%, rgba(220,20,60,.13), transparent 30%),
                radial-gradient(circle at 86% 84%, rgba(212,175,55,.1), transparent 32%), #0b0d10;
}
.garage-dash-section::before {
    content: "";
    position: absolute; inset: 0;
    opacity: .15;
    background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
    background-size: 72px 72px;
    transform: perspective(650px) rotateX(55deg) scale(1.5) translateY(20%);
    transform-origin: center bottom;
}
.garage-eyebrow { color: var(--jrk-gold) !important; letter-spacing: .18em; text-transform: uppercase; }
.garage-title { font-size: clamp(2.5rem, 7vw, 6rem); letter-spacing: -.055em; }
.garage-reward-panel,
.garage-game-shell {
    background: linear-gradient(145deg, rgba(27,32,38,.96), rgba(10,12,15,.96));
    border: 1px solid rgba(212,175,55,.22);
    border-radius: var(--jrk-radius);
    box-shadow: var(--jrk-shadow), inset 0 1px rgba(255,255,255,.06);
}
.garage-game-shell { padding: clamp(.8rem, 2vw, 1.5rem); }
.garage-canvas-wrap { overflow: hidden; border-radius: 16px; border: 1px solid rgba(255,255,255,.12); }
.garage-hud > div { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; }

/* Lightweight homepage preview; the full game stylesheet remains page-specific. */
.game-teaser-card { display:grid;grid-template-columns:minmax(340px,1fr) minmax(320px,.8fr);min-height:420px;overflow:hidden;border:1px solid rgba(212,175,55,.25);border-radius:24px;background:#11151a;box-shadow:0 30px 80px rgba(0,0,0,.45); }
.game-teaser-road { position:relative;overflow:hidden;background:#171a1e url('/images/garage-dash-road-v2.png') center/cover no-repeat;perspective:700px;isolation:isolate; }
.game-teaser-road::before { content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(180deg,rgba(5,7,10,.08),rgba(5,7,10,.1) 55%,rgba(5,7,10,.72)),linear-gradient(90deg,rgba(220,20,60,.12),transparent 35% 65%,rgba(212,175,55,.12));box-shadow:inset 0 0 70px rgba(0,0,0,.7); }
.teaser-lane { position:absolute;top:-20%;bottom:-20%;width:4px;background:repeating-linear-gradient(0deg,rgba(255,255,255,.7) 0 26px,transparent 26px 58px);animation:teaserLane 1.1s linear infinite; }
.teaser-lane.lane-one{left:38%}.teaser-lane.lane-two{left:66%}
.teaser-car { position:absolute;z-index:4;left:50%;bottom:8%;width:112px;height:112px;filter:drop-shadow(0 15px 15px #000) drop-shadow(0 0 18px rgba(220,20,60,.5));transform:translateX(-50%);animation:teaserCar 2.6s ease-in-out infinite; }
.teaser-car img,.teaser-boss img,.teaser-pickup img,.teaser-explosion img { width:100%;height:100%;object-fit:contain; }
.teaser-boss { position:absolute;z-index:3;left:50%;top:-4%;width:150px;height:150px;transform:translateX(-50%);filter:drop-shadow(0 16px 18px #000) drop-shadow(0 0 22px rgba(220,20,60,.65));animation:teaserBoss 2.1s ease-in-out infinite; }
.teaser-part,.teaser-hazard { position:absolute;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#d4af37;color:#111;box-shadow:0 8px 20px #000; }
.teaser-part.part-a{left:25%;top:18%}.teaser-part.part-b{right:18%;top:38%}.teaser-hazard{left:18%;bottom:12%;background:#dc143c;color:#fff}
.teaser-enemy { position:absolute;z-index:3;width:68px;height:96px;display:grid;place-items:center;filter:drop-shadow(0 12px 14px #000) drop-shadow(0 0 10px rgba(220,20,60,.55));animation:teaserEnemy 2.4s ease-in-out infinite; }
.teaser-enemy img { width:100%;height:100%;object-fit:contain; }
.teaser-enemy.enemy-a { left:19%;top:28%; }
.teaser-enemy.enemy-b { right:14%;top:37%;width:82px;height:108px;animation-delay:-1.1s; }
.teaser-pickup { position:absolute;z-index:4;width:52px;height:52px;padding:7px;border:2px solid currentColor;border-radius:50%;background:rgba(5,8,12,.88);box-shadow:0 0 0 8px color-mix(in srgb,currentColor 18%,transparent),0 0 28px currentColor;animation:teaserPickup 1.35s ease-in-out infinite; }
.teaser-pickup.pickup-rocket { left:24%;bottom:21%;color:#d4af37; }
.teaser-pickup.pickup-shield { right:20%;bottom:16%;color:#42d9ff;animation-delay:-.65s; }
.teaser-projectile { position:absolute;z-index:3;left:50%;bottom:31%;width:4px;height:54px;border-radius:999px;background:linear-gradient(0deg,transparent,#f2d675);box-shadow:0 0 12px #f2d675;animation:teaserShot 1s linear infinite; }
.teaser-projectile.projectile-a { margin-left:-18px; }.teaser-projectile.projectile-b { margin-left:16px;animation-delay:-.45s; }
.teaser-explosion { position:absolute;z-index:5;right:23%;top:23%;width:88px;height:88px;opacity:.82;animation:teaserExplosion 1.8s ease-out infinite; }
@keyframes teaserEnemy { 50% { transform:translateY(18px) rotate(2deg);filter:drop-shadow(0 16px 18px #000) drop-shadow(0 0 18px rgba(220,20,60,.8)); } }
.game-teaser-content { padding:clamp(24px,4vw,54px);display:flex;flex-direction:column;justify-content:center;align-items:flex-start; }
.game-teaser-kicker{color:#d4af37;font-weight:800;letter-spacing:.13em;font-size:.72rem}.game-teaser-content h3{font-size:clamp(2rem,4vw,3.4rem);font-weight:900;letter-spacing:-.04em}.game-teaser-content p{color:rgba(255,255,255,.65)}
.game-teaser-features{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 22px}.game-teaser-features span{padding:6px 10px;border:1px solid rgba(255,255,255,.12);border-radius:999px;font-size:.76rem}
@keyframes teaserLane{to{background-position-y:58px}}@keyframes teaserCar{50%{transform:translateX(calc(-50% + 24px)) rotate(2deg)}}@keyframes teaserBoss{50%{transform:translateX(-50%) translateY(8px) rotate(-1deg)}}@keyframes teaserPickup{50%{transform:translateY(-8px) scale(1.07)}}@keyframes teaserShot{from{transform:translateY(90px);opacity:0}20%{opacity:1}to{transform:translateY(-230px);opacity:0}}@keyframes teaserExplosion{0%,35%{transform:scale(.35) rotate(0);opacity:0}55%{opacity:1}100%{transform:scale(1.25) rotate(35deg);opacity:0}}
.game-launch-btn { position:relative;overflow:hidden;box-shadow:0 14px 34px rgba(220,20,60,.25); }
.game-launch-btn::after { content:"";position:absolute;inset:-2px auto -2px -35%;width:28%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);transform:skewX(-18deg);animation:gameButtonSweep 2.8s ease-in-out infinite; }
@keyframes gameButtonSweep{0%,55%{left:-35%}85%,100%{left:125%}}

.fullscreen-section:not(.hero-landing) { min-height: min(900px, 94svh); isolation: isolate; background-attachment: fixed; }
.fullscreen-section:not(.hero-landing)::after {
    content: "";
    position: absolute; inset: 0;
    z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(6,7,8,.86), rgba(6,7,8,.34) 60%, rgba(6,7,8,.66)), linear-gradient(0deg, rgba(6,7,8,.8), transparent 40%);
}
.fullscreen-section .section-overlay { z-index: 1; background: rgba(0,0,0,.2); }
.fullscreen-section .section-content {
    z-index: 3;
    width: min(1180px, calc(100% - 32px));
    max-width: 1180px !important;
    text-align: left !important;
    align-items: flex-start;
}
.fullscreen-section .section-title.high-contrast,
.fullscreen-section .section-subtitle.high-contrast {
    background: linear-gradient(135deg, rgba(16,19,23,.92), rgba(16,19,23,.66));
    border: 1px solid rgba(212,175,55,.22);
    backdrop-filter: blur(18px);
    box-shadow: var(--jrk-shadow);
    text-shadow: none;
}
.fullscreen-section .section-title { font-size: clamp(2.5rem, 6vw, 5.75rem); letter-spacing: -.045em; }
.fullscreen-section .section-subtitle { color: rgba(255,255,255,.78); font-size: clamp(1rem, 2vw, 1.35rem); }
.fullscreen-section .section-actions { justify-content: flex-start; }

.storefront-section { padding: clamp(3rem, 8vw, 7rem) 0; min-height: auto !important; }
.storefront-wrapper {
    width: min(1200px, calc(100% - 32px));
    max-width: 1200px !important;
    margin: auto;
    align-items: flex-start !important;
}
.storefront-image {
    width: 100%;
    min-height: 560px;
    object-fit: cover;
    border: 1px solid rgba(212,175,55,.26);
    border-radius: calc(var(--jrk-radius) + 8px);
    box-shadow: 0 40px 100px rgba(0,0,0,.58);
}
.storefront-caption {
    max-width: 680px;
    margin: -190px 0 40px clamp(20px, 6vw, 80px);
    padding: clamp(1.25rem, 3vw, 2.2rem);
    background: rgba(9,11,14,.82);
    border: 1px solid rgba(212,175,55,.25);
    border-radius: var(--jrk-radius);
    backdrop-filter: blur(22px);
    box-shadow: var(--jrk-shadow);
    text-align: left;
}
.storefront-caption .section-actions { justify-content: flex-start !important; }

.contact-final-section {
    position: relative;
    background: radial-gradient(circle at 50% 0, rgba(212,175,55,.1), transparent 35%), #0d1014;
    border-top: 1px solid var(--jrk-line);
}
.contact-final-section h3 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.04em; }
.contact-final-section .text-muted { color: rgba(255,255,255,.6) !important; }
.contact-mini {
    height: 100%;
    padding: 2rem 1.25rem;
    background: linear-gradient(145deg, rgba(26,30,36,.92), rgba(12,14,17,.92));
    border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--jrk-radius);
    transition: transform .35s var(--jrk-ease), border-color .35s ease;
}
.contact-mini:hover { transform: translateY(-8px); border-color: rgba(212,175,55,.45); }
.contact-mini i { color: var(--jrk-gold) !important; }

.premium-shell footer {
    margin-top: 0 !important;
    background: #070809 !important;
    border-top: 1px solid rgba(212,175,55,.16);
}
.premium-shell footer .text-muted { color: rgba(255,255,255,.52) !important; }
.premium-shell footer h5, .premium-shell footer h6 { letter-spacing: .03em; }
.premium-shell footer a { transition: color .2s ease; }
.premium-shell footer a:hover { color: var(--jrk-gold-bright) !important; }

.sticky-call-bar { background: linear-gradient(90deg, var(--jrk-gold), var(--jrk-gold-bright)); color: #090909 !important; font-weight: 850; }
.line-fab { box-shadow: 0 14px 35px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.18); }
.line-fab-tooltip { color: #111; box-shadow: var(--jrk-shadow); }

/* Shared staff and utility screens */
.premium-shell main > .container,
.premium-shell main > .container-fluid { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.premium-shell main .card {
    color: #eef0f2;
    background: linear-gradient(145deg, rgba(27,31,37,.98), rgba(12,14,17,.98));
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: var(--jrk-radius) !important;
    box-shadow: var(--jrk-shadow) !important;
    overflow: hidden;
}
.premium-shell main .bg-white {
    color: #eef0f2 !important;
    background: linear-gradient(145deg, rgba(27,31,37,.98), rgba(12,14,17,.98)) !important;
    border-color: rgba(255,255,255,.1) !important;
    border-radius: var(--jrk-radius) !important;
    box-shadow: var(--jrk-shadow) !important;
}
.premium-shell main label,
.premium-shell main h1,
.premium-shell main h2,
.premium-shell main h3,
.premium-shell main h4,
.premium-shell main h5,
.premium-shell main h6 { color: #f4f5f6; }
.premium-shell main .card-header { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.09); }
.premium-shell main .text-muted { color: rgba(255,255,255,.58) !important; }
.premium-shell main .form-control,
.premium-shell main .form-select {
    color: #fff;
    background-color: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    min-height: 48px;
}
.premium-shell main .form-control:focus,
.premium-shell main .form-select:focus { border-color: var(--jrk-gold); box-shadow: 0 0 0 .25rem rgba(212,175,55,.14); }
.premium-shell main .form-control::placeholder { color: rgba(255,255,255,.38); }
.premium-shell main table { color: #e8eaec; --bs-table-bg: transparent; --bs-table-striped-bg: rgba(255,255,255,.035); --bs-table-hover-bg: rgba(212,175,55,.08); }
.premium-shell main table th { color: var(--jrk-gold-bright); border-color: rgba(255,255,255,.14); }
.premium-shell main table td { border-color: rgba(255,255,255,.08); }
.premium-shell .about-panel { color: #eef0f2; background: linear-gradient(145deg, #1a1e24, #0d0f12); border: 1px solid rgba(212,175,55,.3); }
.premium-shell .about-panel .panel-header { border-color: rgba(255,255,255,.12); }
.premium-shell .about-panel .panel-close,
.premium-shell .about-body,
.premium-shell .about-body p,
.premium-shell .about-body h5 { color: #eef0f2; }
.premium-shell .about-body .quote { color: #fff; background: rgba(212,175,55,.08); }

.premium-reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--jrk-ease), transform .8s var(--jrk-ease); }
.premium-reveal.is-revealed { opacity: 1; transform: translateY(0); }

@keyframes jrkLightSweep {
    0%, 55% { transform: translateX(-40%) rotate(18deg); opacity: 0; }
    65% { opacity: .7; }
    86%, 100% { transform: translateX(340%) rotate(18deg); opacity: 0; }
}

@media (max-width: 991.98px) {
    .hero-landing, .fullscreen-section:not(.hero-landing) { background-attachment: scroll; }
    .hero-inner { text-align: center !important; align-items: center; }
    .landing-title .brand { margin-inline: auto; }
    .hero-inner .section-actions { justify-content: center !important; }
    .fullscreen-section .section-content { text-align: center !important; align-items: center; }
    .fullscreen-section .section-actions { justify-content: center; }
    .storefront-caption { margin: -140px 20px 30px; }
    .game-teaser-card { grid-template-columns:1fr; }
    .game-teaser-road { min-height:300px; }
}

@media (max-width: 767.98px) {
    .top-bar .row > div { text-align: center !important; }
    .top-bar .row > div + div { margin-top: .3rem; }
    .hero-landing { min-height: 920px; background-position: 63% center; }
    .hero-stats { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-radius: 18px; padding: 1.2rem; }
    .hero-stats .divider { display: none; }
    .hero-inner .section-actions .btn { width: 100%; }
    .storefront-image { min-height: 520px; }
    .storefront-caption { margin: -110px 10px 20px; }
    .storefront-caption .section-actions { flex-wrap: wrap !important; }
    .storefront-caption .btn { flex: 1 1 100%; }
    .game-teaser-road { min-height:240px; }
    .game-teaser-content { align-items:stretch;text-align:center; }
    .game-teaser-features { justify-content:center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .premium-reveal { opacity: 1; transform: none; }
    .hero-landing, .fullscreen-section:not(.hero-landing) { background-attachment: scroll; }
}
