/* =====================================================================
   SAMM CAR LEASE — LUXURY CINEMATIC HERO (v2 — Fixed Layout)
   Clean panel placement, infinite typewriter, hero-bottom marquee
   ===================================================================== */

/* ============================================================
   HEADER A
   ============================================================ */
.header-A {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all .4s var(--ease-out);
}
.header-A__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    background: transparent;
    gap: 20px;
}
.header-A.is-scrolled .header-A__inner {
    background: rgba(10, 10, 10, .92);
    backdrop-filter: blur(20px);
    padding: 12px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-A__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.header-A__brand-logo { height: 40px; width: 40px; object-fit: contain; border-radius: 10px; transition: transform .4s var(--ease-spring); }
.header-A__brand:hover .header-A__brand-logo { transform: rotate(-4deg) scale(1.05); }
.header-A__brand-text { font-family: 'Sora', system-ui, sans-serif; font-weight: 700; font-size: 1.2rem; color: #fff; letter-spacing: .01em; line-height: 1; }
.header-A__brand-text .a-red { color: #C8102E; }
.header-A__brand-sub { display: block; font-family: 'Montserrat', sans-serif; font-size: .48rem; letter-spacing: .34em; color: #C8102E; margin-top: 3px; font-weight: 600; }
.header-A__nav { display: flex; align-items: center; gap: 2px; }
.header-A__nav a {
    color: rgba(255, 255, 255, .6);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .76rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 7px 12px;
    border-radius: 999px;
    transition: all .3s var(--ease-out);
    text-decoration: none;
    position: relative;
}
.header-A__nav a::after { content: ''; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); width: 0; height: 1px; background: #C8102E; transition: width .3s var(--ease-out); }
.header-A__nav a:hover { color: #fff; }
.header-A__nav a:hover::after, .header-A__nav a.is-active::after { width: 50%; }
.header-A__nav a.is-active { color: #C8102E; }
.header-A__cta {
    padding: 9px 20px;
    background: linear-gradient(135deg, #C8102E, #8B0A1E);
    color: #fff;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .8rem;
    transition: all .3s var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(200, 16, 46, .3);
}
.header-A__cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(200, 16, 46, .5); }

/* ============================================================
   HERO A — Fixed layout, proper spacing
   ============================================================ */
.hero-A {
    position: relative;
    min-height: 100vh;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Swirl background */
.hero-A__swirl { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-A__swirl::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 25%;
    width: 700px;
    height: 700px;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg, transparent 0deg, rgba(200,16,46,.06) 60deg, transparent 120deg, rgba(26,29,41,.12) 180deg, transparent 240deg, rgba(200,16,46,.04) 300deg, transparent 360deg);
    border-radius: 50%;
    filter: blur(80px);
    animation: swirlRotate 30s linear infinite;
}
.hero-A__swirl::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 20%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(200,16,46,.08), transparent 60%);
    filter: blur(60px);
    animation: swirlPulse 8s ease-in-out infinite;
}
@keyframes swirlRotate { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes swirlPulse { 0%,100% { opacity: .5; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } }

/* Grid overlay */
.hero-A__grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 1;
    mask-image: radial-gradient(ellipse at 30% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, black 20%, transparent 70%);
}

/* Content area — flex to fill, with marquee at bottom */
.hero-A__body {
    position: relative;
    z-index: 5;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 100px 40px 20px;
}

/* --- LEFT: Content --- */
.hero-A__content { color: #fff; }
.hero-A__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .68rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #C8102E;
    margin-bottom: 20px;
    opacity: 0;
    animation: heroFadeUp .8s var(--ease-out) .3s forwards;
    position: relative;
    overflow: hidden;
}
.hero-A__eyebrow::before { content: ''; width: 28px; height: 1px; background: #C8102E; }
.hero-A__eyebrow::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200,16,46,.15), transparent);
    animation: eyebrowShimmer 4s ease-in-out 2s infinite;
}
@keyframes eyebrowShimmer { 0% { left: -100%; } 50% { left: 100%; } 100% { left: 100%; } }

.hero-A__title {
    font-family: 'Sora', system-ui, sans-serif;
    font-weight: 300;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -.02em;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    opacity: 0;
    animation: heroFadeUp .9s var(--ease-out) .5s forwards;
}
.hero-A__title strong {
    font-weight: 700;
    background: linear-gradient(90deg, #C8102E 0%, #F97316 50%, #FBBF24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-A__title-italic {
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(90deg, #C8102E 0%, #F97316 40%, #FBBF24 60%, #F97316 80%, #C8102E 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroGradientShift 5s linear infinite;
}
@keyframes heroGradientShift { to { background-position: 200% center; } }

@keyframes cursorBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero-A__subtitle {
    color: rgba(255, 255, 255, .5);
    font-size: .95rem;
    line-height: 1.6;
    max-width: 420px;
    margin-bottom: 28px;
    opacity: 0;
    animation: heroFadeUp .8s var(--ease-out) .7s forwards;
}

/* CTA row */
.hero-A__cta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    animation: heroFadeUp .8s var(--ease-out) .9s forwards;
}
.hero-A__cta-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C8102E, #8B0A1E);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .65rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all .35s var(--ease-out);
    box-shadow: 0 8px 30px rgba(200, 16, 46, .35);
    border: 2px solid rgba(255, 255, 255, .08);
    line-height: 1.2;
    position: relative;
    overflow: hidden;
}
.hero-A__cta-circle::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
    transition: left .6s var(--ease-out);
}
.hero-A__cta-circle:hover::before { left: 100%; }
.hero-A__cta-circle:hover { transform: scale(1.08) rotate(5deg); box-shadow: 0 12px 40px rgba(200, 16, 46, .5); }
.hero-A__cta-circle::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(200, 16, 46, .3);
    animation: ctaPulse 2.5s ease-out infinite;
}
@keyframes ctaPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.3); opacity: 0; } }

