/*
Theme Name: AIDA Scholen
Theme URI: https://aidascholen.nl
Description: Officieel WordPress thema voor AIDA Scholen. Volledig aanpasbaar via Weergave → Customizer.
Version: 1.0.0
Author: AIDA Scholen
Author URI: https://aidascholen.nl
License: GPL-2.0-or-later
Text Domain: aida-theme
Tags: education, islamic, custom-colors, custom-logo, custom-menu, responsive-layout
*/

/* ============================================================
   CSS Variabelen — worden overschreven via Customizer
   ============================================================ */
:root {
    --aida-nav-bg:       #5d4038;
    --aida-nav-text:     #ffffff;
    --aida-logo-bg:      #ffffff;
    --aida-hero-bg:      #2d3f24;
    --aida-hero-text:    #ffffff;
    --aida-accent:       #4a6b3a;
    --aida-accent-2:     #5d4038;
    --aida-body-bg:      #f5f3ee;
    --aida-card-border:  #5d4038;
    --aida-footer-bg:    #2d3f24;
    --aida-font:         'Helvetica Neue', Arial, sans-serif;
    --aida-font-serif:   Georgia, 'Times New Roman', serif;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--aida-font);
    background: var(--aida-body-bg);
    color: #2d3f24;
    line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--aida-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--aida-accent-2); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--aida-font-serif);
    color: #2d3f24;
    line-height: 1.3;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; }

/* ============================================================
   Container
   ============================================================ */
.aida-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.aida-container--narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   Knoppen
   ============================================================ */
