/**
 * Bootcamp page components.
 *
 * Mobile-first. Only genuinely new components live here — buttons, containers,
 * .section / .section-alt / .section-title / .section-subtitle / .cta-box and
 * the design tokens all come from style.css. Everything is namespaced .bc-*.
 */

/* ========== SHARED ICON ========== */
.bc-icon {
    width: 100%;
    height: 100%;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bc-icon--solid {
    fill: currentColor;
    stroke: none;
}

/* ========== BUTTON MODIFIERS ========== */
.bc-btn-lg {
    padding: 1.05rem 1.9rem;
    font-size: 1rem;
    justify-content: center;
    text-align: center;
}

.bc-btn-lg .bc-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.bc-btn-block {
    display: flex;
    width: 100%;
}

/* ========== 1. HERO ========== */
.bc-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: 520px;
    padding: 8rem 0 4rem;
    text-align: center;
    background:
        radial-gradient(ellipse 760px 460px at 50% 0%, rgba(99, 102, 241, 0.22), transparent 62%),
        radial-gradient(ellipse 620px 420px at 12% 92%, rgba(79, 70, 229, 0.14), transparent 60%),
        var(--sz-bg);
}

.bc-hero::after {
    /* Blend the hero into the section that follows. */
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0), var(--sz-bg));
}

.bc-hero--has-media {
    min-height: 600px;
}

@supports (height: 100svh) {
    .bc-hero--has-media { min-height: 86svh; }
}

.bc-hero__media {
    position: absolute;
    inset: 0;
    z-index: -3;
    background: #000;
}

.bc-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bc-hero__frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

.bc-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 900px 620px at 50% 42%, rgba(13, 13, 13, 0.38), rgba(13, 13, 13, 0.86)),
        linear-gradient(180deg, rgba(13, 13, 13, 0.92) 0%, rgba(13, 13, 13, 0.55) 34%, rgba(13, 13, 13, 0.82) 74%, var(--sz-bg) 100%);
}

.bc-hero__inner {
    position: relative;
    z-index: 1;
}

.bc-hero__title {
    font-size: clamp(2.1rem, 7.2vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 17ch;
    margin: 0 auto;
    text-wrap: balance;
}

.bc-hero__sub {
    max-width: 46rem;
    margin: 1.35rem auto 0;
    color: var(--sz-text-muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.bc-hero__badges {
    list-style: none;
    padding: 0;
    margin: 2.25rem auto 0;
    max-width: 44rem;
    display: grid;
    gap: 0.7rem;
    text-align: left;
}

.bc-hero__badge {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.925rem;
    line-height: 1.5;
    color: var(--sz-text);
}

.bc-hero__badge .bc-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin-top: 0.2rem;
    color: var(--sz-indigo);
}

.bc-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 2.5rem;
}

.bc-hero__actions .btn {
    width: 100%;
}

/* ========== 2. WHY THIS BOOTCAMP IS DIFFERENT ========== */
.bc-cards {
    display: grid;
    gap: 1.25rem;
    margin-top: 3rem;
}

.bc-card {
    background: var(--sz-bg-card-alt);
    border: 1px solid var(--sz-border);
    border-radius: var(--sz-radius-lg);
    padding: 2.25rem 1.75rem;
    transition: border-color var(--sz-transition), transform var(--sz-transition), box-shadow var(--sz-transition);
}

.bc-card:hover {
    border-color: rgba(99, 102, 241, 0.45);
    transform: translateY(-4px);
    box-shadow: var(--sz-glow-sm);
}

.bc-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 13px;
    border-radius: var(--sz-radius);
    margin-bottom: 1.5rem;
    color: var(--sz-indigo);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.24);
}

.bc-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
}

.bc-card__body {
    color: var(--sz-text-muted);
    font-size: 0.975rem;
    line-height: 1.7;
}

/* ========== 3. ELIGIBILITY GATE ========== */
.bc-gate {
    max-width: 720px;
    margin: 3rem auto 0;
    background: var(--sz-bg-card-alt);
    border: 1px solid var(--sz-border);
    border-radius: var(--sz-radius-lg);
    padding: 2rem 1.5rem;
}

