/* ============================================
   STEKELBAARS - Landing Page
   ============================================ */

:root {
    --geel: #FEDB00;
    --zwart: #000000;
    --wit: #FFFFFF;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Calibri, 'Segoe UI', sans-serif;
    color: var(--zwart);
    background: var(--wit);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background: var(--geel);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 4vw, 4rem);
    overflow: hidden;
}

/* Logo linksboven */
.hero-logo {
    position: absolute;
    top: clamp(1.5rem, 3vw, 3rem);
    left: clamp(2rem, 4vw, 4rem);
    width: clamp(150px, 20vw, 280px);
    height: auto;
    opacity: 0;
    animation: logoFade 0.8s ease-out 0.2s forwards;
}

@keyframes logoFade {
    to { opacity: 1; }
}

/* Tagline - groot over hele scherm */
.hero-tagline {
    font-family: 'Barlow Semi Condensed', Calibri, sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 11vw, 10rem);
    text-transform: uppercase;
    color: var(--zwart);
    letter-spacing: -0.02em;
    line-height: 0.95;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 2rem;
}

.hero-tagline .line {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 2vw, 2rem);
    overflow: hidden;
    justify-content: flex-start;
}

/* Tekst links uitgelijnd */
.hero-tagline .line-text {
    display: block;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(40px);
    animation: lineSlideUp 0.7s ease-out forwards;
    flex-shrink: 0;
    text-align: left;
}

.hero-tagline .line:nth-child(1) .line-text { animation-delay: 0.5s; }
.hero-tagline .line:nth-child(2) .line-text { animation-delay: 0.7s; }
.hero-tagline .line:nth-child(3) .line-text { animation-delay: 0.9s; }
.hero-tagline .line:nth-child(4) .line-text { animation-delay: 1.1s; }

@keyframes lineSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Barcode/streepjes vullen de ruimte aan beide kanten */
.hero-tagline .line-barcode {
    overflow: hidden;
    opacity: 0;
    display: flex;
    align-items: center;
    min-width: 0;
}

/* Links: vaste breedte zodat tekst altijd op 1/3 begint */
.hero-tagline .line-barcode.left {
    width: 30%;
    flex-shrink: 0;
    animation: barcodeFromLeft 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

/* Rechts: vult de resterende ruimte */
.hero-tagline .line-barcode.right {
    flex: 1;
    animation: barcodeFromRight 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.hero-tagline .line:nth-child(1) .line-barcode { animation-delay: 1.0s; }
.hero-tagline .line:nth-child(2) .line-barcode { animation-delay: 1.2s; }
.hero-tagline .line:nth-child(3) .line-barcode { animation-delay: 1.4s; }
.hero-tagline .line:nth-child(4) .line-barcode { animation-delay: 1.6s; }

@keyframes barcodeFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    60% {
        opacity: 0.18;
        transform: translateX(5%);
    }
    100% {
        opacity: 0.15;
        transform: translateX(0);
    }
}

@keyframes barcodeFromRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    60% {
        opacity: 0.18;
        transform: translateX(-5%);
    }
    100% {
        opacity: 0.15;
        transform: translateX(0);
    }
}

.hero-tagline .line-barcode img {
    width: 100%;
    height: clamp(2.5rem, 8vw, 7rem);
    object-fit: cover;
}

/* Barcodes boven/onder tagline - alleen mobiel */
.hero-barcode-top,
.hero-barcode-bottom {
    display: none;
}

/* Pijl als scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
    z-index: 3;
    opacity: 0;
    animation: fadeIn 1s ease-out 2s forwards;
}

.scroll-indicator img {
    height: 35px;
    width: auto;
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(8px); opacity: 0.8; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ============================================
   WELKOMSTBANNER
   ============================================ */
.welkomst {
    background: var(--zwart);
    color: var(--wit);
    padding: 1.8rem 2rem;
    text-align: center;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.welkomst a {
    color: var(--geel);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.welkomst a:hover {
    border-bottom-color: var(--geel);
}

.welkomst-datum {
    font-family: 'Barlow Semi Condensed', Calibri, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   OVER SECTIE
   ============================================ */
.over {
    position: relative;
    padding: clamp(5rem, 10vw, 9rem) clamp(2rem, 8vw, 6rem);
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0 clamp(2.5rem, 5vw, 5rem);
    align-items: center;
}

.over-foto img {
    width: 100%;
    height: auto;
    display: block;
}

.over-tekst p {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.85;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.over-tekst p:last-of-type {
    margin-bottom: 0;
}

.over a {
    color: var(--zwart);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--geel);
    transition: background 0.3s;
}

.over a:hover {
    background: var(--geel);
}

/* ============================================
   DIENSTEN
   ============================================ */
.diensten {
    background: #808080;
    padding: clamp(5rem, 8vw, 8rem) clamp(2rem, 6vw, 4rem);
    position: relative;
    overflow: hidden;
}

/* Streepjespatroon als achtergrond decoratie */
.diensten::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../Huisstijl/stekelbaars_streepjes.png') repeat-x bottom;
    background-size: auto 60%;
    opacity: 0.04;
    pointer-events: none;
}

.diensten-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.dienst-card {
    background: var(--wit);
    padding: clamp(2rem, 3vw, 3rem);
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

.dienst-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--zwart);
    transition: height 0.4s ease;
}

.dienst-card:hover::after {
    height: 6px;
}

.dienst-card h3 {
    font-family: 'Barlow Semi Condensed', Calibri, sans-serif;
    font-weight: 700;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.2rem;
    color: var(--geel);
}

.dienst-card p {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    line-height: 1.75;
    color: #333;
}

/* Pijl accent bij dienst cards */
.dienst-card .card-pijl {
    width: 50px;
    height: auto;
    margin-top: 1.5rem;
    opacity: 0.15;
    transition: opacity 0.4s;
}

.dienst-card:hover .card-pijl {
    opacity: 0.4;
}

/* ============================================
   CRISISCOMMUNICATIE
   ============================================ */
.crisis {
    position: relative;
    background: var(--zwart);
    color: var(--wit);
    padding: clamp(5rem, 10vw, 8rem) clamp(2rem, 8vw, 6rem);
    overflow: hidden;
}

.crisis-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.crisis-label {
    font-family: 'Barlow Semi Condensed', Calibri, sans-serif;
    font-weight: 700;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--geel);
    margin-bottom: 1rem;
}

