/* ═══════════════════════════════════════════════════════════
   AV Integration Landing Page — scoped styles (.avi- prefix)
   Enqueued conditionally via functions.php.
   No Tailwind dependency. All layout via class + inline style.
   ═══════════════════════════════════════════════════════════ */

/* ── 0. Resets ─────────────────────────────────────────────── */
.avi-wrap, .avi-wrap * { box-sizing: border-box; }
.avi-wrap p,
.avi-wrap h1, .avi-wrap h2, .avi-wrap h3,
.avi-wrap ul, .avi-wrap li { margin: 0; padding: 0; list-style: none; }

/* ── 1. Container ──────────────────────────────────────────── */
.avi-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* ── 2. Type tokens ────────────────────────────────────────── */
.avi-eyebrow {
    display: block;
    font-family: 'futura-pt-bold', sans-serif;
    font-weight: 800;
    font-size: .66rem;
    text-transform: uppercase;
    letter-spacing: .28em;
    color: #EB342A;
    margin-bottom: .85rem;
}
.avi-h1 {
    font-family: 'futura-pt-bold', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 4.5vw, 3.85rem);
    line-height: 1.06;
    color: #ffffff;
    /* heavy bloom shadow ensures white reads over solid black watermark */
    text-shadow: 0px 0px 40px rgba(0,0,0,0.9);
    margin-bottom: 1.2rem;
}
.avi-h2 {
    font-family: 'futura-pt-bold', sans-serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    line-height: 1.1;
    color: #1A1A1A;
    margin-bottom: .85rem;
}
.avi-h3 {
    font-family: 'futura-pt-bold', sans-serif;
    font-weight: 800;
    font-size: .96rem;
    line-height: 1.25;
    color: #1A1A1A;
    margin-bottom: .45rem;
}
.avi-body {
    font-family: 'futura-pt', sans-serif;
    font-size: .88rem;
    line-height: 1.8;
    color: #5a5a5a;
}
.avi-lead {
    font-family: 'futura-pt', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #3d3d3d;
}

/* ── 3. Button ─────────────────────────────────────────────── */
.avi-btn {
    display: inline-block;
    background: #EB342A;
    color: #fff !important;
    font-family: 'futura-pt-bold', sans-serif;
    font-weight: 800;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .22em;
    padding: 1.05rem 2.75rem;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background .18s ease;
}
.avi-btn:hover { background: #c9271f; }

/* ══════════════════════════════════════════════════════════════
   SECTION 1 — HERO
   Background: solid #D1D3D4 (no static images — no ghosting).
   Layer 1 (z-index  1): watermark pillar, solid black
   Layer 2 (z-index  5): Axel waving, absolute bottom-right
   Layer 3 (z-index 10): headline + sub + CTA
   ══════════════════════════════════════════════════════════════ */
.avi-hero {
    position: relative;
    min-height: 80vh;
    background-color: #D1D3D4;
    overflow: visible;       /* mascot feet peek over the fold */
    display: flex;
    align-items: flex-start; /* padding-top on content drives vertical position */
}

/* LAYER 1 — Four-line stacked pillar: solid black, full opacity */
.avi-hero__watermark {
    position: absolute;
    top: 0;
    left: 2%;
    font-family: 'futura-pt-bold', sans-serif;
    font-weight: 800;
    font-size: clamp(5rem, 18vw, 14rem);
    line-height: 0.78;       /* letters interlock — architectural block */
    letter-spacing: -0.05em;
    text-transform: uppercase;
    text-align: left;
    color: #000000;
    opacity: 1;              /* solid black — no transparency */
    pointer-events: none;
    user-select: none;
    z-index: 1;              /* behind mascot (z:5) and headline (z:10) */
}

/* LAYER 2 — Axel emerging, cropped image anchored to section floor */
.avi-hero__mascot {
    position: absolute;
    bottom: -140px;          /* hand tip clears below top of "WELCOME" */
    right: -2%;
    width: 68vw;
    max-width: 1000px;
    z-index: 5;              /* above watermark (z:1), below headline (z:10) */
    pointer-events: none;
}
.avi-hero__mascot img {
    width: 100%;
    height: auto;
    display: block;
}

/* LAYER 3 — Content */
.avi-hero .avi-container {
    position: relative;
    z-index: 10;
    width: 100%;
}
.avi-hero__content {
    position: relative;
    z-index: 10;
    padding-top: 15vh;       /* pushes content down from top within flex flow */
    padding-left: 5%;
    padding-bottom: 5rem;
    max-width: 550px;
}
.avi-hero__sub {
    /* Typography */
    font-family: 'futura-pt', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);

    /* Glass Card background */
    background: rgba(235, 52, 42, 0.1);
    backdrop-filter: blur(15px) brightness(0.9);
    -webkit-backdrop-filter: blur(15px) brightness(0.9); /* Safari */

    /* Border: 1px translucent edge on all sides */
    border: 1px solid rgba(255, 255, 255, 0.25);

    /* Layout */
    padding: 2.25rem;
    border-radius: 4px;
    max-width: 32rem;
    margin-bottom: 2.5rem;
}