.hero-A__cta-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, .65);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: color .3s;
}
.hero-A__cta-link:hover { color: #fff; }
.hero-A__cta-link-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    transition: all .35s var(--ease-out);
}
.hero-A__cta-link:hover .hero-A__cta-link-circle { background: #C8102E; border-color: #C8102E; transform: rotate(45deg); }

/* Stats row — properly spaced */
.hero-A__stats {
    display: flex;
    gap: 40px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    opacity: 0;
    animation: heroFadeUp .8s var(--ease-out) 1.1s forwards;
}
.hero-A__stat {
    transition: transform .3s var(--ease-out);
    opacity: 0;
    animation: statSlideIn .6s var(--ease-out) forwards;
}
.hero-A__stat:nth-child(1) { animation-delay: 1.2s; }
.hero-A__stat:nth-child(2) { animation-delay: 1.35s; }
.hero-A__stat:nth-child(3) { animation-delay: 1.5s; }
.hero-A__stat:hover { transform: translateY(-4px); }
.hero-A__stat:hover .hero-A__stat-value { text-shadow: 0 0 20px rgba(200, 16, 46, .3); }
@keyframes statSlideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }

.hero-A__stat-value {
    font-family: 'Sora', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    line-height: 1;
    transition: text-shadow .3s;
}
.hero-A__stat-value .red {
    background: linear-gradient(90deg, #C8102E, #F97316);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-A__stat-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .62rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .35);
    margin-top: 5px;
}

/* --- RIGHT: Clean panel layout (no overlap) --- */
.hero-A__panels {
    position: relative;
    height: 460px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
    padding: 10px 30px 10px 10px;
}
.hero-A__panel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
    transform: skewX(-6deg);
    opacity: 0;
    animation: panelSlideIn .7s var(--ease-out) forwards;
    transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.hero-A__panel:hover {
    transform: skewX(-6deg) translateY(-8px) scale(1.04);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .6), 0 0 0 2px rgba(200, 16, 46, .3);
    z-index: 10;
}
.hero-A__panel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: skewX(6deg) scale(1.25);
    filter: grayscale(.4) brightness(.7) contrast(1.1);
    transition: transform 1.5s var(--ease-out), filter .6s var(--ease-out);
}
.hero-A__panel:hover .hero-A__panel-img {
    transform: skewX(6deg) scale(1.4);
    filter: grayscale(0) brightness(.9) contrast(1.15);
}
.hero-A__panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,.1) 0%, transparent 40%, rgba(10,10,10,.5) 100%);
    pointer-events: none;
}
/* Panel positions — clean 2x2 grid with stagger */
.hero-A__panel--1 { animation-delay: .6s; }
.hero-A__panel--2 { animation-delay: .75s; margin-top: 24px; }
.hero-A__panel--3 { animation-delay: .9s; }
.hero-A__panel--4 { animation-delay: 1.05s; }

