/*
 * homepage.css — VDrive public homepage only (templates/public/index.html).
 * Every selector is prefixed with `html body.public-site.homepage` so it
 * beats the homepage inline <style> block and public-overrides.css, and
 * cannot affect any other route. Navbar, logo and droplets are untouched.
 */
html body.public-site.homepage {
    /* Keep the photographic hero below the unchanged fixed header/strip. */
    padding-top: calc(64px + var(--vd-contact-strip-height, 34px)) !important;
    --vdh-ink: #0e1d36;
    --vdh-ink-soft: #4a5b74;
    --vdh-blue: #1d5fe0;
    --vdh-blue-deep: #1447b5;
    --vdh-sky: #e8f0fd;
    --vdh-paper: #f3f6fb;
    --vdh-rule: #dde5f0;
    --vdh-card: #fdfefe;
    --vdh-radius: 14px;
    --vdh-display: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
}

/* ── Shared type ─────────────────────────────────────────────────────── */
html body.public-site.homepage section .vdh-eyebrow {
    margin: 0 0 .6rem;
    font-family: var(--vdh-display);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--vdh-blue) !important;
}
html body.public-site.homepage section .vdh-eyebrow--light { color: #b9d0fb !important; }
html body.public-site.homepage section .vdh-h2 {
    margin: 0 0 1rem;
    font-family: var(--vdh-display) !important;
    font-weight: 800;
    font-size: clamp(1.65rem, 2.6vw, 2.25rem);
    line-height: 1.12;
    letter-spacing: -.025em;
    color: var(--vdh-ink) !important;
    -webkit-text-fill-color: currentColor;
    background: none;
    opacity: 1;
    transform: none;
}
html body.public-site.homepage section .vdh-h3 {
    font-family: var(--vdh-display) !important;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--vdh-ink) !important;
}
html body.public-site.homepage section .vdh-h4 {
    margin: 0 0 .3rem;
    font-family: var(--vdh-display) !important;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--vdh-ink) !important;
}
html body.public-site.homepage section .vdh-body {
    color: var(--vdh-ink-soft) !important;
    font-size: .98rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
html body.public-site.homepage section .vdh-small,
html body.public-site.homepage section .vdh-list li {
    color: var(--vdh-ink-soft) !important;
    font-size: .88rem;
    line-height: 1.55;
    margin-bottom: .35rem;
}
html body.public-site.homepage section .vdh-note {
    color: #5c6b82 !important;
    font-size: .8rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    padding-left: .7rem;
    border-left: 2px solid var(--vdh-rule);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
html body.public-site.homepage .vdh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 50px;
    padding: .7rem 1.5rem;
    border-radius: 8px;
    font-family: var(--vdh-display);
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
html body.public-site.homepage .vdh-btn i { font-size: .8em; transition: transform .2s ease; }
html body.public-site.homepage .vdh-btn:hover i { transform: translateX(3px); }
html body.public-site.homepage .vdh-btn:hover { transform: translateY(-1px); }
html body.public-site.homepage .vdh-btn--sm { min-height: 44px; padding: .55rem 1.2rem; font-size: .9rem; }
html body.public-site.homepage .vdh-btn--primary,
html body.public-site.homepage section .vdh-btn--primary * {
    color: #fff !important;
}
html body.public-site.homepage .vdh-btn--primary { background: var(--vdh-blue); }
html body.public-site.homepage .vdh-btn--primary:hover { background: var(--vdh-blue-deep); }
html body.public-site.homepage .vdh-btn--ghost {
    color: #fff !important;
    border-color: rgba(255, 255, 255, .7);
    background: rgba(10, 22, 42, .28);
}
html body.public-site.homepage .vdh-btn--ghost:hover { background: rgba(255, 255, 255, .14); }
html body.public-site.homepage .vdh-btn--outline {
    color: var(--vdh-blue) !important;
    border-color: var(--vdh-blue);
    background: transparent;
}
html body.public-site.homepage .vdh-btn:focus-visible,
html body.public-site.homepage .vdh-link:focus-visible {
    outline: 3px solid #8fb4f8;
    outline-offset: 2px;
}
html body.public-site.homepage section .vdh-link {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: none;
    color: var(--vdh-blue) !important;
    font-family: var(--vdh-display) !important;
    font-weight: 700;
    font-size: .84rem;
    text-decoration: none;
}
html body.public-site.homepage section .vdh-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Hero ────────────────────────────────────────────────────────────── */
html body.public-site.homepage section.hero-section.vdh-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(500px, 74vh, 720px);
    padding: 4rem 0 !important;
    background: #1b2a3c !important;
    overflow: hidden;
}
html body.public-site.homepage section.vdh-hero::before,
html body.public-site.homepage section.vdh-hero::after { display: none !important; }
html body.public-site.homepage .vdh-hero__media,
html body.public-site.homepage .vdh-cta__media {
    position: absolute;
    inset: 0;
    margin: 0;
}
html body.public-site.homepage .vdh-hero__media img,
html body.public-site.homepage .vdh-cta__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
    display: block;
}
html body.public-site.homepage .vdh-hero__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 17, 34, .78) 0%, rgba(7, 17, 34, .52) 38%, rgba(7, 17, 34, 0) 66%),
        linear-gradient(0deg, rgba(7, 17, 34, .35) 0%, rgba(7, 17, 34, 0) 30%);
}
html body.public-site.homepage .vdh-hero__inner { position: relative; z-index: 2; }
html body.public-site.homepage .vdh-hero__copy {
    max-width: 560px;
    animation: vdh-rise .7s cubic-bezier(.2, .7, .2, 1) both;
}
html body.public-site.homepage section.vdh-hero h1.vdh-hero__title {
    margin: 0 0 1rem;
    font-family: var(--vdh-display) !important;
    font-weight: 800;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.02;
    letter-spacing: -.035em;
    text-transform: uppercase;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    text-shadow: 0 2px 24px rgba(5, 12, 25, .35);
}
html body.public-site.homepage section.vdh-hero p.vdh-hero__sub {
    margin: 0 0 1.75rem;
    font-size: clamp(1.02rem, 1.5vw, 1.25rem);
    line-height: 1.5;
    color: #eef3fb !important;
    text-shadow: 0 1px 12px rgba(5, 12, 25, .4);
}
html body.public-site.homepage .vdh-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.75rem;
}
html body.public-site.homepage .vdh-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
html body.public-site.homepage section.vdh-hero .vdh-hero__chips li {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .9rem;
    border-radius: 8px;
    background: rgba(12, 24, 44, .55);
    border: 1px solid rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: .82rem;
    font-weight: 600;
    color: #fff !important;
}
html body.public-site.homepage section.vdh-hero .vdh-hero__chips i { color: #9cc0ff !important; }

@keyframes vdh-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

/* ── Fleet ───────────────────────────────────────────────────────────── */
html body.public-site.homepage section.vdh-fleet {
    background: var(--vdh-paper) !important;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    border-bottom: 1px solid var(--vdh-rule);
}
html body.public-site.homepage .vdh-fleet__grid {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.75rem);
    align-items: start;
}
html body.public-site.homepage .vdh-fleet__intro { padding-top: .5rem; }
html body.public-site.homepage .vdh-fleet__cards { min-width: 0; }
html body.public-site.homepage .vdh-fleet .vehicle-scroll-container { padding-top: .25rem; }

