/* ============================================
   PLUS PLUS CALIBRATION - Premium Dark Theme
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --charcoal: #111111;
    --charcoal-light: #1a1a1a;
    --card-bg: #0d0d0d;
    --gold: #D4AF37;
    --gold-dark: #B8860B;
    --gold-bright: #FFD700;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-300: #cccccc;
    --gray-500: #555555;
    --gray-700: #333333;
    --gray-800: #222222;
    --gray-900: #0f0f0f;
    --green: #4ade80;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity var(--transition);
}

.nav-logo-img:hover {
    opacity: 0.8;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--gray-300);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--black) url('images/backgroundcars.avif') center center / cover no-repeat;
}

@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.85) 70%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 10px 28px;
    margin-bottom: 32px;
}

.hero-title {
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 28px;
}

.title-plus {
    display: block;
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: 12px;
    color: var(--white);
}

.title-cal {
    display: block;
    font-size: clamp(1.8rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: 16px;
    color: var(--gold);
    margin-top: 8px;
}

.hero-tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--gray-300);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.hero-brands {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-brands span {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.5);
}

.brand-dot {
    width: 4px !important;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    display: inline-block;
}

.hero-cta {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--black);
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    padding: 16px 48px;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(212, 175, 55, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(212, 175, 55, 0.5);
    border-bottom: 2px solid rgba(212, 175, 55, 0.5);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
    50% { transform: rotate(45deg) translate(6px, 6px); opacity: 1; }
}

/* --- Section Shared --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: 6px;
    color: var(--white);
}

.section-line {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 20px auto;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: var(--gray-300);
    letter-spacing: 1px;
}

/* --- Tuning Section --- */
.tuning-section {
    padding: 120px 0;
    background: var(--black);
    position: relative;
}

.tuning-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

/* --- Custom Select --- */
.selector-panel {
    background: var(--charcoal);
    border: 1px solid var(--gray-800);
    border-radius: 2px;
    padding: 40px;
    padding-bottom: 60px;
    margin-bottom: 40px;
    overflow: visible;
    position: relative;
    z-index: 50;
}

.selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    overflow: visible;
    position: relative;
}

.select-wrapper {
    position: relative;
    z-index: 10;
}

.select-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 10px;
}

/* Desktop/Mobile toggle */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    .desktop-only {
        display: none !important;
    }
}

/* Native select for mobile */
.native-select {
    width: 100%;
    background: var(--charcoal-light);
    border: 1px solid var(--gray-700);
    padding: 14px 42px 14px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--white);
    min-height: 48px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23D4AF37' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    transition: border-color var(--transition);
}

.native-select:focus {
    border-color: var(--gold);
}

.native-select:disabled {
    opacity: 0.35;
}

.native-select option {
    background: var(--charcoal-light);
    color: var(--white);
}

.custom-select {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.custom-select.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.select-display {
    background: var(--charcoal-light);
    border: 1px solid var(--gray-700);
    padding: 14px 42px 14px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--white);
    transition: border-color var(--transition);
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 48px;
    display: flex;
    align-items: center;
    -webkit-user-select: none;
    user-select: none;
}

.select-display::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: translateY(-60%) rotate(45deg);
    transition: transform var(--transition);
}

.custom-select.open .select-display::after {
    transform: translateY(-30%) rotate(-135deg);
}

.custom-select.open {
    z-index: 101;
}

.custom-select.open .select-display,
.select-display:hover {
    border-color: var(--gold);
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal-light);
    border: 1px solid var(--gold);
    border-top: none;
    max-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 100;
    transition: max-height 0.3s ease;
}

.custom-select.open .select-options {
    max-height: 320px;
}

.select-option {
    padding: 14px 16px;
    font-size: 16px;
    color: var(--gray-300);
    transition: background var(--transition), color var(--transition);
    cursor: pointer;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.select-option:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
}

.select-option.selected {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
}