.aida-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    font-family: var(--aida-font);
}
.aida-btn:hover { transform: translateY(-1px); }
.aida-btn--primary   { background: var(--aida-accent);   color: #fff; }
.aida-btn--primary:hover { background: #2d3f24; color: #fff; }
.aida-btn--secondary { background: var(--aida-accent-2); color: #fff; }
.aida-btn--secondary:hover { background: #3e2a24; color: #fff; }
.aida-btn--outline   { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.65); }
.aida-btn--outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.aida-btn--white     { background: #fff; color: #2d3f24; }
.aida-btn--white:hover { background: #f0ede8; color: #2d3f24; }

/* ============================================================
   Header & Navigatie
   ============================================================ */
.site-header {
    background: var(--aida-nav-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.header-inner {
    display: flex;
    align-items: stretch;
    min-height: 70px;
}

/* Logo */
.site-logo-wrap {
    background: var(--aida-logo-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    flex-shrink: 0;
    min-width: 140px;
    transition: background 0.3s;
}

.site-logo-wrap a { display: flex; align-items: center; gap: 10px; }

.site-logo-wrap img {
    max-height: 52px;
    max-width: 170px;
    width: auto;
    object-fit: contain;
}

.site-logo-icon {
    width: 42px;
    height: 42px;
    background: #2d6a1f;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    font-family: var(--aida-font-serif);
    flex-shrink: 0;
}

.site-logo-text { line-height: 1.2; }
.site-logo-text .logo-name  { display: block; font-size: 14px; font-weight: 700; color: #2d6a1f; }
.site-logo-text .logo-sub   { display: block; font-size: 10px; color: var(--aida-accent-2); letter-spacing: 1px; text-transform: uppercase; }

/* Navigatie */
.main-navigation {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: stretch;
}

.nav-menu > li {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 16px;
    height: 100%;
    color: var(--aida-nav-text);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background 0.18s;
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
    background: rgba(255,255,255,0.15);
    color: var(--aida-nav-text);
}

/* Pijltje submenu */
.nav-menu > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.75;
    transition: transform 0.2s;
    margin-top: 1px;
}
.nav-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Submenu */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    list-style: none;
    padding: 0;
    background: var(--aida-nav-bg);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.22);
    z-index: 200;
}
.nav-menu .sub-menu::before {
    content: '';
    display: block;
    height: 3px;
    background: #ffffff;
}
.nav-menu > li.menu-item-has-children:hover > .sub-menu {
    display: block;
}
.nav-menu .sub-menu li a {
    display: block;
    padding: 10px 18px;
    color: var(--aida-nav-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.15s, padding-left 0.15s;
}
.nav-menu .sub-menu li:last-child a { border-bottom: none; }
.nav-menu .sub-menu li a:hover {
    background: rgba(255,255,255,0.15);
    padding-left: 24px;
}

/* Magister knop */
.magister-button {
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: var(--aida-accent);
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.magister-button:hover { background: #2d3f24; color: #fff; }

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--aida-nav-text);
    font-size: 22px;
    cursor: pointer;
    padding: 0 20px;
    margin-left: auto;
}

/* ============================================================
   Hero sectie
   ============================================================ */
.aida-hero {
    background: var(--aida-hero-bg);
    color: var(--aida-hero-text);
    padding: 72px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.aida-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.18);
}
.aida-hero.has-bg-image::before {
    background: rgba(0,0,0,0.48);
}
.aida-hero__inner {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}
.aida-hero h1 {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    font-family: var(--aida-font-serif);
    line-height: 1.2;
}
.aida-hero p {
    font-size: 17px;
    opacity: 0.92;
    margin-bottom: 28px;
    line-height: 1.7;
    color: #fff;
}
.aida-hero__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Statistieken balk
   ============================================================ */
.aida-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}
.aida-stat {
    text-align: center;
    padding: 28px 16px;
    border-right: 1px solid #e5e7eb;
}
.aida-stat:last-child { border-right: none; }
.aida-stat__num {
    font-size: 36px;
    font-weight: 700;
    color: var(--aida-accent);
    font-family: var(--aida-font-serif);
    line-height: 1;
    margin-bottom: 6px;
}
.aida-stat__label { font-size: 13px; color: #6b7280; }

/* ============================================================
   Secties
   ============================================================ */
.aida-section {
    padding: 56px 24px;
}
.aida-section--white  { background: #fff; }
.aida-section--cream  { background: var(--aida-body-bg); }
.aida-section--green  { background: var(--aida-accent); color: #fff; }
.aida-section--dark   { background: var(--aida-hero-bg); color: #fff; }

.aida-section__title {
    text-align: center;
    margin-bottom: 40px;
}
.aida-section__title h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}
.aida-section--green .aida-section__title h2,
.aida-section--dark  .aida-section__title h2 { color: #fff; }
.aida-section__title p { color: #6b7280; font-size: 15px; }
.aida-section--green .aida-section__title p,
.aida-section--dark  .aida-section__title p { color: rgba(255,255,255,0.8); }
.aida-section__underline {
    width: 60px;
    height: 3px;
    background: var(--aida-accent-2);
    margin: 10px auto 0;
    border-radius: 2px;
}
.aida-section--green .aida-section__underline { background: rgba(255,255,255,0.5); }

/* ============================================================
   Kaarten grid
   ============================================================ */
.aida-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.aida-cards--2col { grid-template-columns: repeat(2, 1fr); }
.aida-cards--4col { grid-template-columns: repeat(4, 1fr); }

.aida-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-top: 4px solid var(--aida-card-border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.aida-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.aida-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.aida-card__img-placeholder {
    height: 180px;
    background: #f0ede8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}
.aida-card__body { padding: 24px; }
.aida-card__body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #2d3f24; }
.aida-card__body p  { font-size: 14px; color: #6b7280; line-height: 1.65; margin-bottom: 14px; }
.aida-card__link    { color: var(--aida-accent); font-size: 14px; font-weight: 600; }
.aida-card__link:hover { color: var(--aida-accent-2); }

/* ============================================================
   CTA sectie
   ============================================================ */
.aida-cta {
    background: var(--aida-accent);
    color: #fff;
    padding: 56px 24px;
    text-align: center;
}
.aida-cta h2    { font-size: 28px; color: #fff; margin-bottom: 12px; }
.aida-cta p     { font-size: 16px; opacity: 0.9; max-width: 580px; margin: 0 auto 24px; line-height: 1.7; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--aida-footer-bg);
    color: rgba(255,255,255,0.8);
    padding: 48px 24px 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p   { font-size: 13px; line-height: 1.8; margin-top: 12px; }
.footer-col h4    { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.footer-col a     { display: block; font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 6px; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-col p     { font-size: 13px; margin-bottom: 6px; }
.footer-bottom {
    text-align: center;
    padding: 16px 24px;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================
   Paginaheader (voor binnenste pagina's)
   ============================================================ */
.page-header {
    background: var(--aida-hero-bg);
    color: #fff;
    padding: 48px 24px;
    text-align: center;
}
.page-header h1 { color: #fff; font-size: 32px; margin-bottom: 8px; }
.page-header p  { color: rgba(255,255,255,0.85); font-size: 16px; }

/* ============================================================
   Contactformulier
   ============================================================ */
.aida-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.aida-contact-info {
    background: var(--aida-hero-bg);
    color: #fff;
    padding: 36px;
}
.aida-contact-info h3    { font-size: 22px; color: #fff; margin-bottom: 24px; }
.aida-contact-item       { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.aida-contact-icon       { width: 38px; height: 38px; background: rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.aida-contact-item__label { color: rgba(255,255,255,0.6); font-size: 12px; margin-bottom: 2px; }
.aida-contact-item__val   { color: #fff; font-size: 14px; }
.aida-contact-form-wrap  { background: #fff; padding: 36px; }
.aida-contact-form-wrap h3 { font-size: 20px; color: #2d3f24; margin-bottom: 20px; }
.aida-contact-form .form-group { margin-bottom: 14px; }
.aida-contact-form input,
.aida-contact-form textarea,
.aida-contact-form select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--aida-font);
    color: #1f2937;
    background: #f9fafb;
    outline: none;
    transition: border 0.2s, background 0.2s;
}
.aida-contact-form input:focus,
.aida-contact-form textarea:focus {
    border-color: var(--aida-accent);
    background: #fff;
}
.aida-contact-form textarea { resize: vertical; min-height: 100px; }

/* ============================================================
   WordPress core classes
   ============================================================ */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.wp-caption  { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: #6b7280; margin-top: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }

/* Gutenberg blokken */
.wp-block-image img { border-radius: 8px; }
.wp-block-quote     { border-left: 4px solid var(--aida-accent-2); padding-left: 20px; font-style: italic; color: #4a5a3e; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .aida-cards       { grid-template-columns: repeat(2, 1fr); }
    .aida-cards--4col { grid-template-columns: repeat(2, 1fr); }
    .footer-inner     { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; align-items: center; }
    .main-navigation {
        position: absolute;
        top: 70px;
        left: 0; right: 0;
        background: var(--aida-nav-bg);
        flex-direction: column;
        align-items: flex-start;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        justify-content: flex-start;
        z-index: 999;
    }
    .main-navigation.is-open { max-height: 600px; }
    .nav-menu { flex-direction: column; width: 100%; padding: 8px 0; }
    .nav-menu > li { width: 100%; }
    .nav-menu > li > a { padding: 12px 20px; height: auto; }
    .nav-menu .sub-menu { position: static; box-shadow: none; border-radius: 0; max-height: 0; overflow: hidden; transition: max-height 0.25s; }
    .nav-menu .sub-menu::before { display: none; }
    .nav-menu > li.menu-item-has-children.is-open > .sub-menu { max-height: 300px; display: block; }
    .magister-button { width: 100%; padding: 14px 20px; justify-content: center; }
    .aida-hero h1 { font-size: 26px; }
    .aida-stats { grid-template-columns: 1fr; }
    .aida-stat { border-right: none; border-bottom: 1px solid #e5e7eb; }
    .aida-cards, .aida-cards--2col, .aida-cards--4col { grid-template-columns: 1fr; }
    .aida-contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
