/**
 * Sections CSS
 * Green Energy Career Night V4
 */

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + var(--space-12));
    padding-bottom: var(--space-12);
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary-pale) 0%, var(--color-white) 50%, var(--color-accent-pale) 100%);
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Removed dot pattern from hero - only used in When section */
.hero__background-pattern {
    display: none;
}

.hero__background-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.hero__background-shape--1 {
    top: 10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--color-primary-light);
}

.hero__background-shape--2 {
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--color-accent);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero__tagline {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-none);
    color: var(--color-gray-900);
    margin-bottom: var(--space-6);
    padding-top: var(--space-8);
}

.hero__tagline-highlight {
    color: var(--color-primary);
}

.hero__subtitle {
    font-size: var(--text-lg);
    line-height: var(--leading-snug);
    color: var(--color-gray-600);
    margin-bottom: var(--space-8);
}

.hero__badge {
    margin-bottom: var(--space-8);
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.hero__illustration {
    position: absolute;
    right: 0;
    bottom: 10%;
    width: 44%;
    height: auto;
    z-index: 0;
    pointer-events: none;
}

.hero__illustration svg {
    width: 100%;
    height: auto;
}

/* ===================================
   When Section
   =================================== */
.when {
    position: relative;
    background: var(--color-gray-50);
    overflow: hidden;
    padding-block: clamp(3rem, 5vw, 5rem);
}

/* Dot grid background */
.when::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--color-primary) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.when > .container {
    position: relative;
    z-index: 1;
}

.when__inner {
    display: grid;
    gap: var(--space-12);
    align-items: center;
}

.when__calendar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.when__ticketing-note {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--color-accent-pale);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-gray-800);
}

.when__ticketing-note svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
}

.when__schedule {
    padding: var(--space-8);
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.when__schedule-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-6);
    color: var(--color-gray-900);
}

.when__schedule-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.when__schedule-item {
    display: flex;
    gap: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-gray-100);
}

.when__schedule-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.when__schedule-time {
    flex-shrink: 0;
    width: 80px;
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    white-space: nowrap;
}

.when__schedule-activity {
    color: var(--color-gray-700);
}

/* ===================================
   Where Section
   =================================== */
.where {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3rem, 5vw, 5rem);
}

.where > .container {
    position: relative;
    z-index: 1;
}

.where__inner {
    display: grid;
    gap: var(--space-12);
}

.where__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.where__venue-name {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--color-gray-900);
}

.where__address {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    color: var(--color-gray-600);
}

.where__address svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    margin-top: 2px;
}

.where__description {
    color: var(--color-gray-600);
    line-height: var(--leading-relaxed);
}

.where__description p {
    margin-bottom: var(--space-4);
}

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

.where__map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    /* Mobile: 4:3 aspect ratio */
    aspect-ratio: 4/3;
}

.where__map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Desktop: match content height dynamically via JS */
@media (min-width: 768px) {
    .where__map {
        aspect-ratio: unset;
        height: 100%;
        min-height: 400px;
    }
}

/* ===================================
   Venue Parallax Gallery
   =================================== */
.venue-gallery {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: var(--space-4) 0;
    background: var(--color-gray-50);
}

.venue-gallery__track {
    display: flex;
    gap: var(--space-4);
    will-change: transform;
    cursor: grab;
    user-select: none;
    touch-action: pan-y pinch-zoom;
}

.venue-gallery__track:active {
    cursor: grabbing;
}

.venue-gallery__item {
    flex-shrink: 0;
    width: 600px;
    height: 360px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.venue-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.venue-gallery__item:hover img {
    transform: scale(1.05);
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .venue-gallery__item {
        width: 320px;
        height: 200px;
    }
}

/* Placeholder items when no images */
.venue-gallery__placeholder {
    flex-shrink: 0;
    width: 600px;
    height: 360px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--color-primary-pale) 0%, var(--color-accent-pale) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-weight: var(--font-semibold);
}

@media (max-width: 767px) {
    .venue-gallery__placeholder {
        width: 320px;
        height: 200px;
    }
}

