/* ========================================
   MKE Speakers — Custom Styles
   Dark theme / Neon green accents
   ======================================== */

:root {
    --bg-dark: #0a0a0a;
    --bg-charcoal: #111111;
    --bg-gray: #1a1a1a;
    --bg-card: #141414;
    --bg-card-hover: #1e1e1e;
    --accent: #39ff14;
    --accent-dim: rgba(57, 255, 20, 0.15);
    --accent-glow: rgba(57, 255, 20, 0.4);
    --text-primary: #f0f0f0;
    --text-secondary: #999999;
    --text-muted: #666666;
    --border: #222222;
    --border-accent: rgba(57, 255, 20, 0.3);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

.section { padding: 100px 0; }

/* ---- Section Headers ---- */
.section-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 60px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-bottom-color: var(--border-accent);
}

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

.nav-logo, .footer-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo-mke { color: var(--text-primary); }
.logo-speakers { color: var(--accent); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    letter-spacing: 0.5px;
    cursor: pointer;
}

.nav-link:hover, .nav-link.active-link { color: var(--text-primary); }

.nav-link.nav-cta {
    background: var(--accent);
    color: var(--bg-dark);
    padding: 10px 22px;
    border-radius: var(--radius);
    font-weight: 700;
    transition: all var(--transition);
}

.nav-link.nav-cta:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg-effects { position: absolute; inset: 0; pointer-events: none; }

.hero-glow {
    position: absolute;
    top: 30%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
    filter: blur(80px);
    animation: pulse 4s ease-in-out infinite alternate;
}

