/* ============================================================
   Apollo Trade Solutions — Dark / Green (KingBrother-style)
   ============================================================ */

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

:root {
    --bg:            #0F1011;
    --surface:       #17181B;
    --surface-2:     #1F2124;
    --border:        #2A2C30;
    --border-2:      #3A3D42;
    --text:          #D6D8DB;
    --heading:       #FFFFFF;
    --muted:         #969BA1;
    --accent:        #00DA9A;
    --accent-hover:  #17E7A9;
    --accent-ink:    #052A20;
    --max:           1280px;
    --ease:          0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
    font-family: 'Red Hat Display', 'Roboto', sans-serif;
    color: var(--heading); line-height: 1.14; letter-spacing: -0.02em; font-weight: 700;
    overflow-wrap: break-word;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 2000;
    background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 6px;
    font-weight: 600; transition: top var(--ease);
}
.skip-link:focus { top: 12px; }

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.eyebrow {
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.18em; color: var(--accent); margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer;
    padding: 14px 28px; border-radius: 100px; border: 1px solid transparent;
    transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
    white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Brand / Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.18rem; font-weight: 800; letter-spacing: 0.02em; color: #fff; }
.brand-dot { color: var(--accent); }
.brand-tag { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.28em; color: var(--muted); margin-top: 4px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(15,16,17,0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--ease), background var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(15,16,17,0.96); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; transition: height var(--ease); }
.site-header.scrolled .header-inner { height: 68px; }

.main-nav { display: flex; gap: 28px; }
.main-nav a { font-size: 0.92rem; font-weight: 500; color: #d6d8db; transition: color var(--ease); }
.main-nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font-size: 0.92rem; font-weight: 600; color: #fff; }
.header-phone:hover { color: var(--accent); }

.burger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px;
    align-items: center; justify-content: center; background: none; border: none; cursor: pointer; }
.burger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: var(--ease); }

/* ============================================================
   HERO (full-bleed)
   ============================================================ */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; background: var(--bg); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(90deg, rgba(15,16,17,0.97) 0%, rgba(15,16,17,0.82) 42%, rgba(15,16,17,0.45) 100%),
        linear-gradient(0deg, rgba(15,16,17,0.95) 0%, rgba(15,16,17,0) 55%);
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; padding: 132px 0 118px; }
.hero-inner h1 { margin-bottom: 24px; }
.hero-inner .lead { font-size: 1.2rem; color: #c3c7cc; max-width: 46ch; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-panels { display: flex; gap: 16px; margin-top: 46px; flex-wrap: wrap; }
.hero-panel {
    background: rgba(255,255,255,0.05); border: 1px solid var(--border-2); border-left: 3px solid var(--accent);
    border-radius: 8px; padding: 12px 18px; display: flex; flex-direction: column; gap: 3px;
    backdrop-filter: blur(6px);
}
.panel-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.panel-value { font-size: 0.95rem; font-weight: 700; color: #fff; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 34px 32px; text-align: center; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--border); }
.trust-item:last-child { border-right: none; }
.trust-key { font-size: 1.35rem; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.trust-sub { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 104px 0; }
.section-tight { padding: 56px 0; }
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 660px; margin: 0 auto 8px; text-align: center; }
.section-head-left { margin: 0; text-align: left; }
.section-head h2 { margin-bottom: 16px; }
.section-intro { color: var(--muted); font-size: 1.1rem; }

/* ---------- Product editorial ---------- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.product-reverse .product-media { order: -1; }
.product-copy h3, .product-copy h2 { margin-bottom: 18px; }
.product-copy > p { color: var(--muted); margin-bottom: 22px; max-width: 46ch; }

.media { overflow: hidden; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.media:hover img { transform: scale(1.03); }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--accent); font-size: 0.95rem; }
.link-arrow::after { content: '→'; transition: transform var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

.catalog { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--border); }
.catalog-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 16px; }
.catalog-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 28px; }
.catalog-list li { font-size: 0.94rem; color: var(--text); padding: 9px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.catalog-list li::before { content: ''; width: 5px; height: 5px; background: var(--accent); margin-right: 12px; flex-shrink: 0; }

/* ============================================================
   VEHICLES & SPECIAL EQUIPMENT
   ============================================================ */
.vehicle-banner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.vehicle-banner-copy .eyebrow { margin-bottom: 16px; }
.vehicle-banner-copy h2 { margin-bottom: 16px; }
.vehicle-banner-copy .section-intro { max-width: 42ch; }
.vehicle-banner-cta { margin-top: 30px; }
.vehicle-banner-media {
    position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
    aspect-ratio: 16 / 12; box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.vehicle-banner-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.vehicle-banner-media:hover img { transform: scale(1.04); }
.vehicle-banner-media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,16,17,0.55), transparent 45%);
}
.vehicle-badge {
    position: absolute; left: 18px; bottom: 18px; z-index: 1;
    background: var(--accent); color: var(--accent-ink);
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
    padding: 8px 15px; border-radius: 100px;
}

