
/*
Theme Name: AutoCheckr Child
Theme URI: https://autocheckr.nl/
Description: Custom child theme voor AutoCheckr.nl, gebaseerd op Kadence.
Author: AutoCheckr
Template: kadence
Version: 1.0.1
Text Domain: autocheckr-child
*/

:root {
    --ac-primary: #2563EB;
    --ac-primary-hover: #1D4ED8;
    --ac-text: #111827;
    --ac-text-muted: #6B7280;
    --ac-background: #F8FAFC;
    --ac-white: #FFFFFF;
    --ac-border: #E5E7EB;
    --ac-header-height: 84px;
    --ac-nav-height: 84px;
    --ac-safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--ac-header-height) + 16px);
}

body {
    margin: 0;
    padding-bottom: calc(var(--ac-nav-height) + var(--ac-safe-bottom) + 12px);
    color: var(--ac-text);
    background: var(--ac-white);
    font-family: Arial, Helvetica, sans-serif;
}

.ac-container {
    width: min(calc(100% - 40px), 1200px);
    margin-inline: auto;
}

/* Toegankelijkheid */
.ac-skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 2000;
    padding: 12px 16px;
    background: var(--ac-white);
    color: var(--ac-primary);
}

.ac-skip-link:focus {
    top: 12px;
}

/* Sticky header */
.ac-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--ac-white);
    border-bottom: 1px solid var(--ac-border);
}

.ac-header__inner {
    min-height: var(--ac-header-height);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 8px;
    padding-bottom: 8px;
}

.ac-header__logo {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
}

.ac-header__logo img {
    display: block;
    width: auto;
    max-width: 210px;
    max-height: 60px;
    object-fit: contain;
}

/* Vaste navigatie onderaan */
.ac-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1100;
    padding: 8px 20px calc(8px + var(--ac-safe-bottom));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--ac-border);
    box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.ac-bottom-nav__list {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 4px;
    width: 100%;
    max-width: 760px;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
}

.ac-bottom-nav__list > .ac-bottom-nav__item {
    display: block;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.ac-bottom-nav__list > .ac-bottom-nav__item::before,
.ac-bottom-nav__list > .ac-bottom-nav__item::marker {
    display: none !important;
    content: none !important;
}

.ac-bottom-nav__link {
    position: relative;
    display: flex !important;
    min-height: 64px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 2px !important;
    border-radius: 12px;
    color: #475569 !important;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}

.ac-bottom-nav__link:hover,
.ac-bottom-nav__link:focus-visible,
.ac-bottom-nav__link.is-active {
    color: var(--ac-primary) !important;
}

.ac-bottom-nav__link.is-active {
    font-weight: 700;
}

.ac-bottom-nav__link.is-active::before {
    position: absolute;
    top: -8px;
    left: 25%;
    right: 25%;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--ac-primary);
    content: "";
}

.ac-bottom-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.ac-bottom-nav__icon svg {
    display: block;
    width: 25px;
    height: 25px;
    stroke: currentColor;
}

.ac-bottom-nav__label {
    display: block;
    overflow: hidden;
    max-width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Footer */
.ac-footer {
    margin-top: 64px;
    background: var(--ac-background);
    border-top: 1px solid var(--ac-border);
}

.ac-footer__inner {
    padding-top: 40px;
    padding-bottom: 24px;
}

.ac-footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 28px;
}

.ac-footer__brand img {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 58px;
    object-fit: contain;
}

.ac-footer__tagline {
    margin: 0;
    color: var(--ac-text-muted);
    font-size: 15px;
}

.ac-footer__navigation {
    padding: 24px 0;
    border-top: 1px solid var(--ac-border);
    border-bottom: 1px solid var(--ac-border);
}

.ac-footer__navigation ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ac-footer__navigation li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ac-footer__navigation a {
    color: var(--ac-text-muted);
    font-size: 14px;
    text-decoration: none;
}

.ac-footer__navigation a:hover,
.ac-footer__navigation a:focus-visible {
    color: var(--ac-primary);
}

.ac-footer__bottom {
    padding-top: 22px;
}

.ac-footer__bottom p {
    margin: 0 0 10px;
    color: var(--ac-text-muted);
    font-size: 13px;
    line-height: 1.7;
}

.ac-footer__note {
    max-width: 760px;
}

/* Mobiel */
@media (max-width: 900px) {
    :root {
        --ac-header-height: 68px;
        --ac-nav-height: 76px;
    }

    .ac-container {
        width: calc(100% - 32px);
    }

    .ac-header__inner {
        padding: 8px 16px;
    }

    .ac-header__logo img {
        max-width: 172px;
        max-height: 48px;
    }

    .ac-bottom-nav {
        padding-right: 6px;
        padding-left: 6px;
    }

    .ac-bottom-nav__link {
        min-height: 58px;
        gap: 4px;
        font-size: 11px;
    }

    .ac-bottom-nav__icon svg {
        width: 24px;
        height: 24px;
    }

    .ac-footer__top {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .ac-footer__navigation ul {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }
}

/* Desktop: horizontale navigatie onderaan */
@media (min-width: 901px) {
    .ac-bottom-nav__link {
        min-height: 64px;
        flex-direction: row;
        gap: 9px;
        font-size: 14px;
    }

    .ac-bottom-nav__link.is-active::before {
        top: -8px;
        left: 30%;
        right: 30%;
    }
}

/* Respecteer voorkeur voor minder beweging */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}


/* =========================================
   AutoCheckr navigatie — definitieve correctie
   ========================================= */

/* Desktop: logo links, navigatie rechts */
.ac-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #FFFFFF;
}