.bc-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.25rem;
}

.bc-checklist__item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--sz-border);
    color: var(--sz-text);
    font-size: 1rem;
    line-height: 1.55;
}

.bc-checklist__item:last-child {
    border-bottom: none;
}

.bc-checklist__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 5px;
    flex: 0 0 26px;
    border-radius: 50%;
    margin-top: 0.05rem;
    color: var(--sz-indigo);
    background: rgba(99, 102, 241, 0.12);
}

.bc-checklist__mark .bc-icon {
    stroke-width: 2.4;
}

.bc-gate__note {
    margin: 1.75rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sz-border);
    color: var(--sz-text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
}

/* ========== 4. CURRICULUM TIMELINE / ACCORDION ========== */
.bc-timeline {
    max-width: 820px;
    margin: 3rem auto 0;
}

.bc-week {
    position: relative;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 1rem;
}

.bc-week__rail {
    position: relative;
    display: flex;
    justify-content: center;
}

.bc-week__rail::before {
    content: '';
    position: absolute;
    top: 3.35rem;
    bottom: -0.4rem;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.4), var(--sz-border));
}

.bc-week:last-child .bc-week__rail::before {
    display: none;
}

.bc-week__marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: 0.85rem;
    border-radius: 50%;
    background: var(--sz-bg-elevated);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: var(--sz-indigo);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
}

.bc-week__body {
    border-bottom: 1px solid var(--sz-border);
    min-width: 0;
}

.bc-week:last-child .bc-week__body {
    border-bottom: none;
}

.bc-week__heading {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.bc-week__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1.35rem 0;
    background: none;
    border: none;
    color: var(--sz-text);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: color var(--sz-transition);
}

.bc-week__toggle:hover {
    color: var(--sz-indigo-hover);
}

.bc-week__toggle:focus-visible {
    outline: 2px solid var(--sz-indigo);
    outline-offset: 4px;
    border-radius: var(--sz-radius-sm);
}

.bc-week__text {
    display: block;
    min-width: 0;
}

.bc-week__label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--sz-indigo);
    margin-bottom: 0.35rem;
}

.bc-week__title {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    color: inherit;
}

.bc-week__chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 6px;
    flex: 0 0 30px;
    border-radius: 50%;
    color: var(--sz-text-muted);
    border: 1px solid var(--sz-border);
    transition: transform var(--sz-transition), color var(--sz-transition), border-color var(--sz-transition);
}

.bc-week__toggle:hover .bc-week__chevron {
    color: var(--sz-indigo);
    border-color: rgba(99, 102, 241, 0.45);
}

/*
 * Accordion mechanics. The panel ships open; JS adds .is-collapsed. Without JS
 * the class never appears and all six weeks stay readable.
 */
.bc-week__panel {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.35s ease;
}

.bc-week__panel-inner {
    overflow: hidden;
    min-height: 0;
}

.bc-week.is-collapsed .bc-week__panel {
    grid-template-rows: 0fr;
}

.bc-week.is-collapsed .bc-week__panel-inner {
    visibility: hidden;
    transition: visibility 0s linear 0.35s;
}

.bc-week.is-collapsed .bc-week__chevron {
    transform: rotate(-90deg);
}

.bc-week__content {
    padding: 0 0 1.5rem;
    color: var(--sz-text-muted);
    font-size: 0.975rem;
    line-height: 1.75;
}

.bc-week__content p:last-child {
    margin-bottom: 0;
}

/* ========== 5. WHAT YOU GET (value stack) ========== */
.bc-stack {
    max-width: 820px;
    margin: 3rem auto 0;
    display: grid;
    gap: 1rem;
}

.bc-stack__item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 1.1rem;
    align-items: start;
    background: var(--sz-bg-elevated);
    border: 1px solid var(--sz-border);
    border-radius: var(--sz-radius);
    padding: 1.4rem 1.35rem;
    transition: border-color var(--sz-transition), transform var(--sz-transition);
}

