:root {
    --primary-navy: #1a2b4a;
    --primary-sage: #7a9b8e;
    --accent-warm: #d4a574;
    --neutral-100: #ffffff;
    --neutral-200: #f8f9fa;
    --neutral-300: #e9ecef;
    --neutral-700: #495057;
    --neutral-900: #212529;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    color: var(--neutral-900);
    line-height: 1.7;
    background: var(--neutral-100);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: var(--neutral-100);
    border-bottom: 1px solid var(--neutral-300);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

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

.brand {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-badge {
    background: var(--primary-sage);
    color: white;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--neutral-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-sage);
    transition: width 0.3s;
}

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

/* Trust Bar */
.trust-bar {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2a3f5f 100%);
    color: white;
    padding: 0.75rem 2rem;
    text-align: center;
}

.trust-items {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.95;
}

.trust-icon {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, var(--neutral-200) 0%, var(--neutral-100) 100%);
    padding: 5rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(122, 155, 142, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.hero-eyebrow {
    color: var(--primary-sage);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--neutral-700);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.search-box {
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    border-radius: 8px;
}

.search-box button {
    background: var(--primary-navy);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.search-box button:hover {
    background: #0f1a2e;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    color: var(--neutral-700);
}

.hero-stats span {
    font-weight: 600;
    color: var(--primary-navy);
}

.intent-section {
    background: #f8fafc;
}

.intent-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    max-width: 1180px;
    margin: 0 auto;
}

.intent-card {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 1.5rem;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.intent-card:hover {
    color: inherit;
    border-color: #93c5fd;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .1);
    transform: translateY(-3px);
}

.intent-icon { font-size: 1.8rem; margin-bottom: .75rem; }
.intent-title { font-size: 1.15rem; font-weight: 800; margin-bottom: .5rem; }
.intent-copy { color: #64748b; line-height: 1.55; }
.intent-link { margin-top: auto; padding-top: 1rem; color: #2563eb; font-weight: 700; }

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

@media (max-width: 520px) {
    .intent-grid { grid-template-columns: 1fr; }
}

/* Section Headers */
.section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-eyebrow {
    color: var(--primary-sage);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Crimson Pro', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    color: var(--neutral-700);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.category-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid var(--neutral-300);
    text-decoration: none;
    display: block;
}

.category-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-sage);
}

.category-icon {
    background: linear-gradient(135deg, var(--primary-sage) 0%, #6a8b7e 100%);
    padding: 3rem 2rem 2rem;
    text-align: center;
    position: relative;
}

.category-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: white;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.category-svg {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.category-content {
    padding: 2rem;
}

.category-title {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
}

.category-desc {
    color: var(--neutral-700);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.category-link {
    color: var(--primary-sage);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.category-link::after {
    content: '→';
    transition: transform 0.2s;
}

.category-card:hover .category-link::after {
    transform: translateX(4px);
}

/* Expert Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--neutral-200);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.feature-title {
    font-weight: 700;
    color: var(--primary-navy);
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--neutral-700);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Comparison Section */
.comparison-section {
    background: var(--neutral-200);
    padding: 5rem 2rem;
}

.comparison-container {
    max-width: 1400px;
    margin: 0 auto;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.comparison-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-warm);
}

.comparison-title {
    font-family: 'Crimson Pro', serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.comparison-badge {
    display: inline-block;
    background: var(--primary-sage);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.comparison-list {
    list-style: none;
    margin-top: 1.5rem;
}

.comparison-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--neutral-300);
    color: var(--neutral-700);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.comparison-link {
    color: var(--primary-sage);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.comparison-link:hover {
    color: var(--primary-navy);
}

/* Fitment Database */
.fitment-section {
    background: var(--primary-navy);
    color: white;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.fitment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.fitment-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.fitment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.fitment-text h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.fitment-text p {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.fitment-list {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.fitment-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    text-decoration: none;
    color: white;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}

.fitment-list-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(8px);
}

.fitment-list-item:last-child {
    margin-bottom: 0;
}

.fitment-car {
    font-weight: 600;
    font-size: 1.05rem;
}

.fitment-count {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--neutral-900);
    color: rgba(255,255,255,0.7);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.875rem;
}

/* Form & Interactive Elements */
.booking-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-300);
}

.form-label {
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-control, .form-select {
    border: 2px solid var(--neutral-300);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
    background-color: var(--neutral-200);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-sage);
    box-shadow: 0 0 0 4px rgba(122, 155, 142, 0.1);
    background-color: white;
}

/* Step Indicators */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--neutral-300);
    z-index: 0;
}

.step-dot {
    width: 32px;
    height: 32px;
    background: white;
    border: 2px solid var(--neutral-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 1;
    color: var(--neutral-700);
    transition: all 0.3s;
}

.step-dot.active {
    border-color: var(--primary-navy);
    background: var(--primary-navy);
    color: white;
    transform: scale(1.1);
}

.step-dot.completed {
    border-color: var(--primary-sage);
    background: var(--primary-sage);
    color: white;
}

/* Selection Cards (The 'Horrible' Select fix) */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.selection-card {
    border: 2px solid var(--neutral-300);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: white;
}

.selection-card:hover {
    border-color: var(--primary-sage);
    background: var(--neutral-200);
}

.selection-card.active {
    border-color: var(--primary-navy);
    background: rgba(26, 43, 74, 0.05);
}

.selection-card.active::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-navy);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    line-height: 20px;
}

.selection-card i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-sage);
}

.selection-card span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-navy);
}

/* Custom Checkbox/Radio */
.custom-option {
    display: block;
    position: relative;
    padding: 1.25rem;
    padding-left: 3.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    background: var(--neutral-200);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.custom-option:hover {
    background: var(--neutral-300);
}

.custom-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 1.25rem;
    transform: translateY(-50%);
    height: 24px;
    width: 24px;
    background-color: white;
    border: 2px solid var(--neutral-300);
    border-radius: 6px;
}

.custom-option:hover input ~ .checkmark {
    border-color: var(--primary-sage);
}

.custom-option input:checked ~ .checkmark {
    background-color: var(--primary-navy);
    border-color: var(--primary-navy);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-option input:checked ~ .checkmark:after {
    display: block;
}

.custom-option .checkmark:after {
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.option-title {
    font-weight: 700;
    display: block;
    color: var(--primary-navy);
}

.option-desc {
    font-size: 0.85rem;
    color: var(--neutral-700);
}

/* Animations */
.fade-in-step {
    animation: fadeIn 0.4s ease-out;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

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

/* Article Content Styling (Markdown) */
.article-content h2 {
    font-family: 'Crimson Pro', serif;
    color: var(--primary-navy);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: 2rem;
}

.article-content h3 {
    font-family: 'Crimson Pro', serif;
    color: var(--primary-navy);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.article-content th, .article-content td {
    padding: 1rem;
    border: 1px solid var(--neutral-300);
    text-align: left;
}

.article-content th {
    background: var(--neutral-200);
    font-weight: 700;
    color: var(--primary-navy);
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

/* Responsive */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

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

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

    .fitment-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    /* Form Mobile Optimizations */
    .booking-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .selection-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .selection-card {
        padding: 1rem 0.5rem;
    }

    .selection-card i {
        font-size: 1.25rem;
    }

    .selection-card span {
        font-size: 0.8rem;
    }

    .hero {
        padding: 3rem 1rem 2rem;
    }
}

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

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.category-card {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }
