/*
Theme Name: AutoExtra
*/

/* ================
   Algemene opmaak
   ================ */

html {
    background-color: #f5f5f5;
}

body {
    font-family: 'Oswald', sans-serif;
}

.page-wrapper {
    width: 65%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    padding: 0 25px;
    box-sizing: border-box;
}

/* ================
   Top header
   ================ */

.top-header {
    color: white;
    font-size: 14px;
}

.header-bar {
    background-color: #3f4861;
    padding: 2px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-info,
.opening-hours {
    color: #ffffff;
    background-color: #3f4861;
}

.contact-info {
    text-align: left;
}

.contact-info a {
    text-decoration: none;
}

.opening-hours {
    text-align: right;
}

.white-font {
    color: white;
}

/* ======================
   Responsive Top Header
   ====================== */

@media (max-width: 768px) {
    .header-inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        max-width: fit-content;
    }

    .contact-info,
    .opening-hours {
        font-size: small;
        width: 100%;
        text-align: left;
    }
}

/* ======================
   Aangepaste header layout
   ====================== */

.custom-header-content {
    background-color: #ffffff;
}

.custom-header-inner,
.custom-header-top {
    display: flex;
    min-width: 0;
}

.custom-header-top {
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
}

.custom-logo-wrapper {
    flex: 0 0 auto;
}

.custom-logo {
    height: auto;
    display: block;
    max-height: 100px;
}

.custom-slogan-wrapper {
    flex-shrink: 1;
    min-width: 0;
    text-align: right;
}

.custom-header-slogan {
    font-size: 40px;
    color: #db213a;
    font-weight: bold;
    line-height: 1.2;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    box-sizing: border-box;
    padding: 0 10px;
    margin: 0;
}

/* Auto-afbeelding */
.custom-car-image-wrapper {
    text-align: center;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.custom-car-image {
    max-width: 100%;
    height: auto;
}

/* ======================
   Responsive header
   ====================== */

@media (max-width: 768px) {
    .custom-header-top {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .custom-logo-wrapper {
        flex: 0 1 auto;
        margin: 0 0 0 -10px;
    }

    .custom-logo {
        max-height: 60px;
        height: auto;
        width: auto;
    }

    .custom-slogan-wrapper {
        display: flex;
        flex: 1 1 auto;
        justify-content: center;
        margin: 0 -10px;
        max-width: none;
        text-align: right;
        min-width: 0;
    }

    .custom-header-slogan {
        font-size: 20px;
        line-height: 1.2;
        margin: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        white-space: normal;
    }

    .custom-car-image-wrapper {
        margin-top: 15px;
        text-align: center;
        width: 100%;
    }

    .custom-car-image {
        max-width: 100%;
        height: auto;
    }

    .page-wrapper {
        width: 95%;
        padding: 0 25px;
        box-sizing: border-box;
    }
}

/* ================
   Navigatiemenu
   ================ */

.menu-wrapper {
    display: flex;
    justify-content: center;
}

.menu-wrapper ul.menu {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-wrapper ul.menu li a {
    background-color: #db213a;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    margin-top: 15px;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 5px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.menu-wrapper ul.menu li a:hover {
    background-color: #a61927;
}


/* === Hamburger Menu Styling === */
.menu-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    /* zet alles onder elkaar */
    align-items: center;
    margin-top: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #db213a;
    padding: 10px;
    align-self: center;
    /* hamburger netjes in het midden */
}

.menu-container {
    display: flex;
}

.menu-container ul.menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Mobiele weergave */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .menu-container {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .menu-container.active {
        display: flex;
        /* Extra centrering van de hele container */
        justify-content: center;
    }

    .menu-container .menu {
        flex-direction: column;
        align-items: center;
        width: auto;
        /* niet 100%, maar 'auto' zodat de items niet uitrekken */
        max-width: 300px;
        /* max breedte zodat het menu niet te breed wordt */
        padding: 0;
        margin: 0;
    }

    .menu-container .menu li {
        width: 100%;
        padding: 0px 100%;
        text-align: center;
        justify-content: center;
        display: flex;
    }

    .menu-container .menu li a {
        display: block;
        width: 100%;
        padding: 10px 20px;
        /* iets meer klikruimte */
    }
}



/* ================
   Typografie
   ================ */

.tagline h1,
h1 {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
    text-align: center;
    padding: 0 1rem;
    max-width: 100%;
}

h2 {
    font-size: 35px;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
    text-align: center;

    max-width: 100%;
}

/* ================
   Afbeeldingen & media
   ================ */

.header-cars img {
    max-width: 30%;
    height: auto;
}

.wp-block-separator {
    border: none;
    border-top: 3px solid #eeeeee;
    width: calc(100% - 70px);
    margin-top: 70px;
    margin-bottom: 70px;
}

/* ================
   Parallax
   ================ */

.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin: 2rem 0;
    color: #ffffff;
}

.parallax-overlay {
    padding: 16px;
    color: #fff;
    max-width: 90%;
    border-radius: 8px;
    font-size: xx-large;
}

/* ================
   Gutenberg blocks
   ================ */

.wp-block-navigation__container a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    border-radius: 10px;
}

.wp-block-column {
    border-radius: 12px;
    overflow: hidden;
}

/* ================
   Iconen & helpers
   ================ */

.icon {
    text-align: center;
    width: 100%;
}

/* ================
   Layout tweaks
   ================ */

.page-wrapper>.top-header {
    margin-left: -25px;
    margin-right: -25px;
    padding-left: 0;
    padding-right: 0;
}

.page-wrapper>.site-footer {
    margin-left: -25px;
    margin-right: -25px;
    padding-left: 0;
    padding-right: 0;
}

/* ================
   Footer
   ================ */

.site-footer {
    background-color: #3f4861;
    color: white;
    font-size: 14px;
    padding: 0.1px;
}

.footer-inner {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Algemene layout en responsiviteit */
.wpcf7 {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Inputvelden, textarea, select */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    color: #8c8080;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fff;
}

/* Labels */
.wpcf7-form label {
    color: #8c8080;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

/* Verzendknop */
.wpcf7 input[type="submit"] {
    padding: 10px 20px;
    background-color: #db213a;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    width: fit-content;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #b61b30;
}

/* Ongeldige invoer (error styles) */
.wpcf7-not-valid-tip {
    color: #db213a;
    font-size: 14px;
}

.wpcf7-not-valid {
    background-color: #fff5f5;
    border-color: #db213a;
}

/* Responsiviteit op kleine schermen */
@media (max-width: 600px) {
    .wpcf7-form {
        gap: 10px;
    }

    .wpcf7 input[type="submit"] {
        width: 100%;
        text-align: center;
    }
}

/* Zorg dat het menu een horizontale rij wordt */
ul.menu,
/* standaard menu class */
ul#menu-autoextra,
/* als je menu ID zo heet */
ul#menu-autoextra.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 10px 20px;
}

/* Stijl voor de links in de menu items */
ul.menu li a,
ul#menu-autoextra li a {
    background-color: #db213a;
    color: white !important;
    font-weight: bold;
    padding: 10px 20px;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 5px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

/* Hover effect */
ul.menu li a:hover,
ul#menu-autoextra li a:hover {
    background-color: #a61927;
}

.icons .partner {
    display: flex;
    justify-content: space-between;
    padding: 0px 10px;
}

@media (max-width: 768px) {
    .icons .partner {
        justify-content: center;
        display: flex;
        width: 150px;
        padding: 10px 0;
        margin: 0 auto;
    }
}