/**
 * AH – Pagina Hero
 * Widget: dc-ah-pagehero
 *
 * Instelbare waarden komen binnen als custom properties via de Elementor
 * control-selectors; er staat niets inline in de PHP.
 */

.dc-ah-pagehero {
    --ah-accent: #b8845c;
    --ah-radius: 20px;
    --ah-overlay: 0.55;
    --ah-minh: 58vh;
    padding: 0 16px;
    display: block;
}

.dc-ah-pagehero .ah-ph__card {
    position: relative;
    min-height: var(--ah-minh);
    border-radius: var(--ah-radius);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: #14120f;
}

.dc-ah-pagehero .ah-ph__media { position: absolute; inset: 0; z-index: 0; }

.dc-ah-pagehero .ah-ph__bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    animation: ahPhKB 28s ease-in-out infinite alternate;
}

@keyframes ahPhKB {
    0%   { transform: scale(1); }
    100% { transform: scale(1.07); }
}

.dc-ah-pagehero .ah-ph__overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(
    150deg,
    rgba(20, 18, 16, min(var(--ah-overlay) + 0.25, 0.95)) 0%,
    rgba(20, 18, 16, var(--ah-overlay)) 50%,
    rgba(20,18,16,0.2) 100%
    );
}

.dc-ah-pagehero .ah-ph__inner {
    position: relative; z-index: 3;
    width: 100%; max-width: 1360px;
    margin: 0 auto;
    padding: 84px 56px 48px;
    display: grid;
    grid-template-columns: minmax(0,1fr) 300px;
    gap: 48px;
    align-items: end;
}

.dc-ah-pagehero.ah-ph--nomedia .ah-ph__inner { grid-template-columns: minmax(0,1fr); }

/* Breadcrumbs */
.dc-ah-pagehero .ah-ph__crumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    margin: 0 0 18px; padding: 0; list-style: none;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 11.5px; letter-spacing: .3px;
    opacity: 0; animation: ahPhUp .6s .1s ease forwards;
}
.dc-ah-pagehero .ah-ph__crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.dc-ah-pagehero .ah-ph__crumbs a { color: rgba(255,255,255,.55); text-decoration: none; transition: color .25s ease; }
.dc-ah-pagehero .ah-ph__crumbs a:hover { color: var(--ah-accent); }
.dc-ah-pagehero .ah-ph__crumbs span[aria-current] { color: rgba(255,255,255,.85); }
.dc-ah-pagehero .ah-ph__crumb-sep { color: rgba(255,255,255,.28); }

/* Eyebrow */
.dc-ah-pagehero .ah-ph__eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 11px; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--ah-accent);
    margin-bottom: 16px;
    opacity: 0; animation: ahPhUp .7s .2s ease forwards;
}
.dc-ah-pagehero .ah-ph__eyebrow-line {
    width: 28px; height: 1px; flex-shrink: 0;
    background: linear-gradient(90deg, var(--ah-accent), transparent);
}

.dc-ah-pagehero .ah-ph__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(30px, 3.9vw, 54px);
    font-weight: 400; line-height: 1.08;
    color: #fff; margin: 0 0 16px; max-width: 680px;
    opacity: 0; animation: ahPhUp .7s .32s ease forwards;
}
.dc-ah-pagehero .ah-ph__hl { font-style: italic; color: var(--ah-accent); }

.dc-ah-pagehero .ah-ph__desc {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 15px; line-height: 1.7;
    color: rgba(255,255,255,.6);
    max-width: 560px; margin: 0 0 28px;
    opacity: 0; animation: ahPhUp .7s .44s ease forwards;
}

.dc-ah-pagehero .ah-ph__actions {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    opacity: 0; animation: ahPhUp .7s .56s ease forwards;
}

.dc-ah-pagehero .ah-ph__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 30px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 13px; font-weight: 600; letter-spacing: .3px;
    text-decoration: none; border-radius: 100px;
    border: 1px solid transparent;
    transition: all .35s ease; white-space: nowrap;
}
.dc-ah-pagehero .ah-ph__btn svg { width: 14px; height: 14px; transition: transform .3s ease; }
.dc-ah-pagehero .ah-ph__btn:hover svg { transform: translateX(3px); }
.dc-ah-pagehero .ah-ph__btn--primary { background: var(--ah-accent); color: #fff; border-color: var(--ah-accent); }
.dc-ah-pagehero .ah-ph__btn--primary:hover {
    background: transparent; color: var(--ah-accent);
    transform: translateY(-2px); box-shadow: 0 8px 28px rgba(184,132,92,.25);
}
.dc-ah-pagehero .ah-ph__btn--ghost { background: transparent; color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.18); }
.dc-ah-pagehero .ah-ph__btn--ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }

