/* ==========================================================================
   Apex Off-Road & Accessories - Main Stylesheet
   Mobile-first, dark theme with red accents
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
    color-scheme: light;
    --red: #c41e2a;
    --red-light: #e63946;
    --red-dark: #9b1b23;
    --red-glow: rgba(196, 30, 42, 0.4);
    --lime: #5af000;
    --lime-light: #7cff33;
    --lime-dark: #45c200;
    --lime-glow: rgba(90, 240, 0, 0.35);
    --bg-darkest: #0a0a0a;
    --bg-dark: #0d0d0d;
    --bg-card: #161616;
    --bg-card-hover: #1c1c1c;
    --bg-section: #111111;
    --bg-section-alt: #0d0d0d;
    --border: #222;
    --border-light: #333;
    --text: #f0f0f0;
    --text-muted: #999;
    --text-dim: #666;
    --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
    --font-hero: 'Bebas Neue', 'Oswald', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container: 1200px;
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
}

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

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-light); }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--red) var(--bg-dark);
    /* REQUIRED: This is what the browser UI 'looks' at for tinting */
}

body {
    font-family: var(--font-body);
    /* This ensures your site stays dark while the browser UI stays red */
    background-color: var(--red-dark) !important;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Remove 'overflow-x: hidden' from body if the tint still fails,
       apply it to a wrapper div instead. */
    overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

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

.text-red { color: var(--red); }
.text-center { text-align: center; }
.mobile-break { display: block; }

@media (min-width: 768px) {
    .mobile-break { display: none; }
}

.section-dark {
    background: var(--bg-section);
}

.section-card{
    background: var(--bg-card);
}

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

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--lime);
    background: rgba(90, 240, 0, 0.08);
    border: 1px solid rgba(90, 240, 0, 0.35);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.2;
}

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

.btn-primary:hover {
    background: var(--red-light);
    border-color: var(--red-light);
    color: #fff;
    box-shadow: 0 0 25px var(--red-glow), 0 4px 15px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: #fff;
    color: var(--bg-dark);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-lg {
    font-size: 1.1rem;
    padding: 0.9rem 2.25rem;
}

.btn-full { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: fixed;
    top: 1px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s ease;
    padding: 1rem 0;
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.5rem 0;
    box-shadow: 0 2px 30px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(196, 30, 42, 0.15);
}

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

.logo-link { display: flex; align-items: center; }

.logo {
    height: 80px;
    width: auto;
    transition: height var(--transition);
}

.scrolled .logo { height: 55px; }

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

.mobile-toggle .bar {
    width: 26px;
    height: 2px;
    background: #fff;
    transition: all var(--transition);
    border-radius: 2px;
}

.mobile-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-dark);
    border-left: 1px solid var(--border);
    padding: 5rem 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.main-nav.active {
    right: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.main-nav ul li a {
    display: block;
    padding: 1rem 0;
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.main-nav ul li a:hover {
    color: var(--red);
    padding-left: 0.5rem;
}

.main-nav ul li a.active {
    color: var(--lime);
    padding-left: 0.5rem;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--red);
    color: #fff !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all var(--transition);
    text-align: center;
    justify-content: center;
}

.nav-cta:hover {
    background: var(--red-light);
    box-shadow: 0 0 20px var(--red-glow);
    color: #fff;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 999;
}

.nav-overlay.active { display: block; }

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-darkest);
    overflow: hidden;
    isolation: isolate;
}

/* Subtle diagonal weave + bottom vignette */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.012) 2px,
            rgba(255,255,255,0.012) 4px
        );
    z-index: 1;
}

/* Top-center red spotlight + lime corner accent + bottom fade */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% 28%, rgba(196, 30, 42, 0.22) 0%, transparent 65%),
        radial-gradient(circle at 92% 96%, rgba(90, 240, 0, 0.07) 0%, transparent 38%),
        linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 25%, transparent 65%, rgba(0,0,0,0.75) 100%);
    z-index: 2;
}

/* Film-grain noise overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.09;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 7rem 0 9rem;
}

/* Live status pill with pulsing lime dot */
.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.5rem 1.1rem 0.5rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease forwards;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--lime);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--lime);
    animation: pulseDot 2s ease-out infinite;
}

@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(90, 240, 0, 0.55), 0 0 8px var(--lime); }
    70%  { box-shadow: 0 0 0 12px rgba(90, 240, 0, 0),    0 0 8px var(--lime); }
    100% { box-shadow: 0 0 0 0 rgba(90, 240, 0, 0),       0 0 8px var(--lime); }
}

