/*
Theme Name:        OV Saldo Check
Theme URI:         https://ovsaldocheck.com/
Author:            OV Saldo Check
Author URI:        https://ovsaldocheck.com/
Description:       Lichtgewicht, SEO-vriendelijk WordPress-thema voor OV Saldo Check. Geen plugin-conflicten, Google-beleid compliant, geen hardgecodeerde title of meta-tags.
Version:           1.0.8
Requires at least: 6.0
Tested up to:      6.5
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       ovsaldocheck
Tags:              one-column, custom-logo, translation-ready
*/

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    background: #f6f8fb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 17px;
    color: #1f2937;
}

/* WordPress block editor / Gutenberg mogelijke body padding override */
body.page,
body.single,
body.archive,
body.search,
body.blog {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ── Accessibility: skip link ───────────────────────────────────────────────── */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
    background: #12325f;
    color: #fff;
    padding: 8px 14px;
    border-radius: 0 0 6px 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.skip-link:focus {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    top: 0;
}

/* ── Site wrapper ───────────────────────────────────────────────────────────── */
.site-main {
    min-height: 60vh;
    padding: 0;
    margin: 0;
}

/* ── Admin-bar compensatie voor sticky header ────────────────────────────────── */
.admin-bar #ovsaldo-page .ov-site-header,
.admin-bar body .ov-site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {

    .admin-bar #ovsaldo-page .ov-site-header,
    .admin-bar body .ov-site-header {
        top: 46px;
    }
}

/* ── Logo / naam ─────────────────────────────────────────────────────────────── */
.ov-site-header__logo {
    flex-shrink: 0;
}

.ov-site-header__logo img {
    display: block;
    max-height: 44px;
    width: auto;
}

.ov-site-header__title {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.ov-site-header__title:hover {
    color: #bfdbfe;
    text-decoration: none;
}

/* ── Primaire nav ────────────────────────────────────────────────────────────── */
.ov-primary-nav {
    display: flex;
    align-items: center;
}

/* WordPress genereert <ul class="ov-menu"> */
.ov-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.ov-menu li {
    position: relative;
}

.ov-menu a,
.ov-menu span {
    display: block;
    color: #e0eaff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 7px;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.ov-menu a:hover,
.ov-menu li.current-menu-item>a,
.ov-menu li.current_page_item>a {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    text-decoration: none;
}

/* ── Dropdown (diepte 2) ─────────────────────────────────────────────────────── */
.ov-menu .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    padding: 6px;
    min-width: 200px;
    z-index: 100;
    list-style: none;
    margin: 0;
    flex-direction: column;
    gap: 2px;
}

.ov-menu li:hover>.sub-menu,
.ov-menu li:focus-within>.sub-menu {
    display: flex;
}

.ov-menu .sub-menu a {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    border-radius: 7px;
    padding: 8px 12px;
}

.ov-menu .sub-menu a:hover {
    background: #eff6ff;
    color: #12325f;
}

/* ── Hamburger knop (mobiel) ─────────────────────────────────────────────────── */
.ov-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .4);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.ov-nav-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

.ov-nav-toggle[aria-expanded="true"] .ov-nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.ov-nav-toggle[aria-expanded="true"] .ov-nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.ov-nav-toggle[aria-expanded="true"] .ov-nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobiele weergave ────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
    .ov-nav-toggle {
        display: flex;
    }

    .ov-primary-nav {
        display: none;
        width: 100%;
        order: 3;
        padding-bottom: 12px;
    }

    .ov-primary-nav.ov-nav-open {
        display: flex;
    }

    .ov-site-header__inner {
        flex-wrap: wrap;
        padding: 8px 14px;
    }

    .ov-menu {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 2px;
    }

    .ov-menu a {
        font-size: 15px;
        padding: 10px 12px;
    }

    .ov-menu .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-left: 3px solid #bfdbfe;
        border-radius: 0;
        background: transparent;
        padding: 0 0 0 12px;
        margin: 4px 0 0;
        display: flex;
    }

    .ov-menu .sub-menu a {
        color: #e0eaff;
    }

    .ov-menu .sub-menu a:hover {
        background: rgba(255, 255, 255, .1);
        color: #fff;
    }
}