/* =========================================================
   Home (home.php) — volgens het ontwerp "Home"
   ========================================================= */

.home {
    padding: 32px 0 0;
}

/* Grote foto over de volle breedte */
.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 640px;
    overflow: hidden;
    background: var(--hero);
}

.home-hero__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.home-hero__title {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0 var(--gutter);
    color: var(--paper);
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-align: center;
}

/* Gedeelde breedte voor alle blokken onder de hero */
.home-intro,
.home-cats,
.home-lessen,
.home-prints {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* Intro */
.home-intro {
    padding-top: 88px;
}

.home-intro__text {
    max-width: 780px;
    margin: 0 0 32px;
    font-size: 24px;
    line-height: 1.65;
    letter-spacing: -0.005em;
}

.home-btn {
    display: inline-block;
    padding: 16px 24px;
    background: var(--ink);
    color: var(--paper);
    font-size: 13px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 160ms ease;
}

.home-btn:hover {
    background: #333;
}

/* Drie categorieën */
.home-cats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding-top: 96px;
}

.home-cat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.home-cat img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: var(--placeholder);
    transition: opacity 160ms ease;
}

.home-cat:hover img {
    opacity: 0.88;
}

.home-cat span {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

/* Recente foto's */
.home-recent {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 96px var(--gutter) 0;
}

.home-recent h2 {
    margin: 0 0 24px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.home-recent__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-recent__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.home-recent__item img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: var(--placeholder);
}

.home-recent__item figcaption {
    font-size: 13px;
    line-height: 1.4;
    color: var(--muted);
}

/* Fotografieles */
.home-lessen {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 48px;
    padding-top: 96px;
}

.home-lessen__img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: var(--placeholder);
}

.home-lessen__text h2 {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.home-lessen__text p {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.6;
}

/* Prints-strook */
.home-prints {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-top: 96px;
    margin-bottom: 96px;
    padding-top: 48px;
}

.home-prints p {
    margin: 0;
    font-size: 15px;
}

.home-prints a {
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* De lijn loopt alleen over de inhoudsbreedte, niet over de zijmarge */
.home-prints {
    position: relative;
}

.home-prints::before {
    content: "";
    position: absolute;
    top: 0;
    left: var(--gutter);
    right: var(--gutter);
    border-top: 1px solid var(--line);
}

/* Responsief */
@media (max-width: 900px) {
    .home-hero {
        height: 480px;
    }

    .home-hero__title {
        font-size: 40px;
    }

    .home-intro {
        padding-top: 64px;
    }

    .home-intro__text {
        font-size: 20px;
    }

    .home-cats,
    .home-lessen,
    .home-recent {
        padding-top: 72px;
    }

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

    .home-lessen {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .home-prints {
        margin-top: 72px;
        margin-bottom: 72px;
    }
}

@media (max-width: 650px) {
    .home-hero {
        height: 360px;
    }

    .home-cats,
    .home-recent__grid {
        grid-template-columns: 1fr;
    }
}