/* ══════════════════════════════════════════════════════════════
   SECTION 2 — CONVERSION ROW (Z-pattern)
   LEFT ~42%:  Value cards + Stats + Testimonial
   RIGHT ~58%: Gravity Form
   ABSOLUTE:   Axel thumbs-up, rising from footer
   ══════════════════════════════════════════════════════════════ */
.avi-conversion {
    position: relative;
    overflow: visible;           /* lets Axel bleed below into footer */
    background: #ffffff;
    padding: 5.5rem 0 clamp(240px, 28vw, 460px); /* clearance for mascot */
}

/* Two-column grid */
.avi-conv-grid {
    display: flex;
    gap: 3.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* ── Left column ── */
.avi-conv-left {
    flex: 0 0 42%;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

/* Value cards — compact in column context */
.avi-value-card {
    background: #ffffff;
    border: 2px solid #EB342A;
    border-radius: 24px;
    padding: 1.6rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.avi-value-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #EB342A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: .1rem;
}
.avi-value-icon svg { width: 20px; height: 20px; }
.avi-value-text { flex: 1; }

/* Stats block */
.avi-stats-block {
    margin-top: .4rem;
}
.avi-stat-item {
    padding: 1.35rem 0;
    border-bottom: 1px solid #ebebeb;
}
.avi-stat-item:first-of-type { border-top: 1px solid #ebebeb; }
.avi-stat-num {
    display: block;
    font-family: 'futura-pt-bold', sans-serif;
    font-weight: 800;
    font-size: clamp(2.25rem, 3.5vw, 3.25rem);
    line-height: 1;
    color: #EB342A;
    margin-bottom: .3rem;
}
.avi-stat-label {
    display: block;
    font-family: 'futura-pt', sans-serif;
    font-size: .85rem;
    color: #3d3d3d;
}

/* Testimonial */
.avi-testimonial {
    margin-top: .8rem;
    padding: .3rem 0 .3rem 1.1rem;
    border-left: 3px solid #EB342A;
}
.avi-testimonial__quote {
    font-family: 'futura-pt', sans-serif;
    font-style: italic;
    font-size: .9rem;
    line-height: 1.7;
    color: #1A1A1A;
    margin-bottom: .4rem;
}
.avi-testimonial__attr {
    font-family: 'futura-pt-bold', sans-serif;
    font-weight: 800;
    font-size: .78rem;
    color: #898989;
    font-style: normal;
}

/* ── Right column ── */
.avi-conv-right {
    flex: 1 1 50%;
    min-width: 300px;
}
.avi-form-card {
    background: #f9f9f9;
    border: 2px solid #EB342A;
    border-radius: 16px;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 8px 48px rgba(0,0,0,.08);
}
.avi-form-card__title {
    font-family: 'futura-pt-bold', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    color: #1A1A1A;
    margin-bottom: .4rem;
}
.avi-form-card__sub {
    font-family: 'futura-pt', sans-serif;
    font-size: .85rem;
    line-height: 1.65;
    color: #898989;
    margin-bottom: 1.5rem;
}

/* ── Footer mascot ─────────────────────────────────────────── */
.avi-footer-mascot {
    position: absolute;
    bottom: -100px;
    right: -5%;
    width: 45vw;
    max-width: 750px;
    z-index: 20;
    pointer-events: none;
}
.avi-footer-mascot img {
    width: 100%;
    height: auto;
    display: block;
}

/* ══════════════════════════════════════════════════════════════
   SECTION 3 — WHAT'S INSIDE THE PACK
   Sits above the thumbs-up mascot overflow from .avi-conversion
   ══════════════════════════════════════════════════════════════ */
.avi-pack-section {
    position: relative;
    z-index: 30;
}

/* Transition intro */
.avi-pack-intro {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 5.5rem 2rem 3.5rem;
}
.avi-pack-intro h2 {
    font-family: 'futura-pt-bold', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #1A1A1A;
    line-height: 1.1;
    margin: 0 0 1.1rem;
}
.avi-pack-intro p {
    font-family: 'futura-pt', sans-serif;
    font-size: 1rem;
    line-height: 1.85;
    color: #4a4a4a;
    margin: 0;
}

/* 5-column card grid */
.avi-pack-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 5.5rem;
}

/* Card */
.avi-pack-card {
    background: #ffffff;
    border-top: 3px solid #D11F26;
    border-radius: 0 0 8px 8px;
    padding: 1.75rem 1.35rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    gap: .75rem;
    transition: transform .22s ease, box-shadow .22s ease;
}
.avi-pack-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

/* Icon */
.avi-pack-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.avi-pack-icon svg {
    width: 44px;
    height: 44px;
    display: block;
}

/* Badge */
.avi-pack-badge {
    font-family: 'futura-pt-bold', sans-serif;
    font-weight: 800;
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: #D11F26;
}

/* Product name */
.avi-pack-card h3 {
    font-family: 'futura-pt-bold', sans-serif;
    font-weight: 800;
    font-size: .92rem;
    line-height: 1.2;
    color: #1A1A1A;
    margin: 0;
}

/* Copy */
.avi-pack-card p {
    font-family: 'futura-pt', sans-serif;
    font-size: .82rem;
    line-height: 1.75;
    color: #5a5a5a;
    margin: 0;
    flex: 1;
}

/* View Specs link */
.avi-pack-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-family: 'futura-pt-bold', sans-serif;
    font-weight: 800;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #D11F26 !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: border-color .18s;
    margin-top: auto;
}
.avi-pack-link:hover { border-bottom-color: #D11F26; }
.avi-pack-link svg   { width: 10px; height: 10px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   CLOSING BILLBOARD — cta-footer-strip
   Block layout (no flex). Headline: left via text-align:left.
   Axis: centered via text-align:center + width:100%.
   Axel: absolute, right:-2%, bottom:-20px.
   ══════════════════════════════════════════════════════════════ */
.cta-footer-strip {
    background-color: #D11F26;
    color: #ffffff;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 12%, 100% 0, 100% 100%, 0% 100%);
}

.cta-footer-strip .container {
    display: block !important;   /* disables any inherited flex-centering */
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* HEADLINE: Left Anchor */
.avi-closer-head {
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    font-family: 'futura-pt-bold', sans-serif;
    font-weight: 800;
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.85;
    letter-spacing: -0.02em;
    margin-bottom: 50px;
    margin-left: -120px !important;
}

/* THE AXIS: Center Stack */
.avi-closer-centered-axis {
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    position: relative;
    z-index: 2;
}

.avi-closer-sub {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    white-space: nowrap;         /* single line on desktop */
    margin-bottom: 25px;
}

.avi-closer-action {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.avi-closer-action strong {
    font-weight: 800;
    font-family: 'futura-pt-bold', sans-serif;
}

.avi-closer-contact a {
    color: #ffffff;
    text-decoration: underline;
}

/* AXEL: Goldilocks Scale & Position */
.avi-footer-axel {
    position: absolute !important;
    height: 420px !important;
    right: -10% !important;
    bottom: -100px !important;
    width: auto;
    z-index: 1;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

    .avi-container { padding: 0 1.25rem; }

    /* Hero: full-width content; mascot centered at bottom */
    .avi-hero {
        flex-direction: column;
        align-items: stretch;
        overflow: visible;
    }
    .avi-hero__watermark {
        font-size: 12vw;
    }
    .avi-hero__content {
        max-width: 100%;
        margin-top: 12vh;
        padding-left: 1.25rem;
        padding-bottom: 3rem;
    }
    .avi-hero__mascot {
        position: absolute;
        bottom: 0;
        right: 50%;
        transform: translateX(50%);
        width: 85vw;
        max-width: none;
    }

    /* Conversion: stack left then right */
    .avi-conv-grid  { flex-direction: column; gap: 2.5rem; }
    .avi-conv-left  { flex: 1 1 100%; }
    .avi-conv-right { flex: 1 1 100%; }

    /* Footer mascot: static at base of section */
    .avi-conversion {
        overflow: hidden;
        padding-bottom: 2rem;
    }
    .avi-footer-mascot {
        position: relative;
        bottom: auto;
        right: auto;
        width: 50vw;
        max-width: 240px;
        margin: 3rem auto 0;
        display: block;
    }
}

@media (max-width: 560px) {
    .avi-hero__watermark { font-size: 26vw; }
    .avi-value-card      { flex-direction: column; gap: .75rem; }
}

@media (max-width: 1024px) {
    .avi-pack-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .avi-pack-grid  { grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 0 1.25rem 4rem; }
    .avi-pack-intro { padding: 4rem 1.25rem 2.5rem; }
}

@media (max-width: 400px) {
    .avi-pack-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .avi-footer-axel { right: -5%; height: 400px; }
}

@media (max-width: 768px) {
    .avi-closer-sub  { white-space: normal; }
    .avi-closer-head { text-align: center !important; }
    .avi-footer-axel { display: none; }
}
