/* =============================================================================
   De Polderhaan - "Over de Polderhaan" page stylesheet
   =============================================================================
   Styles specific to /nl/de-polderhaan/. Base tokens, header, footer and
   buttons come from base.css. This file adds:

     1. Hero split variant (title left + info card right)
     2. Reusable .split-block (two-column dark section with image + text)
   ============================================================================= */


/* =============================================================================
   1. HERO - split variant
   ============================================================================= */
.hero--split {
    /* Two-column layout laid over the background image. min-height/padding
       inherit from the base .hero rule in home.css — but since this page
       doesn't load home.css, re-declare only what's needed here. */
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-xl);
    color: var(--color-white);
    padding: calc(var(--header-height) + var(--space-lg))
             var(--space-xl)
             var(--space-xl);
    overflow: hidden;
}

/* Background image fills behind both columns. */
.hero--split .hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero--split .hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.55) 100%
    );
}

.hero--split .hero__content {
    position: relative;
    z-index: 1;
    align-self: start;
    text-align: left;
    padding-left: var(--space-xl);
    padding-top: var(--space-lg);
    order: 1;
}

.hero--split .hero__title {
    font-size: var(--fs-hero);
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    color: var(--color-white);
}

/* Dark translucent info card floating on the right side of the hero,
   anchored toward the bottom as a wide compact rectangle. */
.hero__card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    background-color: rgba(44, 44, 44, 0.9);
    color: var(--color-white);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 760px;
    justify-self: end;
    align-self: end;
    order: 2;
    margin-bottom: 0;
}
.hero__card .btn {
    align-self: flex-end;
}
.hero__card-heading {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--color-white);
    margin: 0 0 var(--space-xs) 0;
}
.hero__card-body {
    margin: 0 0 var(--space-md) 0;
    line-height: 1.5;
}


/* =============================================================================
   1b. INTRO - centered tagline with generous whitespace, same as home
   ============================================================================= */
.intro {
    padding: var(--space-xxl) 0;
    text-align: center;
    background: var(--color-white);
}
.intro__heading {
    color: var(--color-dark-bg);
    font-size: var(--fs-h1);
    margin: 0;
}
.intro__body {
    max-width: 640px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.75;
}


/* =============================================================================
   2. SPLIT BLOCK - reusable two-column dark section
   ============================================================================= */
.split-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--color-dark-bg);
    color: var(--color-white);
    min-height: 480px;
}

.split-block__text {
    padding: var(--space-xxl) var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-block__image {
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.split-block__heading {
    color: var(--color-orange);
    font-size: var(--fs-h2);
    margin-bottom: var(--space-md);
}

.split-block__body {
    max-width: 560px;
    margin-bottom: var(--space-md);
}

/* Buttons inside the block left-align by default. */
.split-block__text .btn {
    align-self: flex-start;
    margin-top: var(--space-md);
}

/* Reverse variant: image column first, text column second. */
.split-block--reverse .split-block__image {
    order: -1;
}


/* =============================================================================
   3. RESPONSIVE - collapse layouts on tablet and below
   ============================================================================= */
@media (max-width: 960px) {
    .hero--split {
        grid-template-columns: 1fr;
        min-height: 100vh;
        padding-left: var(--container-padding);
        padding-right: var(--container-padding);
    }
    .hero--split .hero__content {
        padding-left: 0;
        text-align: center;
        order: 0;
    }
    .hero__card {
        justify-self: stretch;
        max-width: 100%;
        order: 0;
    }

    .split-block {
        grid-template-columns: 1fr;
    }
    /* Image above text on mobile for both variants — reading order stays
       text-after-image which matches how these blocks are meant to scan. */
    .split-block__image {
        order: -1;
    }
}

@media (max-width: 560px) {
    .hero__card {
        padding: var(--space-lg);
    }
    .split-block__text {
        padding: var(--space-xl) var(--space-lg);
    }
}