/* Title — oversized type with outlined ghost echo */
.hero-title {
    margin: 0 0 1.25rem;
    font-family: var(--font-hero);
    line-height: 0.95;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-title-line {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.75rem);
    font-weight: 400;
    letter-spacing: 0.18em;
    color: #ccc;
    margin-bottom: 0.3rem;
}

.hero-title-big {
    display: inline-block;
    position: relative;
    isolation: isolate;
    font-size: clamp(4.5rem, 16vw, 11rem);
    line-height: 0.9;
    color: var(--red);
    text-shadow: 0 8px 40px rgba(196, 30, 42, 0.35);
}

.hero-title-big::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(7%) scale(1.12);
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.09);
    color: transparent;
    z-index: -1;
    white-space: nowrap;
    pointer-events: none;
}

.hero-sub {
    font-size: 1.1rem;
    color: #d4d4d4;
    max-width: 540px;
    margin: 0 auto 2.25rem;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

/* KPI strip — credentials at a glance */
.hero-kpi {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.7rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.hero-kpi-item {
    white-space: nowrap;
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
}

.hero-kpi-item strong {
    font-family: var(--font-hero);
    font-size: 1.4rem;
    color: var(--lime);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
}

.hero-kpi-sep {
    width: 4px;
    height: 4px;
    background: var(--text-dim);
    border-radius: 50%;
    list-style: none;
}

/* Hero trucks — cinematic arrival: blast in with motion-blur decay,
   then a brief headlight glow pulse (red on left, lime on right). */
.hero-truck {
    display: block;
    position: absolute;
    bottom: 0;
    z-index: 2;
    width: 55%;
    max-width: 280px;
    opacity: 0;
    pointer-events: none;
    transform-origin: center bottom;
}

.hero-truck-left {
    left: -12%;
    animation: truckArriveLeft 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero-truck-right {
    right: -12%;
    animation: truckArriveRight 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

@keyframes truckArriveLeft {
    0% {
        opacity: 0;
        transform: translateX(-160%) translateY(12%) scale(0.94);
        filter: blur(14px) drop-shadow(0 5px 15px rgba(0,0,0,0.5));
    }
    55% {
        opacity: 1;
        transform: translateX(8%) translateY(0) scale(1.02);
        filter: blur(2px) drop-shadow(0 8px 25px rgba(0,0,0,0.55));
    }
    78% {
        transform: translateX(0) translateY(0) scale(1);
        filter: blur(0) drop-shadow(0 0 60px var(--red));
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
        filter: drop-shadow(0 8px 25px rgba(196, 30, 42, 0.35));
    }
}

@keyframes truckArriveRight {
    0% {
        opacity: 0;
        transform: translateX(160%) translateY(12%) scale(0.94);
        filter: blur(14px) drop-shadow(0 5px 15px rgba(0,0,0,0.5));
    }
    55% {
        opacity: 1;
        transform: translateX(-8%) translateY(0) scale(1.02);
        filter: blur(2px) drop-shadow(0 8px 25px rgba(0,0,0,0.55));
    }
    78% {
        transform: translateX(0) translateY(0) scale(1);
        filter: blur(0) drop-shadow(0 0 60px var(--lime));
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
        filter: drop-shadow(0 8px 25px rgba(90, 240, 0, 0.3));
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-truck-left,
    .hero-truck-right {
        animation: none;
        opacity: 1;
        transform: none;
        filter: drop-shadow(0 6px 18px rgba(0,0,0,0.5));
    }
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
    color: var(--text-muted);
    opacity: 0.5;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

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

/* ---------- Services Grid (Homepage) ---------- */
.services-preview {
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.service-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--red);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(196, 30, 42, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    border-color: rgba(196, 30, 42, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3), 0 0 20px rgba(196, 30, 42, 0.1);
    color: var(--text);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
    color: var(--red);
    margin-bottom: 1.25rem;
    position: relative;
}

.service-icon svg { stroke: var(--red); }

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    position: relative;
}

.service-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    position: relative;
    transition: all var(--transition);
}

.service-card:hover .service-link {
    letter-spacing: 0.15em;
}

/* ---------- Why Choose Section ---------- */
.why-choose {
    padding: 5rem 0;
    background: var(--bg-section-alt);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 3.5rem;
    row-gap: 0;
}

.why-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "num title"
        "num text";
    column-gap: 1.5rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--border);
    transition: padding-left var(--transition);
}

.why-card:nth-child(1) {
    border-top: none;
    padding-top: 0.5rem;
}

.why-card::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 1.75rem;
    bottom: 1.75rem;
    width: 2px;
    background: var(--lime);
    box-shadow: 0 0 12px var(--lime-glow);
    opacity: 0;
    transition: opacity var(--transition);
}

.why-card:hover {
    padding-left: 0.5rem;
}

.why-card:hover::before {
    opacity: 1;
}

.why-card-num {
    grid-area: num;
    align-self: start;
    font-family: var(--font-hero);
    font-size: clamp(2.75rem, 6vw, 3.5rem);
    line-height: 0.95;
    color: var(--lime);
    letter-spacing: 0.02em;
    min-width: 2.5ch;
}

.why-card-title {
    grid-area: title;
    align-self: end;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: 0.4rem;
    line-height: 1.15;
}

.why-card-text {
    grid-area: text;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}


/* ---------- Brands Marquee ---------- */
.brands-preview {
    padding: 5rem 0;
}

.brands-marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 1rem;
    animation: marquee 40s linear infinite;
    width: max-content;
}