/* Select scrollbar */
.select-options::-webkit-scrollbar {
    width: 4px;
}
.select-options::-webkit-scrollbar-track {
    background: var(--charcoal);
}
.select-options::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 2px;
}

/* --- Results Panel --- */
.results-panel {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.results-panel.active {
    display: block;
}

.results-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.results-inner {
    background: var(--charcoal);
    border: 1px solid var(--gray-800);
    border-radius: 2px;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.results-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright), var(--gold-dark));
}

/* --- Vehicle Header --- */
.vehicle-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-800);
    position: relative;
}

.vehicle-logo-wrap {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vehicle-logo {
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
    opacity: 0.9;
}

.vehicle-logo.invert-logo {
    filter: brightness(0) invert(1);
}

.vehicle-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--white);
}

.vehicle-year {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 2px;
    margin-top: 4px;
    display: block;
}

/* Pulse Animation */
.pulse-ring {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
}

.pulse-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    animation: pulseRing 2s ease-out infinite;
}

.pulse-circle.delay-1 {
    animation-delay: 0.6s;
}

.pulse-circle.delay-2 {
    animation-delay: 1.2s;
}

@keyframes pulseRing {
    0% {
        width: 12px;
        height: 12px;
        opacity: 1;
    }
    100% {
        width: 48px;
        height: 48px;
        opacity: 0;
    }
}

/* --- Stats --- */
.stats-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.stat-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 24px;
}

.stat-unit {
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 400;
}

.bar-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--gray-500);
    width: 60px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.bar-track {
    flex: 1;
    height: 32px;
    background: rgba(255,255,255,0.03);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.factory-bar {
    background: linear-gradient(90deg, var(--gray-700), var(--gray-500));
}

.stage1-bar {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
}

.stage2-bar {
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}

.bar-value {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    white-space: nowrap;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.gain-badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green);
    white-space: nowrap;
    min-width: 70px;
    text-align: right;
}

/* --- Contact Quote Banner --- */
.contact-quote-banner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 16px 24px;
    margin-bottom: 32px;
    font-size: 0.9rem;
    color: var(--gray-300);
    flex-wrap: wrap;
}

.contact-quote-banner.visible {
    display: flex;
}

.quote-icon {
    color: var(--gold);
    font-size: 1.1rem;
}

.quote-link {
    color: var(--gold);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.quote-link:hover {
    color: var(--gold-bright);
}

/* --- Price Section --- */
.price-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-800);
    flex-wrap: wrap;
}

.price-badge {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--black);
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    padding: 14px 36px;
    display: inline-block;
}

.book-btn {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 16px 36px;
    background: transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    display: inline-block;
    text-align: center;
}

.book-btn:hover {
    background: var(--gold);
    color: var(--black);
}

/* --- TCU Switch --- */
.tcu-toggle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 24px;
    margin-bottom: 4px;
}

.tcu-switch {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
}

.tcu-switch-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--gray-300);
    transition: color 0.3s;
}

.tcu-switch.active .tcu-switch-label {
    color: var(--gold);
}

.tcu-switch-track {
    width: 52px;
    height: 28px;
    background: var(--gray-800);
    border: 1px solid var(--gray-500);
    border-radius: 14px;
    position: relative;
    transition: background 0.3s, border-color 0.3s;
    flex-shrink: 0;
}

.tcu-switch.active .tcu-switch-track {
    background: var(--gold-dark);
    border-color: var(--gold);
}

.tcu-switch-thumb {
    width: 22px;
    height: 22px;
    background: var(--gray-300);
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.tcu-switch.active .tcu-switch-thumb {
    transform: translateX(24px);
    background: var(--gold-bright);
    box-shadow: 0 0 8px rgba(201,167,83,0.5);
}

.tcu-included-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--gold);
}

/* --- Why Section --- */
.why-section {
    padding: 120px 0;
    background: var(--charcoal);
    position: relative;
}

.why-section::before,
.why-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.2;
}

