/* De secties van de one-page: hero, toegang, over, contact. */

/* ---------- Hero ---------- */

/*
 * Lichte, rustige hero: tekst links op een warm gebroken wit vlak, de foto
 * rechts die naar links toe vervaagt in dat vlak.
 */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 340px;
    padding: var(--space-5) 0;
    background-color: var(--color-bg-muted);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    width: 58%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 6%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%);
    mask-image: linear-gradient(90deg, transparent 0, #000 40%);
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__content::before {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    margin-bottom: var(--space-3);
    background-color: var(--color-gold);
}

.hero h1 {
    max-width: 12em;
    margin-bottom: var(--space-2);
    line-height: 1.12;
}

.hero__subtitle {
    max-width: 28rem;
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

@media (max-width: 860px) {
    /* Tekst bovenaan, foto eronder; de foto vervaagt aan de bovenkant. */
    .hero {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding: var(--space-5) 0 0;
    }

    .hero__content {
        order: 1;
    }

    .hero__bg {
        position: static;
        order: 2;
        width: 100%;
        height: 260px;
        margin-top: var(--space-3);
        object-position: 50% 8%;
        -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 45%);
        mask-image: linear-gradient(180deg, transparent 0, #000 45%);
    }
}

@media (max-width: 700px) {
    .hero {
        padding-top: var(--space-4);
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__bg {
        height: 220px;
    }
}

/* ---------- Toegang ---------- */

.section--access {
    padding-bottom: var(--space-5);
}

.section--access .section-title {
    margin-bottom: var(--space-3);
}

/* ---------- Over Garageportaal ---------- */

.section--about {
    background-color: var(--color-bg-muted);
}

.about {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: var(--space-6);
    align-items: center;
}

.about__lead {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-navy);
}

.about__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center 55%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

@media (max-width: 900px) {
    .about {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-5);
    }
}

/* ---------- Contact ---------- */

.contact__intro {
    max-width: 40rem;
    margin-bottom: var(--space-4);
}

.contact {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: var(--space-3);
    align-items: stretch;
}

@media (max-width: 900px) {
    .contact {
        grid-template-columns: minmax(0, 1fr);
    }
}
