/**
 * Coemans Starter - main stylesheet
 *
 * Tokens below mirror the Design System in /CLAUDE.md.
 * If they drift, CLAUDE.md is the source of truth - re-sync from there.
 */

:root {
    /* Colors */
    --color-primary:        #191919;
    --color-primary-hover:  #343434;
    --color-accent-dark:    #A98E4E;
    --color-accent-light:   #E1C480;
    --color-bg:             #FFFFFF;
    --color-bg-alt:         #F3F3F3;
    --color-text-dark:      #666666;
    --color-text-light:     #AEAEAE;
    --color-text-white:     #FFFFFF;
    --color-text-muted:     #858585;
    --color-border:         #D3D3D3;
    --color-decorative:     #EBEBEB;

    /* Typography */
    --font-heading: 'Brygada 1918', serif;
    --font-body:    'Geist', sans-serif;

    --fs-h1:    4rem;        /* 64px */
    --fs-h2:    3rem;        /* 48px */
    --fs-h2-sm: 2.5rem;      /* 40px */
    --fs-h3:    2rem;        /* 32px */
    --fs-h3-sm: 1.75rem;     /* 28px */
    --fs-h4:    1.3125rem;   /* 21px */
    --fs-body:  1.0625rem;   /* 17px */
    --fs-small: 0.875rem;    /* 14px */

    --lh-tight:  1.2;
    --lh-normal: 1.5;

    --fw-regular:  400;
    --fw-semibold: 600;

    /* Spacing */
    --space-0:  0;
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.5rem;
    --space-6:  2rem;
    --space-8:  3rem;
    --space-10: 4rem;
    --space-12: 6rem;
    --space-14: 8rem;

    /* Layout */
    --container-max: 1496px;
    --container-pad: clamp(1rem, 0.1rem + 3vw, 2.5rem);
    --header-height: 128px;

    /* Radius */
    --radius-pill: 999px;

    /* Transitions */
    --transition-fast: 120ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 400ms ease;
}

/* The header is shorter on mobile (smaller logo + tighter padding); keep the
   overlay offset (--header-height) in sync so hero/section tops aren't pushed
   down. main.js refines this from the real header height on load + resize. */
@media (max-width: 1023px) {
    :root {
        --header-height: 88px;
    }
}

/* Breakpoints (reference values - CSS variables don't work inside @media).
   --bp-sm: 480px  --bp-md: 768px  --bp-lg: 1024px  --bp-xl: 1280px */

/* Box-sizing + base resets live in reset.css. */

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-normal);
    color: var(--color-text-dark);
    background: var(--color-bg);
    /* Stop sideways page scroll on mobile from elements that start off-screen
       (fade-left/right scroll animations start 24px out). `clip`, unlike
       `hidden`, doesn't create a scroll container, so position: sticky keeps
       working. */
    overflow-x: clip;
}
div#wpadminbar {
    display: none;
}
h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: var(--fw-regular);
    line-height: var(--lh-tight);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

h4 {
    font-family: var(--font-body);
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
    line-height: 1.4;
}

p {
    margin-bottom: var(--space-4);
}

a {
    color: var(--color-accent-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-light);
    text-decoration: underline;
}

hr {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: var(--space-6) 0;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-inline: var(--container-pad);
}

.container--narrow {
    max-width: 760px;
}
.hidden_label {
    display: none !important;
}

/* ---------------------------------------------------------------------------
   Accessibility helpers - visually-hidden text + keyboard skip link.
   --------------------------------------------------------------------------- */

/* Hidden visually, still announced by assistive tech. Used by the search
   form label (searchform.php) and the skip link below. */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* "Sla navigatie over": off-screen until a keyboard user tabs to it, then it
   pops in at the top-left above everything (drawer/overlay sit at z-index
   50-60, see header.css). */
.skip-link:focus {
    position: fixed;
    top: var(--space-2);
    left: var(--space-2);
    z-index: 100;
    width: auto;
    height: auto;
    margin: 0;
    padding: var(--space-3) var(--space-5);
    overflow: visible;
    clip: auto;
    background: var(--color-primary);
    color: var(--color-text-white);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    text-decoration: none;
}

