/* ==========================================================================
   22Auto - Global CSS Variables and Reset
   ========================================================================== */
:root {
    /* Colors derived from Logo */
    --bg-dark: #0f0f12;
    /* Deep Black Base */
    --bg-darker: #08080a;
    /* Even darker for sections/footers */
    --bg-card: #1a1a20;
    /* Slightly lighter for cards */
    --primary-red: #e60000;
    /* Racing Red */
    --primary-red-hover: #b30000;
    --accent-silver: #e0e0e0;
    /* Chrome Silver */
    --accent-blue: #0b3d91;
    /* Accent from truck in logo, optional use */

    /* Text Colors */
    --text-main: #f5f5f5;
    /* Off-white for body readability */
    --text-muted: #a0a0a5;
    /* Gray for secondary text */

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --max-width: 1200px;
    --section-padding: 80px 20px;

    /* Effects */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-red-glow: 0 0 15px rgba(230, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    /* Bold impactful headings */
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-silver);
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.accent-line {
    width: 80px;
    height: 4px;
    background-color: var(--primary-red);
    margin: 0 auto;
    border-radius: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-red);
    color: #fff;
    box-shadow: var(--shadow-red-glow);
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(230, 0, 0, 0.5);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--accent-silver);
    color: var(--accent-silver);
}

.btn-outline:hover {
    background-color: rgba(224, 224, 224, 0.1);
    color: #fff;
    border-color: #fff;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 0, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(230, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(230, 0, 0, 0);
    }
}

.phone-pulse {
    animation: pulseGlow 2s infinite;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(8, 8, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-logo {
    height: 60px;
    /* Adjust based on logo proportions */
    width: auto;
    transition: transform var(--transition-fast);
}

.nav-logo:hover {
    transform: scale(1.05);
}

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

.nav-links a:not(.btn) {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-links a:not(.btn):hover {
    color: var(--primary-red);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    padding-top: 100px;
    /* Account for fixed nav */
    display: flex;
    align-items: center;
    background: radial-gradient(circle at center, var(--bg-card) 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle background overlay to mimic asphalt or metallic texture */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    z-index: 2;
    /* Above the pattern */
    padding: 0 20px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--accent-silver));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Adds a nice glow behind the enormous logo */
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary-red);
    filter: blur(150px);
    opacity: 0.15;
    z-index: -1;
    border-radius: 50%;
}

.hero-logo-large {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.8));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    padding: var(--section-padding);
    background-color: var(--bg-darker);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    padding: 0 20px;
}

.service-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-smooth), border-color var(--transition-fast);
    box-shadow: var(--shadow-subtle);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(230, 0, 0, 0.3);
    /* Subtle red border on hover */
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    background: linear-gradient(135deg, var(--bg-darker), var(--bg-dark));
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(230, 0, 0, 0.2);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.service-card p {
    color: var(--text-muted);
}

/* ==========================================================================
   Inventory Section
   ========================================================================== */
.inventory {
    padding: var(--section-padding);
    background-color: var(--bg-dark);
}

.inventory-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.inventory-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.fb-btn {
    background-color: #1877F2;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
}

.fb-btn:hover {
    background-color: #166FE5;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(24, 119, 242, 0.4);
}

.fb-icon {
    display: block;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-red), #990000);
    padding: 80px 20px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Diagonal stripe overlay pattern */
.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg,
            rgba(0, 0, 0, 0.1),
            rgba(0, 0, 0, 0.1) 10px,
            transparent 10px,
            transparent 20px);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-banner h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-banner .btn {
    background-color: var(--bg-dark);
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.cta-banner .btn:hover {
    background-color: #000;
    transform: scale(1.05);
}

/* ==========================================================================
   Location & Contact Section
   ========================================================================== */
.location {
    padding: var(--section-padding);
    background-color: var(--bg-dark);
}

.location-content {
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.contact-info-card {
    background-color: var(--bg-card);
    padding: 50px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
    box-shadow: var(--shadow-subtle);
    width: 100%;
    max-width: 600px;
}

.contact-info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #fff;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--primary-red);
    font-weight: 700;
    letter-spacing: 1px;
}

.contact-value {
    font-size: 1.1rem;
    color: var(--text-main);
}

.contact-link {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(230, 0, 0, 0.3);
    text-underline-offset: 4px;
}

.contact-link:hover {
    color: var(--primary-red);
    text-decoration-color: var(--primary-red);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-card);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.map-placeholder {
    text-align: center;
    padding: 40px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: repeating-radial-gradient(circle at center,
            var(--bg-card),
            var(--bg-card) 20px,
            rgba(255, 255, 255, 0.02) 21px,
            rgba(255, 255, 255, 0.02) 40px);
}

.map-pin {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
}

.map-placeholder h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent-silver);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: #050506;
    /* Pitch black */
    padding: 60px 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.footer-logo img {
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-logo img:hover {
    opacity: 1;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-muted);
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-red);
}

.footer-copyright {
    color: #666;
    font-size: 0.85rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 600px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        /* simple mobile nav override for now, can implement hamburger if requested */
    }

    .nav-cta {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

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

    .map-container {
        min-height: 300px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .contact-info-card {
        padding: 30px 20px;
    }
}