/* ============================================
   Next Drive LLC - Premium Design System
   Used Engines & Transmissions
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ============================================
   CSS Variables — Premium Automotive Theme
   ============================================ */
:root {
    /* Background System */
    --primary: #111827;
    --primary-light: #1F2937;
    --primary-dark: #0B0F14;
    --accent: #2563EB;
    --accent-hover: #1D4ED8;
    --accent-glow: rgba(37, 99, 235, 0.15);
    --accent-secondary: #F59E0B;
    --gold: #F59E0B;
    --gold-dark: #D97706;

    /* Dark Theme */
    --dark: #0B0F14;
    --dark-card: #1F2937;
    --dark-surface: #111827;
    --dark-border: #2A2F3A;
    --dark-border-hover: #3D4451;

    /* Text */
    --text-primary: #E5E7EB;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;

    /* Status Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    /* Flat backgrounds — no gradients */
    --gradient-primary: #0B0F14;
    --gradient-accent: #2563EB;
    --gradient-accent-warm: #EF4444;
    --gradient-gold: #F59E0B;
    --gradient-hero: #0B0F14;
    --gradient-card: #1F2937;
    --gradient-glass: rgba(255,255,255,0.02);

    /* Shadows — subtle, no glow */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.25);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.3);
    --shadow-glow: 0 4px 12px rgba(0,0,0,0.2);
    --shadow-glow-strong: 0 4px 16px rgba(0,0,0,0.25);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.2);

    /* Radius — tighter */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 14px;
    --radius-full: 6px;

    /* Transitions — faster */
    --transition: all 0.2s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.3s ease;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 14px;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.55s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(7) { transition-delay: 0.65s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(8) { transition-delay: 0.75s; opacity: 1; transform: translateY(0); }

/* ============================================
   Utility Classes
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 56px 0;
    position: relative;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 28px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

/* Decorative line under section titles */
.section-title::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--dark-border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-gold {
    background: var(--gold);
    color: var(--dark);
    font-weight: 700;
}

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

.btn-accent-warm {
    background: var(--danger);
    color: #fff;
}

.btn-accent-warm:hover {
    background: #DC2626;
    color: #fff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.78rem;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 0.92rem;
}

/* ============================================
   Badges
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-engine {
    background: rgba(37,99,235,0.12);
    color: #60A5FA;
}

.badge-transmission {
    background: rgba(245,158,11,0.12);
    color: var(--gold);
}

.badge-featured {
    background: rgba(239,68,68,0.12);
    color: #F87171;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11,15,20,0.95);
    border-bottom: 1px solid var(--dark-border);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(11,15,20,0.98);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo:hover {
    color: var(--text-primary);
}

.nav-logo img {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-logo-text .brand-name {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.nav-logo-text .brand-tagline {
    font-size: 0.55rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    letter-spacing: 0.2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

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

.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 7px 16px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
}

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

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

/* ============================================
   Hero Section with Parallax
   ============================================ */
.hero {
    min-height: auto;
    height: 72vh;
    max-height: 640px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 60px;
}

/* Parallax background image */
.hero-parallax-bg {
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    bottom: -80px;
    background: url('../hero-bg.png') center center / cover no-repeat;
    will-change: transform;
    z-index: 0;
}

/* Dark overlay on hero */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11,15,20,0.88);
    z-index: 1;
}

/* Remove animated orbs */
.hero::before,
.hero::after {
    display: none;
}

/* Remove grid overlay */
.hero-grid-overlay {
    display: none;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 620px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(37,99,235,0.1);
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #60A5FA;
    margin-bottom: 16px;
    letter-spacing: 0.4px;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 14px;
    animation: fadeInUp 0.6s ease 0.1s both;
    letter-spacing: -0.5px;
}

.hero h1 .highlight {
    color: var(--accent);
}

.hero p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 500px;
    animation: fadeInUp 0.6s ease 0.2s both;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 32px;
    animation: fadeInUp 0.6s ease 0.4s both;
    padding-top: 20px;
    border-top: 1px solid var(--dark-border);
}

.hero-stat {
    text-align: left;
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

.hero-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Part Cards (Premium)
   ============================================ */
.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

.part-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.part-card:hover {
    border-color: var(--dark-border-hover);
    box-shadow: var(--shadow-md);
}

.part-card::before {
    display: none;
}

.part-card:hover::before {
    display: none;
}

.part-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--dark-surface);
}

.part-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.part-card:hover .part-card-image img {
    transform: scale(1.08);
}

.part-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
}

.part-card-body {
    padding: 14px 16px;
}

.part-card-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.35;
}

.part-card-title a {
    color: inherit;
    text-decoration: none;
}

.part-card-title a:hover {
    color: var(--accent);
}

.part-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.part-card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.part-card-meta-item .icon {
    font-size: 0.85rem;
}

.part-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--dark-border);
}

.part-card-price {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
}

