/* components.css — Cards, CTAs, review blocks, reusable UI components */

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.hero__overlay {
    flex: 1;
    background: rgba(5, 35, 67, 0.81);
    display: flex;
    align-items: center;
    padding: 60px 40px 40px;
}

.hero__inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
}

/* Layout 1: single column — left fills full width */
.hero__left {
    flex: 1;
    text-align: center;
}

/* Layout 2: two-column — left takes more space */
.hero--two-col .hero__left {
    flex: 3;
    text-align: left;
}

.hero--two-col .hero__right {
    flex: 2;
    min-width: 0;
}

.hero__heading {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 16px;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.2;
}

.hero__subheading {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--color-near-white);
    margin: 0 auto 28px;
    line-height: 1.6;
    max-width: 900px;
    text-align: center;
}

.hero__paragraph {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-white);
    margin: 0 auto 28px;
    line-height: 1.7;
    max-width: 860px;
}

.hero .hero__cta {
    font-size: 1.125rem;
}


/* ============================================================
   HERO RIGHT-COLUMN COMPONENTS — shared base
   ============================================================ */

.hero-component {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 28px 24px;
    text-align: center;
}

.hero-component__headline {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-white);
    margin: 0 0 10px;
    line-height: 1.3;
}

.hero-component__subtext {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-near-white);
    margin: 0 0 18px;
    line-height: 1.5;
}

.hero-component__cta {
    display: inline-block;
    background: var(--color-green-cta);
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.hero-component__cta:hover {
    background: var(--color-green-heading);
}

/* ============================================================
   COMPONENT: Open Enrollment Countdown
   ============================================================ */

.hero-component__urgency-label {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-blue-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 10px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 0 0 20px;
}

.countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
}

.countdown__number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2rem;
    color: var(--color-white);
    line-height: 1;
}

.countdown__label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-blue-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* ============================================================
   COMPONENT: Annual Insurance Review CTA
   ============================================================ */

.hero-component--cta-review .hero-component__benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
}

.hero-component--cta-review .hero-component__benefits li {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-near-white);
    padding: 4px 0 4px 20px;
    position: relative;
    line-height: 1.4;
}

.hero-component--cta-review .hero-component__benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--color-green-cta);
    border-radius: 50%;
}

/* ============================================================
   HERO — Responsive
   ============================================================ */

@media (max-width: 900px) {
    .hero--two-col .hero__inner {
        flex-direction: column;
        gap: 32px;
    }

    .hero--two-col .hero__left,
    .hero--two-col .hero__right {
        flex: none;
        width: 100%;
        text-align: center;
    }

    .hero--two-col .hero__subheading {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-component--cta-review .hero-component__benefits {
        display: inline-block;
        text-align: left;
    }
}

@media (max-width: 600px) {
    .hero__overlay {
        padding: 48px 24px 32px;
    }

    .countdown {
        gap: 10px;
    }

    .countdown__number {
        font-size: 1.5rem;
    }
}

/* ============================================================
   COLLAPSIBLE TOGGLE
   ============================================================ */

.collapsible-body--hidden {
    display: none;
}

/* ============================================================
   CTA BARS
   ============================================================ */

.cta-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 32px 24px;
}

.cta-bar__btn {
    white-space: nowrap;
}

@media (max-width: 600px) {
    .cta-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 24px 16px;
    }

    .cta-bar__btn,
    .cta-bar a.btn-cta {
        text-align: center;
    }
}