.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(57, 255, 20, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 255, 20, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

@keyframes pulse {
    from { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    to { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-title .accent {
    color: var(--accent);
    text-shadow: 0 0 40px var(--accent-glow);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.badge-icon { color: var(--accent); font-size: 0.6rem; }

.hero-scroll {
    position: absolute;
    bottom: 32px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    letter-spacing: 0.3px;
}

.btn-primary { background: var(--accent); color: var(--bg-dark); }
.btn-primary:hover { box-shadow: 0 0 30px var(--accent-glow); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-full { width: 100%; padding: 16px 32px; font-size: 1rem; }

/* ========================================
   Customize Your Build
   ======================================== */
.builds-section { background: var(--bg-charcoal); }

.builds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.build-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
}

.build-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.build-icon { width: 48px; height: 48px; color: var(--accent); margin-bottom: 20px; }

.build-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.build-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ========================================
   Build Configurator
   ======================================== */
.configurator {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border);
}

.configurator-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.config-group { margin-bottom: 24px; }

.config-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.config-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.config-btn {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 18px;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: all var(--transition);
}

.config-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.config-btn.selected {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

/* Color swatches */
.color-swatch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.config-btn.color-swatch.selected .swatch {
    border-color: var(--accent);
    box-shadow: 0 0 6px var(--accent-dim);
}

.config-btn.disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

.config-hint {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.config-color-input {
    margin-top: 10px;
}

.config-text-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: border-color var(--transition);
}

.config-text-input::placeholder { color: var(--text-muted); }
.config-text-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

.summary-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: sticky;
    top: 96px;
    transition: border-color var(--transition);
}

.summary-card.has-selections {
    border-color: var(--border-accent);
}

.summary-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.summary-visual {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 24px;
    position: relative;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.summary-visual:active { cursor: grabbing; }

.viewer-hint {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.6;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.5s ease;
}

.viewer-hint.hidden { opacity: 0; }

/* ---- 3D Scene ---- */
.scene {
    width: 100%;
    height: 100%;
    perspective: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case3d {
    position: relative;
    transform-style: preserve-3d;
    transition: width 0.4s ease, height 0.4s ease;
    transform: rotateX(-15deg) rotateY(-25deg);
    width: 180px;
    height: 120px;
}

.case-face {
    position: absolute;
    border: 1.5px solid var(--border-accent);
    border-radius: 6px;
    background: rgba(20, 20, 20, 0.9);
    backface-visibility: visible;
    transition: background 0.4s ease, border-color 0.4s ease, width 0.4s ease, height 0.4s ease;
}

/* Front */
.case-front {
    width: 100%;
    height: 100%;
    transform: translateZ(40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
    position: relative;
}

/* Front handle (visible from front as a ridge at the top) */
.front-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 6px;
    background: var(--text-muted);
    border-radius: 0 0 4px 4px;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.front-handle.custom {
    opacity: 0.8;
    background: var(--accent);
    box-shadow: 0 2px 8px var(--accent-dim);
}

/* Front latches (visible as tabs on left/right edges) */
.front-latches {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.front-latch {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 22%;
    background: var(--text-muted);
    border-radius: 2px;
    opacity: 0.25;
    transition: all 0.3s ease;
}

.front-latch:first-child { left: 0; border-radius: 0 2px 2px 0; }
.front-latch:last-child { right: 0; border-radius: 2px 0 0 2px; }

.front-latch.custom {
    opacity: 0.7;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent-dim);
}

/* Back */
.case-back {
    width: 100%;
    height: 100%;
    transform: translateZ(-40px) rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.back-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 900;
    color: var(--text-muted);
    opacity: 0.4;
    letter-spacing: 2px;
}

.back-label span { color: var(--accent); opacity: 0.5; }

/* Left */
.case-left {
    width: 80px;
    height: 100%;
    left: -40px;
    transform: rotateY(-90deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Right */
.case-right {
    width: 80px;
    height: 100%;
    right: -40px;
    transform: rotateY(90deg);
    transform-origin: right center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Top */
.case-top {
    width: 100%;
    height: 80px;
    top: -40px;
    transform: rotateX(90deg);
    transform-origin: center top;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bottom */
.case-bottom {
    width: 100%;
    height: 80px;
    bottom: -40px;
    transform: rotateX(-90deg);
    transform-origin: center bottom;
}

/* ---- Speakers on front face ---- */
.face-speakers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.speaker-unit {
    position: relative;
    border-radius: 50%;
    border: 1.5px solid rgba(57, 255, 20, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.speaker-cone {
    width: 55%;
    height: 55%;
    border-radius: 50%;
    border: 1px solid rgba(57, 255, 20, 0.25);
}

.speaker-dust {
    position: absolute;
    width: 22%;
    height: 22%;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.4;
}

.speaker-led-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1.5px dashed var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: ledPulse 2s ease-in-out infinite;
}

.speaker-led-ring.active { opacity: 0.6; }

@keyframes ledPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Passive radiator (circle, centered on back face) */
.face-passive {
    width: 40px;
    height: 40px;
    border: 1.5px dashed rgba(57, 255, 20, 0.35);
    border-radius: 50%;
    display: none;
    position: relative;
}

.face-passive::after {
    content: 'PR';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.45rem;
    font-family: var(--font-display);
    color: var(--accent);
    opacity: 0.5;
    letter-spacing: 2px;
}

.face-passive.active { display: block; }

/* Oval speaker modifier */
.speaker-unit.oval {
    border-radius: 45%;
}

.speaker-unit.oval .speaker-cone {
    border-radius: 45%;
}

.speaker-unit.oval .speaker-led-ring {
    border-radius: 45%;
}

/* ---- Top handle ---- */
.top-handle {
    width: 50%;
    height: 10px;
    border: 2px solid var(--text-muted);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.top-handle.custom {
    opacity: 0.8;
    border-color: var(--accent);
    box-shadow: 0 -2px 10px var(--accent-dim);
}

.summary-list {
    margin-bottom: 24px;
}

.summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

.summary-list li:last-child { border-bottom: none; }

.summary-label { color: var(--text-muted); }

.summary-value {
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--transition);
}

.summary-value.active {
    color: var(--accent);
}

/* ========================================
   Case Size Comparison
   ======================================== */
.sizes-section { background: var(--bg-dark); }

.sizes-display {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 32px;
}

.size-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex: 1;
    max-width: 220px;
    cursor: pointer;
    transition: transform var(--transition);
}

.size-item:hover { transform: translateY(-6px); }
.size-item:hover .size-box { border-color: var(--accent); box-shadow: 0 0 30px var(--accent-dim); }

.size-box {
    width: 100%;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.size-1800 { height: 75px;  width: 68%;  }
.size-2800 { height: 95px;  width: 77%;  }
.size-3800 { height: 115px; width: 89%;  }
.size-4800 { height: 130px; width: 100%; }

.size-label-inner {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.25;
}

.size-info {
    text-align: center;
    /* Fixed height keeps the Small / Medium / Large / XL labels on the same
       horizontal line across all four cards, regardless of how the
       description text wraps. */
    height: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.size-info h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.size-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.size-desc {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
}

/* ========================================
   Gallery
   ======================================== */
.gallery-section { background: var(--bg-charcoal); }

.gallery-scroll-wrap {
    position: relative;
}

.gallery-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 4px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-dim) transparent;
}

.gallery-grid::-webkit-scrollbar { height: 8px; }
.gallery-grid::-webkit-scrollbar-track { background: transparent; }
.gallery-grid::-webkit-scrollbar-thumb {
    background: var(--accent-dim);
    border-radius: 4px;
}

.gallery-item {
    flex: 0 0 320px;
    scroll-snap-align: start;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.gallery-arrow:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}

.gallery-arrow:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

.gallery-arrow.prev { left: -22px; }
.gallery-arrow.next { right: -22px; }
.gallery-arrow svg { width: 18px; height: 18px; }

@media (max-width: 768px) {
    .gallery-arrow { display: none; }
    .gallery-item { flex: 0 0 85vw; }
}

/* Image Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    z-index: 10000;
    cursor: zoom-out;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.lightbox.active { display: flex; }
.lightbox-image {
    max-width: min(92vw, 1400px);
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    cursor: default;
}
.lightbox-image[hidden],
.lightbox-frame[hidden] { display: none; }
.lightbox-frame {
    width: min(92vw, 1280px);
    height: min(90vh, 720px);
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* Play badge overlay for video gallery items */
.gallery-image { position: relative; }
.gallery-item.is-video .gallery-image::after {
    content: '';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    transition: background var(--transition);
}
.gallery-item.is-video .gallery-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--accent);
    z-index: 2;
}
.gallery-item.is-video .gallery-image .play-icon {
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 18px solid var(--accent);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    z-index: 3;
}
.gallery-item.is-video:hover .gallery-image::after { background: rgba(0, 0, 0, 0.1); }
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 1;
}
.lightbox-close:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
    transform: scale(1.05);
}
.lightbox-close svg { width: 22px; height: 22px; }

/* Make gallery images that have a real photo look clickable */
.gallery-item.has-image .gallery-image { cursor: zoom-in; }

.gallery-item:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.gallery-image {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-placeholder {
    width: 80px; height: 80px;
    color: var(--accent);
    opacity: 0.4;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-placeholder { opacity: 0.7; }

.gallery-info { padding: 20px 24px; }

.gallery-info h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.gallery-info p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; }

/* ========================================
   How It Works
   ======================================== */
.process-section { background: var(--bg-dark); }

.process-grid {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.process-step { flex: 1; text-align: center; padding: 0 16px; }

.process-connector {
    width: 60px;
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 28px;
    opacity: 0.5;
}

.step-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 16px;
}

.process-step h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.process-step p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }

/* ========================================
   Local Banner
   ======================================== */
.local-section { background: var(--bg-charcoal); padding: 80px 0; }

.local-banner {
    background: linear-gradient(135deg, var(--bg-card), rgba(57, 255, 20, 0.05));
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
}

.local-content h3 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--accent);
}

.local-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.local-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ========================================
   About
   ======================================== */
.about-section { background: var(--bg-dark); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.7; }
.about-text p strong { color: var(--accent); font-weight: 600; }

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}

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

.stat-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-visual { display: flex; align-items: center; justify-content: center; }

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    max-width: 400px;
    background: linear-gradient(135deg, var(--bg-card), rgba(57, 255, 20, 0.03));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.waveform { display: flex; align-items: center; gap: 4px; height: 80px; }

.waveform span {
    display: block; width: 4px;
    background: var(--accent);
    border-radius: 2px;
    animation: wave 1.5s ease-in-out infinite;
    opacity: 0.6;
}

.waveform span:nth-child(1) { height: 20px; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 35px; animation-delay: 0.1s; }
.waveform span:nth-child(3) { height: 50px; animation-delay: 0.2s; }
.waveform span:nth-child(4) { height: 70px; animation-delay: 0.3s; }
.waveform span:nth-child(5) { height: 80px; animation-delay: 0.4s; }
.waveform span:nth-child(6) { height: 60px; animation-delay: 0.5s; }
.waveform span:nth-child(7) { height: 75px; animation-delay: 0.6s; }
.waveform span:nth-child(8) { height: 80px; animation-delay: 0.7s; }
.waveform span:nth-child(9) { height: 55px; animation-delay: 0.8s; }
.waveform span:nth-child(10) { height: 40px; animation-delay: 0.9s; }
.waveform span:nth-child(11) { height: 65px; animation-delay: 1.0s; }
.waveform span:nth-child(12) { height: 80px; animation-delay: 1.1s; }
.waveform span:nth-child(13) { height: 50px; animation-delay: 1.2s; }
.waveform span:nth-child(14) { height: 30px; animation-delay: 1.3s; }
.waveform span:nth-child(15) { height: 15px; animation-delay: 1.4s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

.about-tagline {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ========================================
   Contact / Request a Build
   ======================================== */
.contact-section { background: var(--bg-charcoal); }

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

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

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.required { color: var(--accent); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color var(--transition);
    outline: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group select {
    appearance: 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' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
}

.contact-info { display: flex; flex-direction: column; gap: 20px; }

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.info-card h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.info-card ul li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
}

.info-card ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateY(-50%);
}

.info-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }

.accent-card {
    border-color: var(--border-accent);
    background: linear-gradient(135deg, var(--bg-card), rgba(57, 255, 20, 0.05));
}

.accent-card h4 { color: var(--accent); }

/* ========================================
   Form Success
   ======================================== */
.form-success { text-align: center; padding: 60px 40px; }

.form-success h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.form-success p { color: var(--text-secondary); font-size: 0.95rem; }

/* ========================================
   Build Tracker Modal
   ======================================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.active { display: flex; }

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    max-width: 520px;
    width: 100%;
    position: relative;
    border-top: 3px solid var(--accent);
}

.modal-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    transition: color var(--transition);
    line-height: 1;
}

.modal-close:hover { color: var(--text-primary); }

.modal-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.track-form {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.track-form input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition);
}

.track-form input::placeholder { color: var(--text-muted); }
.track-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

.track-form .btn { white-space: nowrap; padding: 12px 24px; }

.track-result { min-height: 20px; }

/* Tracker Steps */
.tracker-info {
    margin-bottom: 28px;
    padding: 16px 20px;
    background: var(--bg-dark);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.tracker-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.tracker-info p span { color: var(--text-primary); font-weight: 600; }

.tracker-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 0 8px;
}

.tracker-steps::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: var(--border);
}

.tracker-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.tracker-dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: all var(--transition);
}

.tracker-step.completed .tracker-dot {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
}

.tracker-step.active .tracker-dot {
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    color: var(--accent);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 8px var(--accent-dim); }
    50% { box-shadow: 0 0 20px var(--accent-glow); }
}

.tracker-step-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.3;
    max-width: 70px;
}