.why-section::before { top: 0; }
.why-section::after { bottom: 0; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--gray-800);
    padding: 40px 28px;
    text-align: center;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    color: var(--gold);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--white);
    margin-bottom: 16px;
}

.feature-desc {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--gray-300);
    line-height: 1.7;
}

/* --- Contact Section --- */
.contact-section {
    padding: 120px 0;
    background: var(--black);
    position: relative;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "left form"
        "map  form";
    gap: 28px 40px;
    align-items: stretch;
}

.contact-left      { grid-area: left; }
.contact-form-wrap { grid-area: form; }
.contact-map-wrap  { grid-area: map; }

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-map-wrap {
    overflow: hidden;
    border: 1px solid var(--gray-800);
    border-radius: 2px;
    flex: 1;
    min-height: 200px;
}

.contact-map-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--gold);
}

.contact-value {
    font-size: 0.95rem;
    color: var(--white);
    font-weight: 400;
}

a.contact-value:hover {
    color: var(--gold);
}

/* Contact Form */
.contact-form-wrap {
    background: var(--charcoal);
    border: 1px solid var(--gray-800);
    padding: 36px;
    display: flex;
    flex-direction: column;
}

.form-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.contact-form .form-group:last-of-type {
    flex: 1;
}

.contact-form textarea {
    height: 100%;
    min-height: 80px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--charcoal-light);
    border: 1px solid var(--gray-700);
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--white);
    outline: none;
    transition: border-color var(--transition);
    resize: vertical;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-500);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

.submit-btn {
    width: 100%;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--black);
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    border: none;
    padding: 16px;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.25);
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--charcoal);
    border: 1px solid var(--gray-700);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: calc(20px + env(safe-area-inset-bottom));
        right: 16px;
        width: 44px;
        height: 44px;
    }
}


/* --- Gallery Section --- */
.gallery-section {
    padding: 120px 0 80px;
    background: var(--black);
    overflow: hidden;
    position: relative;
}

.gallery-wrapper {
    position: relative;
    margin-top: 60px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.gallery-track {
    display: flex;
    gap: 20px;
    animation: galleryScroll 40s linear infinite;
    width: max-content;
}

.gallery-track:hover {
    animation-play-state: paused;
}

@keyframes galleryScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.gallery-slide {
    flex-shrink: 0;
    width: 380px;
    height: 280px;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: var(--gray-800);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s;
    display: block;
}

.gallery-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    z-index: 1;
    transition: opacity 0.4s;
}

.gallery-img:hover {
    transform: scale(1.03);
}

.gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    background: var(--gray-800);
    display: block;
    transition: transform 0.5s;
    cursor: pointer;
}

.gallery-slide:hover .gallery-video {
    transform: scale(1.03);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    z-index: 2;
    transform: translateY(8px);
    opacity: 0;
    transition: transform 0.4s, opacity 0.4s;
}

.gallery-img:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay span {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--gold);
}

.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.gallery-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--gray-700);
    background: transparent;
    color: var(--gray-300);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.gallery-arrow:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201,167,83,0.05);
}

.gallery-arrow svg {
    width: 20px;
    height: 20px;
}

/* --- Footer --- */
.footer {
    padding: 60px 0 40px;
    background: var(--charcoal);
    border-top: 1px solid var(--gray-800);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    display: block;
}

.footer-logo-img {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 8px;
}

.footer-ig {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-500);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: color var(--transition);
    text-decoration: none;
}

.footer-ig:hover {
    color: var(--gold);
}

