/* ==========================================================================
   Shaakir Rijschool – design system (based on the Zarla "playful" layout)
   Loaded after bootstrap.min.css and style.css, so it overrides both.
   To re-theme the whole site, change the tokens in :root only.
   ========================================================================== */

:root {
    --color-primary: #3BA55D;
    --color-primary-dark: #2F8449;
    --color-primary-rgb: 59, 165, 93;
    --color-accent: #EDAF26;
    --color-secondary: #263028;
    --color-bg: #F8FBF7;
    --color-bg-alt: #EDF5EC;
    --color-surface: #FFFFFF;
    --color-border: #DCE7DA;
    --color-text: #232823;
    --color-text-muted: #5E675F;
    --color-text-on-dark: #F1F7F0;

    --font-heading: 'Baloo 2', -apple-system, sans-serif;
    --font-body: 'Nunito', -apple-system, sans-serif;

    --radius: 14px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 4px rgba(35, 40, 35, 0.08);
    --shadow-md: 0 12px 26px rgba(35, 40, 35, 0.11);
    --shadow-lg: 0 24px 48px rgba(35, 40, 35, 0.15);
    --section-padding: 80px;

    /* Re-map the old template variables used throughout style.css */
    --primary: var(--color-primary);
    --dark: var(--color-secondary);
    --light: var(--color-bg-alt);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    font-size: 1.0625rem;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-secondary);
}

a { color: var(--color-primary-dark); }
a:hover { color: var(--color-primary); }

img { max-width: 100%; }

/* --------------------------------------------------------------------------
   Bootstrap overrides (affects every page)
   -------------------------------------------------------------------------- */
.text-primary { color: var(--color-primary) !important; }
.bg-primary { background-color: var(--color-primary) !important; }
.bg-light { background-color: var(--color-bg-alt) !important; }
.bg-dark { background-color: var(--color-secondary) !important; }
.border-primary { border-color: var(--color-primary) !important; }

.btn {
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: var(--radius-pill);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.btn.btn-primary,
.btn-primary {
    color: #fff;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn-primary:hover,
.btn-primary:focus {
    color: #fff;
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn.btn-outline-primary,
.btn-outline-primary {
    color: var(--color-primary-dark);
    border-color: var(--color-primary);
}

.btn.btn-outline-primary:hover,
.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.form-control,
.form-select {
    border-radius: var(--radius);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 .2rem rgba(var(--color-primary-rgb), .2);
}

.spinner-grow.text-primary { color: var(--color-primary) !important; }

/* Inner-page banners keep their photo but get the new colours */
.page-header { border-radius: 0 0 var(--radius) var(--radius); }

/* Cards / items from the old template */
.courses-item,
.team-item,
.testimonial-item {
    border-radius: var(--radius);
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Shared section helpers
   -------------------------------------------------------------------------- */
.s-section { padding: var(--section-padding) 0; }
.s-bg-default { background-color: var(--color-bg); }
.s-bg-alt { background-color: var(--color-bg-alt); }

.s-overline {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .875rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    margin-bottom: .75rem;
}

.s-heading {
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    margin-bottom: 1rem;
}

.s-intro {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    max-width: 640px;
}

.s-section-head {
    text-align: center;
    margin: 0 auto 48px;
    max-width: 720px;
}

.s-section-head .s-intro { margin: 0 auto; }

.s-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .9rem 1.75rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    border: 2px solid transparent;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}

.s-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.s-btn--primary { background: var(--color-primary); color: #fff; }
.s-btn--primary:hover { background: var(--color-primary-dark); color: #fff; }

.s-btn--secondary {
    background: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}
.s-btn--secondary:hover { background: var(--color-secondary); color: #fff; }

.s-btn--light { background: #fff; color: var(--color-primary-dark); }
.s-btn--light:hover { background: var(--color-bg-alt); color: var(--color-primary-dark); }

.s-btn--ghost-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .7);
}
.s-btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.s-checklist {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
}

.s-checklist li {
    position: relative;
    padding-left: 2.25rem;
    margin-bottom: .75rem;
    font-weight: 600;
}

.s-checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: .05rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Header (classic)
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(248, 251, 247, .95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}

.site-header .navbar {
    padding: .75rem 0;
}

.site-header .navbar-brand img {
    height: 74px;
    width: auto;
}

.site-header .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-secondary) !important;
    padding: .5rem .8rem !important;
    margin: 0 !important;
    border-radius: var(--radius-pill);
    text-transform: none !important;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--color-primary-dark) !important;
    background: var(--color-bg-alt);
}

.site-header__phone {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-secondary);
    text-decoration: none;
    white-space: nowrap;
}

.site-header__phone:hover { color: var(--color-primary-dark); }

.site-header .navbar-toggler {
    background: transparent !important;
    border: 2px solid var(--color-secondary);
    border-radius: var(--radius);
    padding: .4rem .65rem;
}

.site-header .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(var(--color-primary-rgb), .25); }