html body.public-site.homepage section .vdh-empty {
    background: var(--vdh-card);
    border: 1px solid var(--vdh-rule);
    border-radius: var(--vdh-radius);
    padding: clamp(1.5rem, 4vw, 2.5rem);
}
html body.public-site.homepage section .vdh-empty__tag {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .9rem;
    padding: .3rem .7rem;
    border-radius: 6px;
    background: var(--vdh-sky);
    color: var(--vdh-blue-deep) !important;
    font-size: .78rem;
    font-weight: 700;
}
html body.public-site.homepage .vdh-empty__actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ── Benefits row ────────────────────────────────────────────────────── */
html body.public-site.homepage section.vdh-benefits {
    background: #fbfcfe !important;
    padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
    border-bottom: 1px solid var(--vdh-rule);
}
html body.public-site.homepage .vdh-benefits__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 2.25rem;
}
html body.public-site.homepage .vdh-benefit {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
html body.public-site.homepage section .vdh-benefit__icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--vdh-sky);
    color: var(--vdh-blue) !important;
    font-size: 1.2rem;
}
html body.public-site.homepage .vdh-benefit .collapse,
html body.public-site.homepage .vdh-benefit .collapsing { margin-top: .6rem; }
html body.public-site.homepage .vdh-list { padding-left: 1.05rem; margin-bottom: .4rem; }

/* ── Steps ───────────────────────────────────────────────────────────── */
html body.public-site.homepage section.vdh-steps {
    background: var(--vdh-paper) !important;
    padding: clamp(2.5rem, 5vw, 3.75rem) 0;
}
html body.public-site.homepage .vdh-steps__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}
html body.public-site.homepage .vdh-step {
    position: relative;
    padding: 1.4rem 1.4rem 1.2rem;
    background: var(--vdh-card);
    border: 1px solid var(--vdh-rule);
    border-radius: var(--vdh-radius);
}
html body.public-site.homepage .vdh-step + .vdh-step::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -.85rem;
    width: .7rem;
    height: .7rem;
    border-top: 2px solid #a9bbd6;
    border-right: 2px solid #a9bbd6;
    transform: translateY(-50%) rotate(45deg);
}
html body.public-site.homepage section .vdh-step__num {
    position: absolute;
    top: 1.1rem;
    right: 1.2rem;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--vdh-blue);
    color: #fff !important;
    font-family: var(--vdh-display);
    font-weight: 800;
    font-size: .85rem;
}
html body.public-site.homepage section .vdh-step__icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: .9rem;
    border-radius: 12px;
    background: var(--vdh-sky);
    color: var(--vdh-blue-deep) !important;
    font-size: 1.35rem;
}