.footer-ig-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--gray-800);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--gray-500);
    letter-spacing: 1px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Mobile nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.25s ease-out;
    -webkit-tap-highlight-color: transparent;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-comparison {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: rgba(10,10,10,0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 2px;
        transition: right 0.32s cubic-bezier(0.32, 0.72, 0, 1);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: calc(88px + env(safe-area-inset-top)) 28px calc(32px + env(safe-area-inset-bottom)) 28px;
        z-index: 999;
        border-left: 1px solid rgba(212, 175, 55, 0.12);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        will-change: right;
    }

    /* Hide the native scrollbar inside the drawer for a cleaner look */
    .nav-links::-webkit-scrollbar { width: 0; height: 0; }
    .nav-links { scrollbar-width: none; }

    /* Current-page highlight */
    .nav-links .nav-active,
    .nav-links li > .nav-active {
        color: var(--gold);
    }

    /* Safety: the <li> wrappers are display:list-item by default which doesn't
       stretch the <a> full-width. Force block layout. */
    .nav-links li {
        list-style: none;
        width: 100%;
    }
    .nav-links li > a {
        width: 100%;
        box-sizing: border-box;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 13px 4px;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        letter-spacing: 2px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        opacity: 0;
        transform: translateX(16px);
        transition: color 0.2s, opacity 0.32s ease, transform 0.32s ease;
    }
    .nav-links a:last-child {
        border-bottom: none;
    }
    .nav-links a:active {
        color: var(--gold);
        background: rgba(212, 175, 55, 0.06);
    }
    .nav-links.active a {
        opacity: 1;
        transform: translateX(0);
    }
    .nav-links.active li:nth-child(1) a { transition-delay: 0.06s; }
    .nav-links.active li:nth-child(2) a { transition-delay: 0.10s; }
    .nav-links.active li:nth-child(3) a { transition-delay: 0.14s; }
    .nav-links.active li:nth-child(4) a { transition-delay: 0.18s; }
    .nav-links.active li:nth-child(5) a { transition-delay: 0.22s; }
    .nav-links.active li:nth-child(6) a { transition-delay: 0.26s; }
    .nav-links a::after {
        display: none;
    }

    .selector-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .selector-panel {
        padding: 24px;
    }

    .results-inner {
        padding: 28px 20px;
    }

    .vehicle-header {
        flex-wrap: wrap;
    }

    .pulse-ring {
        display: none;
    }

    .vehicle-name {
        font-size: 1.3rem;
    }

    .stats-comparison {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .bar-label {
        width: 48px;
        font-size: 0.6rem;
    }

    .gain-badge {
        min-width: 55px;
        font-size: 0.65rem;
    }

    .price-section {
        flex-direction: column;
        gap: 16px;
    }

    .tcu-switch-label {
        font-size: 0.7rem;
    }

    .tcu-included-label {
        font-size: 0.7rem;
    }

    .gallery-section {
        padding: 80px 0 60px;
    }

    .gallery-slide {
        width: 280px;
        height: 200px;
    }

    .gallery-wrapper {
        margin-top: 40px;
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 96%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 96%, transparent 100%);
    }

    .contact-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "left"
            "form"
            "map";
        gap: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .hero-brands {
        gap: 10px;
    }

    .hero-brands span {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .title-plus {
        letter-spacing: 4px;
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .title-cal {
        letter-spacing: 6px;
        font-size: clamp(1.2rem, 5vw, 2rem);
    }

    .hero-badge {
        font-size: 0.65rem;
        letter-spacing: 2px;
        padding: 8px 16px;
    }

    .hero-tagline {
        font-size: 0.95rem;
        padding: 0 8px;
    }

    .hero-cta {
        padding: 16px 32px;
        font-size: 0.85rem;
        min-height: 48px;
    }

    .section-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
        letter-spacing: 3px;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .tuning-section {
        padding: 80px 0;
    }

    .selector-panel {
        padding: 16px;
    }

    .results-inner {
        padding: 20px 14px;
    }

    .vehicle-header {
        gap: 12px;
        margin-bottom: 28px;
        padding-bottom: 20px;
    }

    .vehicle-logo-wrap {
        width: 48px;
        height: 48px;
    }

    .vehicle-logo {
        max-width: 48px;
        max-height: 48px;
    }

    .vehicle-name {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .stat-title {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .bar-track {
        height: 28px;
    }

    .bar-value {
        font-size: 0.75rem;
        padding-right: 6px;
    }

    .bar-label {
        width: 44px;
        font-size: 0.55rem;
        letter-spacing: 1px;
    }

    .gain-badge {
        min-width: 50px;
        font-size: 0.6rem;
    }

    .bar-row {
        gap: 6px;
    }

    .price-badge {
        font-size: 1.1rem;
        padding: 12px 20px;
    }

    .book-btn {
        padding: 14px 24px;
        font-size: 0.8rem;
        min-height: 48px;
        width: 100%;
        text-align: center;
    }

    .contact-form-wrap {
        padding: 20px 16px;
    }

    .contact-inner {
        gap: 32px;
    }

    .why-section {
        padding: 80px 0;
    }

    .contact-section {
        padding: 80px 0;
    }

    .feature-card {
        padding: 28px 20px;
    }

    .contact-quote-banner {
        padding: 12px 14px;
        font-size: 0.8rem;
        gap: 4px;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    .footer {
        padding: 40px 0 24px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }
}

/* iPhone SE / very small screens */
@media (max-width: 375px) {
    .title-plus {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }

    .title-cal {
        font-size: 1.1rem;
        letter-spacing: 4px;
    }

    .hero-brands span {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }

    .hero-brands {
        gap: 6px;
    }

    .bar-label {
        width: 38px;
        font-size: 0.5rem;
    }

    .gain-badge {
        min-width: 42px;
        font-size: 0.55rem;
    }

    .vehicle-name {
        font-size: 0.9rem;
    }
}

/* Landscape phone */
@media (max-width: 812px) and (orientation: landscape) {
    .hero {
        min-height: 100svh;
        padding: 60px 0 40px;
    }

    .hero-content {
        padding: 0 48px;
    }

    .title-plus {
        font-size: 3rem;
    }

    .title-cal {
        font-size: 1.5rem;
    }

    .hero-tagline {
        display: none;
    }

    .hero-brands {
        margin-bottom: 24px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* iOS-specific fixes */
@supports (-webkit-touch-callout: none) {
    /* Fix iOS rubber-band scrolling on body */
    body {
        position: relative;
    }

    /* Prevent iOS text selection on interactive elements */
    .custom-select,
    .nav-toggle,
    .hero-cta,
    .book-btn,
    .submit-btn {
        -webkit-touch-callout: none;
    }
}


/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vh 5vw;
    animation: lightboxFade 0.2s ease-out;
}

.lightbox[hidden] {
    display: none;
}

@keyframes lightboxFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox-content {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    z-index: 10001;
}

.lightbox-close:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(0, 0, 0, 0.7);
}

.lightbox-close svg {
    width: 20px;
    height: 20px;
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .lightbox {
        padding: 20px;
    }
    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
}


.title-seo {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(0.9rem, 2.2vw, 1.4rem);
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--gold);
    margin-top: 14px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .title-seo {
        letter-spacing: 2px;
        margin-top: 10px;
    }
}

/* --- Process Section --- */
.process-section {
    padding: 120px 0;
    background: var(--charcoal);
    position: relative;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.process-step {
    padding: 36px 32px;
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: 4px;
    transition: border-color 0.3s, transform 0.3s;
}

.process-step:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}

.process-number {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.process-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--white, #fff);
    margin: 0 0 16px;
    text-transform: uppercase;
}

.process-desc {
    color: var(--gray-300);
    font-size: 0.97rem;
    line-height: 1.75;
    margin: 0;
}

@media (max-width: 768px) {
    .process-section {
        padding: 80px 0;
    }
    .process-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    .process-step {
        padding: 24px 20px;
    }
    .process-number {
        font-size: 2rem;
    }
    .process-title {
        font-size: 1rem;
        letter-spacing: 2px;
    }
}

/* --- FAQ Section --- */
.faq-section {
    padding: 120px 0;
    background: var(--charcoal);
}

.faq-list {
    max-width: 860px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: 4px;
    padding: 0;
    transition: border-color 0.3s;
}

.faq-item[open] {
    border-color: var(--gold);
}

.faq-q {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--white, #fff);
    padding: 22px 26px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    transition: color 0.2s;
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q::after {
    content: '+';
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--gold);
    margin-left: 16px;
    transition: transform 0.2s;
    line-height: 1;
}

.faq-item[open] .faq-q::after {
    content: '−';
}

.faq-q:hover {
    color: var(--gold);
}

.faq-a {
    color: var(--gray-300);
    font-size: 0.97rem;
    line-height: 1.75;
    padding: 0 26px 24px;
    margin: 0;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 80px 0;
    }
    .faq-list {
        margin-top: 40px;
    }
    .faq-q {
        font-size: 0.9rem;
        padding: 18px 20px;
    }
    .faq-a {
        padding: 0 20px 18px;
        font-size: 0.92rem;
    }
}


/* --- Service Pages --- */
.service-hero {
    padding: 180px 0 80px;
    background: linear-gradient(180deg, var(--charcoal) 0%, var(--gray-900) 100%);
    text-align: center;
    border-bottom: 1px solid var(--gray-800);
}
.service-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white, #fff);
    margin: 0 0 16px;
    line-height: 1.1;
}
.service-hero .service-sub {
    color: var(--gold);
    font-family: var(--font-heading);
    letter-spacing: 4px;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.service-hero .service-intro {
    color: var(--gray-300);
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.75;
}
.service-body {
    padding: 100px 0;
}
.service-body h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: var(--white, #fff);
    margin: 40px 0 16px;
    text-transform: uppercase;
}
.service-body h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    letter-spacing: 2px;
    color: var(--gold);
    margin: 28px 0 10px;
    text-transform: uppercase;
}
.service-body p, .service-body li {
    color: var(--gray-300);
    font-size: 1rem;
    line-height: 1.8;
}
.service-body ul {
    padding-left: 22px;
    margin: 0 0 24px;
}
.service-body ul li {
    margin-bottom: 8px;
}
.service-cta {
    text-align: center;
    padding: 60px 20px;
    background: var(--charcoal);
    border-top: 1px solid var(--gray-800);
    border-bottom: 1px solid var(--gray-800);
}
.service-cta a {
    display: inline-block;
    padding: 16px 40px;
    font-family: var(--font-heading);
    letter-spacing: 3px;
    background: var(--gold);
    color: var(--charcoal);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 2px;
    transition: transform 0.2s, background 0.2s;
}
.service-cta a:hover {
    transform: translateY(-2px);
    background: #e5c064;
}
.service-cross {
    padding: 60px 0;
    background: var(--gray-900);
    text-align: center;
}
.service-cross .cross-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 32px;
    margin-top: 24px;
}
.service-cross .cross-links a {
    color: var(--gold);
    text-decoration: none;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: color 0.2s;
}
.service-cross .cross-links a:hover {
    color: var(--white, #fff);
}
@media (max-width: 768px) {
    .service-hero {
        padding: 140px 0 60px;
    }
    .service-body {
        padding: 70px 0;
    }
    .service-body h2 {
        font-size: 1.3rem;
    }
}


.hero-brands a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.hero-brands a:hover {
    color: var(--gold);
}


/* --- Cross-browser / device polish --- */

/* Lightbox: respect notch/safe-area in landscape iPhone */
@supports (padding: env(safe-area-inset-top)) {
    .lightbox {
        padding-top: max(5vh, env(safe-area-inset-top));
        padding-right: max(5vw, env(safe-area-inset-right));
        padding-bottom: max(5vh, env(safe-area-inset-bottom));
        padding-left: max(5vw, env(safe-area-inset-left));
    }
    .lightbox-close {
        top: max(20px, env(safe-area-inset-top));
        right: max(20px, env(safe-area-inset-right));
    }
}

/* Reduced-motion users: kill gallery auto-scroll, scroll-indicator bounce, transitions */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .gallery-track {
        animation: none !important;
    }
    .scroll-indicator, .scroll-arrow, .pulse-ring, .pulse-circle {
        animation: none !important;
    }
}

/* Ultra-wide / large-desktop polish (1920+) */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    .hero-title {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Very large desktops (2560+) cap container to keep reading comfortable */
@media (min-width: 2560px) {
    .container {
        max-width: 1600px;
    }
}

/* Service-page body container padding — mobile-safe without inline styles */
.service-body .container {
    max-width: 880px;
}
.service-body .container > * {
    max-width: 100%;
}

/* Extra small phones (≤360) — tighten paddings to avoid horizontal overflow risk */
@media (max-width: 360px) {
    .container {
        padding: 0 16px;
    }
    .hero-title {
        font-size: clamp(1.8rem, 9vw, 2.8rem);
    }
}

/* Landscape phones — hero was tall, compress */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 40px 0;
    }
    .scroll-indicator {
        display: none;
    }
}

