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

/* ── Wrapper: kaart op lichte achtergrond ── */
.dc-ah-hero {
    --ah-accent: #b8845c;
    --ah-radius: 20px;
    --ah-overlay: 0.35;
    padding: 0px 16px;
}

.dc-ah-hero .ah-hero__card {
    position: relative;
    min-height: 88vh;
    border-radius: var(--ah-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* ── Media Layer ── */
.dc-ah-hero .ah-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.dc-ah-hero .ah-hero__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: ahKB 25s ease-in-out infinite alternate;
}

.dc-ah-hero .ah-hero__bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes ahKB {
    0%   { transform: scale(1); }
    100% { transform: scale(1.06); }
}

/* ── Overlay ── */
.dc-ah-hero .ah-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
    160deg,
    rgba(20, 18, 16, min(var(--ah-overlay) + 0.25, 0.95)) 0%,
    rgba(20, 18, 16, var(--ah-overlay)) 45%,
    rgba(20,18,16, 0.15) 100%
    );
    z-index: 1;
}

/* ── Content grid ── */
.dc-ah-hero .ah-hero__inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 60px 56px 56px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: end;
}

/* ── Left: Content ── */
.dc-ah-hero .ah-hero__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: 20px;
    opacity: 0;
    animation: ahUp 0.7s 0.15s ease forwards;
}

.dc-ah-hero .ah-hero__eyebrow-flame {
    width: 16px;
    height: 16px;
    color: var(--ah-accent);
    flex-shrink: 0;
    animation: ahEyebrowFlame 3s ease-in-out infinite;
}

@keyframes ahEyebrowFlame {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.dc-ah-hero .ah-hero__eyebrow-line {
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, var(--ah-accent), transparent);
    flex-shrink: 0;
}

.dc-ah-hero .ah-hero__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(34px, 4.5vw, 64px);
    font-weight: 400;
    line-height: 1.08;
    color: #fff;
    margin: 0 0 18px;
    max-width: 600px;
    opacity: 0;
    animation: ahUp 0.7s 0.3s ease forwards;
}

.dc-ah-hero .ah-hero__hl {
    font-style: italic;
    color: var(--ah-accent);
}

.dc-ah-hero .ah-hero__desc {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14.5px;
    line-height: 1.65;
    color: rgba(255,255,255,0.55);
    max-width: 440px;
    margin: 0 0 32px;
    opacity: 0;
    animation: ahUp 0.7s 0.45s ease forwards;
}

.dc-ah-hero .ah-hero__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: ahUp 0.7s 0.6s ease forwards;
}

.dc-ah-hero .ah-hero__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: 0.3px;
    text-decoration: none;
    border-radius: 100px;
    border: 1px solid transparent;
    transition: all 0.35s ease;
    white-space: nowrap;
}

.dc-ah-hero .ah-hero__btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.dc-ah-hero .ah-hero__btn:hover svg { transform: translateX(3px); }

.dc-ah-hero .ah-hero__btn--primary {
    background: var(--ah-accent);
    color: #fff;
    border-color: var(--ah-accent);
}

.dc-ah-hero .ah-hero__btn--primary:hover {
    background: transparent;
    color: var(--ah-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(184,132,92,0.25);
}

.dc-ah-hero .ah-hero__btn--ghost {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.18);
}

.dc-ah-hero .ah-hero__btn--ghost:hover {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.08);
}

/* ── Right: Floating Card ── */
.dc-ah-hero .ah-hero__float {
    opacity: 0;
    animation: ahUp 0.8s 0.5s ease forwards;
}

.dc-ah-hero .ah-hero__float-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.dc-ah-hero .ah-hero__float-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Card header: tags */
.dc-ah-hero .ah-hero__float-top {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dc-ah-hero .ah-hero__float-location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
}

.dc-ah-hero .ah-hero__float-location svg {
    width: 11px;
    height: 11px;
    color: var(--ah-accent);
}

.dc-ah-hero .ah-hero__float-tag {
    padding: 5px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
}

/* Card image / video */
.dc-ah-hero .ah-hero__float-img-wrap {
    margin: 0 16px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #0e0b09;
}

