/* Sections — dynamic content blocks on front page */

.ete-section {
    padding: var(--space-12) 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ete-section--has-bg {
    color: var(--color-text-inverse);
    position: relative;
}

.ete-section--has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(7, 39, 66, 0.65);
}

.ete-section--has-bg .container {
    position: relative;
    z-index: 1;
}

.ete-section--has-bg h1,
.ete-section--has-bg h2,
.ete-section--has-bg h3,
.ete-section--has-bg h4 {
    color: var(--color-text-inverse);
}

.ete-section--has-bg a {
    color: var(--color-light-blue);
}

/* Inner flex layout */
.ete-section__inner {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

/* Image column */
.ete-section__image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* Content column */
.ete-section__content h2 {
    font-size: var(--font-size-2xl);
}

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

/* Alternate section backgrounds */
.ete-section:nth-child(even):not(.ete-section--has-bg) {
    background-color: var(--color-bg-subtle);
}

/* Mobile: stack columns */
@media (max-width: 639px) {
    .ete-section {
        padding: var(--space-8) 0;
    }

    .ete-section__inner {
        flex-direction: column !important;
        gap: var(--space-6);
    }

    .ete-section__image,
    .ete-section__content {
        flex: 1 1 100% !important;
    }
}

@media (min-width: 640px) {
    .ete-section {
        padding: var(--space-16) 0;
    }
}
