/* AMSOIL Professional - White/Blue */

:root {
    --primary: #0055a5;        /* AMSOIL Blue */
    --primary-dark: #003d7a;   /* Darker Blue */
    --primary-light: #0077d4;  /* Lighter Blue */
    --accent: #ffffff;         /* White */
    --bg-dark: #ffffff;        /* White Background */
    --bg-card: #f8f9fa;        /* Light Gray Cards */
    --text: #000000;           /* Black Text */
    --text-muted: #555555;     /* Medium Gray */
    --border: #e0e0e0;         /* Light Border */
    --sky-blue: #0055a5;       /* Blue for CTAs */
    --sand: #f0f0f0;           /* Light highlight */
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-dark);
}

a { text-decoration: none; color: var(--primary); transition: color 0.3s; }
a:hover { color: var(--primary-light); }

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

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: #ffffff !important;
    padding: 15px 0;
    font-size: 15px;
    font-weight: 600;
}

.top-bar * {
    color: #ffffff !important;
}

.top-bar a {
    color: #ffffff !important;
}

.top-bar a[href*="Pricing.pdf"] {
    color: #ff6600 !important;
    font-weight: 700 !important;
}

/* Header */
header {
    background: #ffffff;
    border-bottom: 3px solid var(--primary);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo span { color: var(--text); }

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav ul.active {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-top: 10px;
}

nav ul.active li {
    width: 100%;
    border-bottom: 1px solid var(--border);
}

nav ul.active li:last-child {
    border-bottom: none;
}

nav ul.active a {
    display: block;
    padding: 15px 0;
    text-align: center;
}

nav a {
    color: var(--text);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

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

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0, 85, 165, 0.3) 0%, rgba(0, 61, 122, 0.25) 100%), url('../images/HEADER-1841x533-DIRTBIKE.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    padding: 100px 0 !important;
    text-align: center;
    border-bottom: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 42px !important;
    margin-bottom: 20px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #ffffff !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5) !important;
}

.hero h1 span { 
    color: #ffffff !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5) !important;
}

.hero p {
    font-size: 18px !important;
    max-width: 700px !important;
    margin: 0 auto !important;
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4) !important;
}

/* Buttons */
.btn,
a.btn,
button.btn,
.btn:link,
.btn:visited,
.btn:hover,
.btn:active,
.btn:focus,
[class*="btn"] {
    display: inline-block !important;
    padding: 18px 45px !important;
    border-radius: 5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 10px !important;
    transition: all 0.3s !important;
    border: none !important;
    cursor: pointer !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    text-decoration: none !important;
}

.btn *,
.btn a,
.btn span,
.btn i,
.btn svg,
.btn::before,
.btn::after,
a.btn *,
a.btn *,
[class*="btn"] * {
    color: #ffffff !important;
    background: transparent !important;
}

.btn-primary,
a.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
[class*="btn-primary"] {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 85, 165, 0.3) !important;
}

.btn-outline,
a.btn-outline,
.btn-outline:link,
.btn-outline:visited,
.btn-outline:hover,
.btn-outline:active,
.btn-outline:focus,
[class*="btn-outline"] {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    border: 2px solid var(--primary) !important;
    color: #ffffff !important;
}

.btn-download,
a.btn-download,
.btn-download:link,
.btn-download:visited,
.btn-download:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 85, 165, 0.3) !important;
}

/* Force all buttons in reviews and contact sections */
.google-reviews-cta a,
.google-reviews-cta .btn,
.footer-col a[href*="facebook"],
.google-reviews-cta a:link,
.google-reviews-cta a:visited,
.google-reviews-cta a:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: #ffffff !important;
    border: 2px solid var(--primary) !important;
}

.google-reviews-cta a *,
.google-reviews-cta .btn *,
.footer-col a[href*="facebook"] * {
    color: #ffffff !important;
}

/* Kill any white backgrounds on buttons */
a[style*="background"],
.btn[style*="background"],
[class*="btn"][style*="background"] {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

a[style*="color"],
.btn[style*="color"],
[class*="btn"][style*="color"] {
    color: #ffffff !important;
}

/* Stats Bar */
.stats {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 40px 0;
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 5px;
    color: #ffffff;
}

.stat-item p {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-dark);
}

.features h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 70px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
}

.features h2 span { color: var(--primary-dark); }

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

.feature-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 85, 165, 0.15);
}

.feature-icon {
    font-size: 60px;
    margin-bottom: 25px;
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 24px;
    text-transform: uppercase;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Products Section */
.products-section {
    padding: 100px 0;
    background: var(--bg-card);
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
}

.products-section h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.products-section > .container > p {
    text-align: center;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 70px;
    font-size: 18px;
}

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

.product-card {
    background: var(--bg-dark);
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 85, 165, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: #000;
    padding: 20px;
}

.product-info {
    padding: 25px;
}

.product-card h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 20px;
    text-transform: uppercase;
}

