/* === Page Shell === */

body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100dvh;
    background-color: var(--color-bg-darker);
}

/* === Container === */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-md);
}

.container--narrow {
    max-width: 800px;
}

/* === Full-Height Section === */

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-block: var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.section--auto {
    min-height: auto;
}

/* === Dark Sections === */

.section--dark {
    background: var(--gradient-dark);
    color: var(--color-text-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--color-text-on-dark);
}

.section--dark-teal {
    background: var(--gradient-dark-teal);
    color: var(--color-text-on-dark);
}

.section--dark-teal h1,
.section--dark-teal h2,
.section--dark-teal h3,
.section--dark-teal h4 {
    color: var(--color-text-on-dark);
}

/* === Light Sections === */

.section--light {
    background: var(--gradient-light);
    color: var(--color-text-primary);
}

/* === Glow Overlays === */

.section__glow-orange {
    position: absolute;
    inset: 0;
    background: var(--gradient-accent-glow);
    pointer-events: none;
}

.section__glow-teal {
    position: absolute;
    inset: 0;
    background: var(--gradient-teal-glow);
    pointer-events: none;
}

/* === Grid Utilities === */

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

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

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 767px) {
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .section {
        min-height: auto;
        padding-block: var(--space-2xl);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* === Flex Utilities === */

.flex {
    display: flex;
}

.flex--center {
    align-items: center;
    justify-content: center;
}

.flex--between {
    align-items: center;
    justify-content: space-between;
}

.flex--gap-sm {
    gap: var(--space-sm);
}

.flex--gap-md {
    gap: var(--space-md);
}