.brand-item {
    flex-shrink: 0;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    white-space: nowrap;
}

.brand-item span {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- CTA Section ---------- */
.cta-section {
    padding: 5rem 0;
    background: #0a0a0a;
}

.cta-box {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, var(--red-light) 100%);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(0,0,0,0.05) 10px,
            rgba(0,0,0,0.05) 20px
        );
}

.cta-content {
    position: relative;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.cta-content h2 .text-red {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
    max-width: 500px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.cta-actions .btn-primary {
    background: #fff;
    color: var(--red);
    border-color: #fff;
}

.cta-actions .btn-primary:hover {
    background: var(--bg-dark);
    color: #fff;
    border-color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.cta-actions .btn-outline {
    border-color: rgba(255,255,255,0.5);
}

.cta-actions .btn-outline:hover {
    background: #fff;
    color: var(--red);
    border-color: #fff;
}

/* ---------- Page Hero (Inner Pages) ---------- */
.page-hero {
    padding: 8rem 0 3rem;
    background: var(--bg-darkest);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(196, 30, 42, 0.1) 0%, transparent 60%);
}

.page-hero .container {
    position: relative;
}

.page-hero h1 {
    font-family: var(--font-hero);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.page-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ---------- Services Detail ---------- */
.services-detail {
    padding: 4rem 0;
}

.detail-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-icon {
    color: var(--red);
}

.detail-icon svg { stroke: var(--red); }

.detail-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.detail-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.detail-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.detail-list li {
    padding: 0.4rem 0 0.4rem 1.75rem;
    position: relative;
    color: var(--text);
    font-size: 0.95rem;
}

.detail-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--lime);
    border-radius: 2px;
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 0 0 8px var(--lime-glow);
}

.detail-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.brand-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    background: rgba(196, 30, 42, 0.1);
    border: 1px solid rgba(196, 30, 42, 0.2);
    border-radius: 4px;
    color: var(--red-light);
}