.crisis h2 {
    font-family: 'Barlow Semi Condensed', Calibri, sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.05;
    margin-bottom: 2rem;
}

.crisis p {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
}

.crisis a {
    color: var(--geel);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.crisis a:hover {
    border-bottom-color: var(--geel);
}

/* Barcode decoratie */
.crisis-barcode {
    position: absolute;
    top: 50%;
    right: clamp(2rem, 6vw, 6rem);
    transform: translateY(-50%);
    width: clamp(120px, 15vw, 220px);
    opacity: 0.06;
    pointer-events: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--geel);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 20px;
    width: auto;
}

.footer-contact {
    font-family: 'Barlow Semi Condensed', Calibri, sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.footer-contact a {
    color: var(--zwart);
    text-decoration: none;
    border-bottom: 2px solid var(--zwart);
    transition: border-color 0.3s, color 0.3s;
}

.footer-contact a:hover {
    color: var(--wit);
    border-color: var(--wit);
}

/* ============================================
   SCROLL ANIMATIES
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .over {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 4vw, 3rem) 0;
    }

    .over-foto {
        max-width: 400px;
    }

    .diensten-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 600px;
    }

    .crisis-barcode {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 1.5rem;
        justify-content: center;
        padding-top: 15vh;
    }

    .hero-logo {
        width: 180px;
        top: 2rem;
        left: 1.5rem;
    }

    /* Slogan veel groter op mobiel */
    .hero-tagline {
        font-size: clamp(3rem, 15vw, 5rem);
        margin-top: 0;
    }

    /* Inline barcodes verbergen op mobiel */
    .hero-tagline .line-barcode {
        display: none;
    }

    /* Barcodes boven en onder de tagline */
    .hero-barcode-top,
    .hero-barcode-bottom {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        width: 100%;
        overflow: hidden;
    }

    .hero-barcode-top img,
    .hero-barcode-bottom img {
        width: 100%;
        height: clamp(1.5rem, 5vw, 3rem);
        object-fit: cover;
        opacity: 0;
    }

    /* Boven: afwisselend van links en rechts */
    .hero-barcode-top img:nth-child(1) {
        animation: mobileBarcodeFromLeft 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) 0.3s forwards;
    }
    .hero-barcode-top img:nth-child(2) {
        animation: mobileBarcodeFromRight 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) 0.5s forwards;
    }
    .hero-barcode-top img:nth-child(3) {
        animation: mobileBarcodeFromLeft 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) 0.7s forwards;
    }

    /* Onder: afwisselend van rechts en links */
    .hero-barcode-bottom img:nth-child(1) {
        animation: mobileBarcodeFromRight 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) 1.4s forwards;
    }
    .hero-barcode-bottom img:nth-child(2) {
        animation: mobileBarcodeFromLeft 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) 1.6s forwards;
    }
    .hero-barcode-bottom img:nth-child(3) {
        animation: mobileBarcodeFromRight 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) 1.8s forwards;
    }

    @keyframes mobileBarcodeFromLeft {
        0% { opacity: 0; transform: translateX(-100%); }
        60% { opacity: 0.18; transform: translateX(5%); }
        100% { opacity: 0.15; transform: translateX(0); }
    }

    @keyframes mobileBarcodeFromRight {
        0% { opacity: 0; transform: translateX(100%); }
        60% { opacity: 0.18; transform: translateX(-5%); }
        100% { opacity: 0.15; transform: translateX(0); }
    }

    .hero-barcode-top {
        margin-bottom: 1rem;
    }

    .hero-barcode-bottom {
        margin-top: 1rem;
    }

    /* Foto sebas zelfde breedte als tekst */
    .over-foto {
        max-width: 100%;
    }

    .crisis h2 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .scroll-indicator img {
        height: 25px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-logo,
    .hero-tagline .line-text,
    .hero-tagline .line-barcode {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hero-tagline .line-barcode {
        opacity: 0.15;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .scroll-indicator {
        animation: none;
        opacity: 0.7;
    }

    .scroll-indicator img {
        animation: none;
    }
}
