:root {
    --bg-dark: #121212;
    --panel-bg: #1e1e1e;
    --gold: #c5a059;
    --gold-hover: #e0b86b;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-heading); text-transform: uppercase; }

/* Navigation */
.main-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; background-color: rgba(18, 18, 18, 0.95);
    position: fixed; width: 100%; top: 0; z-index: 100;
    border-bottom: 1px solid #333;
}
.logo { height: 50px; }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 500; transition: color 0.3s;}
.nav-links a:hover { color: var(--gold); }

/* Buttons */
.btn-primary {
    background: var(--gold); color: #000; padding: 12px 24px;
    border-radius: 25px; text-decoration: none; font-weight: bold;
    transition: transform 0.2s, background 0.2s;
}
.btn-primary:hover { background: var(--gold-hover); transform: scale(1.05); }
.btn-secondary {
    border: 2px solid var(--gold); color: var(--gold); padding: 12px 24px;
    border-radius: 25px; text-decoration: none; font-weight: bold;
    display: inline-block; margin-top: 20px; transition: background 0.3s;
}
.btn-secondary:hover { background: var(--gold); color: #000; }

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(to right, rgba(0,0,0,0.9), rgba(0,0,0,0.3)), url('images/hero-banner.jpg') center/cover;
    display: flex; align-items: flex-start; padding: 0 5%;
}
.hero-content { max-width: 600px; margin-top: 140px; }
.hero-content h1 { font-size: 60px; line-height: 1.1; margin-top: 20px; }
.highlight { color: var(--gold); }
.hero-content p { font-size: 18px; color: var(--text-muted); margin-top: 30px; }
.app-buttons img { height: 50px; margin-right: 15px; cursor: pointer; }
.guest-link { display: block; margin-top: 15px; color: var(--text-muted); text-decoration: none; font-size: 14px; }