@media (max-width: 1199.98px) {
    .site-header .navbar-collapse {
        padding: 1rem 0 .5rem;
    }
    .site-header .site-header__actions {
        flex-direction: column;
        align-items: stretch !important;
        gap: .75rem !important;
        margin-top: .75rem;
    }
    .site-header .site-header__actions .s-btn { justify-content: center; }
}

/* --------------------------------------------------------------------------
   Hero (playful pop, blob image)
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 96px;
    background: var(--color-bg);
}

.hero__headline {
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    line-height: 1.08;
    margin-bottom: 1.25rem;
}

.hero__headline .hl { color: var(--color-primary); }

.hero__subheadline {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin-bottom: 2rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 2rem;
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero__trust li {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .9rem;
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    font-weight: 700;
    font-size: .925rem;
    box-shadow: var(--shadow-sm);
}

.hero__trust li i { color: var(--color-primary); }

.hero__media {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}

.hero__blob {
    position: absolute;
    inset: -6% -8% -8% -4%;
    background: var(--color-accent);
    border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
    opacity: .9;
    z-index: 0;
}

.hero__image {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
    box-shadow: var(--shadow-lg);
}

.hero__badge {
    position: absolute;
    z-index: 2;
    left: -12px;
    bottom: 8%;
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: .9rem 1.1rem;
    box-shadow: var(--shadow-md);
    max-width: 230px;
    font-weight: 700;
    line-height: 1.3;
}

.hero__badge strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-primary-dark);
}

@media (max-width: 991.98px) {
    .hero { padding: 48px 0 64px; }
    .hero__media { margin-top: 3rem; max-width: 420px; }
    .hero__badge { left: 0; }
}

/* --------------------------------------------------------------------------
   Stats (cards)
   -------------------------------------------------------------------------- */
.stats { padding: 0 0 var(--section-padding); background: var(--color-bg); }

.stats__card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.75rem 1.25rem;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.stats__value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--color-primary);
    margin-bottom: .5rem;
}

.stats__label {
    font-weight: 700;
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Service cards (pill grid)
   -------------------------------------------------------------------------- */
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.75rem;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
    color: var(--color-text);
}

.service-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--color-bg-alt);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.1rem;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: .5rem;
}

.service-card p {
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.service-card__more {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary-dark);
}