.tracker-step.completed .tracker-step-label,
.tracker-step.active .tracker-step-label {
    color: var(--text-secondary);
}

.track-not-found {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.track-not-found strong {
    color: var(--accent);
    display: block;
    margin-bottom: 4px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { font-size: 1.1rem; }

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 300px;
    line-height: 1.6;
}

.footer-links h4, .footer-local h4 {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-links ul li a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--transition);
    display: block;
    padding: 4px 0;
}

.footer-links ul li a:hover { color: var(--accent); }
.footer-local p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; }
.footer-no-ship { color: var(--accent) !important; font-weight: 600; margin-top: 8px !important; }

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

.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }

/* ========================================
   Animations
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .builds-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .configurator-layout { grid-template-columns: 1fr; }
    .summary-card { position: static; }
}

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

    .nav-menu {
        display: none;
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu.active { display: flex; }

    .nav-link {
        padding: 14px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }

    .nav-link.nav-cta {
        margin-top: 12px;
        text-align: center;
        border-bottom: none;
    }

    .hero { min-height: 90vh; padding: 100px 20px 60px; }
    .hero-title { font-size: clamp(1.8rem, 8vw, 2.6rem); }
    .section { padding: 70px 0; }
    .builds-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }

    .process-grid { flex-direction: column; gap: 32px; }
    .process-connector { transform: rotate(90deg); margin: 0 auto; width: 40px; }

    .form-row { grid-template-columns: 1fr; }
    .local-banner { padding: 40px 24px; }
    .about-stats { flex-wrap: wrap; gap: 24px; }
    .footer-content { grid-template-columns: 1fr; gap: 32px; }
    .contact-form { padding: 28px 20px; }

    .sizes-display { flex-wrap: wrap; gap: 20px; justify-content: center; }
    .size-item { max-width: 45%; }

    .track-form { flex-direction: column; }
    .modal-content { padding: 36px 24px; }

    .tracker-step-label { font-size: 0.55rem; max-width: 55px; }
    .tracker-dot { width: 24px; height: 24px; font-size: 0.55rem; }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 100%; max-width: 280px; }
    .hero-badge { font-size: 0.7rem; }

    .size-item { max-width: 100%; }
    .sizes-display { flex-direction: column; align-items: center; }
    .size-1800, .size-2800, .size-3800, .size-4800 { width: 100%; }
}

/* ========================================
   Reviews
   ======================================== */
