/* Homepage-specific styles for Colorado College 2025 */

/* ================================
   MULTI-PANEL HERO SECTION
   ================================ */

/* 1. Main container creates the scroll track with scroll snap.
   Height is 100vh per panel, creating space for the scroll effect. */
.cc-multi-panel-hero {
    position: relative;
    height: 400vh;
    /* 4 panels * 100vh each */
    /* Enable smooth scroll snap behavior */
    scroll-snap-type: y mandatory;
}

/* Add smooth scrolling behavior to the document */
html {
    scroll-behavior: smooth;
}

/* Ensure the body allows for smooth scroll snap */
body {
    scroll-snap-type: y mandatory;
}

/* 2. The background image sticks to the top of the viewport during the scroll. */
.cc-hero-fixed-background {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    z-index: -1;
    /* Ensures it stays behind all content */
    /* Static image placeholder while hero video loads */
    background-color: #000;
    background-image: url('/_assets/images/2025/homepage_hero-2025.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cc-hero-background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: #000;
    background-image: url('/_assets/images/2025/homepage_hero-2025.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    /* Performance optimizations for smooth video playback */
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* Fallback image styling - initially hidden, shown when video fails or motion is reduced */
.cc-hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: none; /* Hidden by default, shown by JavaScript when needed */
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .cc-hero-background-video {
        display: none !important;
    }
    
    .cc-hero-background-image {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
    }
}

/* Mobile optimizations for video performance */
@media (max-width: 767.98px) {
    .cc-hero-background-video {
        /* Smaller video processing on mobile for better performance */
        will-change: auto;
    }
}

/* 3. Each panel is also sticky, stacking on top of the previous one as you scroll. */
.cc-hero-panel {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    /* Negative margin collapses the panels on top of each other vertically */
    margin-top: -100vh;
    /* Snap alignment for each panel */
    scroll-snap-align: end;
    scroll-snap-stop: always;
    scroll-snap-type: y mandatory;
    /* Prevent interaction with non-active panels */
    pointer-events: none;
    /* Ensure proper stacking for active panels */
    z-index: 1;
}

.cc-hero-panel:first-of-type {
    margin-top: 0;
    /* The first panel does not need a negative margin */
}

/* Active panel should be interactive and on top */
.cc-hero-panel.is-interactive {
    pointer-events: auto;
    z-index: 2;
}

/* 4. Panel Overlay for text readability, similar to the original hero's ::before element. */
.cc-hero-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

/* 5. Content containers need a z-index to appear above the overlay. */
.cc-hero-panel-content,
.cc-hero-images-container {
    position: relative;
    z-index: 10;
}

/* 6. Content Styling - Reusing your site's styles for consistency */
.cc-hero-panel-content {
    color: var(--cc-color-white);
    /* Set opacity to 0 by default for fade-in effect */
    opacity: 0;
    /* Start content below its final position for slide-up effect */
    transform: translateY(150px);
    /* Smooth transitions for both fade and slide */
    transition: opacity 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.cc-hero-panel-content.is-visible {
    opacity: 1;
    /* This class is added by JavaScript to make content visible */
    /* Slide up to final position */
    transform: translateY(0);
}

/* Hero content styling to match Figma design */
.cc-hero-panel-content {
    padding: 80px 32px;
    gap: 32px;
}

/* Section label (eyebrow) styling - matches Figma specs */
.cc-hero-panel-content .section-label {
    font-family: "proxima-nova", sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 13px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: #EDEDED;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-hero-panel-content .section-label .icon-tc {
    font-size: 24px;
    color: #EAB337;
}

/* Main headline styling - matches Figma typography */
.cc-hero-panel-headline,
.cc-hero-panel-italic {
    font-family: "archer-pro", serif;
    font-weight: 500;
    font-style: italic;
    font-size: 54px;
    line-height: 1.1;
    letter-spacing: -0.64px;
    color: #FFFFFF;
    margin: 0 0 32px 0;
}

/* Headline emphasis text - matches Figma specs */
.cc-hero-panel-emphasis {
    font-family: "proxima-nova-wide", sans-serif;
    font-weight: 800;
    font-style: normal;
    font-size: 56px;
    line-height: 1.1;
    letter-spacing: -0.96px;
    text-transform: uppercase;
    color: #FFFFFF;
}

/* Description text - paragraph keeps block layout */
.cc-hero-panel-description {
    font-family: "proxima-nova", sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
    color: #ffffff;
    margin: 0 0 64px 0;
    max-width: 650px;
    transition: font-size 0.3s ease;
}

/* DARK Highlighter effect applied to span inside paragraph */
.cc-hero-panel-description span {
    display: inline;
    background: linear-gradient(to bottom, transparent 15%, rgba(0,0,0,0.3) 15%, rgba(0,0,0,0.3) 85%, transparent 85%);
    padding: 0.15em 0.3em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    line-height: 1.5rem;
}

/* Smaller description text for subsequent panels */
.cc-hero-panel:not(:first-child) .cc-hero-panel-description {
    font-size: 16px;
}

/* CTA button styling for hero panels - Now uses unified system */

.cc-hero-scroll-arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 10;
}

.cc-hero-scroll-arrow.is-visible {
    opacity: 1;
}

/* 7. Stacked Images Styling */
.cc-hero-images-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cc-hero-stacked-image {
    position: absolute;
    width: 90vh;
    height: 90vh;
    max-width: 500px;
    max-height: 500px;
    opacity: 0;
    /* Start images below their final position for slide-up effect */
    transform: translateY(150px);
    /* Smooth transitions for both slide and fade */
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.cc-hero-stacked-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cc-hero-stacked-image.is-visible {
    opacity: 1;
    /* Slide up to final position */
    transform: translateY(0);
}

/* Fade-out class for when scrolling back up - opacity only, preserve transforms */
.cc-hero-stacked-image.is-fading-out {
    opacity: 0;
    /* We ONLY want to transition opacity on a shorter duration. */
    transition: opacity 0.04s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Individual image transforms for the stacking/scaling effect with staggered animation */
.cc-hero-stacked-image[data-image="1"] {
    z-index: 1;
    /* First image - full size, standard slide up */
    transition-delay: 0s;
}

/* .cc-hero-stacked-image[data-image="1"]::after {
    content: '';
    position: absolute;
    inset: 35px;
    background-color: rgba(234, 179, 55, 0.8);
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
} */

.cc-hero-stacked-image[data-image="2"] {
    z-index: 2;
    /* Second image - 80% of original size with black border */
    transform: translateY(180px) scale(0.85);
    transition-delay: 0.15s;
    border: 25px solid black;
}

.cc-hero-stacked-image[data-image="2"].is-visible {
    transform: translateY(0) scale(0.8);
}

.cc-hero-stacked-image[data-image="3"] {
    z-index: 3;
    /* Third image - 40% of original size with green circle outline */
    transform: translateY(200px) scale(0.4);
    transition-delay: 0.3s;
    position: relative;
}

.cc-hero-stacked-image[data-image="3"].is-visible {
    transform: translateY(0) scale(0.4);
}

/* Green circle outline around the square image */
.cc-hero-stacked-image[data-image="3"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.33);
    width: 150%;
    height: 150%;
    border: 5px solid #BAD739;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.1s;
}

/* Animate circle when image becomes visible */
.cc-hero-stacked-image[data-image="3"].is-visible::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Keep the third image square with white border */
.cc-hero-stacked-image[data-image="3"] img {
    border-radius: 0;
    object-fit: contain;
    border: 1px solid white;
}

/* Staggered animations for individual content elements */
.cc-hero-panel-content .section-label {
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.1s;
}

.cc-hero-panel-headline {
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.2s;
}

.cc-hero-panel-description {
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.3s;
}

/* Hero panel CTA buttons use the .cta-btn-hero modifier for special fade-in animations */

/* Responsive typography to match Figma breakpoints */
@media (max-width: 767.98px) {
    .cc-hero-panel-content {
        padding: 32px 24px;
        gap: 16px;
    }

    /* Mobile-specific positioning for hero images container */
    .cc-hero-images-container {
        z-index: 15;
        position: relative;
        overflow: visible;
    }

    /* Adjust slide-up animation for mobile */
    .cc-hero-panel-content {
        /* Smaller slide distance on mobile for content */
        transform: translateY(80px);
    }

    .cc-hero-stacked-image {
        /* Smaller slide distance on mobile */
        transform: translateY(80px);
    }

    .cc-hero-stacked-image[data-image="2"] {
        transform: translateY(100px) scale(0.98);
    }

    .cc-hero-stacked-image[data-image="3"] {
        transform: translateY(120px) scale(0.96) rotate(1deg);
    }

    /* Ensure proper spacing between multi-panel hero and following sections on mobile */
    .cc-multi-panel-hero+#content {
        position: relative;
        z-index: 1;
    }

    .cc-multi-panel-hero+#content .cc-fullwidth-photo-section:first-child {
        margin-top: 0;
        position: relative;
        z-index: 1;
    }

    .cc-hero-panel-content .section-label {
        font-size: 11px;
        line-height: 11px;
        letter-spacing: 1.1px;
        margin-bottom: 16px;
    }

    .cc-hero-panel-content .section-label .icon-tc {
        font-size: 20px;
    }

    .cc-hero-panel-headline,
    .cc-hero-panel-italic {
        font-size: 32px;
        letter-spacing: -0.32px;
        margin-bottom: 16px;
    }

    .cc-hero-panel-emphasis {
        font-size: 28px;
        letter-spacing: -0.56px;
    }

    .cc-hero-panel-description {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .cc-hero-panel:not(:first-child) .cc-hero-panel-description {
        font-size: 14px;
    }

    /* Hero panel CTA buttons inherit mobile responsive styles from unified system */
    
    .cc-hero-images-container {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .cc-hero-panel-content {
        padding: 64px 40px;
        gap: 28px;
    }

    .cc-hero-panel-content .section-label {
        font-size: 12px;
        line-height: 12px;
        letter-spacing: 1.2px;
        margin-bottom: 28px;
    }

    .cc-hero-panel-content .section-label .icon-tc {
        font-size: 22px;
    }

    .cc-hero-panel-headline {
        font-size: 52px;
        letter-spacing: -0.52px;
        margin-bottom: 28px;
    }

    .cc-hero-panel-emphasis {
        font-size: 48px;
        letter-spacing: -0.72px;
    }

    .cc-hero-panel-description {
        font-size: 17px;
        margin-bottom: 50px;
    }

    .cc-hero-panel:not(:first-child) .cc-hero-panel-description {
        font-size: 15px;
    }

    /* Hero panel CTA buttons inherit tablet responsive styles from unified system */

    .cc-hero-images-container {
        display: none;
    }
}

@media (min-width: 1200px) {
    .cc-hero-panel-content {
        padding: 80px 60px;
    }

    .cc-hero-panel-headline {
        font-size: 54px;
    }

    .cc-hero-panel-emphasis {
        font-size: 54px;
    }
}

/* Land Acknowledgment Section styles moved to cc_2025_sections.css for reusability */