.service-card__more i { transition: transform .2s ease; }
.service-card:hover .service-card__more i { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Split (image + text)
   -------------------------------------------------------------------------- */
.split__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.split__panel {
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.split__panel h3 { color: #fff; font-size: 1.75rem; margin-bottom: 1.25rem; }

.split__panel ul { list-style: none; padding: 0; margin: 0 0 1.75rem; }

.split__panel li {
    display: flex;
    gap: .9rem;
    padding: .7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    font-weight: 600;
}

.split__panel li:last-child { border-bottom: 0; }
.split__panel li i { margin-top: .3rem; width: 1.1rem; text-align: center; }

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */
.feature-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 0 2rem 2rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.feature-card__image {
    display: block;
    width: calc(100% + 4rem);
    max-width: none;
    margin: 0 -2rem 1.5rem;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.feature-card__num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.25rem;
    line-height: 1;
    color: var(--color-accent);
    margin-bottom: .75rem;
}

.feature-card h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.feature-card p { color: var(--color-text-muted); margin: 0; }

/* --------------------------------------------------------------------------
   Process (numbered steps)
   -------------------------------------------------------------------------- */
.process__step {
    position: relative;
    text-align: center;
    padding: 0 .5rem;
}

.process__num {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px var(--color-bg-alt);
}

.process__step h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.process__step p { color: var(--color-text-muted); margin: 0; }

@media (min-width: 992px) {
    .process__step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 36px;
        left: calc(50% + 52px);
        width: calc(100% - 104px);
        border-top: 3px dashed var(--color-border);
    }
}

/* --------------------------------------------------------------------------
   Testimonials (cards)
   -------------------------------------------------------------------------- */
.testimonial-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.testimonial-card__stars {
    color: var(--color-accent);
    letter-spacing: .15em;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.testimonial-card blockquote {
    margin: 0;
    font-size: 1.05rem;
    flex-grow: 1;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1.5rem;
    font-weight: 700;
}

.testimonial-card__author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   FAQ – restyles the <details> blocks in sub/faq.php on every page
   -------------------------------------------------------------------------- */
.faq-section .container-xxl.courses {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0;
    background: none;
}

.faq-section .courses > .container > .mx-auto:empty,
.faq-section .courses > .container > .mx-auto.mb-5 { display: none; }

.faq-section .courses .pb-0 + .pb-0 { margin-top: 1rem; }

details {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease;
}

details[open] { box-shadow: var(--shadow-md); padding-bottom: 1.1rem; }

details summary {
    list-style: none;
    cursor: pointer;
    position: relative;
    padding: 1.1rem 2rem 1.1rem 0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-secondary);
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--color-bg-alt);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
}

details[open] summary::after { content: "\2212"; }

/* The FAQ include wraps each question in an old card; flatten it */
.courses-item:has(> div > details) {
    background: transparent !important;
    overflow: visible;
}

.courses-item > .p-4:has(> details) { padding: 0 !important; }

/* --------------------------------------------------------------------------
   CTA (split, primary background)
   -------------------------------------------------------------------------- */
.cta {
    background: var(--color-primary);
    color: #fff;
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.cta .s-overline { color: var(--color-accent); }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.cta p { color: rgba(255, 255, 255, .9); font-size: 1.15rem; margin: 0; }

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: flex-end;
}

@media (max-width: 991.98px) {
    .cta__actions { justify-content: flex-start; margin-top: 1.5rem; }
}

/* --------------------------------------------------------------------------
   Form block (centered card)
   -------------------------------------------------------------------------- */
.form-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    max-width: 720px;
    margin: 0 auto;
}

.form-card label {
    font-weight: 700;
    margin-bottom: .35rem;
}

.form-card .form-control,
.form-card .form-select {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: .8rem 1rem;
}

#mail-status .success { color: var(--color-primary-dark); font-weight: 700; margin: 1rem 0 0; }
#mail-status .Error { color: #dc2626; font-weight: 700; margin: 1rem 0 0; }

/* --------------------------------------------------------------------------
   Footer (columns, dark)
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--color-secondary);
    color: var(--color-text-on-dark);
    padding: 72px 0 56px;
}

.site-footer h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.1rem;
}

.site-footer a {
    color: rgba(241, 247, 240, .8);
    text-decoration: none;
}

.site-footer a:hover { color: var(--color-accent); }

.site-footer__logo {
    display: inline-block;
    background: #fff;
    border-radius: var(--radius);
    padding: .6rem .9rem;
    margin-bottom: 1.25rem;
}

.site-footer__logo img { height: 48px; width: auto; display: block; }

.site-footer__links { list-style: none; padding: 0; margin: 0; }
.site-footer__links li { margin-bottom: .55rem; }

.site-footer__contact p { margin-bottom: .55rem; }
.site-footer__contact i { color: var(--color-primary); width: 1.4rem; }

.site-footer__social {
    display: flex;
    gap: .6rem;
    margin-top: 1rem;
}

.site-footer__social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background-color .15s ease;
}

.site-footer__social a:hover { background: var(--color-primary); color: #fff; }

/* sub/copyrights.php renders the footer's bottom bar */
.copyright {
    background: var(--color-secondary) !important;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 1.25rem 0 !important;
    font-size: .925rem;
    color: rgba(241, 247, 240, .7) !important;
}

.copyright a { color: rgba(241, 247, 240, .85); text-decoration: none; }
.copyright a:hover { color: var(--color-accent); }