/* ---------------------------------------------------------------------------
   Buttons - pill-shaped, fill + outline variants for primary and accent.
   --------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: var(--fw-regular);
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-base),
                color var(--transition-base),
                border-color var(--transition-base),
                transform var(--transition-base);
}

.btn:hover,
.btn:focus-visible {
    text-decoration: none;
    transform: translateY(-1px);
}

/* Primary - dark */
.btn--primary {
    background: var(--color-primary);
    color: var(--color-text-white);
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: var(--color-text-white);
}

.btn--primary-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--primary-outline:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: var(--color-text-white);
}

/* Accent - gold */
.btn--accent {
    background: var(--color-accent-dark);
    color: var(--color-text-white);
    border-color: var(--color-accent-dark);
}

.btn--accent:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
    color: var(--color-text-white);
}

.btn--accent-outline {
    background: transparent;
    color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
}

.btn--accent-outline:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
    color: var(--color-text-white);
}

/* Light outline - for use on dark backgrounds (e.g. footer) */
.btn--light-outline {
    background: transparent;
    color: var(--color-text-white);
    border-color: var(--color-text-white);
}

.btn--light-outline:hover {
    background: var(--color-text-white);
    border-color: var(--color-text-white);
    color: var(--color-primary);
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    .btn:hover,
    .btn:focus-visible {
        transform: none;
        transition: none;
    }
}

/* ---------------------------------------------------------------------------
   Flexible content blocks - dark / white / grey background variants.
   See "Block color logic" in CLAUDE.md.
   --------------------------------------------------------------------------- */
.block {
    padding: var(--space-10) 0;
}

.block + .block {
    padding-top: 0;
}

.block__heading {
    margin-bottom: var(--space-5);
}

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

/* Dark block */
.block--dark {
    background: var(--color-primary);
    color: var(--color-text-light);
}
.block--dark .block__heading,
.block--dark h1, .block--dark h2, .block--dark h3, .block--dark h4 {
    color: var(--color-accent-light);
}
.block--dark a {
    color: var(--color-accent-light);
}

/* White block (default) */
.block--white {
    background: var(--color-bg);
    color: var(--color-text-dark);
}
.block--white .block__heading,
.block--white h1, .block--white h2, .block--white h3 {
    color: var(--color-accent-dark);
}

/* Grey block */
.block--grey {
    background: var(--color-bg-alt);
    color: var(--color-text-dark);
}
.block--grey .block__heading,
.block--grey h1, .block--grey h2, .block--grey h3 {
    color: var(--color-primary);
}

/* FAQ ---------------------------------------------------------------------- */
.faq-list {
    border-top: 1px solid var(--color-border);
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5) 0;
    cursor: pointer;
    list-style: none;
    color: var(--color-accent-dark);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-h4);
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.faq-item__icon::before,
.faq-item__icon::after {
    content: "";
    position: absolute;
    background: var(--color-accent-dark);
    top: 50%;
    left: 50%;
    transition: transform var(--transition-base);
}

.faq-item__icon::before {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.faq-item__icon::after {
    width: 2px;
    height: 14px;
    transform: translate(-50%, -50%);
}

.faq-item[open] .faq-item__icon::after {
    transform: translate(-50%, -50%) scaleY(0);
}

.faq-item__answer {
    padding: 0 0 var(--space-5);
    color: var(--color-text-dark);
}

.faq-item__answer p:last-child {
    margin-bottom: 0;
}

/* Image + content ---------------------------------------------------------- */
.image-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    align-items: center;
}

@media (min-width: 768px) {
    .image-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-10);
    }
}

.image-content__media img {
    width: 100%;
    height: auto;
}

.image-content__text .block__heading {
    margin-bottom: var(--space-4);
}

.image-content__cta {
    margin-top: var(--space-5);
}

/* Image on the LEFT: media takes column 1, text column 2 (default order).
   Image on the RIGHT: flip via grid-column. */
@media (min-width: 768px) {
    .block--image-right .image-content__media  { grid-column: 2; grid-row: 1; }
    .block--image-right .image-content__text   { grid-column: 1; grid-row: 1; }
}

/* ---------------------------------------------------------------------------
   Cards - per CLAUDE.md: --color-bg-alt background, no shadow, no radius.
   --------------------------------------------------------------------------- */
.card {
    background: var(--color-bg-alt);
    padding: var(--space-5);
}