.ac-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 84px;
}

.ac-desktop-nav {
    display: block;
    margin-left: auto;
}

.ac-desktop-nav__list {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 28px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.ac-desktop-nav__list li {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.ac-desktop-nav__list li::marker {
    content: "";
}

.ac-desktop-nav__link {
    display: inline-block;
    padding: 12px 0;
    color: #111827;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
}

.ac-desktop-nav__link:hover,
.ac-desktop-nav__link:focus-visible,
.ac-desktop-nav__link.is-active {
    color: #2563EB;
}

.ac-desktop-nav__link.is-active {
    font-weight: 700;
}

/* Desktop: geen vaste navigatie onderaan */
.ac-bottom-nav {
    display: none !important;
}

body {
    padding-bottom: 0;
}

/* Mobiel: logo bovenaan, app-navigatie onderaan */
@media (max-width: 900px) {
    .ac-header__inner {
        min-height: 68px;
        justify-content: flex-start;
        padding: 8px 16px;
    }

    .ac-header__logo img {
        max-width: 172px;
        max-height: 48px;
    }

    .ac-desktop-nav {
        display: none !important;
    }

    .ac-bottom-nav {
        display: block !important;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid #E5E7EB;
        box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.06);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .ac-bottom-nav__list {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
        width: 100%;
        max-width: 560px;
        margin: 0 auto !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .ac-bottom-nav__item {
        display: block;
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .ac-bottom-nav__item::marker {
        content: "";
    }

    .ac-bottom-nav__link {
        display: flex !important;
        min-height: 58px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 5px 2px !important;
        color: #475569 !important;
        font-size: 11px;
        line-height: 1.2;
        text-align: center;
        text-decoration: none !important;
    }

    .ac-bottom-nav__link.is-active {
        color: #2563EB !important;
        font-weight: 700;
    }

    .ac-bottom-nav__icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ac-bottom-nav__icon svg {
        display: block;
        width: 25px;
        height: 25px;
    }

    .ac-bottom-nav__label {
        display: block;
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    body {
        padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }
}


/* Mobiele header: uitsluitend het logo bovenaan */
@media screen and (max-width: 900px) {
    header.ac-header nav.ac-desktop-nav,
    .ac-header .ac-desktop-nav {
        display: none !important;
        visibility: hidden !important;
    }

    header.ac-header .ac-header__inner {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        min-height: 68px;
    }

    header.ac-header .ac-header__logo {
        display: inline-flex !important;
    }

    nav.ac-bottom-nav {
        display: block !important;
        position: fixed !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 99999 !important;
    }

    nav.ac-bottom-nav ul.ac-bottom-nav__list {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        padding: 0 !important;
        margin: 0 auto !important;
        list-style: none !important;
    }

    nav.ac-bottom-nav ul.ac-bottom-nav__list > li {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    nav.ac-bottom-nav ul.ac-bottom-nav__list > li::marker {
        content: none !important;
    }
}


