/*
 * Home page ("/") specific styling.
 * Loaded only by resources/views/pages/index.blade.php; shared brand colours
 * live in public/css/brand-tokens.css and public/css/legacy/rwa.css.
 *
 * Colour roles on this page:
 *   blue   #21A9FF  main action, and the one saturated section band
 *   yellow #F9D412  promotional action ("Enroll In Membership") only
 *   black  #000000  dark bands and every scrim over photo or video
 *   light  #EAF8FF  the quiet sections between them
 * Text sitting on blue or yellow is always black.
 */
/* ---------- Hero ---------- */
.home-header {
    background: var(--brand-overlay-hero);
}

.home-cta-block-title {
    color: var(--color-white);
    text-shadow: none;
}

.home-cta-block-subtitle {
    color: var(--color-white);
    text-shadow: none;
}

/* rwa.css floors the hero at 700px tall, which forces the buttons below the
   fold on any shorter viewport. Let it collapse to the viewport instead. */
@media (max-height: 700px) {
    .home-header {
        min-height: 0;
    }
}

/* Short viewports (landscape phones, small laptops). rwa.css sizes the hero
   type off viewport width only, so on a wide but short screen the heading,
   quote and buttons stop fitting. Each step also trims the vh top offset,
   since that is what pushes the block down the fold. */
@media (max-height: 800px) and (min-width: 992px) {
    .home-cta-block-title {
        font-size: 2.8rem;
        margin-top: 20vh;
    }

    .home-cta-block-subtitle {
        font-size: 1.05rem;
        line-height: 1.6rem;
    }
}

@media (max-height: 640px) and (min-width: 768px) {
    .home-cta-block-title {
        font-size: 2.1rem;
        margin-top: 15vh;
    }

    .home-cta-block-subtitle {
        font-size: 0.95rem;
        line-height: 1.45rem;
    }
}

@media (max-height: 520px) {
    .home-cta-block-title {
        font-size: 1.5rem;
        margin-top: 10vh;
    }

    /* The video is floored at 500px, taller than a landscape phone. */
    .header-video {
        min-height: 0;
    }

    .home-cta-block-subtitle {
        font-size: 0.875rem;
        line-height: 1.3rem;
        padding: 0.5rem 0.3rem 1rem;
    }
}

/* ---------- Hero call to action row ---------- */
/* Flex + gap rather than a margin on the second button, so the pair stays
   centred once it wraps onto two lines on narrow screens. */
.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.8rem;
}

.hero-cta-row .btn-fic {
    margin: 0;
}

/* ---------- Podcast player / mission ---------- */
.home-player-section .home-player-section-body > div {
    border: 1px solid rgb(var(--brand-blue-rgb) / 0.35);
    box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.45);
}

.mission-section {
    background-color: var(--color-blue-500);
    color: var(--color-black);
}

.mission-section .mission-header {
    color: var(--color-black);
}

/* ---------- Logo wall ---------- */
.logo-wall-title {
    color: var(--color-blue-400);
}

.logo-wall-item,
.logo-wall-item-v2 {
    color: var(--color-blue-500);
}

/* ---------- "We" copy blocks ---------- */
.we-header {
    color: var(--color-gray-900);
}

.we-header + .we-body,
.we-body {
    color: var(--color-gray-900);
}

/* ---------- Steps ---------- */
.steps-container,
.steps-block {
    background: var(--color-blue-surface);
}

.steps-container {
    color: var(--color-gray-900);
}

.steps-primary-header .link-decoration {
    color: var(--color-gray-900);
}

@media (min-width: 768px) {
    .steps-primary-header .link-decoration {
        border-bottom-color: var(--color-blue-500);
    }
}

.steps-header {
    color: var(--color-gray-900);
}

/* Blue as type on a light ground uses the darker step, which clears the
   contrast threshold that #21A9FF does not. */
.steps-count {
    color: var(--color-blue-active);
    background: transparent;
}

/* ---------- Slanted "take the first step" CTA ---------- */
/* Black rather than blue: this band holds the blue primary button, which
   would disappear against a blue ground. */
.slanteddiv,
.slant-top:before,
.slant-top:after,
.free-class-cta {
    background: var(--color-black);
}

.free-class-cta {
    color: var(--color-white);
}

.free-class-cta-link a,
.free-class-cta-link a:hover {
    color: var(--color-yellow-500);
    border-bottom-color: var(--color-yellow-500);
}

/* ---------- Testimonials ---------- */
.testimonial-section {
    background-color: var(--color-blue-surface);
}

.testimonial-card {
    color: var(--color-gray-900);
    background-color: var(--color-white);
    border: 1px solid rgb(var(--brand-blue-rgb) / 0.25);
    border-top: 3px solid var(--color-blue-500);
}

/* ---------- Image CTAs ---------- */
.cta-fic-with-image .cta-fic-title {
    color: var(--color-white);
}

/* ---------- Podcast section ---------- */
.radio-show-container .cta-radio-link a {
    color: var(--color-gray-900);
}

.radio-show-container .cta-radio-link a:hover {
    color: var(--color-blue-active);
    border-bottom: 1px solid var(--color-blue-active);
}

/* ---------- Follow wall ---------- */
#follow-wall {
    background: var(--color-black);
}

#follow-wall-body {
    background-color: var(--brand-overlay-video);
}

.follow-wall-title {
    color: var(--color-white);
}

.social-icons-large {
    color: var(--color-white);
}

.social-icons-large:hover {
    color: var(--color-blue-400);
}

/* ---------- "Check out the Blog" band ---------- */
.blog-cta-band {
    width: 100%;
    height: 100%;
}

.blog-cta-band .font-size-20 {
    color: var(--color-black);
    font-weight: 600;
}

a.blog-cta-link {
    display: inline-block;
    margin-top: 1.1rem;
    padding: 0.55rem 1.5rem;
    border-radius: 0.5rem;
    background-color: var(--color-yellow-500);
    color: var(--color-black);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 150ms ease;
}

a.blog-cta-link:hover,
a.blog-cta-link:focus {
    background-color: var(--color-yellow-hover);
    color: var(--color-black);
    text-decoration: none;
}

a.blog-cta-link:active {
    background-color: var(--color-yellow-active);
}

/* ---------- Podcast audio player ---------- */
#header-podcast .green-audio-player .slider .gap-progress,
#header-podcast .green-audio-player .slider .gap-progress .pin {
    background-color: var(--color-blue-500);
}

#header-podcast .green-audio-player .volume .volume__button.open path {
    fill: var(--color-blue-500);
}

/* ---------- Closing CTA ("Today Is The Day To Start") ---------- */
/* Darker than the earlier photo CTA so the two do not read as a repeat. */
.bg-over-image.bg-over-image-light {
    background: var(--color-black);
    background: var(--brand-overlay-photo-dark);
}

.bg-over-image-light .cta-fic-title {
    color: var(--color-white);
}