/* ---------------------------------------------------------------------------
   Forms - inputs use --color-border, focus ring uses --color-accent-dark.
   --------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
input[type="date"],
input[type="time"],
textarea,
select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-normal);
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--color-accent-dark);
    outline-offset: 2px;
    border-color: var(--color-accent-dark);
}

/* Site footer lives in assets/css/footer.css (enqueued separately). */
/* Builder block styles live in assets/css/builder.css (enqueued separately). */

/* ---------------------------------------------------------------------------
   Default hero - inner-page hero with title + subtitle + background image
   --------------------------------------------------------------------------- */
.default-hero {
    position: relative;
    height: 540px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--color-text-white);
    background: var(--color-primary);
    /* Extra top padding shifts the centered content visually lower
       so the title sits below center, not dead-center. */
    padding-top: calc(var(--header-height) + var(--space-12));
    padding-bottom: var(--space-6);
}

@media (max-width: 767px) {
    .default-hero {
        height: 420px;
    }
}

.default-hero__image,
.default-hero__overlay {
    position: absolute;
    inset: 0;
}

.default-hero__image {
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center;
    animation: hero-settle 2.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.default-hero__overlay {
    z-index: 1;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

.default-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.default-hero__title {
    margin: 0 auto var(--space-3);
    max-width: 900px;
    color: var(--color-text-white);
    font-family: var(--font-heading);
    font-weight: var(--fw-regular);
    /* 40px floor on phones, fluid up to 64px (--fs-h1) on desktop */
    font-size: clamp(2.5rem, 5vw + 1rem, var(--fs-h1));
    line-height: 1.15;
}

.default-hero__subtitle {
    margin: 0 auto;
    max-width: 720px;
    color: var(--color-accent-light);
    font-size: var(--fs-body);
    line-height: 1.5;
}

/* Hero "settle" zoom - shared by home hero (home.css) and default hero. */
@keyframes hero-settle {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .default-hero__image {
        animation: none;
    }
}

/* ---------------------------------------------------------------------------
   B&B page template - facilities card + gallery + booking shortcode
   --------------------------------------------------------------------------- */
.bb-detail {
    padding-block: var(--space-12);
}

.bb-detail__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
    align-items: start;
}

@media (min-width: 1024px) {
    .bb-detail__inner {
        grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
        gap: var(--space-8);
    }
}

/* Facilities card --------------------------------------------------------- */
.bb-card {
    background: var(--color-bg-alt);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
}

.bb-card__title {
    margin: 0 0 var(--space-5);
    color: var(--color-primary);
    font-size: var(--fs-h3);
}

.bb-card__list {
    list-style: none;
    margin: 0 0 var(--space-6);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.bb-card__item {
    position: relative;
    padding-left: var(--space-5);
    color: var(--color-text-dark);
    font-size: var(--fs-body);
    line-height: 1.5;
}

.bb-card__item::before {
    content: '\2713'; /* ✓ */
    position: absolute;
    left: 0;
    top: 0.15em;
    color: var(--color-accent-dark);
    font-weight: var(--fw-semibold);
}

/* Price + breakfast on the same line */
.bb-card__price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.bb-card__price {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    color: var(--color-primary);
    font-family: var(--font-heading);
    line-height: 1.2;
}

.bb-card__price-amount {
    font-size: var(--fs-h2);
}

.bb-card__price-unit {
    /* color: var(--color-text-muted); */
    font-family: var(--font-body);
    /* font-size: var(--fs-small); */
    text-transform: lowercase;
}

.bb-card__breakfast {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: #1f9d55; /* green */
    font-size: var(--fs-small);
    padding-bottom: 8px;
}

.bb-card__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
    color: inherit;
    font-weight: var(--fw-semibold);
}

/* "vanaf" prefix before the headline price */
.bb-card__price-prefix {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    color: var(--color-text-dark);
    text-transform: lowercase;
}

/* Per-occupancy rate list (Prijzen per nacht) */
.bb-card__rates {
    margin-bottom: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}

.bb-card__rates-title {
    margin: 0 0 var(--space-3);
    font-family: var(--font-body);
    font-size: var(--fs-small);
    color: var(--color-text-dark);
}

.bb-card__rates-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.bb-card__rate {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-border);
}

.bb-card__rate:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.bb-card__rate-label {
    color: var(--color-text-dark);
    font-size: var(--fs-body);
}

