/*
Theme Name: DePrijswijzer
Description: Modern vergelijkingswebsite thema voor DePrijswijzer.nl met Nederlandse kleuren en responsive design.
Author: Manus
Version: 1.0
*/

/* Reset en basis styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #0f172a;
    background-color: #ffffff;
    font-weight: 400;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Nederlandse kleuren variabelen - Enterprise niveau */
:root {
    --koningsblauw: #003399;
    --koningsblauw-light: #0052cc;
    --koningsblauw-dark: #002266;
    --koningsblauw-ultra-light: #e6f0ff;
    --zacht-oranje: #F7941D;
    --zacht-oranje-light: #ff9933;
    --zacht-oranje-dark: #e6841a;
    --zacht-oranje-ultra-light: #fff4e6;
    --groen-accent: #3DBE8B;
    --groen-accent-light: #4fd1a0;
    --groen-accent-dark: #2da574;
    --groen-accent-ultra-light: #e6f9f3;
    --wit: #ffffff;
    --lichtgrijs: #f8fafc;
    --lichtgrijs-2: #f1f5f9;
    --lichtgrijs-3: #e2e8f0;
    --donkergrijs: #0f172a;
    --middengrijs: #475569;
    --lichtgrijs-text: #64748b;
    --zeer-licht-grijs: #f9fafb;
    
    /* Premium gradients */
    --gradient-hero: linear-gradient(135deg, #003399 0%, #0052cc 25%, #0066ff 50%, #3DBE8B 100%);
    --gradient-oranje: linear-gradient(135deg, #F7941D 0%, #ff9933 50%, #ffb366 100%);
    --gradient-groen: linear-gradient(135deg, #3DBE8B 0%, #4fd1a0 50%, #66d9b3 100%);
    --gradient-blauw: linear-gradient(135deg, #003399 0%, #0052cc 50%, #0066ff 100%);
    --gradient-subtle: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    
    /* Premium shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 20px rgba(0, 51, 153, 0.15);
    --shadow-glow-orange: 0 0 20px rgba(247, 148, 29, 0.15);
    --shadow-glow-green: 0 0 20px rgba(61, 190, 139, 0.15);
    
    /* Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Header styling - Enterprise niveau */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 51, 153, 0.1);
    transition: var(--transition-normal);
}

.site-header.scrolled {
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.98);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    color: var(--koningsblauw);
    font-size: 2rem;
    font-weight: 900;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-normal);
    position: relative;
}

.site-logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 8px rgba(247, 148, 29, 0.3));
    animation: float 3s ease-in-out infinite;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--koningsblauw);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 12px;
    transition: var(--transition-normal);
}

.mobile-menu-toggle:hover {
    background: var(--koningsblauw-ultra-light);
    transform: scale(1.1);
}

.main-navigation {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 0.5rem;
    border: 1px solid rgba(0, 51, 153, 0.1);
    box-shadow: var(--shadow-lg);
}

.main-navigation a {
    color: var(--middengrijs);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
    border-radius: 16px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    background: transparent;
    border: 1px solid transparent;
}

.main-navigation a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-glass);
    transition: var(--transition-normal);
    z-index: -1;
}

.main-navigation a:hover::before {
    left: 0;
}

.main-navigation a:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--koningsblauw);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 51, 153, 0.2);
}

.main-navigation a.active {
    background: var(--koningsblauw);
    color: var(--wit);
    box-shadow: var(--shadow-glow);
    border-color: var(--koningsblauw-light);
}

.main-navigation a.active:hover {
    background: var(--koningsblauw-light);
    transform: translateY(-1px);
}