@keyframes panelSlideIn {
    from { opacity: 0; transform: skewX(-6deg) translateX(60px) scale(.95); }
    to   { opacity: 1; transform: skewX(-6deg) translateX(0) scale(1); }
}
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Vertical phone number */
.hero-A__phone-vertical {
    position: absolute;
    right: 16px;
    bottom: 54px;
    writing-mode: vertical-rl;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .35);
    opacity: 0;
    animation: heroFadeUp .8s var(--ease-out) 1.3s forwards;
}
.hero-A__phone-vertical a { color: rgba(255, 255, 255, .6); text-decoration: none; transition: color .3s; }
.hero-A__phone-vertical a:hover { color: #C8102E; }
.hero-A__phone-vertical::before { content: ''; width: 1px; height: 30px; flex: none; background: rgba(255, 255, 255, .15); }

/* --- HERO BOTTOM MARQUEE --- */
.hero-A__marquee {
    position: relative;
    z-index: 5;
    height: 50px;
    background: rgba(200, 16, 46, .08);
    border-top: 1px solid rgba(200, 16, 46, .15);
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hero-A__marquee-track {
    display: flex;
    width: max-content;
    animation: heroMarquee 36s linear infinite;
    white-space: nowrap;
}
.hero-A__marquee:hover .hero-A__marquee-track { animation-play-state: paused; }
@keyframes heroMarquee { to { transform: translateX(-50%); } }
.hero-A__marquee-set {
    display: flex;
    align-items: center;
    gap: 36px;
    padding-right: 36px;
}
.hero-A__marquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .82rem;
    color: rgba(255, 255, 255, .5);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.hero-A__marquee-item i { color: #C8102E; font-size: .85rem; }
.hero-A__marquee-item .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #C8102E;
    margin: 0 20px;
    flex-shrink: 0;
}

/* Pagination */
.hero-A__pagination {
    position: absolute;
    bottom: 62px;
    left: 40px;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: heroFadeUp .8s var(--ease-out) 1.5s forwards;
}
.hero-A__pagination-num { font-family: 'Sora', sans-serif; font-weight: 600; font-size: .8rem; color: rgba(255, 255, 255, .4); }
.hero-A__pagination-line { width: 100px; height: 1px; background: rgba(255, 255, 255, .1); position: relative; }
.hero-A__pagination-line::after { content: ''; position: absolute; left: 0; top: 0; width: 50%; height: 100%; background: #C8102E; }

/* ============================================================
   MOBILE NAV
   ============================================================ */
.nav-toggle-A { display: none; flex-direction: column; gap: 5px; padding: 8px; background: transparent; border: none; cursor: pointer; z-index: 1001; }
.nav-toggle-A span { width: 22px; height: 1.5px; background: #fff; border-radius: 2px; transition: all .35s var(--ease-out); }
.nav-toggle-A.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-A.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle-A.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); z-index: 999; opacity: 0; transition: opacity .3s var(--ease-out); }
.mobile-nav-backdrop.is-visible { display: block; opacity: 1; }

@media (max-width: 1024px) {
    .header-A__inner { padding: 14px 20px; }
    .header-A__nav { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background: rgba(10,10,10,.98); backdrop-filter: blur(20px); flex-direction: column; align-items: stretch; padding: 80px 24px 24px; gap: 4px; transition: right .4s var(--ease-out); overflow-y: auto; z-index: 1000; }
    .header-A__nav.is-open { right: 0; }
    .header-A__nav a { width: 100%; padding: 14px 18px; color: rgba(255,255,255,.85); font-size: .9rem; }
    .header-A__cta { display: none; }
    .nav-toggle-A { display: flex; }
    .hero-A__body { grid-template-columns: 1fr; gap: 20px; padding: 90px 20px 10px; }
    .hero-A__panels { height: auto; aspect-ratio: 1.7; margin: 0 8px 24px; padding: 0; gap: 14px; }
    .hero-A__phone-vertical { display: none; }
    .hero-A__pagination { display: none; }
}
@media (max-width: 640px) {
    .header-A__inner { padding: 12px 16px; }
    .header-A__brand-text { font-size: 1rem; }
    .hero-A__cta-circle { width: 64px; height: 64px; font-size: .55rem; }
    .hero-A__stats { gap: 20px; flex-wrap: wrap; }
    .hero-A__stat-value { font-size: 1.2rem; }
    .hero-A__pagination { display: none; }
    .hero-A__marquee-item { font-size: .72rem; }
}

.page-hero { padding-top: 100px; }

/* Homepage presentation */
.home-page .header-A__nav > a:first-child {
    color: var(--red);
}

.home-page .header-A__nav > a:first-child::after {
    width: 50%;
}

.home-page section[id],
.quote-section {
    scroll-margin-top: 72px;
}

.hero-A__phrases {
    display: grid;
    width: fit-content;
}

.hero-A__phrases .hero-A__title-italic {
    grid-area: 1 / 1;
    width: max-content;
    max-width: 100%;
    opacity: 0;
    animation: heroPhrase 16s linear infinite;
}

.hero-A__phrases .hero-A__title-italic:nth-child(2) { animation-delay: 4s; }
.hero-A__phrases .hero-A__title-italic:nth-child(3) { animation-delay: 8s; }
.hero-A__phrases .hero-A__title-italic:nth-child(4) { animation-delay: 12s; }

.hero-A__phrases .hero-A__title-italic::after {
    content: "";
    display: inline-block;
    height: .88em;
    margin-left: .11em;
    border-right: .065em solid var(--red);
    vertical-align: -.13em;
    animation: cursorBlink .7s step-end infinite;
}

@keyframes heroPhrase {
    0% { opacity: 1; clip-path: inset(0 100% 0 0); }
    6%, 20% { opacity: 1; clip-path: inset(0); }
    24% { opacity: 1; clip-path: inset(0 100% 0 0); }
    25%, 100% { opacity: 0; }
}

.home-page .section-head {
    max-width: 680px;
}

.home-page :is(#services, #fleet-preview, #process, #why) .section__title {
    max-width: 570px;
    margin-inline: auto;
    text-wrap: balance;
}

.home-heading-break {
    display: none;
}

.home-page .quote-section {
    padding-top: 36px;
}

.quick-quote {
    margin-block: 32px;
}

.quick-quote details {
    max-width: 640px;
    margin-inline: auto;
    padding: 20px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

.quick-quote summary {
    color: var(--red);
    cursor: pointer;
    font-weight: 700;
}

.quick-quote form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.quick-quote select {
    width: 100%;
    padding: 10px;
    color: var(--black);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
}

.quick-quote .hero-A__quote-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (min-width: 1025px) {
    .hero-A__body {
        max-width: 1760px;
        padding: clamp(105px, 7.2vw, 135px) 44px 24px;
        gap: clamp(40px, 3.4vw, 65px);
    }

    .hero-A__eyebrow {
        font-size: clamp(.65rem, .85vw, .96rem);
    }

    .hero-A__title {
        font-size: clamp(2.25rem, 3.55vw, 4.15rem);
        margin-bottom: clamp(20px, 2vw, 36px);
    }

    .hero-A__subtitle {
        max-width: 500px;
        font-size: clamp(.95rem, 1.07vw, 1.23rem);
        margin-bottom: clamp(28px, 2vw, 38px);
    }

    .hero-A__cta-circle {
        width: clamp(78px, 5.3vw, 100px);
        height: clamp(78px, 5.3vw, 100px);
        font-size: clamp(.65rem, .75vw, .85rem);
    }

    .hero-A__cta-link {
        font-size: clamp(.76rem, .86vw, 1rem);
    }

    .hero-A__stats {
        margin-top: clamp(34px, 2.4vw, 46px);
        gap: clamp(28px, 2.6vw, 50px);
    }

    .hero-A__stat-value {
        font-size: clamp(1.45rem, 1.75vw, 2rem);
    }

    .hero-A__stat-label {
        font-size: clamp(.62rem, .7vw, .82rem);
    }

    .hero-A__panels {
        height: clamp(340px, 30vw, 570px);
    }

    .home-heading-break {
        display: inline;
    }
}

@media (max-width: 1024px) {
    .hero-A__body {
        max-width: 720px;
        padding-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-A__swirl::before,
    .hero-A__swirl::after,
    .hero-A__marquee-track,
    .hero-A__phrases .hero-A__title-italic,
    .hero-A__phrases .hero-A__title-italic::after {
        animation: none;
    }

    .hero-A__phrases .hero-A__title-italic:first-child {
        opacity: 1;
    }
}