.bb-card__rate-price {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: var(--fs-h4);
    white-space: nowrap;
}

.bb-card__button {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    text-align: center;
}

.bb-card__button-icon {
    display: inline-flex;
    color: inherit;
}

.bb-card__button-icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

/* Gallery ---------------------------------------------------------------- */
.bb-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.bb-gallery__main {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.bb-gallery__link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    line-height: 0;
}

.bb-gallery__link:hover {
    text-decoration: none;
}

.bb-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bb-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-2);
}

.bb-gallery__thumb {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    position: relative;
}

.bb-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-base);
}

.bb-gallery__thumb:hover img {
    transform: scale(1.04);
}

/* "+N" overlay on the last thumbnail when more photos are in the lightbox */
.bb-gallery__more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: var(--color-text-white);
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    line-height: 1;
    pointer-events: none;
    transition: background-color var(--transition-base);
}

.bb-gallery__thumb:hover .bb-gallery__more {
    background: rgba(0, 0, 0, 0.4);
}

/* Booking section -------------------------------------------------------- */
.bb-booking {
    position: relative;
    background: var(--color-bg-alt);
    padding-block: var(--space-12);
    overflow: hidden;
}

/* Decorative twirl behind the booking widget. Centered via margin offsets so
   the keyframe transforms can drift freely without fighting a centering
   translate. */
.bb-booking::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 1315px;
    height: 430px;

    background: url('../img/booking-twirl.svg') no-repeat center / contain;
    pointer-events: none;
    z-index: 0;
    animation: booking-twirl-drift 16s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes booking-twirl-drift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(28px, -12px) scale(1.025);
        opacity: 0.85;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bb-booking::before {
        animation: none;
    }
}

.bb-booking__inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.bb-booking__title {
    margin: 0 0 var(--space-8);
    color: var(--color-primary);
    font-size: var(--fs-h2);
}

.bb-booking__widget {
    max-width: 1024px;
    margin: 0 auto;
    text-align: left;
}

@media (max-width: 767px) {
    .bb-gallery__thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------------------------------------------------------------------------
   Contact page template
   --------------------------------------------------------------------------- */
.contact-section {
    position: relative;
    background: var(--color-bg-alt);
    /* No padding here on purpose - children (info + form) carry the vertical
       padding so the form column's white bg fills the section top-to-bottom. */
    overflow-x: clip; /* contain the form column's right-edge bleed */
}

.contact-section__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    /* align-items: stretch is the default - lets the form column's
       white bg fill the full height of the grid row. */
}

@media (min-width: 1024px) {
    .contact-section__inner {
        /* Form column is ~1.5x wider than the info column */
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
        gap: var(--space-10);
    }

    /* Info content is intentionally indented from the container edge -
       the design calls for empty space to the left of this column, so it
       does NOT line up with the header logo. */
    .contact-info {
        padding-left: var(--space-10);
    }
}

/* Contact info column ---------------------------------------------------- */
.contact-info {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    padding-block: var(--space-12);
}

/* Decorative twirl in the top-right corner of the info (grey) column. */
.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 480px;
    height: 273px;
    background: url('../img/contact-twirl.svg') no-repeat top right / contain;
    pointer-events: none;
    z-index: -1;
}

.contact-info__title {
    margin: 0;
    color: var(--color-primary);
    font-size: var(--fs-h3-sm);
}

.contact-info__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.contact-info__item {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: var(--space-3);
    align-items: start;
    color: var(--color-text-dark);
}

.contact-info__icon {
    display: inline-flex;
    align-items: center;
    color: var(--color-accent-dark);
    margin-top: 2px;
}

.contact-info__icon svg {
    display: block;
}

.contact-info__text {
    display: flex;
    flex-direction: column;
    color: var(--color-text-dark);
    font-size: var(--fs-body);
    line-height: 1.5;
}

a.contact-info__text:hover {
    color: var(--color-accent-dark);
    text-decoration: none;
}

/* Opening hours ---------------------------------------------------------- */
.contact-info__hours-title {
    margin: var(--space-3) 0 0;
    color: var(--color-primary);
    font-size: var(--fs-h3-sm);
}

.contact-info__hours {
    display: grid;
    grid-template-columns: minmax(80px, max-content) 1fr;
    gap: var(--space-2) var(--space-6);
    margin: 0;
    color: var(--color-text-dark);
}

