/* ===============================
   Invomize – Universal Footer CTA
   =============================== */

.inv-footer-cta {
    position: relative;
    width: 100%;
    max-width: 100vw;
    padding: 60px 24px 25px;
    background-color: #EAF4FB;
    background-image: url('/wp-content/uploads/2026/10/footer-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.inv-footer-cta *,
.inv-footer-cta *::before,
.inv-footer-cta *::after {
    box-sizing: border-box;
    max-width: 100%;
}

/* Legibility overlay */
.inv-footer-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(234, 244, 251, 0.35) 0%,
        rgba(234, 244, 251, 0.55) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.inv-footer-cta__inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

/* ---------- Logo ---------- */
.inv-footer-cta__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 22px;
}

.inv-footer-cta__logo-icon {
    height: 34px;
    width: auto;
    display: block;
}

.inv-footer-cta__logo-text {
    height: 26px;
    width: auto;
    display: block;
}

/* ---------- Headline (desktop) ---------- */
.inv-footer-cta__title {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(28px, 5vw, 80px);
    line-height: 1.1;
    letter-spacing: -0.05em;
    color: #16384F;
    margin: 0 0 16px;
    white-space: nowrap;
    max-width: 100%;
}

.inv-footer-cta.is-revealed .inv-footer-cta__title {
    font-size: clamp(28px, 5.5vw, 80px);
    line-height: 1.1;
    letter-spacing: -0.06em;
}

/* ---------- Subtitle ---------- */
.inv-footer-cta__subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 19px;
    line-height: 1.3;
    letter-spacing: -0.03em;
    color: #16384F;
    margin: 0 0 26px;
    max-width: 680px;
}

/* ---------- Button ---------- */
.inv-footer-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 160px;
    min-height: 52px;
    padding: 16px 28px;
    background: #00B67A;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 14px 40px 0 rgba(0, 182, 122, 0.20);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-sizing: border-box;
    line-height: 1;
}

.inv-footer-cta__button:hover {
    background: #00A26E;
    transform: translateY(-2px);
    box-shadow: 0 20px 50px 0 rgba(0, 182, 122, 0.30);
}

/* ---------- Note ---------- */
.inv-footer-cta__note {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #16384F;
    margin: 26px 0 0;
}

/* ===============================
   SCROLL REVEAL
   =============================== */

.inv-footer-cta__logo,
.inv-footer-cta__title,
.inv-footer-cta__subtitle,
.inv-footer-cta__button,
.inv-footer-cta__note {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                font-size 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                line-height 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.inv-footer-cta.is-revealed .inv-footer-cta__logo     { opacity: 1; transform: none; transition-delay: 0.05s; }
.inv-footer-cta.is-revealed .inv-footer-cta__title    { opacity: 1; transform: none; transition-delay: 0.18s; }
.inv-footer-cta.is-revealed .inv-footer-cta__subtitle { opacity: 1; transform: none; transition-delay: 0.30s; }
.inv-footer-cta.is-revealed .inv-footer-cta__button   { opacity: 1; transform: none; transition-delay: 0.42s; }
.inv-footer-cta.is-revealed .inv-footer-cta__note     { opacity: 1; transform: none; transition-delay: 0.55s; }

/* Ambient glow */
.inv-footer-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(40px) saturate(120%);
    opacity: 0.30;
    z-index: 0;
    pointer-events: none;
    animation: inv-footer-glow 12s ease-in-out infinite alternate;
    clip-path: inset(0);
    overflow: hidden;
}

@keyframes inv-footer-glow {
    from { opacity: 0.25; }
    to   { opacity: 0.40; }
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 1400px) {
    .inv-footer-cta__title,
    .inv-footer-cta.is-revealed .inv-footer-cta__title {
        white-space: normal;
        font-size: clamp(32px, 4.5vw, 64px);
        line-height: 1.1;
    }
}

@media (max-width: 1024px) {
    .inv-footer-cta { padding: 50px 20px 25px; }
    .inv-footer-cta__title,
    .inv-footer-cta.is-revealed .inv-footer-cta__title {
        font-size: clamp(28px, 5vw, 44px);
    }
    .inv-footer-cta__subtitle { font-size: 17px; }
    .inv-footer-cta__note { font-size: 16px; }
}

/* ===============================
   MOBILE – exact specs
   =============================== */
@media (max-width: 768px) {
    .inv-footer-cta { padding: 45px 18px 25px; }

    /* Logo – stacked vertically with spacing between icon and text */
    .inv-footer-cta__logo {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 22px;
    }
    .inv-footer-cta__logo-icon { height: 32px; }
    .inv-footer-cta__logo-text { height: 24px; }

    /* Headline */
    .inv-footer-cta__title,
    .inv-footer-cta.is-revealed .inv-footer-cta__title {
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        font-size: 30px;
        line-height: 100%;
        letter-spacing: -0.05em;
        text-align: center;
        margin-bottom: 16px;
        white-space: normal;
    }

    /* Subtitle */
    .inv-footer-cta__subtitle {
        font-family: 'Inter', sans-serif;
        font-weight: 400;
        font-size: 16px;
        line-height: 21px;
        letter-spacing: -0.03em;
        text-align: center;
        margin-bottom: 24px;
    }

    /* Button */
    .inv-footer-cta__button {
        width: 101px;
        height: 40px;
        min-width: unset;
        min-height: unset;
        padding: 14px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 600;
        gap: 10px;
    }

    /* Note */
    .inv-footer-cta__note {
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        font-size: 16px;
        line-height: 21px;
        letter-spacing: -0.03em;
        text-align: center;
        margin-top: 24px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .inv-footer-cta { padding: 40px 16px 25px; }
    .inv-footer-cta__title,
    .inv-footer-cta.is-revealed .inv-footer-cta__title { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .inv-footer-cta::after { animation: none; }
    .inv-footer-cta__logo,
    .inv-footer-cta__title,
    .inv-footer-cta__subtitle,
    .inv-footer-cta__button,
    .inv-footer-cta__note {
        opacity: 1;
        transform: none;
        transition: none;
    }
}