.reviews-section { background: var(--bg-charcoal); }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all var(--transition);
}

.review-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.review-stars {
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 2px;
}

.review-stars .empty { color: var(--border); }

.review-quote {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    flex: 1;
}

.review-meta {
    border-top: 1px solid var(--border);
    padding-top: 14px;
    font-size: 0.8rem;
}

.review-name {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.review-build {
    color: var(--text-muted);
    margin-top: 2px;
    font-size: 0.78rem;
}

.reviews-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
    font-size: 0.95rem;
}

.reviews-cta {
    text-align: center;
}

.reviews-cta-note {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 12px;
}

@media (max-width: 900px) {
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .reviews-grid { grid-template-columns: 1fr; }
}

/* Review modal — wider than the tracker modal to fit the form */
#reviewModal .modal-content { max-width: 580px; }

.review-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.review-form .form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 0; }

.review-form label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.review-form input[type="text"],
.review-form input[type="email"],
.review-form textarea {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition);
}

.review-form input:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.review-form textarea { resize: vertical; min-height: 100px; }

.star-picker { display: flex; gap: 4px; }

.star-btn {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    color: var(--border);
    padding: 4px;
    transition: color var(--transition), transform 0.08s;
}

.star-btn:hover, .star-btn:focus-visible { transform: scale(1.1); outline: none; }
.star-btn.active { color: var(--accent); }