.product-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.product-card .btn {
    width: 100%;
    text-align: center;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.cta h2 {
    font-size: 40px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
}

.cta p {
    font-size: 18px;
    max-width: 650px;
    margin: 0 auto 40px;
    color: #ffffff;
    opacity: 0.95;
}

/* Footer */
footer {
    background: #1a1a1a;
    border-top: 3px solid var(--primary);
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
}

.footer-col p {
    color: #b0b0b0 !important;
    margin: 10px 0 !important;
    line-height: 2 !important;
}

.footer-col a,
.footer-col a:link,
.footer-col a:visited {
    color: #b0b0b0 !important;
}

.footer-col a[href*="mailto"],
.footer-col a[href*="@"] {
    color: var(--primary-light) !important;
}

.footer-col a:hover {
    color: var(--primary-light) !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #888;
    font-size: 14px;
}

/* Returns & Secure Payment */
.returns-section, .secure-payment {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 25px;
    margin-top: 25px;
}

.returns-section h4, .secure-payment h4 {
    color: var(--primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 16px;
}

.returns-section p, .secure-payment p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Purchasing Section - Purchase Options Cards */
.purchasing-section,
.products-section#purchase-options {
    /* Container styles */
}

.purchasing-section .product-grid,
.products-section#purchase-options .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 25px !important;
}

.purchasing-section .product-card,
.products-section#purchase-options .product-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 520px !important;
    padding: 25px !important;
    position: relative !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.purchasing-section .product-card .featured-badge,
.products-section#purchase-options .product-card .featured-badge {
    position: absolute !important;
    top: -12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: #ffffff !important;
    padding: 5px 20px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    z-index: 100 !important;
    white-space: nowrap !important;
    width: auto !important;
    max-width: 200px !important;
    box-shadow: 0 4px 15px rgba(0, 85, 165, 0.3);
}

.purchasing-section .product-card h3,
.products-section#purchase-options .product-card h3 {
    color: var(--primary) !important;
    margin-bottom: 15px !important;
    font-size: 20px !important;
    text-transform: uppercase !important;
    min-height: 50px !important;
    flex-shrink: 0 !important;
}

.purchasing-section .product-card > p,
.products-section#purchase-options .product-card > p {
    color: var(--text-muted) !important;
    margin-bottom: 20px !important;
    line-height: 1.7 !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    font-size: 14px !important;
}

.purchasing-section .product-card ul,
.products-section#purchase-options .product-card ul {
    list-style: none !important;
    padding: 0 15px !important;
    margin-bottom: 25px !important;
    flex-grow: 1 !important;
}

.purchasing-section .product-card ul li,
.products-section#purchase-options .product-card ul li {
    padding: 10px 0 !important;
    border-bottom: 1px solid var(--border) !important;
    color: var(--text-muted) !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.purchasing-section .product-card .btn,
.products-section#purchase-options .product-card .btn,
.purchasing-section .product-card a.btn,
.products-section#purchase-options .product-card a.btn {
    width: 100% !important;
    text-align: center !important;
    white-space: normal !important;
    margin-top: auto !important;
    padding: 15px 20px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    text-overflow: clip !important;
    flex-shrink: 0 !important;
    min-height: 54px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.4 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    border: 2px solid var(--primary) !important;
}

.purchasing-section .product-card .btn *,
.products-section#purchase-options .product-card .btn *,
.purchasing-section .product-card .btn::before,
.purchasing-section .product-card .btn::after {
    color: #ffffff !important;
    background: transparent !important;
}

/* Contact section email links */
.contact-cta a,
.contact-cta a:link,
.contact-cta a:visited,
.contact-cta a[href*="mailto"],
.contact-cta a[href*="@"],
section a[href*="mailto"],
section a[href*="@"] {
    color: var(--primary-light) !important;
}

.contact-cta a *,
.contact-cta a[href*="mailto"] *,
.contact-cta a[href*="@"] *,
section a[href*="mailto"] *,
section a[href*="@"] * {
    color: var(--primary-light) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
    
    * {
        box-sizing: border-box !important;
    }
    
    .header-content {
        position: relative;
    }
    
    .top-bar {
        padding: 10px 0 !important;
        font-size: 13px !important;
        overflow-x: hidden !important;
    }
    
    .top-bar .container {
        padding: 0 15px !important;
        max-width: 100% !important;
    }
    
    .top-bar span,
    .top-bar a {
        font-size: 12px !important;
        white-space: nowrap !important;
    }
    
    .container {
        padding: 0 15px !important;
        max-width: 100% !important;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1001;
        background: var(--bg-card);
        padding: 20px;
        border-radius: 10px;
        border: 1px solid var(--border);
        margin-top: 10px;
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    nav ul.active {
        display: flex !important;
    }
    
    nav ul.active li {
        width: 100% !important;
        border-bottom: 1px solid var(--border) !important;
    }
    
    nav ul.active li:last-child {
        border-bottom: none !important;
    }
    
    nav ul.active a {
        display: block !important;
        padding: 15px 0 !important;
        text-align: center !important;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        background-attachment: scroll !important;
        background-position: center center !important;
        padding: 60px 0 !important;
        overflow-x: hidden !important;
    }
    
    .hero h1 {
        font-size: 28px !important;
        padding: 0 10px !important;
    }
    
    .hero p {
        font-size: 16px !important;
        padding: 0 10px !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-grid, .product-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 12px 25px !important;
        font-size: 13px !important;
        margin: 5px !important;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
        color: #ffffff !important;
        border: 2px solid var(--primary) !important;
    }
    
    .btn *,
    .btn a,
    .btn span,
    .btn i,
    .btn svg {
        color: #ffffff !important;
    }
    
    .btn-primary,
    .btn-outline,
    .btn-download {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
        color: #ffffff !important;
    }
    
    a.btn,
    a.btn:link,
    a.btn:visited,
    a.btn:hover {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
        color: #ffffff !important;
    }
}
