/* ==========================================================
   home-upgrade.css  -  laden NA main.css
   Doel: sterkere hero, bewijs, werkwijze, FAQ en slotactie.
   Effecten: alleen transform/opacity, geen extra bibliotheken.
   ========================================================== */

:root {
    --vd-brand: #3a3d78;
    --vd-brand-dark: #2b2e5e;
    --vd-ink: #1f2330;
    --vd-soft: #eef0f6;
    --vd-line: #d8dbe8;
}

/* Scherpere koppen: de tekstschaduw maakt ze wazig */
h1,
h2,
h3,
.feature-card h2 {
    text-shadow: none !important;
}

/* ---------- HERO ---------- */
.hero-title {
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    max-width: 18ch;
}

.hero-lead {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.6;
    max-width: 46ch;
    margin: 1.25rem 0 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.link-secondary {
    color: var(--vd-brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}
.link-secondary:hover,
.link-secondary:focus-visible {
    color: var(--vd-brand-dark);
}

.hero-proof {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
    margin: 2rem 0 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--vd-line);
    font-size: 0.95rem;
    color: var(--vd-ink);
}
.hero-proof li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hero-proof i {
    color: var(--vd-brand);
}

/* De afbeelding: tilt (via JS-variabelen) + glans die de cursor volgt */
.hero-image {
    position: relative;
    transform: perspective(1000px) translate3d(0, var(--py, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.25s ease-out;
    will-change: transform;
}
.hero-glare {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease-out;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.3), transparent 55%);
}
.hero-image:hover .hero-glare {
    opacity: 1;
}

/* ---------- Eén gestuurd laadmoment ----------
   Titel: alleen transform/clip-path (geen opacity), zodat de LCP snel blijft.
   'backwards' = na afloop geldt de gewone stijl weer (belangrijk voor de tilt). */
@keyframes vd-reveal {
    from {
        clip-path: inset(0 0 100% 0);
        transform: translateY(24px);
    }
    to {
        clip-path: inset(-10% -5% -10% -5%);
        transform: none;
    }
}
@keyframes vd-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes vd-image-in {
    from {
        transform: perspective(1000px) translateX(36px) rotateY(-6deg) scale(0.97);
    }
    to {
        transform: perspective(1000px) rotateX(0) rotateY(0);
    }
}

.hero-title {
    animation: vd-reveal 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.hero-lead {
    animation: vd-rise 0.6s 0.3s ease-out backwards;
}
.hero-actions {
    animation: vd-rise 0.6s 0.45s ease-out backwards;
}
.hero-proof {
    animation: vd-rise 0.6s 0.6s ease-out backwards;
}
.hero-image {
    animation: vd-image-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

/* ---------- Kenmerken: lager en compacter ---------- */
.features .feature-card {
    min-height: 0;
    padding: 28px 24px;
}

/* ---------- Projecten: eerlijke noot ---------- */
.portfolio-note {
    text-align: center;
    max-width: 60ch;
    margin: -0.5rem auto 1.75rem;
    padding: 0 20px;
    color: #555a6e;
    font-size: 0.95rem;
}
.portfolio-item p {
    font-size: 0.95rem;
}

/* ---------- Werkwijze (echt een volgorde, dus genummerd) ---------- */
.process,
.faq,
.cta-band {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 20px;
}
.process h2,
.faq h2 {
    text-align: center;
    color: var(--vd-brand);
    margin-bottom: 2.25rem;
}
.process-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    counter-reset: step;
}
.process-steps li {
    counter-increment: step;
    position: relative;
    padding: 1.25rem 0 0;
    border-top: 3px solid var(--vd-brand);
}
.process-steps li::before {
    content: counter(step);
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--vd-brand);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.process-steps h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    color: var(--vd-ink);
}
.process-steps p {
    margin: 0;
    line-height: 1.6;
    color: #444a5e;
}

/* ---------- FAQ (details/summary: geen JavaScript nodig) ---------- */
.faq {
    max-width: 760px;
}
.faq details {
    border-bottom: 1px solid var(--vd-line);
    padding: 1rem 0;
}
.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--vd-ink);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.faq summary::-webkit-details-marker {
    display: none;
}
.faq summary::after {
    content: "+";
    color: var(--vd-brand);
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.2s ease;
}
.faq details[open] summary::after {
    transform: rotate(45deg);
}
.faq details p {
    margin: 0.75rem 0 0;
    line-height: 1.65;
    color: #444a5e;
}

/* ---------- Slotactie ---------- */
.cta-band {
    text-align: center;
    background: var(--vd-soft);
    border-radius: 16px;
    margin-bottom: 64px;
}
.cta-band h2 {
    color: var(--vd-brand);
    margin-bottom: 0.75rem;
}
.cta-band p {
    max-width: 52ch;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* ---------- Logo-hover zonder JavaScript ---------- */
.logo img {
    transition: transform 0.3s ease;
}
.logo img:hover {
    transform: scale(1.05);
}

/* ---------- Toegankelijkheid ---------- */
a:focus-visible,
summary:focus-visible,
button:focus-visible {
    outline: 3px solid var(--vd-brand);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .hero-title {
        max-width: none;
    }
    .process,
    .faq,
    .cta-band {
        padding: 44px 20px;
    }
}

/* Respecteer wie animaties liever uit heeft */
@media (prefers-reduced-motion: reduce) {
    .hero-title,
    .hero-lead,
    .hero-actions,
    .hero-proof,
    .hero-image {
        animation: none;
    }
    .hero-image,
    .hero-glare,
    .logo img,
    .faq summary::after {
        transition: none;
    }
}

/* ==========================================================
   HERO-UPGRADE: groter beeld + zichtbaar effect
   ========================================================== */

/* Grotere hero: tekst iets smaller, afbeelding duidelijk groter */
@media (min-width: 900px) and (not ((max-width: 1024px) and (orientation: portrait))) {
    .hero {
        display: grid;
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
        gap: 3rem;
        align-items: center;
        max-width: 1400px;
        margin: 0 auto;
        padding-inline: 4vw;
    }
    .hero-image {
        width: 100%;
        max-width: none;
    }
    .hero-image img {
        width: 100%;
        height: auto;
        border-radius: 16px;
        box-shadow: 0 30px 60px -20px rgba(43, 46, 94, 0.45);
    }
    .hero-glare {
        border-radius: 16px;
    }
}

/* Zacht gloeiend licht achter de foto: het oog valt direct op het beeld */
.hero-glow {
    position: absolute;
    inset: -10% -8%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(closest-side, rgba(90, 96, 210, 0.55), rgba(90, 96, 210, 0) 72%);
    filter: blur(28px);
    animation: vd-glow 8s ease-in-out infinite alternate;
}
@keyframes vd-glow {
    from { transform: translate3d(-3%, -2%, 0) scale(0.96); }
    to   { transform: translate3d(3%, 3%, 0) scale(1.06); }
}

/* Rustig zweven van de foto */
@keyframes vd-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hero-image img {
    animation: vd-float 7s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .hero-glow,
    .hero-image img {
        animation: none;
    }
}

/* Logo: main.css gebruikt 'forwards', waardoor de animatie elke hover blokkeert.
   Met 'backwards' geldt na afloop weer de gewone stijl. */
.logo img {
    opacity: 1;
    animation: slideInFromLeft 1.2s ease-out backwards;
}
@media (prefers-reduced-motion: reduce) {
    .logo img {
        animation: none;
    }
}