/* ═══════════════════════════════════════
   HRIT — Responsive CSS
   Mobile-first, max-width: 768px
═══════════════════════════════════════ */

/* ── Desktop: dropdown bij hover ── */
@media screen and (min-width: 769px) {
    .dropdown:hover .submenu { display: block; }
    .navbar img { width: 10%; height: auto; }
}

/* ══════════════════════════════════════
   NAVBAR & HAMBURGER
══════════════════════════════════════ */
@media screen and (max-width: 768px) {
    body { overflow-x: hidden; }

    .navbar {
        padding: 12px 5%;
        justify-content: space-between;
    }
    .navbar img {
        width: 120px;
        height: auto;
    }
    .hamburger {
        display: block;
        z-index: 1002;
        position: absolute;
        left: 20px;
        right: auto;
        top: 50%;
        transform: translateY(-50%);
    }
    .hamburger.active div:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active div:nth-child(2) { opacity: 0; }
    .hamburger.active div:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Side menu - van links */
    .menu {
        position: fixed;
        top: 0;
        left: -100%;
        right: auto;
        height: 100%;
        width: 260px;
        background-color: white;
        flex-direction: column;
        box-shadow: 4px 0 12px rgba(0,0,0,0.15);
        transition: left 0.3s ease-in-out;
        z-index: 1000;
        padding-top: 70px;
    }
    .menu.show { left: 0; right: auto; }
    .menu li {
        width: 100%;
        text-align: left;
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    .menu > li > a,
    .menu a,
    .submenu a {
        justify-content: flex-start !important;
        text-align: left !important;
        display: block !important;
    }
    /* Override desktop center alignment */
    .menu a {
        justify-content: flex-start;
        text-align: left;
    }

    /* Submenu mobiel */
    .submenu {
        display: none;
        position: static;
        box-shadow: none;
        background-color: #fdf3f3;
        width: 100%;
    }
    .submenu.show { display: block; }
    .submenu li { display: block; }
    .submenu a {
        padding: 10px 30px;
        font-size: 0.95rem;
        text-align: left;
        justify-content: flex-start;
        border-bottom: 1px solid #f5e0e0;
    }
}

/* ══════════════════════════════════════
   HOME
══════════════════════════════════════ */
@media screen and (max-width: 768px) {
    .inleiding {
        height: 65vh;
        background-attachment: scroll;
        margin-top: 60px;
    }
    .inleiding h3 { font-size: 1.6rem; padding: 0 20px; }
    .inleiding p {
        font-size: 0.9rem;
        padding: 8px 14px;
        width: auto;
    }

    .home {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .home h2 { font-size: 1.8rem; padding: 10px 20px; text-align: center; }
    .text1 {
        padding: 16px;
        width: 90%;
        margin: 0 auto;
    }
    .text1 img { width: 100%; }
    .text1 p { width: 100%; font-size: 1rem; }

    .twc {
        padding: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .text2 {
        width: 92%;
        margin: 0 auto;
        padding: 16px;
    }
    .text2 h2 { font-size: 1.6rem; }
    .text2 p { font-size: 1rem; }
    .werv { width: 92%; margin: 0 auto; }
    .cons { margin-left: 0; }
    .ty { margin-left: 0; }

    hr { margin: 16px 0; }
}

/* ══════════════════════════════════════
   BEDRIJVEN
══════════════════════════════════════ */
@media screen and (max-width: 768px) {
    .intro-sectionbedrijven {
        height: 50vh;
        margin-top: 60px;
        background-attachment: scroll;
    }
    .intro-sectionbedrijven h3 { font-size: 2rem; bottom: 20px; }

    .main-bedrijven {
        padding: 16px;
        gap: 16px;
    }
    .text-bedrijf {
        flex-direction: column;
        align-items: center;
    }
    .text-bedrijf img {
        max-width: 100%;
        width: 100%;
        height: 250px;
        object-fit: cover;
    }
    .tryandhire,
    .wervingselectie,
    .consultantplaatsing,
    .werkenbijhrit {
        padding: 1.5rem 1rem;
        margin: 0.5rem auto;
        width: 100%;
        box-sizing: border-box;
    }
    .tryandhire h2,
    .wervingselectie h2,
    .consultantplaatsing h2,
    .werkenbijhrit h2 { font-size: 1.5rem; }
    .tryandhire p,
    .wervingselectie p,
    .consultantplaatsing p,
    .werkenbijhrit p { font-size: 1rem; }
}

/* ══════════════════════════════════════
   OVER ONS
══════════════════════════════════════ */
@media screen and (max-width: 768px) {
    .intro-sectiono {
        height: 50vh;
        margin-top: 60px;
        background-attachment: scroll;
    }
    .intro-sectiono h3 { font-size: 2rem; bottom: 20px; }

    .home-about {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }
    .home-about img {
        width: 90%;
        height: auto;
        margin: 0 auto;
    }
    .text1-about {
        width: 90%;
        padding: 16px;
        margin: 0 auto;
    }
    .text1-about h2 { font-size: 1.6rem; }
    .text1-about p { font-size: 1rem; }
    .benefit-section h3 { font-size: 1.2rem; }
}

/* ══════════════════════════════════════
   TALENT
══════════════════════════════════════ */
@media screen and (max-width: 768px) {
    .intro-section {
        height: 50vh;
        margin-top: 60px;
        background-attachment: scroll;
    }
    .intro-section-titel { font-size: 2rem; bottom: 20px; }

    .projects-section,
    .opportunities-section,
    .expertise-section,
    .growth-section,
    .coaching-section {
        padding: 20px 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .projects-section h2,
    .opportunities-section h2,
    .expertise-section h2,
    .growth-section h2,
    .coaching-section h2 { font-size: 1.6rem; }
    .projects-section p,
    .opportunities-section p,
    .expertise-section p,
    .growth-section p,
    .coaching-section p { font-size: 1rem; }

    .flex-container { flex-direction: column; align-items: center; }

    /* Reviews */
    .reviews {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    .titel h2 { font-size: 1.8rem; }
    .coaching-section a { display: block; text-align: center; }
}

/* ══════════════════════════════════════
   VACATURES
══════════════════════════════════════ */
@media screen and (max-width: 768px) {
    .text2-vac { padding: 20px 16px; }
    .text2-vac p { font-size: 1rem; }

    .section-vacature {
        padding: 16px;
        flex-direction: column;
    }
    .vacature-lijst {
        grid-template-columns: 1fr !important;
        padding: 10px;
    }
    .vacature {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    .vacature h4 { font-size: 1.3rem; }
    .vacature p { font-size: 1rem; }
    .vacature a { width: 100%; font-size: 1rem; box-sizing: border-box; }

    .text3-vac {
        padding: 16px;
        text-align: center;
    }
    .text3-vac h1 { font-size: 1.6rem; }
    .text3-vac p { font-size: 1rem; }
    .text3-vac img { width: 100%; }
    .text3-vac a { display: block; text-align: center; margin: 1rem auto; }
}

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
@media screen and (max-width: 992px) {
    .contact-content { flex-direction: column; }
    .contact-info, .contact-form-container { flex: 1 1 100%; }
    .contact-header h2 { font-size: 2rem; }
    .contact-map iframe { height: 300px; width: 100%; }
}
@media screen and (max-width: 768px) {
    .contact-section { padding: 20px 16px; }
    .contact-header h2 { font-size: 1.5rem; }
    .contact-header p { font-size: 0.95rem; }
    .contact-form-container form input,
    .contact-form-container form textarea { padding: 10px; width: 100%; box-sizing: border-box; }
    .contact-form-container form button { width: 100%; padding: 14px; font-size: 1rem; }
    .contact-map { flex-direction: column; }
    .contact-map iframe { width: 100%; height: 250px; }
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        padding: 20px 16px;
        gap: 20px;
    }
    .footer-section { width: 100%; text-align: center; }
    .footer-section ul { padding: 0; }
    .footer-section ul li { margin-bottom: 8px; }
    .logo-section img { width: 120px; margin: 0 auto; display: block; }
    .logo-section p { font-size: 0.9rem; }
}

/* ══════════════════════════════════════
   ALGEMEEN MOBIEL
══════════════════════════════════════ */
@media screen and (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    p  { font-size: 1rem; line-height: 1.6; }

    /* Rode knoppen vol breed op mobiel */
    a[style*="background-color:#A50000"] {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
}

/* ══════════════════════════════════════
   REVIEWS — 2 per rij op mobiel
══════════════════════════════════════ */
@media screen and (max-width: 768px) {
    .reviews {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px;
        padding: 12px;
    }
    .review {
        padding: 1rem;
    }
    .review p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    .stars { font-size: 0.9rem; }
}

/* ══════════════════════════════════════
   VACATURES — 2 per rij op mobiel
══════════════════════════════════════ */
@media screen and (max-width: 768px) {
    .vacature-lijst {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px;
        padding: 12px;
    }
    .vacature {
        padding: 16px 10px;
    }
    .vacature h4 { font-size: 1rem; }
    .vacature p  { font-size: 0.85rem; }
    .vacature a  { font-size: 0.85rem; padding: 8px 10px; width: 100%; box-sizing: border-box; }
}

/* ══════════════════════════════════════
   TEKST OP HERO AFBEELDINGEN — zichtbaar op mobiel
══════════════════════════════════════ */
@media screen and (max-width: 768px) {
    /* Bedrijven */
    .intro-sectionbedrijven {
        position: relative;
        height: 50vh;
        margin-top: 60px;
        background-attachment: scroll;
    }
    .intro-sectionbedrijven h3 {
        position: absolute !important;
        bottom: 120px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 2.2rem !important;
        white-space: normal !important;
        text-align: center !important;
        width: 90% !important;
        color: white !important;
        text-shadow: 0 2px 14px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8) !important;
        background: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
    /* Over Ons */
    .intro-sectiono {
        position: relative !important;
        height: 40vh !important;
        margin-top: 60px;
        background-attachment: scroll;
        background-size: cover !important;
        background-position: center top !important;
        overflow: hidden;
        display: block !important;
    }
    .intro-sectiono h3 {
        position: absolute !important;
        bottom: 60px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 2.2rem !important;
        white-space: normal !important;
        text-align: center !important;
        width: 90% !important;
        color: white !important;
        text-shadow: 0 2px 14px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8) !important;
        background: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
    /* Talent */
    .intro-section {
        position: relative !important;
        height: 50vh !important;
        margin-top: 60px;
        background-attachment: scroll;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
    .intro-section-titel {
        display: block !important;
        position: absolute !important;
        bottom: 30px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 2.2rem !important;
        white-space: normal !important;
        text-align: center !important;
        width: 90% !important;
        color: white !important;
        text-shadow: 0 2px 14px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8) !important;
        background: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
    /* Over Ons hoger */
    .intro-sectiono h3 {
        bottom: 150px !important;
    }
    /* Ruimte tussen hero en content verminderen */
    .intro-sectiono + .home-about,
    .intro-sectiono ~ .home-about:first-of-type {
        margin-top: 0 !important;
        padding-top: 16px !important;
    }
    .home-about {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }
    /* Home hero */
    .inleiding h3 {
        font-size: 1.6rem !important;
        padding: 0 16px;
        text-shadow: 0 2px 14px rgba(0,0,0,0.95) !important;
    }
}