/* ============================================
   Features / Trust Section
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    transition: var(--transition);
}

.feature-card::after {
    display: none;
}

.feature-card:hover {
    border-color: var(--dark-border-hover);
}

.feature-card:hover::after {
    display: none;
}

.feature-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    background: rgba(37,99,235,0.1);
    border: 1px solid rgba(37,99,235,0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.feature-card h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.55;
    position: relative;
    z-index: 1;
}

/* ============================================
   Page Header (inner pages) with Parallax
   ============================================ */
.page-header {
    background: var(--dark-surface);
    padding: 100px 0 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    display: none;
}

.page-header::after {
    display: none;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.3px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--accent);
}

/* ============================================
   Listing Page (Engines/Transmissions)
   ============================================ */
.listing-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px 20px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--dark);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    flex: 1;
    min-width: 180px;
    max-width: 380px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--accent);
}

.search-box input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    width: 100%;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-controls label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.sort-controls select {
    background: var(--dark);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    padding-right: 32px;
    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 fill='%239CA3AF' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.sort-controls select:focus {
    outline: none;
    border-color: var(--accent);
}

.results-count {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   Product Detail
   ============================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 28px 0;
}

.product-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    box-shadow: var(--shadow-card);
}

.product-image img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 18px;
}

.product-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.product-spec {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    padding: 12px;
    transition: var(--transition);
}

.product-spec:hover {
    border-color: var(--dark-border-hover);
}

.product-spec-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
}

.product-spec-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.product-description {
    margin-bottom: 20px;
}

.product-description h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--accent);
}

.product-description p {
    color: var(--text-secondary);
    line-height: 1.9;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 5px;
    letter-spacing: 0.2px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 9px 14px;
    background: var(--dark);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--dark-surface);
}

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

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

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

.contact-info-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    gap: 14px;
    transition: var(--transition);
}

.contact-info-card:hover {
    border-color: var(--dark-border-hover);
}

.contact-info-card .icon {
    width: 40px;
    height: 40px;
    background: rgba(37,99,235,0.1);
    border: 1px solid rgba(37,99,235,0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-info-card h3 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.contact-info-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ============================================
   Footer — Premium Dark Design
   ============================================ */
.footer {
    background: var(--dark-surface);
    border-top: 1px solid var(--dark-border);
    padding: 40px 0 16px;
    position: relative;
}

.footer::before {
    display: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 28px;
    margin-bottom: 28px;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand-logo img {
    height: 30px;
    width: auto;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
}

.footer-brand h3 span {
    color: var(--accent);
}

.footer-brand p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-column h4 {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-column ul li {
    margin-bottom: 6px;
}

.footer-column ul li a {
    font-size: 0.78rem;
    color: var(--text-secondary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-column ul li a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--dark-border);
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ============================================
   Policy Pages
   ============================================ */
.policy-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 0;
}

.policy-content h2 {
    font-size: 1.2rem;
    margin: 24px 0 10px;
    color: var(--text-primary);
}

.policy-content h3 {
    font-size: 1rem;
    margin: 18px 0 8px;
    color: var(--text-primary);
}

.policy-content p {
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 10px;
}

.policy-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.policy-content ul li {
    list-style: disc;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.7;
}

/* ============================================
   About Page
   ============================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}

.about-text h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.stat-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--dark-border-hover);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ============================================
   CTA Section (Enhanced)
   ============================================ */
.cta-section {
    text-align: center;
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    display: none;
}

/* ============================================
   Alerts & Messages
   ============================================ */
.alert {
    padding: 16px 22px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(0,214,143,0.1);
    border: 1px solid rgba(0,214,143,0.3);
    color: var(--success);
    display: block;
}

.alert-error {
    background: rgba(255,61,113,0.1);
    border: 1px solid rgba(255,61,113,0.3);
    color: var(--danger);
    display: block;
}

/* ============================================
   Loading Spinner
   ============================================ */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    gap: 14px;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--dark-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 48px 16px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.empty-state h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

/* ============================================
   Trust Badges Section
   ============================================ */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.trust-badge .icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37,99,235,0.1);
    border: 1px solid rgba(37,99,235,0.15);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

/* ============================================
   Parallax Section Divider
   ============================================ */
.parallax-divider {
    height: 260px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-divider-bg {
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    bottom: -50px;
    background: url('../../hero-bg.png') center center / cover no-repeat;
    will-change: transform;
}

.parallax-divider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11,15,20,0.88);
}

.parallax-divider-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* ============================================
   Counters Animation
   ============================================ */
.counter {
    display: inline;
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-hover);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(11,15,20,0.98);
        flex-direction: column;
        padding: 16px;
        gap: 10px;
        border-bottom: 1px solid var(--dark-border);
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero {
        height: auto;
        min-height: 50vh;
        padding-top: 60px;
        padding-bottom: 32px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat-number {
        font-size: 1.3rem;
    }

    .section {
        padding: 36px 0;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .page-header {
        padding: 80px 0 28px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .parts-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .listing-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .product-specs {
        grid-template-columns: 1fr;
    }

    .trust-badges {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .parts-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}