/* Facts */
.dc-ah-pagehero .ah-ph__facts {
    display: flex; flex-wrap: wrap; gap: 28px;
    margin-top: 34px; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.1);
    opacity: 0; animation: ahPhUp .7s .68s ease forwards;
}
.dc-ah-pagehero .ah-ph__fact-value {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px; color: #fff; line-height: 1.1;
}
.dc-ah-pagehero .ah-ph__fact-label {
    display: block; margin-top: 4px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
    color: var(--ah-accent);
}

/* Side visual */
.dc-ah-pagehero .ah-ph__side {
    opacity: 0; animation: ahPhUp .8s .5s ease forwards;
}
.dc-ah-pagehero .ah-ph__side-card {
    background: rgba(255,255,255,.09);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px; overflow: hidden; padding: 12px;
    transition: transform .5s ease, box-shadow .5s ease;
}
.dc-ah-pagehero .ah-ph__side-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.dc-ah-pagehero .ah-ph__side-img {
    width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
    display: block; border-radius: 10px;
}
.dc-ah-pagehero .ah-ph__side-cap {
    display: block; padding: 12px 4px 4px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.5;
}
.dc-ah-pagehero .ah-ph__logo-card {
    background: #fff;
    border-radius: 16px; padding: 26px 22px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.dc-ah-pagehero .ah-ph__logo-img { max-width: 100%; max-height: 74px; width: auto; height: auto; display: block; }

/* Contactformulier in de zijkolom */
.dc-ah-pagehero.ah-ph--form .ah-ph__inner { grid-template-columns: minmax(0,1fr) 430px; }
.dc-ah-pagehero .ah-ph__form-card {
    /* Witte kaart: eigen inkt-tokens zodat alle onderdelen erop aansluiten. */
    --ah-form-ink: #1d1a17;
    --ah-form-ink-soft: rgba(45,38,32,.66);
    --ah-form-ink-mute: rgba(45,38,32,.5);
    --ah-form-line: rgba(20,18,16,.12);
    --ah-form-field: #f7f4f1;

    background: #fff;
    border: 1px solid rgba(20,18,16,.06);
    border-radius: 18px; padding: 28px 26px;
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.dc-ah-pagehero .ah-ph__form-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px; font-weight: 400; line-height: 1.2;
    color: var(--ah-form-ink); margin: 0 0 8px;
}
.dc-ah-pagehero .ah-ph__form-text {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 13.5px; line-height: 1.65;
    color: var(--ah-form-ink-soft); margin: 0 0 20px;
}
.dc-ah-pagehero .ah-ph__form-card .wpcf7-form > p,
.dc-ah-pagehero .ah-ph__form-card form > p { margin: 0 0 14px; font-family: system-ui, sans-serif; }
.dc-ah-pagehero .ah-ph__form-card label {
    display: block;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 11px; font-weight: 600; letter-spacing: .8px;
    text-transform: uppercase; color: var(--ah-form-ink-mute); margin-bottom: 6px;
}
.dc-ah-pagehero .ah-ph__form-card .wpcf7-form-control-wrap { display: block; }
.dc-ah-pagehero .ah-ph__form-card input[type="text"],
.dc-ah-pagehero .ah-ph__form-card input[type="email"],
.dc-ah-pagehero .ah-ph__form-card input[type="tel"],
.dc-ah-pagehero .ah-ph__form-card input[type="url"],
.dc-ah-pagehero .ah-ph__form-card select,
.dc-ah-pagehero .ah-ph__form-card textarea {
    width: 100%; box-sizing: border-box;
    padding: 12px 14px; margin-top: 3px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px; color: var(--ah-form-ink);
    background: var(--ah-form-field);
    border: 1px solid var(--ah-form-line); border-radius: 11px;
    outline: none; transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.dc-ah-pagehero .ah-ph__form-card select option { color: #2c2420; }
.dc-ah-pagehero .ah-ph__form-card textarea { min-height: 104px; resize: vertical; }
.dc-ah-pagehero .ah-ph__form-card input:focus,
.dc-ah-pagehero .ah-ph__form-card select:focus,
.dc-ah-pagehero .ah-ph__form-card textarea:focus {
    border-color: var(--ah-accent); background: #fff;
    box-shadow: 0 0 0 3px rgba(184,132,92,.18);
}
.dc-ah-pagehero .ah-ph__form-card input::placeholder,
.dc-ah-pagehero .ah-ph__form-card textarea::placeholder { color: rgba(45,38,32,.42); }

/* Checkbox-/radiorijen (bijv. akkoordverklaring) lezen als lopende tekst. */
.dc-ah-pagehero .ah-ph__form-card .wpcf7-list-item { margin: 0 16px 0 0; }
.dc-ah-pagehero .ah-ph__form-card .wpcf7-list-item label,
.dc-ah-pagehero .ah-ph__form-card .wpcf7-acceptance label {
    display: inline-flex; align-items: flex-start; gap: 8px;
    font-size: 12.5px; font-weight: 400; letter-spacing: 0;
    text-transform: none; color: var(--ah-form-ink-soft); margin-bottom: 0;
}
.dc-ah-pagehero .ah-ph__form-card input[type="checkbox"],
.dc-ah-pagehero .ah-ph__form-card input[type="radio"] {
    width: auto; margin: 2px 0 0; accent-color: var(--ah-accent); flex-shrink: 0;
}

.dc-ah-pagehero .ah-ph__form-card input[type="submit"],
.dc-ah-pagehero .ah-ph__form-card button[type="submit"] {
    appearance: none; cursor: pointer; width: 100%;
    margin-top: 4px; padding: 14px 30px;
    background: var(--ah-accent); color: #fff;
    border: 1px solid var(--ah-accent); border-radius: 100px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 13px; font-weight: 600; letter-spacing: .4px;
    transition: all .35s ease;
}
.dc-ah-pagehero .ah-ph__form-card input[type="submit"]:hover,
.dc-ah-pagehero .ah-ph__form-card button[type="submit"]:hover {
    background: transparent; color: var(--ah-accent);
    transform: translateY(-2px); box-shadow: 0 10px 26px rgba(184,132,92,.3);
}

.dc-ah-pagehero .ah-ph__form-card .wpcf7-not-valid-tip {
    font-family: system-ui, sans-serif; font-size: 12px;
    color: #b3261e; margin-top: 5px; text-transform: none; letter-spacing: 0;
}
.dc-ah-pagehero .ah-ph__form-card .wpcf7-response-output {
    margin: 16px 0 0 !important; padding: 12px 14px !important;
    border-radius: 11px; border-width: 1px !important;
    font-family: system-ui, sans-serif; font-size: 13px; line-height: 1.6;
    color: var(--ah-form-ink-soft); background: var(--ah-form-field);
}
.dc-ah-pagehero .ah-ph__form-card .wpcf7-spinner { margin: 0 0 0 12px; }

.dc-ah-pagehero .ah-ph__form-note {
    margin-top: 16px; padding-top: 14px;
    border-top: 1px solid var(--ah-form-line);
    font-family: system-ui, sans-serif;
    font-size: 11.5px; line-height: 1.6; color: var(--ah-form-ink-mute);
}
.dc-ah-pagehero .ah-ph__form-note p { font-family: inherit; font-size: inherit; line-height: inherit; color: inherit; margin: 0; }
.dc-ah-pagehero .ah-ph__form-note a { color: var(--ah-accent); text-decoration: underline; text-underline-offset: 3px; }

.dc-ah-pagehero .ah-ph__form-missing {
    font-family: system-ui, sans-serif; font-size: 13.5px;
    line-height: 1.6; color: var(--ah-form-ink-soft); margin: 0;
}

@keyframes ahPhUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
    .dc-ah-pagehero .ah-ph__inner { grid-template-columns: minmax(0,1fr) 240px; gap: 30px; padding: 76px 36px 40px; }
    .dc-ah-pagehero.ah-ph--form .ah-ph__inner { grid-template-columns: minmax(0,1fr) 350px; }
}
@media (max-width: 900px) {
    /* De vaste header is hier ~102px hoog; extra ruimte zodat het kruimelpad vrij blijft. */
    .dc-ah-pagehero .ah-ph__inner { grid-template-columns: minmax(0,1fr); padding: 128px 28px 36px; }
    .dc-ah-pagehero.ah-ph--form .ah-ph__inner { grid-template-columns: minmax(0,1fr); }
    .dc-ah-pagehero .ah-ph__side-card { max-width: 300px; }
    .dc-ah-pagehero .ah-ph__form-card { max-width: 520px; }
    .dc-ah-pagehero .ah-ph__card { min-height: 0; padding-top: 8px; }
}
@media (max-width: 640px) {
    .dc-ah-pagehero { padding: 8px; }
    .dc-ah-pagehero .ah-ph__card { border-radius: 16px; }
    .dc-ah-pagehero .ah-ph__inner { padding: 122px 20px 30px; }
    .dc-ah-pagehero .ah-ph__actions { flex-direction: column; align-items: stretch; }
    .dc-ah-pagehero .ah-ph__btn { justify-content: center; min-height: 48px; }
    .dc-ah-pagehero .ah-ph__facts { gap: 20px; }
    .dc-ah-pagehero .ah-ph__side-card { max-width: 100%; }
    .dc-ah-pagehero .ah-ph__form-card { max-width: 100%; padding: 22px 18px; border-radius: 16px; }
    .dc-ah-pagehero .ah-ph__form-card input[type="submit"] { min-height: 50px; }
}

/* Hoogte-varianten (control 'height') */
.dc-ah-pagehero--compact { --ah-minh: 44vh; }
.dc-ah-pagehero--medium  { --ah-minh: 58vh; }
.dc-ah-pagehero--tall    { --ah-minh: 72vh; }