.bc-stack__item:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateX(3px);
}

.bc-stack__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 12px;
    border-radius: var(--sz-radius-sm);
    color: var(--sz-indigo);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.22);
}

.bc-stack__text {
    min-width: 0;
}

.bc-stack__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.bc-stack__body {
    color: var(--sz-text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ========== 6. PRICING ========== */
.bc-price-card {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    padding: 3rem 1.75rem;
    text-align: center;
    border-radius: var(--sz-radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.35);
    background:
        radial-gradient(ellipse 520px 300px at 50% 0%, rgba(99, 102, 241, 0.16), transparent 70%),
        var(--sz-bg-card-alt);
    box-shadow: var(--sz-glow);
}

.bc-price-card .section-label {
    margin-bottom: 0.75rem;
}

.bc-price-card__amount {
    font-family: 'Inter', sans-serif;
    font-size: clamp(3rem, 13vw, 4.25rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--sz-text);
    margin: 0 0 1.5rem;
}

.bc-price-card__lines {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    gap: 0.6rem;
}

.bc-price-card__lines li {
    color: var(--sz-text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    padding-top: 0.6rem;
    border-top: 1px solid var(--sz-border);
}

.bc-price-card__lines li:first-child {
    border-top: none;
    padding-top: 0;
}

.bc-price-card__micro {
    margin: 1.15rem 0 0;
    color: var(--sz-text-dim);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}

/* ========== 7. SUCCESS STORIES ========== */
.bc-stories {
    padding-bottom: 0;
}

.bc-stories .testimonials-section,
.bc-stories > section {
    padding-top: 0;
}

/*
 * template-parts/testimonials.php prints its own global heading
 * (scrumiz_option 'reviews_heading'). On this page the page-specific
 * bootcamp_stories_title above it wins, so suppress the shared one here only.
 */
.bc-stories .testimonials-heading {
    display: none;
}

.bc-stories .section-title:last-child {
    margin-bottom: 2.5rem;
}

/* ========== 8. FINAL CTA ========== */
.bc-final .cta-box {
    background:
        radial-gradient(ellipse 620px 340px at 50% 0%, rgba(99, 102, 241, 0.14), transparent 68%),
        var(--sz-bg-card-alt);
}

.bc-final__body {
    color: var(--sz-text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.bc-hero__actions--center {
    margin-top: 0;
    align-items: stretch;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 600px) {
    .bc-hero__actions {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .bc-hero__actions .btn {
        width: auto;
    }

    .bc-gate {
        padding: 2.75rem 2.5rem;
    }

    .bc-price-card {
        padding: 3.5rem 3rem;
    }

    .bc-stack__item {
        padding: 1.6rem 1.75rem;
    }
}

@media (min-width: 768px) {
    .bc-hero {
        padding: 10rem 0 6rem;
    }

    /* Gradient-only hero needs less breathing room at the foot. */
    .bc-hero:not(.bc-hero--has-media) {
        padding-bottom: 3.5rem;
    }

    .bc-hero__title {
        max-width: 28ch;
    }

    .bc-hero__sub {
        font-size: 1.1rem;
    }

    .bc-hero__badges {
        margin-top: 2.75rem;
    }

    .bc-week {
        grid-template-columns: 56px 1fr;
        gap: 1.75rem;
    }

    .bc-week__title {
        font-size: 1.25rem;
    }

    .bc-week__content {
        font-size: 1rem;
        padding-bottom: 1.85rem;
    }
}

@media (min-width: 900px) {
    .bc-cards--3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .bc-card {
        padding: 2.5rem 2rem;
    }
}

/* ========== MOTION / NO-JS FALLBACKS ========== */
@media (scripting: none) {
    /* Theme-wide scroll reveals depend on JS — keep the page readable without it. */
    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bc-week__panel,
    .bc-week__chevron,
    .bc-card,
    .bc-stack__item {
        transition: none;
    }

    .bc-card:hover,
    .bc-stack__item:hover {
        transform: none;
    }
}