/* ===================================
   How Section (Speed Dating)
   =================================== */
.how {
    position: relative;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-primary-pale) 100%);
    overflow: hidden;
    padding-block: clamp(3rem, 5vw, 5rem);
}

.how > .container {
    position: relative;
    z-index: 1;
}

.how__intro {
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
    margin-bottom: var(--space-16);
}

.how__intro-text {
    font-size: var(--text-xl);
    color: var(--color-gray-600);
    line-height: var(--leading-relaxed);
}

.how__intro-text p {
    margin-bottom: var(--space-4);
}

.how__intro-text p:last-child {
    margin-bottom: 0;
}

/* Arrow bullet styling for HOW intro WYSIWYG lists */
.how__intro-text ul {
    list-style: none;
    padding: 0;
    margin: var(--space-6) auto;
    display: inline-flex;
    flex-direction: column;
    gap: var(--space-2);
    text-align: left;
}

.how__intro-text ul li {
    position: relative;
    padding-left: var(--space-6);
    color: var(--color-gray-700);
    line-height: var(--leading-relaxed);
}

.how__intro-text ul li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: var(--font-bold);
}

.how__formats {
    display: grid;
    gap: var(--space-8);
    margin-bottom: var(--space-16);
}

.how__process {
    max-width: 700px;
    margin-inline: auto;
    margin-bottom: var(--space-16);
}

.how__process-title {
    text-align: center;
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-8);
    color: var(--color-gray-900);
}

.how__benefits {
    padding: var(--space-10);
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-16);
}

.how__benefits-title {
    text-align: center;
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-8);
    color: var(--color-gray-900);
}

.how__benefits-list {
    display: grid;
    gap: var(--space-4);
}

.how__benefit-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
}

.how__benefit-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-full);
}

.how__benefit-icon svg {
    width: 14px;
    height: 14px;
}

.how__benefit-text {
    color: var(--color-gray-700);
}

.how__stats {
    padding: var(--space-10);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-2xl);
    color: var(--color-white);
}

.how__stats .stats-grid {
    grid-template-columns: repeat(2, 1fr);
}

.how__stats .stat-number {
    color: var(--color-white);
}

.how__stats .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    position: relative;
    padding: var(--space-12) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    text-align: center;
    overflow: hidden;
}

.cta-section__background {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.cta-section__background-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--color-white) 1px, transparent 1px);
    background-size: 24px 24px;
}

.cta-section__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-inline: auto;
}

.cta-section__heading {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-6);
    color: var(--color-white);
}

.cta-section__description {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
}

.cta-section__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
}

/* ===================================
   Partners Section
   =================================== */
.partners {
    background: var(--color-gray-50);
}

.partners__inner {
    text-align: center;
}

.partners__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-1);
    margin-top: var(--space-8);
}

.partners__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6) var(--space-8);
}

.partners__item:last-child {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
}

.partners__item a {
    display: block;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all var(--transition-base);
}

.partners__item a:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partners__item img {
    max-height: 60px;
    width: auto;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    padding: var(--space-12) 0 var(--space-8);
    background: var(--color-gray-900);
    color: var(--color-gray-400);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
}

.footer-brand__logo {
    max-height: 60px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.footer-brand__text {
    max-width: 300px;
    line-height: var(--leading-relaxed);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
}

.footer-nav__link {
    font-size: var(--text-sm);
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
}

.footer-nav__link:hover {
    color: var(--color-white);
}

.footer-social {
    display: flex;
    gap: var(--space-4);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-gray-800);
    border-radius: var(--radius-full);
    color: var(--color-gray-400);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-gray-800);
    text-align: center;
}

.footer-copyright {
    font-size: var(--text-sm);
}

.site-credit {
    display: inline-block;
    margin-left: var(--space-2);
    padding-left: var(--space-2);
    border-left: 1px solid var(--color-gray-700);
}

.site-credit a {
    color: var(--color-gray-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.site-credit a:hover {
    color: var(--color-primary-light);
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