.contact-info__hours dt {
    margin: 0;
    color: var(--color-text-dark);
}

.contact-info__hours dd {
    margin: 0;
    color: var(--color-text-dark);
}

.contact-info__hours-extra {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 17px;
}

/* Feestzaal card --------------------------------------------------------- */
.contact-feest {
    position: relative;
    display: block;
    margin-top: var(--space-4);
    aspect-ratio: 4 / 2.5;
    overflow: hidden;
    color: var(--color-text-white);
    background: var(--color-primary);
    isolation: isolate;
}

.contact-feest:hover {
    color: var(--color-text-white);
    text-decoration: none;
}

.contact-feest__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transition: transform var(--transition-base);
}

.contact-feest:hover .contact-feest__image {
    transform: scale(1.03);
}

.contact-feest::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 0;
    pointer-events: none;
}

.contact-feest__label {
    position: absolute;
    left: var(--space-5);
    right: var(--space-5);
    bottom: var(--space-5);
    z-index: 1;
    /* Reserve room on the right so the title wraps to two lines instead of
       running under the arrow pinned to the bottom-right corner. */
    padding-right: var(--space-10);
    font-family: var(--font-body);
    font-weight: var(--fw-regular);
    font-size: var(--fs-h3-sm);
    line-height: 1.2;
}

/* Gold long arrow pinned to the bottom-right corner, aligned with the lower
   text line. The SVG is masked so it picks up the accent token as its fill. */
.contact-feest__label::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: var(--space-1);
    width: 48px;
    height: 16px;
    background-color: var(--color-accent-light);
    -webkit-mask: url('../img/arrow-right.svg') no-repeat center / contain;
            mask: url('../img/arrow-right.svg') no-repeat center / contain;
    transition: transform var(--transition-base);
}

.contact-feest:hover .contact-feest__label::after {
    transform: translateX(4px);
}

/* Form column ------------------------------------------------------------ */
.contact-form {
    position: relative;
    background: var(--color-bg);
    /* Vertical padding matches .contact-info so the form's white bg fills
       the section top-to-bottom without leaving grey strips above/below. */
    padding: var(--space-12) var(--space-14);
}

/* Extend the white background past the container, all the way to the
   right edge of the viewport. .contact-section has `overflow-x: clip`
   to prevent the bleed from creating a horizontal scrollbar. */
.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: 100vw;
    background: inherit;
}

@media (max-width: 1023px) {
    .contact-info {
        padding-block: var(--space-8) var(--space-4);
    }
    .contact-form {
        padding: var(--space-6);
    }
    .contact-form::before {
        display: none; /* no bleed on stacked mobile layout */
    }
}

.contact-form__title {
    margin: 0 0 var(--space-5);
    color: var(--color-primary);
    font-size: var(--fs-h2-sm);
}

/* Style the Gravity Forms submit button to match our .btn--accent pill. */
:is(.contact-form, .form-section) .gform_button,
:is(.contact-form, .form-section) button[type="submit"],
:is(.contact-form, .form-section) input[type="submit"] {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: var(--fw-regular);
    line-height: 1.2;
    background: var(--color-accent-dark);
    border: 1px solid var(--color-accent-dark);
    color: var(--color-text-white);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-base),
                color var(--transition-base),
                border-color var(--transition-base),
                transform var(--transition-base);
}