/* ---------- About Page ---------- */
.about-story {
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-tagline {
    color: var(--text) !important;
    font-size: 1.2rem !important;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1.5rem !important;
    padding-top: 1.5rem;
    border-top: 2px solid var(--red);
}

.about-card-visual {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3;
}

.about-logo-display {
    max-height: 200px;
    width: auto;
}

.about-values {
    padding: 5rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    transition: all var(--transition);
}

.value-card:hover {
    border-color: rgba(196, 30, 42, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.value-number {
    font-family: var(--font-hero);
    font-size: 3rem;
    color: var(--lime);
    line-height: 1;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.value-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

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

/* ---------- Brands Page ---------- */
.brands-section {
    padding: 4rem 0;
}

.brand-category {
    margin-bottom: 4rem;
}

.brand-category:last-child { margin-bottom: 0; }

.brand-category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--red);
}

.brand-category-title svg { stroke: var(--red); flex-shrink: 0; }

.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.brand-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
}

.brand-card:hover {
    border-color: rgba(196, 30, 42, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: var(--text);
}

.brand-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 1rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.brand-logo-wrap.brand-logo-dark {
    background: #000;
}

.brand-logo-wrap img {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-card-info {
    padding: 1.25rem;
}

.brand-card-info h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.brand-card-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---------- Contact Page ---------- */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all var(--transition);
}

.contact-card:hover {
    border-color: rgba(196, 30, 42, 0.2);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(196, 30, 42, 0.1);
    border: 1px solid rgba(196, 30, 42, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.contact-card-icon svg { stroke: var(--red); color: var(--red); }

.contact-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-highlight {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text) !important;
    display: block;
    margin-bottom: 0.5rem;
}

a.contact-highlight:hover { color: var(--red) !important; }

.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
}

.contact-form-wrap h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-form-wrap > p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.required { color: var(--red); }

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(196, 30, 42, 0.15);
}

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

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: var(--bg-dark);
    color: var(--text);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.form-error {
    background: rgba(196, 30, 42, 0.1);
    border: 1px solid rgba(196, 30, 42, 0.3);
    color: var(--red-light);
    padding: 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-success {
    text-align: center;
    padding: 3rem 1.5rem;
}

.form-success svg {
    stroke: #22c55e;
    margin: 0 auto 1rem;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #22c55e;
}

.form-success p {
    color: var(--text-muted);
}

/* ---------- Map Section ---------- */
.map-section {
    background: var(--bg-section);
}

.map-header {
    padding: 3rem 0 2rem;
    text-align: center;
}

.map-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.map-header p {
    color: var(--text-muted);
}

.map-embed {
    width: 100%;
    line-height: 0;
}

.map-embed iframe {
    width: 100%;
    height: 350px;
    filter: grayscale(30%) contrast(90%) brightness(90%);
    transition: filter var(--transition);
}

.map-embed iframe:hover {
    filter: contrast(90%) brightness(100%);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-darkest);
    border-top: 1px solid var(--border);
}

.footer-top {
    padding: 4rem 0 3rem;
}

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

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-about p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.footer-social a svg { width: 18px; height: 18px; }

.footer-col h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--red);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.footer-col ul li a:hover {
    color: var(--red);
    padding-left: 0.25rem;
}

.footer-contact li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem !important;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-contact li svg {
    stroke: var(--red);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact li a {
    color: var(--text-muted);
}

.footer-contact li a:hover {
    color: var(--red);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* ==========================================================================
   Responsive Breakpoints (Mobile First)
   ========================================================================== */

/* ---- 480px+ ---- */
@media (min-width: 480px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .cta-actions {
        flex-direction: row;
    }

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

    .brand-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

/* ---- 768px+ ---- */
@media (min-width: 768px) {
    .container { padding: 0 2rem; }

    .section-header h2 { font-size: 2.5rem; }

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

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

    .why-card:nth-child(2) {
        border-top: none;
        padding-top: 0.5rem;
    }

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


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

    .contact-form-wrap {
        padding: 2.5rem;
    }

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

    .detail-card {
        flex-direction: row;
        gap: 2.5rem;
        align-items: flex-start;
    }

    .detail-icon { flex-shrink: 0; }

    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .brand-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .cta-box {
        flex-direction: row;
        text-align: left;
        padding: 3rem;
        align-items: center;
        justify-content: space-between;
    }

    .cta-content { flex: 1; }
    .cta-actions { flex-shrink: 0; }

    .map-embed iframe { height: 450px; }
}

/* ---- 1024px+ ---- */
@media (min-width: 1024px) {
    .mobile-toggle { display: none; }

    .hero-truck {
        width: 38%;
        max-width: 520px;
    }

    .hero-truck-left { left: -5%; }
    .hero-truck-right { right: -5%; }

    .main-nav {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: none;
        border: none;
        padding: 0;
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    .main-nav ul {
        flex-direction: row;
        gap: 0;
    }

    .main-nav ul li a {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        border-bottom: none;
        position: relative;
    }

    .main-nav ul li a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 1rem;
        right: 1rem;
        height: 2px;
        background: var(--red);
        transform: scaleX(0);
        transition: transform var(--transition);
    }

    .main-nav ul li a:hover::after,
    .main-nav ul li a.active::after {
        transform: scaleX(1);
    }

    .main-nav ul li a:hover {
        padding-left: 1rem;
        color: var(--red);
    }

    .nav-cta {
        margin-left: 1rem;
        font-size: 0.85rem;
        padding: 0.6rem 1.25rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .page-hero {
        padding: 10rem 0 4rem;
    }

    .services-detail {
        padding: 5rem 0;
    }

    .contact-form-wrap {
        padding: 3rem;
    }
}

/* ---------- Animation on scroll (JS adds .visible) ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Print Styles ---------- */
@media print {
    .site-header, .hero-scroll, .mobile-toggle, .nav-cta,
    .brands-marquee, .map-embed, .cta-section { display: none; }
    body { background: #fff; color: #000; }
    .service-card, .brand-card, .value-card, .contact-card { border: 1px solid #ccc; }
}
