/* ===================================
   HOMEPAGE MOBIEL FIX
   Specifiek voor index.php
   Logo boven tekst, dropdown fix
   =================================== */

/* Alleen op mobiele apparaten */
@media (max-width: 768px) {
    
    /* === HERO SECTIE === */
    /* Logo BOVEN tekst */
    .hero {
        padding-top: 100px !important; /* Extra ruimte voor menu */
    }
    
    .hero .container > div[style*="display: flex"] {
        display: flex !important;
        flex-direction: column-reverse !important; /* Logo eerst, dan tekst */
        align-items: center !important;
        text-align: center !important;
    }
    
    .hero .container > div[style*="display: flex"] > img {
        order: -1 !important; /* Logo eerst */
        margin-left: 0 !important;
        margin-bottom: 2rem !important;
        margin-top: 0 !important;
        max-width: 180px !important;
    }
    
    .hero .container > div[style*="display: flex"] > div {
        order: 1 !important; /* Tekst daarna */
        text-align: center !important;
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    .hero h1 {
        font-size: 1.75rem !important;
        text-align: center !important;
        margin-top: 0 !important;
    }
    
    .hero p.lead {
        font-size: 1rem !important;
        text-align: center !important;
    }
    
    .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    .hero-buttons a {
        width: 100% !important;
        margin: 0 !important;
        text-align: center !important;
        display: block !important;
    }
    
    /* === FEATURES GRID === */
    .features-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .feature-item {
        width: 100% !important;
        padding: 1rem !important;
    }
    
    /* === MODULES TILES === */
    .tiles-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .tile {
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* === PRICING GRID === */
    .pricing-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .pricing-card {
        width: 100% !important;
        margin: 0 0 1.5rem 0 !important;
        position: relative !important;
    }
    
    /* Fix voor "AANBEVOLEN" badge */
    .pricing-card > div[style*="position: absolute"] {
        position: absolute !important;
        top: -15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    /* === ALGEMENE HOMEPAGE FIXES === */
    /* Secties padding */
    .features,
    .modules-overview,
    .pricing-overview {
        padding: 40px 0 !important;
    }
    
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Headings */
    h2.text-center {
        font-size: 1.5rem !important;
        margin-bottom: 30px !important;
    }
    
    /* Buttons */
    .btn {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        padding: 14px 20px !important;
    }
    
    /* Text center op mobiel */
    .text-center {
        text-align: center !important;
    }
}

/* Extra kleine schermen */
@media (max-width: 576px) {
    .hero {
        padding-top: 90px !important;
    }
    
    .hero .container > div[style*="display: flex"] > img {
        max-width: 150px !important;
    }
    
    .hero h1 {
        font-size: 1.5rem !important;
    }
    
    .features,
    .modules-overview,
    .pricing-overview {
        padding: 30px 0 !important;
    }
    
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .pricing-price {
        font-size: 2rem !important;
    }
}

/* Tablet (768px - 992px) */
@media (min-width: 768px) and (max-width: 992px) {
    /* Op tablet kunnen sommige dingen 2 kolommen blijven */
    .features-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .tiles-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}