/* =========================================
   LAYOUT - Containers, Sections, Grid
   ========================================= */

.container {
    width: min(90vw, 1200px);
    margin: 0 auto;
}

.section {
    padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-shell {
    background: var(--surface-soft);
    border-radius: calc(var(--radius-lg) + 8px);
    border: 1px solid var(--dew-white-30);
    padding: clamp(2.75rem, 7vw, 4rem);
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: clamp(2rem, 6vw, 3.5rem);
    position: relative;
    z-index: 1;
}

.section-shell .section-header {
    background-color: var(--sage-green-90);
    border-radius: calc(var(--radius-lg) + 8px);
    backdrop-filter: blur(3px);
    padding: 1rem;
}

.section-header {
    text-align: center;
    color: var(--accent-contrast);
}

.section-header h2 {
    margin: 0 0 1rem;
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.section-header p {
    margin: 0 auto;
    max-width: 40rem;
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    color: var(--forest-mid);
}

/* Parallax scroll snap effects for sections */
.section.partners,
.section.testimonials,
.section.about,
.section.team,
.section.contact,
.section.services {
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: rgba(244, 249, 242, 0.5);
    scroll-snap-align: start;
    overflow: hidden;
    isolation: isolate;
    padding-top: clamp(6rem, 12vw, 9rem);
    padding-bottom: clamp(6rem, 12vw, 9rem);
}

.section.testimonials::before,
.section.about::before,
.section.team::before,
.section.contact::before,
.section.services::before {
    content: "";
    inset: 0;
    background: linear-gradient(180deg, rgba(1, 4, 10, 0.1), rgba(1, 4, 10, 0.5));
    z-index: -1;
}

.section.partners::after,
.section.testimonials::after,
.section.about::after,
.section.team::after,
.section.contact::after,
.section.services::after {
    content: "";
    inset: -20%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 60%);
    opacity: 0.35;
    animation: slow-pan 30s ease-in-out infinite;
    transform-origin: center;
    mix-blend-mode: soft-light;
    z-index: -2;
}

@keyframes slow-pan {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.1) translate(-2%, -2%);
    }

    100% {
        transform: scale(1) translate(0, 0);
    }
}