.review-form .form-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.review-result {
    margin-top: 16px;
    font-size: 0.9rem;
    text-align: center;
}

.review-result.success {
    color: var(--accent);
    padding: 14px 18px;
    border: 1px solid var(--accent);
    background: var(--accent-dim);
    border-radius: var(--radius);
}

.review-result.error {
    color: #ff6b6b;
    padding: 12px 16px;
    border: 1px solid #ff6b6b;
    background: rgba(255, 107, 107, 0.08);
    border-radius: var(--radius);
}

@media (max-width: 600px) {
    .review-form .form-row { grid-template-columns: 1fr; }
}

/* Turnstile wrap — center the widget and give it room */
.cf-turnstile-wrap {
    display: flex;
    justify-content: center;
    margin: 8px 0 4px;
}

/* Review image picker */
.image-picker { position: relative; }
.image-picker-btn { display: inline-block; }
.image-preview {
    position: relative;
    margin-top: 4px;
    display: inline-block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    max-width: 200px;
}
.image-preview img {
    display: block;
    max-width: 100%;
    max-height: 200px;
    object-fit: cover;
}
.image-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.image-remove:hover { background: var(--accent); color: var(--bg-dark); }

/* Review card image */
.review-card .review-image {
    margin: -28px -24px 0;
    aspect-ratio: 4 / 3;
    background: var(--bg-dark) center/cover no-repeat;
    cursor: zoom-in;
}