.vehicle-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.vstep {
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    padding: 30px 28px; border-top: 3px solid var(--accent);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.vstep:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,218,154,0.10); }
.vstep-num { font-family: 'Red Hat Display', sans-serif; font-size: 0.95rem; font-weight: 800; color: var(--accent); letter-spacing: 0.04em; }
.vstep h3 { font-size: 1.22rem; margin: 12px 0 10px; }
.vstep p { color: var(--muted); font-size: 0.95rem; }
.vehicle-result { text-align: center; margin-top: 40px; font-size: 1.15rem; color: #fff; }
.vehicle-result strong { color: var(--accent); font-weight: 700; }
.vehicle-cta { text-align: center; margin-top: 32px; }

/* ============================================================
   PROCESS
   ============================================================ */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; }
.process-step { padding: 0 28px; position: relative; }
.process-step:not(:last-child)::after { content: '→'; position: absolute; right: -8px; top: 4px; color: var(--accent); opacity: 0.55; font-size: 1.2rem; }
.process-num { font-size: 0.85rem; font-weight: 700; color: var(--accent); letter-spacing: 0.05em; }
.process-step h3 { font-size: 1.3rem; margin: 12px 0 10px; }
.process-step p { color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   ORDERING
   ============================================================ */
.ordering-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.ordering-highlights { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.ordering-highlights li { padding-left: 22px; position: relative; color: var(--muted); }
.ordering-highlights li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.ordering-highlights strong { color: #fff; font-weight: 700; }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 28px 24px; transition: border-color var(--ease), transform var(--ease); }
.step:hover { border-color: var(--accent); transform: translateY(-3px); }
.step-num { font-family: 'Red Hat Display', sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--border-2); }
.step p { font-weight: 600; color: #fff; margin-top: 8px; }

/* ============================================================
   BULK
   ============================================================ */
.bulk-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.bulk-copy h2 { margin-bottom: 18px; }
.bulk-copy p { color: var(--muted); margin-bottom: 28px; max-width: 44ch; }
.bulk-points { display: grid; gap: 10px; }
.bulk-points li { font-weight: 600; color: #fff; padding: 16px 22px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; position: relative; padding-left: 46px; }
.bulk-points li::before { content: ''; position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; background: var(--accent); border-radius: 2px; }

/* ============================================================
   WARRANTY
   ============================================================ */
.warranty-figure { margin: 6px 0 26px; display: flex; flex-direction: column; }
.warranty-big { font-family: 'Red Hat Display', sans-serif; font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; color: #fff; line-height: 1; letter-spacing: -0.03em; }
.warranty-cap { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-top: 10px; }
.support-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.support-list li { padding: 12px 0; border-top: 1px solid var(--border); font-size: 0.95rem; color: var(--text); }

/* ============================================================
   MAIN CTA
   ============================================================ */
.cta { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.cta::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,218,154,0.10), transparent 60%);
}
.cta-inner { position: relative; padding: 96px 0; text-align: center; max-width: 640px; margin: 0 auto; }
.cta-inner h2 { color: #fff; margin-bottom: 18px; }
.cta-inner p { color: var(--muted); font-size: 1.1rem; margin-bottom: 34px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-simple { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-head h2 { margin-bottom: 14px; }
.contact-head .btn { margin-top: 28px; }
.contact-details { display: grid; gap: 26px; }
.contact-details dt { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 6px; }
.contact-details dd { font-size: 1.02rem; color: #fff; }
.contact-details dd a:hover { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #0A0B0C; color: var(--muted); padding: 72px 0 0; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.footer-blurb { margin-top: 18px; font-size: 0.92rem; color: var(--muted); max-width: 30ch; }
.footer-col h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; color: var(--muted); font-size: 0.94rem; padding: 5px 0; transition: color var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 24px 0; }
.footer-bottom p { font-size: 0.85rem; color: #6b7176; }

/* ============================================================
   LOADER
   ============================================================ */
.loader {
    position: fixed; inset: 0; z-index: 3000;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
body.loaded .loader { opacity: 0; visibility: hidden; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.loader-word { font-family: 'Red Hat Display', sans-serif; font-weight: 800; font-size: 1.7rem; letter-spacing: 0.04em; color: #fff; }
.loader-word .brand-dot { color: var(--accent); }
.loader-bar { position: relative; width: 150px; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.12); overflow: hidden; }
.loader-bar > span {
    position: absolute; left: 0; top: 0; height: 100%; width: 40%; border-radius: 3px;
    background: var(--accent); animation: loaderslide 1.1s ease-in-out infinite;
}
@keyframes loaderslide {
    0%   { left: -40%; }
    100% { left: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .loader-bar > span { animation: none; width: 100%; left: 0; }
}

/* ============================================================
   HUMAN / EDITORIAL TOUCHES
   ============================================================ */
/* Film grain — softens the flat dark template feel */
body::before {
    content: ''; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
    opacity: 0.055; mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Hand-drawn underline under a hero word */
.mark { position: relative; white-space: nowrap; }
.scribble {
    position: absolute; left: -2%; bottom: -0.22em; width: 104%; height: 0.34em;
    color: var(--accent); overflow: visible;
    opacity: 0; transform: translateY(6px);
    transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}
.reveal.in .scribble { opacity: 1; transform: translateY(0); }

/* Editorial spec strip (replaces floating panels) */
.hero-specs {
    display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
    margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border-2); max-width: 600px;
}
.spec { display: flex; flex-direction: column; gap: 4px; }
.spec-k { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.13em; color: var(--muted); font-weight: 700; }
.spec-v { font-size: 0.98rem; color: #fff; font-weight: 700; }
.spec-div { width: 1px; height: 30px; background: var(--border-2); }

/* Oversized ghost index numbers */
.product-copy { position: relative; z-index: 0; }
.ghost-index {
    position: absolute; top: -44px; right: -4px; z-index: -1;
    font-family: 'Red Hat Display', sans-serif; font-weight: 800; font-size: 9rem; line-height: 1;
    letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.06);
    pointer-events: none; user-select: none;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .wrap { padding: 0 28px; }
    .process { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
    .process-step:not(:last-child)::after { display: none; }
    .vehicle-steps { grid-template-columns: 1fr 1fr; }
    .vehicle-banner { grid-template-columns: 1fr; gap: 36px; }
    .vehicle-banner-media { order: -1; aspect-ratio: 16 / 10; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 860px) {
    .main-nav {
        position: fixed; inset: 68px 0 auto 0; background: rgba(15,16,17,0.98);
        flex-direction: column; gap: 0; padding: 12px 28px 24px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%); transition: transform var(--ease); z-index: 999;
    }
    body.nav-open .main-nav { transform: translateY(0); }
    .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--border); width: 100%; }
    .burger { display: flex; }
    .header-phone { display: none; }
    .header-actions .btn { display: none; }

    .hero { min-height: 82vh; }
    .hero-inner { padding: 80px 0 72px; max-width: 100%; }
    .hero-inner h1 { font-size: clamp(2.1rem, 8.5vw, 3.2rem); }
    .hero-inner .lead { font-size: 1.08rem; }
    /* darken from the bottom on narrow screens for even, legible text */
    .hero::after {
        background:
            linear-gradient(0deg, rgba(15,16,17,0.97) 8%, rgba(15,16,17,0.72) 48%, rgba(15,16,17,0.5) 100%);
    }

    .trust-grid { grid-template-columns: 1fr 1fr; }
    .trust-item:nth-child(2) { border-right: none; }
    .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--border); }

    .section { padding: 64px 0; }
    .product-layout { grid-template-columns: 1fr; gap: 40px; }
    .product-reverse .product-media { order: 0; }
    .product-media { order: -1; }
    .ordering-layout, .bulk-layout, .contact-simple { grid-template-columns: 1fr; gap: 40px; }
    .vehicle-steps { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .wrap { padding: 0 20px; }
    .brand-tag { display: none; }
    .catalog-list, .support-list, .steps { grid-template-columns: 1fr 1fr; }
    .trust-item { padding: 24px 16px; }
    .trust-key { font-size: 1.1rem; }
    .ghost-index { display: none; }
    .hero-specs { gap: 16px; }
    .hero-specs .spec-div { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .media img { transition: none; }
    * { animation-duration: 0.001ms !important; }
}