/* ── Bottom banner ───────────────────────────────────────────────────── */
html body.public-site.homepage section.cta-section.vdh-cta {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    padding: clamp(3rem, 6vw, 4.5rem) 0 !important;
    background: #141b2c !important;
    overflow: hidden;
}
html body.public-site.homepage section.vdh-cta::before { display: none !important; }
html body.public-site.homepage .vdh-cta__media img {
    object-fit: contain;
    object-position: right center;
}
html body.public-site.homepage .vdh-cta__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9, 16, 32, .85) 0%, rgba(9, 16, 32, .55) 45%, rgba(9, 16, 32, .15) 80%);
}
html body.public-site.homepage .vdh-cta__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
html body.public-site.homepage .vdh-cta__copy { max-width: 560px; }
html body.public-site.homepage section.vdh-cta h2.vdh-cta__title {
    margin: 0 0 .8rem;
    font-family: var(--vdh-display) !important;
    font-weight: 800;
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -.025em;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}
html body.public-site.homepage section.vdh-cta p.vdh-cta__sub {
    margin: 0 0 1.5rem;
    color: #dfe7f4 !important;
    line-height: 1.6;
}
html body.public-site.homepage section.vdh-cta .vdh-hero__actions { margin-bottom: 0; }
html body.public-site.homepage .vdh-cta__panel {
    flex: 0 0 auto;
    margin: 0;
    padding: 1.1rem 1.3rem;
    list-style: none;
    border-radius: var(--vdh-radius);
    background: rgba(12, 22, 42, .55);
    border: 1px solid rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
html body.public-site.homepage section.vdh-cta .vdh-cta__panel li {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .5rem 0;
    color: #fff !important;
    font-weight: 600;
    font-size: .92rem;
}
html body.public-site.homepage section.vdh-cta .vdh-cta__panel li + li { border-top: 1px solid rgba(255, 255, 255, .1); }
html body.public-site.homepage section.vdh-cta .vdh-cta__panel i { color: #9cc0ff !important; width: 1.1rem; text-align: center; }

/* ── Tablet ──────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    html body.public-site.homepage .vdh-fleet__grid { grid-template-columns: minmax(0, 1fr); }
    html body.public-site.homepage .vdh-fleet__intro { max-width: 620px; }
    html body.public-site.homepage .vdh-benefits__row { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
    html body.public-site.homepage .vdh-cta__panel { display: none; }
}

/* ── Phone: image negative space sits at the top ─────────────────────── */
@media (max-width: 767.98px) {
    html body.public-site.homepage {
        padding-top: calc(68px + var(--vd-contact-strip-height, 34px)) !important;
    }
    html body.public-site.homepage section.hero-section.vdh-hero {
        align-items: flex-start;
        min-height: min(640px, 92svh);
        padding: 2.25rem 0 14rem !important;
    }
    html body.public-site.homepage .vdh-hero__media img,
    html body.public-site.homepage .vdh-cta__media img {
        object-fit: contain;
        object-position: center bottom;
    }
    html body.public-site.homepage .vdh-hero__scrim {
        background: linear-gradient(180deg, rgba(7, 17, 34, .78) 0%, rgba(7, 17, 34, .5) 45%, rgba(7, 17, 34, 0) 72%);
    }
    html body.public-site.homepage .vdh-cta__scrim {
        background: linear-gradient(180deg, rgba(9, 16, 32, .88) 0%, rgba(9, 16, 32, .55) 60%, rgba(9, 16, 32, .25) 100%);
    }
    html body.public-site.homepage section.cta-section.vdh-cta { align-items: flex-start; min-height: 520px; }
    html body.public-site.homepage .vdh-hero__chips li { font-size: .78rem; padding: .45rem .7rem; }
    html body.public-site.homepage .vdh-steps__list { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
    html body.public-site.homepage .vdh-step { display: grid; grid-template-columns: 48px 1fr; column-gap: 1rem; padding: 1rem 3.2rem 1rem 1rem; }
    html body.public-site.homepage section .vdh-step__icon { width: 48px; height: 48px; margin: 0; grid-row: span 2; font-size: 1.15rem; }
    html body.public-site.homepage .vdh-step + .vdh-step::before { display: none; }
}
@media (max-width: 420px) {
    html body.public-site.homepage .vdh-hero__actions .vdh-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html body.public-site.homepage .vdh-hero__copy { animation: none; }
    html body.public-site.homepage .vdh-btn,
    html body.public-site.homepage .vdh-btn i { transition: none; }
}
