/*
 * HCC Landing Page styles — mobile-first.
 *
 * HERO_IMAGE: /Bookings/Images/hcc-landing/hero.png (1000x664, ~263 KB)
 *   Self-hosted. Sourced from humanitas.co.za/wp-content/uploads/2021/08/
 *   Students_100px_min.png and committed to the repo to eliminate
 *   cross-origin LCP latency. To swap, drop a new image at the same path
 *   (preferably a compressed WebP for further LCP gains).
 *
 * Brand variables come from humanitas.css (--humanitas-primary etc.).
 * Loaded only by _LayoutLanding.cshtml so non-landing pages are unaffected.
 */

/* ─── Accessibility ─── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 8px 16px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--humanitas-primary, #1e7393);
    color: #fff;
    font-weight: 600;
    z-index: 9999;
}

/* ─── Layout shell ─── */
.hcc-landing-body {
    background: var(--humanitas-bg, #ffffff);
    color: var(--humanitas-text, #212121);
    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    -webkit-font-smoothing: antialiased;
}

.hcc-landing-header {
    padding: 12px 0;
    border-bottom: 1px solid var(--humanitas-border, rgba(0, 0, 0, 0.08));
    background: #fff;
}

.hcc-landing-header .hcc-brand {
    display: inline-block;
}

.hcc-landing-header .hcc-brand img {
    height: 40px;
    width: auto;
    display: block;
}

.hcc-header-title {
    margin-left: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--humanitas-primary, #1e7393);
    line-height: 1.2;
}

.hcc-landing-footer {
    border-top: 1px solid var(--humanitas-border, rgba(0, 0, 0, 0.08));
    margin-top: 32px;
}

.hcc-landing-footer a {
    color: var(--humanitas-gray, #616161);
    text-decoration: none;
}

.hcc-landing-footer a:hover {
    text-decoration: underline;
}

/* ─── Hero ─── */
.hcc-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(30, 115, 147, 0.04) 0%, rgba(30, 115, 147, 0) 100%);
}

.hcc-hero-img {
    width: 100%;
    height: auto;
    max-height: 55vh;
    object-fit: cover;
    object-position: center 33%;
    display: block;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}

.hcc-hero-content {
    padding: 24px 16px 32px;
    text-align: left;
}

.hcc-hero h1 {
    font-size: clamp(1.6rem, 5.5vw, 2.6rem);
    line-height: 1.15;
    color: var(--humanitas-primary, #1e7393);
    margin: 0 0 12px;
    font-weight: 700;
}

.hcc-hero p.hcc-sub {
    font-size: clamp(1rem, 3.4vw, 1.15rem);
    line-height: 1.45;
    color: var(--humanitas-text, #212121);
    margin: 0 0 12px;
    max-width: 38em;
}

.hcc-hero-register {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--humanitas-primary, #1e7393);
    margin: 16px 0 0;
}

/* ─── Buttons / CTAs ─── */
.hcc-primary-cta,
a.hcc-primary-cta {
    display: inline-block;
    min-height: 48px;
    padding: 14px 24px;
    background: var(--humanitas-primary, #1e7393);
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(30, 115, 147, 0.25);
}

.hcc-primary-cta:hover,
.hcc-primary-cta:focus {
    background: #195e78;
    color: #fff;
    text-decoration: none;
    outline: 2px solid var(--humanitas-primary, #1e7393);
    outline-offset: 2px;
}

.hcc-secondary-cta,
a.hcc-secondary-cta {
    display: inline-block;
    min-height: 44px;
    padding: 11px 18px;
    background: transparent;
    color: var(--humanitas-primary, #1e7393);
    border: 1px solid var(--humanitas-primary, #1e7393);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}

.hcc-secondary-cta:hover,
.hcc-secondary-cta:focus {
    background: rgba(30, 115, 147, 0.08);
    color: var(--humanitas-primary, #1e7393);
    outline: 2px solid var(--humanitas-primary, #1e7393);
    outline-offset: 2px;
}

/* ─── Quick-detail chips ─── */
.hcc-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: var(--humanitas-gray-light, #f4f4f4);
}

.hcc-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--humanitas-border, rgba(0, 0, 0, 0.08));
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--humanitas-text, #212121);
}

.hcc-chip-icon {
    color: var(--humanitas-primary, #1e7393);
    flex-shrink: 0;
}

/* ─── Intake city cards ─── */
.hcc-cards-section {
    padding: 32px 16px;
}

.hcc-cards-section h2 {
    font-size: clamp(1.4rem, 4.5vw, 1.9rem);
    margin: 0 0 20px;
    color: var(--humanitas-text, #212121);
}

.hcc-city-card {
    background: #fff;
    border: 1px solid var(--humanitas-border, rgba(0, 0, 0, 0.08));
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    max-width: 600px;
}

.hcc-city-card h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: var(--humanitas-primary, #1e7393);
}

.hcc-city-card .hcc-dates {
    font-size: 0.95rem;
    color: var(--humanitas-gray, #616161);
    margin: 0 0 8px;
}

.hcc-phases {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.hcc-phase {
    padding-left: 12px;
    border-left: 3px solid var(--humanitas-border, rgba(0, 0, 0, 0.08));
}

.hcc-phase-dates {
    font-size: 0.95rem;
    color: var(--humanitas-gray, #616161);
    margin-bottom: 4px;
}

.hcc-phase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hcc-phase-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1.5;
}

.hcc-phase-tag--required {
    background: rgba(30, 115, 147, 0.1);
    color: var(--humanitas-primary, #1e7393);
}

.hcc-phase-tag--flexible {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
}

.hcc-city-card .hcc-price {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--humanitas-text, #212121);
}

.hcc-city-card .hcc-primary-cta {
    width: 100%;
}

.hcc-seat-chip {
    display: inline-block;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(241, 196, 15, 0.18);
    color: #826200;
    margin-left: 6px;
}

/* ─── Stats grid ─── */
.hcc-stats-section {
    padding: 32px 16px;
    background: var(--humanitas-gray-light, #f4f4f4);
}

.hcc-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
}

.hcc-stat .hcc-stat-num {
    display: block;
    font-size: clamp(2rem, 7vw, 2.8rem);
    font-weight: 700;
    color: var(--humanitas-primary, #1e7393);
    line-height: 1;
}

.hcc-stat .hcc-stat-label {
    display: block;
    margin-top: 6px;
    font-size: 0.95rem;
    color: var(--humanitas-gray, #616161);
}

/* ─── Testimonial strip ─── */
.hcc-testimonial-section {
    padding: 32px 16px;
}

.hcc-testimonial-section h2 {
    font-size: clamp(1.4rem, 4.5vw, 1.9rem);
    margin: 0 0 20px;
    color: var(--humanitas-text, #212121);
}

.hcc-testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.hcc-testimonial-card {
    background: #fff;
    border: 1px solid var(--humanitas-border, rgba(0, 0, 0, 0.08));
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.hcc-testimonial-hidden {
    display: none;
}

.hcc-testimonial-grid.hcc-show-all .hcc-testimonial-hidden {
    display: block;
}

.hcc-show-more-btn {
    background: none;
    border: 1px solid var(--humanitas-primary, #1e7393);
    color: var(--humanitas-primary, #1e7393);
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.hcc-show-more-btn:hover {
    background: var(--humanitas-primary, #1e7393);
    color: #fff;
}

img.hcc-avatar {
    object-fit: cover;
}

.hcc-testimonial-card .hcc-quote {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--humanitas-text, #212121);
    margin: 0 0 14px;
    font-style: italic;
}

.hcc-testimonial-card .hcc-author {
    font-weight: 600;
    color: var(--humanitas-text, #212121);
    font-size: 0.9rem;
}

.hcc-testimonial-card .hcc-role {
    font-size: 0.8rem;
    color: var(--humanitas-gray, #616161);
}

/* Initials avatar fallback */
.hcc-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--humanitas-primary, #1e7393);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 10px;
    flex-shrink: 0;
}

/* ─── FAQ accordion overrides ─── */
.hcc-faq-section {
    padding: 32px 16px;
}

.hcc-faq-section h2 {
    font-size: clamp(1.4rem, 4.5vw, 1.9rem);
    margin: 0 0 20px;
    color: var(--humanitas-text, #212121);
}

.hcc-faq-section .accordion-button {
    min-height: 48px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--humanitas-text, #212121);
}

.hcc-faq-section .accordion-button:not(.collapsed) {
    background: rgba(30, 115, 147, 0.08);
    color: var(--humanitas-primary, #1e7393);
}

.hcc-faq-section .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(30, 115, 147, 0.3);
    outline: none;
}

.hcc-faq-section .accordion-body {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--humanitas-text, #212121);
}

/* ─── "More detail" section ─── */
.hcc-detail-section {
    padding: 32px 16px;
    background: var(--humanitas-gray-light, #f4f4f4);
}

.hcc-detail-section h2 {
    font-size: clamp(1.3rem, 4.2vw, 1.7rem);
    margin: 0 0 8px;
}

.hcc-detail-section p.hcc-detail-intro {
    color: var(--humanitas-gray, #616161);
    margin: 0 0 18px;
}

.hcc-detail-link {
    display: block;
    padding: 12px 0;
    color: var(--humanitas-primary, #1e7393);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--humanitas-border, rgba(0, 0, 0, 0.08));
    min-height: 44px;
}

.hcc-detail-link:hover,
.hcc-detail-link:focus {
    text-decoration: underline;
    color: var(--humanitas-primary, #1e7393);
}

/* ─── Sticky bottom CTA bar (mobile) ─── */
.hcc-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--humanitas-border, rgba(0, 0, 0, 0.12));
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(110%);
    transition: transform 220ms ease;
    visibility: hidden;
}

.hcc-sticky-cta.is-visible {
    transform: translateY(0);
    visibility: visible;
}

.hcc-sticky-cta .hcc-primary-cta {
    width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .hcc-sticky-cta {
        transition: none;
    }
}

/* Pad the page bottom when sticky CTA is visible so content isn't hidden behind it */
.hcc-landing-body.has-sticky main {
    padding-bottom: 80px;
}

/* ─── Tablet+ enhancements (≥576px) ─── */
@media (min-width: 576px) {
    .hcc-hero-img {
        max-height: 60vh;
    }

    .hcc-hero-content {
        padding: 32px 24px 40px;
        max-width: 720px;
        margin: 0 auto;
    }

    .hcc-chip-row {
        justify-content: center;
        padding: 16px 24px;
    }

    .hcc-cards-section,
    .hcc-stats-section,
    .hcc-testimonial-section,
    .hcc-faq-section,
    .hcc-detail-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .hcc-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 720px;
        margin: 0 auto;
    }

    .hcc-testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── Desktop (≥768px) ─── */
@media (min-width: 768px) {
    .hcc-hero {
        flex-direction: row;
        align-items: stretch;
        max-height: none;
    }

    .hcc-hero-img {
        width: 50%;
        max-height: 70vh;
        height: 70vh;
        border-radius: 0 0 12px 0;
    }

    .hcc-hero-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-width: 560px;
        padding: 48px 40px;
    }

    .hcc-cards-section,
    .hcc-stats-section,
    .hcc-testimonial-section,
    .hcc-faq-section,
    .hcc-detail-section {
        max-width: 960px;
        margin-left: auto;
        margin-right: auto;
    }

    .hcc-testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Sticky CTA hidden on desktop — repeat CTAs in the body suffice */
    .hcc-sticky-cta {
        display: none;
    }

    .hcc-landing-body.has-sticky main {
        padding-bottom: 0;
    }
}
