/*
  style.css
  Centrale stylesheet voor ParkingAeropuertos.app
  Versie: 3.0 (Ultra Modern & Professional)
*/

/* 1. CSS Variabelen & Basisinstellingen
-------------------------------------------------- */
:root {
    --primary-color: #0052FF;
    --secondary-color: #003BBD;
    --accent-color: #FFC107;
    --text-color: #1a202c;
    --light-text-color: #4a5568;
    --background-color: #F7FAFC;
    --white-color: #FFFFFF;
    --border-color: #E2E8F0;
    --header-height: 80px;
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 20px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition-speed: 0.3s;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.skip-to-content {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 1rem;
    z-index: 9999;
    border-radius: 0 0 var(--border-radius) 0;
}
.skip-to-content:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
}

/* 2. Header & Navigatie
-------------------------------------------------- */
.site-header {
    background-color: var(--white-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    padding: 0 1.5rem;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-color);
    flex-shrink: 0;
}
.logo { height: 50px; width: auto; }
.logo-text { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; }
.main-nav { display: flex; align-items: center; gap: 1rem; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.5rem; }
.nav-list a {
    text-decoration: none;
    color: var(--light-text-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
}
.nav-list a:hover, .nav-list a:focus, .nav-list a.active {
    background-color: var(--background-color);
    color: var(--primary-color);
}
.nav-cta {
    background-color: var(--primary-color);
    color: var(--white-color) !important;
    font-weight: 700;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent;
}
.nav-cta:hover, .nav-cta:focus {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0.5rem;
}

/* 3. Hero & Page Headers
-------------------------------------------------- */
.hero {
    background-color: #1a2533;
    color: var(--white-color);
    padding: 6rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.65)), url('https://i.postimg.cc/fbR1f4Dr/Parking-Madrid-Airport.webp');
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: zoom-in 25s ease-out infinite;
}
@keyframes zoom-in {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    margin: 0 0 1rem;
    line-height: 1.2;
    max-width: 800px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    margin: 0 auto 2.5rem;
    max-width: 700px;
    opacity: 0.95;
}
.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-cta-group .nav-cta.secondary {
    background-color: var(--white-color);
    color: var(--primary-color) !important;
}
.hero-cta-group .nav-cta.secondary:hover { background-color: var(--background-color); }

.page-header {
    background-color: var(--white-color);
    text-align: center;
    padding: 4rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--secondary-color);
    font-weight: 800;
    margin: 0 0 1rem;
}
.page-header p {
    font-size: 1.15rem;
    color: var(--light-text-color);
    max-width: 700px;
    margin: 0 auto;
}

/* 4. Partner Carousel
-------------------------------------------------- */
.partner-carousel { padding: 2rem 0; background-color: var(--white-color); border-bottom: 1px solid var(--border-color); }
.carousel-viewport { overflow: hidden; position: relative; width: 100%; -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent); mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent); }
.carousel-track { display: flex; align-items: center; width: calc(200px * 10); animation: scroll 40s linear infinite; }
.carousel-track:hover { animation-play-state: paused; }
.carousel-slide { flex: 0 0 200px; text-align: center; padding: 0 2rem; }
.carousel-slide img { max-width: 150px; height: 50px; object-fit: contain; opacity: 0.6; transition: all var(--transition-speed) ease; filter: grayscale(100%); }
.carousel-slide a:hover img, .carousel-slide a:focus img { opacity: 1; filter: grayscale(0%); transform: scale(1.05); }
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 5)); }
}

/* 5. Algemene Sectie Styling
-------------------------------------------------- */
main { padding: 4rem 0; }
.section { margin-bottom: 5rem; }
.section-title { text-align: center; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 1rem; color: var(--secondary-color); }
.section-subtitle { text-align: center; font-size: 1.15rem; color: var(--light-text-color); max-width: 700px; margin: 0 auto 4rem; }

/* 6. Card Styles (Features, Options, Airports)
-------------------------------------------------- */
.features-grid, .options-grid, .airport-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card, .option-card, .airport-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.feature-card:hover, .option-card:hover, .airport-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}
/* Airport Card Specific */
.airport-card-image { height: 200px; background-size: cover; background-position: center; transition: transform var(--transition-speed) ease; }
.airport-card:hover .airport-card-image { transform: scale(1.05); }
.airport-card-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.airport-card h4 { margin: 0 0 0.5rem; font-size: 1.5rem; }
.airport-card p { margin: 0 0 1.5rem; color: var(--light-text-color); flex-grow: 1; }
.airport-card .nav-cta { width: 100%; }
/* Feature/Option Card Specific */
.feature-card, .option-card { padding: 2rem; }
.feature-icon, .option-icon { font-size: 3.5rem; line-height: 1; margin-bottom: 1.5rem; color: var(--primary-color); }
.feature-card h3, .option-card h3 { font-size: 1.6rem; margin: 0 0 0.75rem; color: var(--primary-color); }
.feature-card p, .option-card .description { font-size: 1rem; color: var(--light-text-color); flex-grow: 1; margin-bottom: 1.5rem; }
.option-card .ideal-for { font-size: 0.9rem; font-style: italic; color: var(--text-color); background-color: var(--background-color); padding: 0.75rem; border-radius: 8px; margin-top: auto; }