:is(.contact-form, .form-section) .gform_button:hover,
:is(.contact-form, .form-section) button[type="submit"]:hover,
:is(.contact-form, .form-section) input[type="submit"]:hover,
:is(.contact-form, .form-section) .gform_button:focus-visible,
:is(.contact-form, .form-section) button[type="submit"]:focus-visible,
:is(.contact-form, .form-section) input[type="submit"]:focus-visible {
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
    color: var(--color-text-white);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Gravity Forms field labels: match body type, keep them above inputs. */
:is(.contact-form, .form-section) .gfield_label {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

:is(.contact-form, .form-section) .gform_footer {
    margin-top: var(--space-5);
}

/* GF structure. Gravity Forms' own CSS is turned off (see functions.php) so
   the global input styling above applies cleanly; these rules cover the
   structural bits GF used to provide. Scoped to the two form wrappers, and
   using only design tokens - no invented colours, no !important. */
:is(.contact-form, .form-section) .gform_wrapper {
    margin: 0;
}

/* Field list: GF outputs a <ul> (older) or grid <div> (2.5+); strip list
   chrome and give one consistent gap between fields. */
:is(.contact-form, .form-section) .gform_fields {
    list-style: none;
    margin: 0;
    padding: 0;
}

:is(.contact-form, .form-section) .gfield + .gfield {
    margin-top: var(--space-5);
}

:is(.contact-form, .form-section) .gform_wrapper textarea {
    min-height: 160px;
    resize: vertical;
}

/* Required asterisk in brand accent rather than the browser/GF red. */
:is(.contact-form, .form-section) .gfield_required {
    margin-left: 2px;
    color: var(--color-accent-dark);
}

:is(.contact-form, .form-section) .gfield_description {
    margin-top: var(--space-2);
    color: var(--color-text-dark);
    font-size: var(--fs-small);
}

/* Checkboxes / radios sit inline with their label. */
:is(.contact-form, .form-section) .gfield_checkbox,
:is(.contact-form, .form-section) .gfield_radio {
    list-style: none;
    margin: 0;
    padding: 0;
}

:is(.contact-form, .form-section) .gchoice {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

:is(.contact-form, .form-section) .gchoice input {
    width: auto;
}

/* Validation: spacing + size only. The design system defines no error colour,
   so message colour is left to inherit (ask before adding a red token). */
:is(.contact-form, .form-section) .validation_message,
:is(.contact-form, .form-section) .gform_validation_errors {
    margin-top: var(--space-2);
    font-size: var(--fs-small);
}

/* ---------------------------------------------------------------------------
   Motion One animation setup
   Hides [data-animate] / [data-animate-on-scroll] elements before JS runs.
   The `.has-motion` class is added by main.js once Motion is loaded, so
   browsers without JS keep everything visible.
   --------------------------------------------------------------------------- */
.has-motion [data-animate],
.has-motion [data-animate-on-scroll] {
    opacity: 0;
}

.has-motion [data-animate="fade-up"],
.has-motion [data-animate-on-scroll="fade-up"] {
    transform: translateY(24px);
}

.has-motion [data-animate="fade-down"],
.has-motion [data-animate-on-scroll="fade-down"] {
    transform: translateY(-24px);
}

.has-motion [data-animate="fade-left"],
.has-motion [data-animate-on-scroll="fade-left"] {
    transform: translateX(24px);
}

.has-motion [data-animate="fade-right"],
.has-motion [data-animate-on-scroll="fade-right"] {
    transform: translateX(-24px);
}

.has-motion [data-animate="zoom-in"],
.has-motion [data-animate-on-scroll="zoom-in"] {
    transform: scale(0.92);
}

@media (prefers-reduced-motion: reduce) {
    .has-motion [data-animate],
    .has-motion [data-animate-on-scroll] {
        opacity: 1;
        transform: none;
    }
}

/* ---------------------------------------------------------------------------
   404 page - dark block, centred (header overlays the top of the section)
   --------------------------------------------------------------------------- */
.error-404__section {
    display: flex;
    align-items: center;
    min-height: min(100vh, 780px);
    /* .site-main is pulled up by --header-height, so add it twice: once to
       cancel the pull-up, once to clear the header itself. */
    padding: calc(var(--header-height) * 2 + var(--space-10)) 0 var(--space-12);
    background: var(--color-primary);
}

.error-404__content {
    text-align: center;
}

.error-404__code {
    margin: 0 0 var(--space-2);
    color: var(--color-accent-light);
    font-family: var(--font-heading);
    font-weight: var(--fw-regular);
    font-size: clamp(5rem, 14vw, 10rem);
    line-height: 1;
}

.error-404__title {
    margin: 0 auto var(--space-4);
    max-width: 900px;
    color: var(--color-text-white);
    font-family: var(--font-heading);
    font-weight: var(--fw-regular);
    font-size: clamp(2rem, 4vw + 1rem, var(--fs-h2));
    line-height: 1.2;
}

.error-404__text {
    margin: 0 auto var(--space-6);
    max-width: 560px;
    color: var(--color-text-light);
}

.error-404__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
}

.gform_wrapper .gform_validation_container,
.gform_validation_container {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
}