/* ==============================================
   Emigreren naar Dubai - Stylesheet
   Modern, mobiel-eerst, WCAG 2.1 AA compliant
   ============================================== */

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Kleuren - WCAG AA contrast getest */
    --primary: #1a5490;
    --primary-dark: #0f3d6e;
    --accent: #d4af37;
    --text: #1a1a1a;
    --text-light: #4a4a4a;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --border: #e0e0e0;
    --success: #28a745;
    --info: #0066cc;
    --warning: #ff9800;
    --error: #dc3545;
    
    /* Typografie */
    --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: "Segoe UI", system-ui, sans-serif;
    --line-height: 1.6;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* Breakpoints */
    --mobile: 576px;
    --tablet: 768px;
    --desktop: 1024px;
    --wide: 1280px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    line-height: var(--line-height);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Container & Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-narrow {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- Header & Menu --- */
header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo centreren en toggle rechts */
.header-top {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    padding: 0.5rem 0;
}

.header-top .logo {
    text-align: center;
}

/* Toggle knop rechts uitlijnen */
.header-top .menu-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Menu op één lijn */
#main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    margin: 0.5rem 0 0 0;
    padding: 0;
}

#main-nav a {
    white-space: nowrap;
    text-decoration: none;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.logo:hover {
    color: var(--primary-dark);
}

/* Navigatie */
nav ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text);
    text-decoration: none;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

nav a:hover,
nav a:focus {
    background: var(--bg-light);
    color: var(--primary);
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

nav a.active {
    color: var(--primary);
    background: var(--bg-light);
}

/* Mobiel menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--primary);
    padding: var(--space-xs) var(--space-sm);
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    color: var(--primary);
}

.menu-toggle:hover,
.menu-toggle:focus {
    background: var(--primary);
    color: white;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    nav.active {
        max-height: 500px;
    }
    
    nav ul {
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-xs);
    }
}


/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
}

h2 {
    font-size: 2rem;
    margin-top: var(--space-xl);
}

h3 {
    font-size: 1.5rem;
    margin-top: var(--space-lg);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--primary);
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Focus states voor toegankelijkheid */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* --- Lists --- */
ul, ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

li {
    margin-bottom: var(--space-xs);
}

/* Bullet lists styling */
ul li {
    padding-left: var(--space-xs);
}

/* --- Info & Waarschuwing Blokken --- */
.info-block,
.warning-block,
.tip-block,
.important-block {
    padding: var(--space-md);
    margin: var(--space-lg) 0;
    border-left: 4px solid;
    border-radius: 4px;
}

.info-block {
    background: #e3f2fd;
    border-color: var(--info);
    color: #0d47a1;
}

.warning-block {
    background: #fff3e0;
    border-color: var(--warning);
    color: #e65100;
}

.tip-block {
    background: #e8f5e9;
    border-color: var(--success);
    color: #1b5e20;
}

.important-block {
    background: #ffebee;
    border-color: var(--error);
    color: #b71c1c;
}

.info-block strong,
.warning-block strong,
.tip-block strong,
.important-block strong {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 700;
}

/* --- Hero Section (Homepage) --- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--space-xl) 0;
    text-align: center;
    margin-bottom: var(--space-xl);
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto var(--space-lg);
    opacity: 0.95;
}

.hero-cta {
    display: inline-block;
    background: var(--accent);
    color: var(--text);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* --- Content Sections --- */
.content-section {
    margin-bottom: var(--space-xl);
}

.intro-text {
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
}

/* --- Cards/Grid --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--space-lg);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.card h3 {
    margin-top: 0;
    color: var(--primary);
}

.card a {
    text-decoration: none;
    color: inherit;
}

.card a:hover h3 {
    text-decoration: underline;
}

/* --- FAQ Section --- */
.faq-list {
    list-style: none;
    padding: 0;
}

.faq-item {
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.faq-question {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.faq-answer {
    color: var(--text-light);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    padding: var(--space-sm) 0;
    font-size: 0.9rem;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    padding: 0;
    margin: 0;
}

.breadcrumbs li::after {
    content: "›";
    margin-left: var(--space-xs);
    color: var(--text-light);
}

.breadcrumbs li:last-child::after {
    content: "";
}

/* --- Footer --- */
footer {
    background: var(--text);
    color: white;
    padding: var(--space-xl) 0 var(--space-md);
    margin-top: var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-section h4 {
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: var(--space-sm);
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    text-decoration: none;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: white;
    border-color: var(--primary);
}

/* --- Tables --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
}

th, td {
    padding: var(--space-sm);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--bg-light);
    font-weight: 700;
    color: var(--primary);
}

tr:hover {
    background: var(--bg-light);
}

/* --- Forms --- */
form {
    margin: var(--space-lg) 0;
}

.form-group {
    margin-bottom: var(--space-md);
}

label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* --- Images --- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.featured-image {
    margin: var(--space-lg) 0;
    border-radius: 8px;
    overflow: hidden;
}

/* --- Utility Classes --- */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

#menu-container, #menu-container:empty{min-height:95px;background:#fff}

.cta-section {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #2b6cb0 100%);
    border-radius: 16px;
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: 0 20px 40px rgba(26, 54, 93, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.cta-text {
    color: white;
}

.cta-text h2 {
    font-size: 1.75rem;
    margin: 0 0 1rem 0;
    color: white;
}

.cta-text h2 i {
    margin-right: 0.5rem;
    color: #f6ad55;
}

.cta-text p {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cta-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cta-benefits li {
    padding: 0.5rem 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cta-benefits i {
    color: #68d391;
    font-size: 1.1rem;
}

.cta-form-wrapper {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-form .form-row {
    margin-bottom: 1rem;
}

.cta-form input,
.cta-form select,
.cta-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
    outline: none;
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}

.cta-form textarea {
    resize: vertical;
    min-height: 80px;
}

.cta-button {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #c79a6b 0%, #b8860b 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 154, 107, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .cta-section {
        padding: 2rem 1.5rem;
    }
    
    .cta-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-text h2 {
        font-size: 1.5rem;
    }
}

/* --- Responsive Aanpassingen --- */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: var(--space-xs);
    }
}

@media (max-width: 576px) {
    .container,
    .container-narrow {
        padding: 0 var(--space-sm);
    }
    
    main {
        padding: var(--space-lg) 0;
    }
}

/* --- Print Styles --- */
@media print {
    header,
    footer,
    nav,
    .menu-toggle {
        display: none;
    }
    
    main {
        padding: 0;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}