/* 7. How It Works Sectie
-------------------------------------------------- */
.how-it-works-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.step-card { background: none; text-align: center; }
.step-number { width: 70px; height: 70px; background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); color: var(--white-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; margin: 0 auto 1.5rem; box-shadow: 0 0 0 8px var(--background-color), var(--shadow-md); }
.step-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.step-card p { color: var(--light-text-color); }

/* 8. CTA Sectie
-------------------------------------------------- */
.cta-section { background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); color: var(--white-color); padding: 5rem 1.5rem; border-radius: var(--border-radius); text-align: center; margin: 5rem auto; }
.cta-section h2 { color: var(--white-color); font-size: 2.5rem; margin-bottom: 1rem; }
.cta-section p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 2rem; }

/* 9. Footer
-------------------------------------------------- */
.site-footer { background-color: #1a2533; color: #a0aec0; padding: 4rem 1.5rem 2rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; margin-bottom: 3rem; }
.footer-col h4 { font-size: 1.2rem; color: var(--white-color); margin-bottom: 1.2rem; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.8rem; }
.footer-col a { color: #a0aec0; text-decoration: none; transition: color var(--transition-speed) ease; }
.footer-col a:hover, .footer-col a:focus { color: var(--white-color); text-decoration: underline; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: #a0aec0; font-size: 1.5rem; transition: all var(--transition-speed) ease; }
.footer-social a:hover, .footer-social a:focus { color: var(--white-color); transform: scale(1.1); }
.footer-bottom { border-top: 1px solid #2d3748; padding-top: 2rem; text-align: center; }
.footer-bottom p { margin: 0.5rem 0; font-size: 0.9rem; }

/* 10. Specifieke Pagina's (About, Contact, Legal, 404)
-------------------------------------------------- */
.content-page .container { background-color: var(--white-color); padding: 3rem; border-radius: var(--border-radius); box-shadow: var(--shadow-md); max-width: 900px; }
.content-page h2 { font-size: 1.8rem; color: var(--primary-color); margin-top: 2.5rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; margin-bottom: 1.5rem; }
.content-page p, .content-page li { line-height: 1.8; color: var(--light-text-color); }
.content-page ul { padding-left: 1.5rem; }
.contact-form { display: grid; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-weight: 600; margin-bottom: 0.5rem; }
.form-group .form-control { padding: 0.8rem 1rem; border: 1px solid var(--border-color); border-radius: var(--border-radius); font-size: 1rem; font-family: inherit; transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease; }
.form-group .form-control:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.2); }
textarea.form-control { min-height: 150px; resize: vertical; }
.error-page { text-align: center; padding: 6rem 1.5rem; }
.error-page h1 { font-size: 8rem; color: var(--primary-color); margin: 0; line-height: 1; }
.error-page p { font-size: 1.5rem; margin-bottom: 2rem; }

/* 11. Comparison Table
-------------------------------------------------- */
.comparison-table { width: 100%; border-collapse: collapse; margin-top: 2rem; background-color: var(--white-color); box-shadow: var(--shadow-md); border-radius: var(--border-radius); overflow: hidden; }
.comparison-table th, .comparison-table td { padding: 1.25rem; text-align: center; border-bottom: 1px solid var(--border-color); }
.comparison-table th { background-color: var(--secondary-color); color: var(--white-color); font-size: 1.2rem; }
.comparison-table td:first-child { text-align: left; font-weight: 600; }
.comparison-table tr:last-child td { border-bottom: none; }
.star-rating { color: var(--accent-color); font-size: 1.2rem; }

/* 12. Responsive Styles
-------------------------------------------------- */
@media (max-width: 992px) {
    .nav-list { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; background: var(--white-color); flex-direction: column; padding: 1rem; box-shadow: var(--shadow-md); border-top: 1px solid var(--border-color); }
    .nav-list.active { display: flex; }
    .menu-toggle { display: block; }
    .nav-cta.desktop-only { display: none; }
}
@media (max-width: 768px) {
    .hero { padding: 4rem 1.5rem; }
    .hero-cta-group { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .carousel-track, .hero::before { animation: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
