/* ============================================================
   PREMIUM LANDING PAGE STYLES
   Stripe-meets-Linear aesthetic for education
   ============================================================ */

/* Base */
body.landing-page {
    background-color: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
}

/* ============================================================
   SCROLL ANIMATIONS — Smooth, editorial entry transitions
   ============================================================ */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-from-left  { transform: translateX(-24px); }
.slide-from-right { transform: translateX(24px); }
.slide-up         { transform: translateY(20px); }

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Stagger delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ============================================================
   HERO SECTION — Intentional, generous whitespace
   ============================================================ */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8.5rem 2rem var(--space-16);
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-bg-slideshow {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.0);
    transition: opacity 2.2s ease-in-out, transform 8.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
    filter: brightness(1.05) contrast(1.05);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.10);
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.30) 60%, rgba(0, 0, 0, 0.65) 100%);
    pointer-events: none;
}

.hero-section::after {
    display: none;
}

.hero-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 850px;
    margin: 0 auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 1.5rem 1rem;
    box-shadow: none;
}

/* Eyebrow badge — structural, not decorative */
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    border: 1px solid rgba(252, 211, 77, 0.6);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #FCD34D;
    padding: var(--space-2) var(--space-4);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 9999px;
    margin-bottom: var(--space-6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Hero H1 — editorial tight tracking */
.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.18;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-6);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 4px 30px rgba(0, 0, 0, 0.7);
}

.hero-content h1 span {
    color: #FCD34D !important;
    background: none !important;
    -webkit-text-fill-color: #FCD34D !important;
    font-weight: 800;
}

/* Lead text — comfortable reading measure */
.hero-lead {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: #ffffff;
    max-width: 680px;
    margin: 0 auto var(--space-10);
    font-weight: 500;
    line-height: 1.7;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 4px 20px rgba(0, 0, 0, 0.7);
}

/* CTA row */
.hero-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   SECTION SHARED STRUCTURE
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--text-main);
}

/* ============================================================
   PORTAL ACCESS SECTION
   ============================================================ */
#portalAccess {
    padding: var(--space-20) 2rem;
    background: var(--bg-desert);
    border-top: 1px solid var(--border);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
}

.portal-card {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    padding: var(--space-10) var(--space-8) !important;
    /* Use snappy transition for tactile feel */
    transition: transform var(--transition-snappy),
                box-shadow var(--transition-snappy),
                border-color var(--transition-snappy) !important;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    box-shadow: var(--shadow-sm) !important;
}

.portal-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary) !important;
}

.portal-card-top {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.portal-initial {
    background: var(--primary) !important;
    color: #FFFFFF !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: var(--radius) !important;
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem !important;
    flex-shrink: 0;
}

.portal-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.portal-card p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.65;
}

.portal-card-footer {
    margin-top: auto;
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: gap var(--transition-snappy);
}

.portal-card:hover .portal-card-footer {
    gap: var(--space-2);
}

/* ============================================================
   FOOTER — Minimal, structured
   ============================================================ */
.ultra-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: var(--space-20) 2rem var(--space-8);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto var(--space-12);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
}

.footer-brand h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: var(--space-4);
}

.footer-brand p {
    color: var(--text-dim);
    line-height: 1.65;
    max-width: 300px;
    font-size: 0.9rem;
}

.footer-col h5 {
    color: var(--text-main);
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: var(--space-6);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-col a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-snappy);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* ============================================================
   RESPONSIVE — Mobile-first breakpoints
   ============================================================ */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 6rem 1.5rem var(--space-16);
        min-height: auto;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

/* Thin gold divider lines between homepage sections */
#benefitsSection,
#ourCampuses,
#faqSection,
#contactSection {
    border-top: 1px solid var(--accent) !important;
}

/* ============================================================
   FAQ ACCORDION STYLING
   ============================================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
    padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem 1.5rem;
}

.faq-answer p {
    color: var(--text-dim);
    line-height: 1.65;
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================================
   UNIVERSAL TEXT SLIDE-IN ANIMATIONS
   ============================================================ */

/* Base state — hidden before animation */
.txt-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.txt-reveal.from-left  { transform: translateX(-36px); }
.txt-reveal.from-right { transform: translateX(36px); }
.txt-reveal.from-up    { transform: translateY(-24px); }

/* Visible state — triggered by JS */
.txt-reveal.in-view {
    opacity: 1;
    transform: translate(0, 0);
}

/* Stagger delays for grouped siblings */
.txt-reveal.delay-1  { transition-delay: 0.05s; }
.txt-reveal.delay-2  { transition-delay: 0.12s; }
.txt-reveal.delay-3  { transition-delay: 0.19s; }
.txt-reveal.delay-4  { transition-delay: 0.26s; }
.txt-reveal.delay-5  { transition-delay: 0.33s; }
.txt-reveal.delay-6  { transition-delay: 0.40s; }
.txt-reveal.delay-7  { transition-delay: 0.47s; }
.txt-reveal.delay-8  { transition-delay: 0.54s; }

/* Headings slide from left, paragraphs from bottom, labels from right */
h1.txt-reveal, h2.txt-reveal                { transform: translateX(-32px); }
h3.txt-reveal, h4.txt-reveal                { transform: translateY(22px); }
p.txt-reveal, li.txt-reveal                 { transform: translateY(20px); }
.eyebrow-label.txt-reveal, small.txt-reveal { transform: translateX(24px); opacity: 0; }

/* Keep hero instant — hero has its own animation */
.hero-section .txt-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .txt-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ============================================================
   SECTION BACKGROUND PHOTO MOTION & SMOOTH BLENDING
   ============================================================ */
.motion-bg-slideshow {
    position: absolute;
    inset: -5%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.motion-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.0);
    transition: opacity 2.5s ease-in-out, transform 12s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.motion-bg-slide.active {
    opacity: 1;
    transform: scale(1.12);
}

.motion-blend-divider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, var(--surface) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