/* Sections */
section { padding: 80px 5%; }
.features-section h2 { text-align: center; color: var(--gold); font-size: 36px; margin-bottom: 50px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: var(--panel-bg); padding: 30px; border-radius: 12px; border: 1px solid #333; }
.card .icon { font-size: 40px; margin-bottom: 15px; }
.card h3 { font-size: 24px; margin-bottom: 15px; }

/* Vendors Section */
.vendors-section { display: flex; align-items: center; gap: 50px; background: #0f0f0f; }
.vendor-content { flex: 1; }
.vendor-content h2 { font-size: 40px; color: var(--gold); margin-bottom: 20px; }
.vendor-image { flex: 1; text-align: center; }
.vendor-image img { max-width: 100%; border-radius: 12px; border: 2px solid var(--gold); }

/* Social Proof */
.social-proof { text-align: center; background: url('images/tire-tread.png') center/cover; }
.social-proof h2 { font-size: 36px; color: var(--gold); margin-bottom: 40px;}
.stats-grid { display: flex; justify-content: center; gap: 80px; margin-bottom: 50px; }
.stat strong { font-size: 48px; font-family: var(--font-heading); color: var(--text-main); }
.stat { color: var(--text-muted); }
.review { max-width: 800px; margin: 0 auto; font-size: 20px; font-style: italic; color: #ccc; }

/* Footer */
footer { background: #050505; padding: 50px 5% 20px; border-top: 1px solid #333; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--gold); margin-bottom: 15px; }
.footer-grid a { color: var(--text-muted); text-decoration: none; display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--text-main); }
.copyright { text-align: center; color: #555; border-top: 1px solid #222; padding-top: 20px; }

@media (max-width: 768px) {
    .vendors-section { flex-direction: column; }
    .stats-grid { flex-direction: column; gap: 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; } /* Add a hamburger menu later for mobile */
}

/* --- FEATURES PAGE SPECIFIC STYLES --- */

.page-header {
    padding: 180px 5% 80px;
    text-align: center;
    background: linear-gradient(to bottom, #121212, #1a1a1a);
    border-bottom: 1px solid #333;
}

.page-header h1 {
    font-size: 50px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.feature-showcase {
    padding: 80px 5%;
    display: flex;
    flex-direction: column;
    gap: 100px; /* Space between each row */
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 36px;
    color: var(--gold);
    margin-bottom: 20px;
}

.feature-text p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 25px;
}

.feature-bullets {
    list-style: none;
}

.feature-bullets li {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-main);
    font-weight: 500;
}

.feature-image {
    flex: 1;
}

.feature-image img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cta-banner {
    text-align: center;
    background: url('images/tire-tread.png') center/cover;
    padding: 100px 5%;
    border-top: 1px solid var(--gold);
}

.cta-banner h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

/* Mobile Responsiveness for Features */
@media (max-width: 768px) {
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        gap: 30px;
    }
    .page-header {
        padding: 140px 5% 50px;
    }
}

/* --- VENDORS PAGE SPECIFIC STYLES --- */

.vendor-contact-section {
    background: #0a0a0a;
    padding: 100px 5%;
    display: flex;
    justify-content: center;
}

.contact-container {
    background: var(--panel-bg);
    max-width: 800px;
    width: 100%;
    padding: 50px;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    text-align: center;
}

.contact-container h2 {
    color: var(--gold);
    font-size: 36px;
    margin-bottom: 10px;
}

.contact-container p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.vendor-form {
    text-align: left;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-row .form-group {
    margin-bottom: 0; /* Handled by row margin */
}

.form-group label {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: #121212;
    border: 1px solid #444;
    color: var(--text-main);
    padding: 15px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    transition: border-color 0.3s;
}

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

.submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 18px;
    margin-top: 10px;
    padding: 18px;
}

/* Mobile Responsiveness for Form */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-row .form-group {
        margin-bottom: 20px;
    }
    .contact-container {
        padding: 30px 20px;
    }
}

/* --- SUPPORT PAGE SPECIFIC STYLES --- */

.support-section {
    padding: 80px 5%;
    display: flex;
    gap: 60px;
    align-items: flex-start;
    background: #0f0f0f;
}

/* FAQ Accordion Styles */
.faq-container {
    flex: 1.2;
}

.faq-container h2 {
    color: var(--gold);
    font-size: 32px;
    margin-bottom: 30px;
}

.faq-item {
    background: var(--panel-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #333;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: #555;
}

.faq-item summary {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
    list-style: none; /* Hides default arrow in modern browsers */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Custom dropdown icon indicator using CSS */
.faq-item summary::after {
    content: '+';
    color: var(--gold);
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s;
}

/* Hides the default ugly triangle arrow in older browsers */
.faq-item summary::-webkit-details-marker {
    display: none; 
}

/* Changes the + to a - and turns the text gold when clicked */
.faq-item[open] summary {
    color: var(--gold);
    border-bottom: 1px solid #333;
}

.faq-item[open] summary::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-content {
    padding: 20px;
    color: #ccc;
    font-size: 16px;
    background: #151515;
}

/* Support Form Tweaks (Reuses Vendor Form CSS) */
.support-form-container {
    flex: 0.8;
    margin: 0; /* overrides center margin from vendor page */
    text-align: left;
}

.support-form-container h2 {
    text-align: center;
}

.support-form-container p {
    text-align: center;
}

/* Mobile Responsiveness for Support Page */
@media (max-width: 900px) {
    .support-section {
        flex-direction: column;
        gap: 50px;
    }
    .faq-container, .support-form-container {
        width: 100%;
        flex: none;
    }
}

/* --- BRAND ASSETS PAGE SPECIFIC STYLES --- */

.brand-section {
    padding: 80px 5%;
    background: #0a0a0a;
}

.asset-category {
    margin-bottom: 80px;
    border-top: 1px solid #222;
    padding-top: 40px;
}

.asset-category:first-child {
    border-top: none;
    padding-top: 0;
}

.asset-category > h2 {
    color: var(--text-main);
    font-size: 32px;
    margin-bottom: 10px;
}

.asset-category > p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
}

/* Asset Download Cards */
.asset-card {
    background: var(--panel-bg);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.asset-preview {
    height: 200px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.5);
}

.asset-card h3 {
    color: var(--gold);
    font-size: 20px;
    margin-bottom: 10px;
}

.asset-card p {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes the button to the bottom */
}

.asset-dl {
    width: 100%;
    margin-top: auto;
    font-size: 14px;
    padding: 10px;
}

/* Color Palette Cards */
.color-card {
    background: var(--panel-bg);
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
}

.color-swatch {
    height: 150px;
    width: 100%;
}

.color-info {
    padding: 20px;
}

.color-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.color-info p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 5px;
}

/* Typography Cards */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.type-card {
    background: var(--panel-bg);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 40px;
}

.type-card h3 {
    color: var(--gold);
    margin-bottom: 10px;
}

.type-card p {
    color: #ccc;
    margin-bottom: 20px;
}

.text-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.text-link:hover {
    color: var(--text-main);
}

/* Mobile Responsiveness for Assets */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* --- LEGAL PAGES (PRIVACY / TERMS) SPECIFIC STYLES --- */

.legal-section {
    padding: 50px 5% 100px;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
}

.legal-container {
    max-width: 800px;
    width: 100%;
    background: var(--panel-bg);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.legal-container p {
    color: #ccc;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.legal-container h2 {
    color: var(--text-main);
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.legal-container ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.legal-container ul li {
    color: #ccc;
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.legal-container ul li strong {
    color: var(--gold);
}

/* Mobile Responsiveness for Legal Pages */
@media (max-width: 768px) {
    .legal-container {
        padding: 30px 20px;
    }
    .legal-container h2 {
        font-size: 20px;
    }
}

/* --- ABOUT US PAGE SPECIFIC STYLES --- */

.about-section {
    padding: 100px 5%;
    background: #0a0a0a;
}

.about-grid {
    display: flex;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1.2;
}

.about-text h2 {
    color: var(--gold);
    font-size: 36px;
    margin-bottom: 25px;
}

.about-text p {
    color: #ccc;
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.mission-section {
    padding: 100px 5%;
    background: var(--panel-bg);
    border-top: 1px solid #222;
    text-align: center;
}

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

.mission-container h2 {
    color: var(--text-main);
    font-size: 32px;
    margin-bottom: 20px;
}

.mission-container > p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.core-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    background: #121212;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid #333;
    transition: transform 0.3s, border-color 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.value-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.value-card h3 {
    color: var(--gold);
    font-size: 22px;
    margin-bottom: 15px;
}

.value-card p {
    color: #aaa;
    font-size: 16px;
    line-height: 1.6;
}

/* Mobile Responsiveness for About Page */
@media (max-width: 900px) {
    .about-grid {
        flex-direction: column;
    }
}

/* 404 Error Page */
.error-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #121212, #0a0a0a);
    text-align: center;
    padding: 120px 5% 80px;
}

.error-container {
    max-width: 600px;
}

.error-code {
    font-size: 120px;
    line-height: 1;
    color: var(--panel-bg);
    text-shadow: 2px 2px 0px var(--gold), -1px -1px 0px #333;
    margin-bottom: 10px;
}

.error-container h2 {
    font-size: 40px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.error-container p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mobile adjustments for 404 actions */
@media (max-width: 480px) {
    .error-actions {
        flex-direction: column;
        gap: 15px;
    }
    .error-actions .btn-secondary {
        margin-left: 0 !important;
        width: 100%;
    }
}