/* Hero sectie - Enterprise niveau */
.hero-section {
    background: var(--gradient-hero);
    color: var(--wit);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23ffffff" opacity="0.05"><circle cx="20" cy="20" r="2"/><circle cx="80" cy="20" r="2"/><circle cx="20" cy="80" r="2"/><circle cx="80" cy="80" r="2"/><circle cx="50" cy="50" r="3"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInLeft 1s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-badge i {
    color: var(--zacht-oranje);
    font-size: 1.25rem;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.375rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 500px;
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--zacht-oranje);
    color: var(--wit);
    padding: 1.25rem 2.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-bounce);
    text-decoration: none;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-normal);
}

.hero-cta:hover::before {
    left: 100%;
}

.hero-cta:hover {
    background: var(--zacht-oranje-dark);
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-2xl), var(--shadow-glow-orange);
}

.hero-cta-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.hero-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.hero-feature-icon {
    width: 24px;
    height: 24px;
    background: var(--groen-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wit);
    font-weight: 900;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
}

.hero-illustration {
    position: relative;
    animation: slideInRight 1s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-illustration img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: var(--shadow-2xl);
    transition: var(--transition-slow);
}

.hero-illustration:hover img {
    transform: scale(1.05) rotate(1deg);
}

/* Responsive design - Enterprise niveau */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow-2xl);
        border: 1px solid rgba(0, 51, 153, 0.1);
        border-radius: 20px;
        gap: 0.5rem;
        z-index: 1000;
    }
    
    .main-navigation.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .main-navigation a {
        padding: 1rem 1.5rem;
        border-radius: 12px;
        margin-bottom: 0;
        font-size: 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        transition: var(--transition-normal);
        border: 1px solid transparent;
    }
    
    .main-navigation a:hover {
        background: var(--koningsblauw-ultra-light);
        color: var(--koningsblauw);
        border-color: rgba(0, 51, 153, 0.2);
        transform: translateY(-1px);
    }
    
    .main-navigation a.active {
        background: var(--koningsblauw);
        color: var(--wit);
        box-shadow: var(--shadow-md);
    }
    
    .hero-section {
        padding: 3rem 0 2rem;
        min-height: auto;
    }
    
    .hero-container {
        padding: 0 1.5rem;
        gap: 2rem;
    }
    
    .hero-badge {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.1;
        margin-bottom: 1.25rem;
        letter-spacing: -0.01em;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
        line-height: 1.5;
        max-width: 100%;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        width: 100%;
        max-width: none;
        justify-content: center;
        padding: 1.25rem 2rem;
        font-size: 1.125rem;
        min-height: 56px;
        border-radius: 20px;
    }
    
    .hero-cta-secondary {
        order: 2;
    }
    
    .hero-features {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 2rem;
        max-width: 100%;
    }
    
    .hero-feature {
        width: 100%;
        max-width: none;
        justify-content: flex-start;
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
        border-radius: 15px;
    }
    
    .hero-illustration {
        order: -1;
        margin-bottom: 1rem;
    }
    
    .hero-illustration img {
        border-radius: 20px;
        max-height: 250px;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .site-header {
        padding: 1rem 0;
    }
    
    .site-logo {
        font-size: 1.75rem;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 2rem 0 1.5rem;
    }
    
    .hero-container {
        padding: 0 1rem;
        gap: 1.5rem;
    }
    
    .hero-badge {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.75rem;
        line-height: 1.4;
    }
    
    .hero-cta-group {
        gap: 0.875rem;
        margin-bottom: 1.75rem;
    }
    
    .hero-cta {
        padding: 1.125rem 1.75rem;
        font-size: 1rem;
        min-height: 52px;
        border-radius: 18px;
    }
    
    .hero-features {
        gap: 0.625rem;
        margin-top: 1.5rem;
    }
    
    .hero-feature {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        border-radius: 12px;
    }
    
    .hero-feature-icon {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }
    
    .hero-illustration img {
        border-radius: 16px;
        max-height: 220px;
    }
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
    .hero-cta:hover {
        transform: none;
    }
    
    /* Ensure touch targets are at least 44px */
    .main-navigation a,
    .hero-cta {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-section {
        background: var(--donkergrijs);
    }
}