.dc-ah-hero .ah-hero__float-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.dc-ah-hero .ah-hero__float-video {
    width: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.dc-ah-hero .ah-hero__float-card:hover .ah-hero__float-img,
.dc-ah-hero .ah-hero__float-card:hover .ah-hero__float-video {
    transform: scale(1.05);
}

/* Card footer */
.dc-ah-hero .ah-hero__float-bottom {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dc-ah-hero .ah-hero__float-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
}

.dc-ah-hero .ah-hero__float-sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--ah-accent);
    letter-spacing: 0.5px;
}

/* ── Animations ── */
@keyframes ahUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .dc-ah-hero .ah-hero__inner {
        grid-template-columns: 1fr 300px;
        gap: 32px;
        padding: 50px 40px 44px;
    }
}

@media (max-width: 900px) {
    .dc-ah-hero .ah-hero__inner {
        grid-template-columns: 1fr;
        /* Extra ruimte bovenaan: de header ligt absoluut over de hero
        heen, dus de content moet daaronder beginnen. */
        padding: 120px 32px 36px;
    }

.dc-ah-hero .ah-hero__card { min-height: 80vh; }

.dc-ah-hero .ah-hero__float-card {
    max-width: 320px;
}

}

@media (max-width: 640px) {
    .dc-ah-hero { padding: 8px; }
    .dc-ah-hero .ah-hero__card { min-height: 85vh; border-radius: 16px; }
    .dc-ah-hero .ah-hero__inner { padding: 104px 20px 28px; }
    .dc-ah-hero .ah-hero__actions { flex-direction: column; align-items: stretch; }
    .dc-ah-hero .ah-hero__btn { justify-content: center; min-height: 48px; padding: 14px 24px; }
    .dc-ah-hero .ah-hero__float-card { max-width: 100%; }
    .dc-ah-hero .ah-hero__scroll { display: none; }
    .dc-ah-hero .ah-hero__desc { font-size: 14px; }
    .dc-ah-hero .ah-hero__float-top { padding: 12px 14px; }
    .dc-ah-hero .ah-hero__float-bottom { padding: 12px 14px; }
}

/* ── Scroll Indicator: vlam/haard motief ── */
.dc-ah-hero .ah-hero__scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: ahFade 1s 1.2s ease forwards;
}

.dc-ah-hero .ah-hero__scroll-icon {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: ahScrollFloat 3s ease-in-out infinite;
}

.dc-ah-hero .ah-hero__scroll-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Vlam SVG in de scroll indicator */
.dc-ah-hero .ah-hero__scroll-flame {
    width: 14px;
    height: 14px;
    color: var(--ah-accent);
    opacity: 0.8;
    animation: ahFlameFlicker 2s ease-in-out infinite;
}

.dc-ah-hero .ah-hero__scroll-text {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #FFFFFF;
}

.dc-ah-hero .ah-hero__scroll-line {
    width: 1px;
    height: 28px;
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
}

.dc-ah-hero .ah-hero__scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--ah-accent), transparent);
    animation: ahScrollDrop 2.5s ease-in-out infinite;
}

@keyframes ahScrollFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes ahFlameFlicker {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    25% { opacity: 1; transform: scale(1.1) rotate(-3deg); }
    50% { opacity: 0.7; transform: scale(0.95) rotate(2deg); }
    75% { opacity: 1; transform: scale(1.05) rotate(-1deg); }
}

@keyframes ahScrollDrop {
    0%   { top: -100%; }
    50%  { top: 0; }
    100% { top: 100%; }
}

@keyframes ahFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Responsive: scroll-indicator ──
Deze regel staat bewust NA de basisstijl van .ah-hero__scroll.
De media query hierboven (max-width: 640px) heeft dezelfde
specificiteit, dus die werd overschreven door de later
gedeclareerde `display: flex`. In de gestapelde layout (<= 900px)
valt de indicator over de float-card heen, dus verbergen we hem. */
@media (max-width: 900px) {
    .dc-ah-hero .ah-hero__scroll { display: none; }
}