/* Fix tap feedback on iOS — buttons/links should show a subtle feedback */
button, a, [role="button"] {
    -webkit-tap-highlight-color: rgba(201, 167, 83, 0.12);
}

/* Ensure form-action CSP doesn't cause weird iOS autofill bg */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--charcoal-light) inset !important;
    -webkit-text-fill-color: var(--white) !important;
    caret-color: var(--white);
    transition: background-color 5000s ease-in-out 0s;
}

/* Android Chrome: prevent text-size-adjust issues when device rotated */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Better scrollbar on desktop (WebKit/Chromium) */
@media (min-width: 1024px) {
    ::-webkit-scrollbar {
        width: 10px;
    }
    ::-webkit-scrollbar-track {
        background: var(--black);
    }
    ::-webkit-scrollbar-thumb {
        background: var(--gray-800);
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: var(--gold);
    }
}

/* Safari form button weirdness reset */
button {
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
}

/* Video: iOS sometimes leaves controls overlay ghosted — ensure correct poster fallback */
video::-webkit-media-controls-overlay-enclosure { background: transparent; }


/* --- Hero mobile: prevent content from colliding with fixed navbar --- */
@media (max-width: 768px) {
    .hero {
        align-items: flex-start;
        padding-top: calc(100px + env(safe-area-inset-top, 0px));
        padding-bottom: 60px;
        min-height: 100vh;
        min-height: 100svh;
    }

    .hero-content {
        padding-top: 20px;
    }

    .title-seo {
        font-size: 0.78rem;
        letter-spacing: 1.5px;
        margin-top: 8px;
        line-height: 1.4;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: calc(92px + env(safe-area-inset-top, 0px));
    }
    .title-seo {
        font-size: 0.72rem;
        letter-spacing: 1px;
    }
    .hero-badge {
        margin-bottom: 24px;
    }
    .hero-title {
        margin-bottom: 20px;
    }
}

/* Very small phones: also reduce the bottom scroll indicator room */
@media (max-width: 375px) {
    .hero {
        padding-top: calc(84px + env(safe-area-inset-top, 0px));
    }
    .scroll-indicator {
        bottom: 16px;
    }
}


/* Short landscape phones: tighten drawer so all 6 links fit without scroll */
@media (orientation: landscape) and (max-height: 420px) {
    .nav-links {
        padding: calc(64px + env(safe-area-inset-top)) 24px calc(20px + env(safe-area-inset-bottom)) 24px !important;
    }
    .nav-links a {
        min-height: 40px !important;
        padding: 10px 4px !important;
        font-size: 0.95rem !important;
    }
}

/* 5. Back-to-top respects safe-area at every size, not just ≤480px */
.back-to-top {
    bottom: calc(32px + env(safe-area-inset-bottom));
    right: calc(32px + env(safe-area-inset-right));
}

/* 6. Service-page CTA button: guaranteed 48px touch target on iOS */
.service-cta a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
}

/* 7. Hero scroll-indicator gets out of the way on tiny screens */
@media (max-width: 375px) {
    .scroll-indicator {
        display: none;
    }
}
