/*
Theme Name: B&B De Buren
Theme URI: https://bbdeburen.nl/
Author: Sanne van Amsterdam
Author URI: https://sannevanamsterdam.nl/
Description: Dit thema is speciaal ontwikkeld voor B&B De Buren. Het thema combineert een warme, gastvrije uitstraling met moderne functionaliteit, zodat bezoekers direct een goede indruk krijgen en eenvoudig kunnen reserveren.
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 8.4
Version: 1.3
*/

/*
 * Reset
 */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/*
 * Variables
 */

:root {
    --background-color: #fff9f3;
    --background-color-dark: #efe3d3;
    --text-color: #261b0b;
    --text-color-light: #fff9f3;
    --primary-color: #709f56;
    --primary-color-dark: #48782d;
    --secondary-color: #f2b134;
    --footer-color: #2f5d62;
    --font-final-parade: 'Final Parade', sans-serif;
    --font-montserrat: 'Montserrat', sans-serif;
    --container-width: 95vw;
    --container-width-s: 750px;
    --container-width-m: 970px;
    --container-width-l: 1170px;
    --container-width-xl: 1400px;
}

/*
 * Typography
 */

body {
    color: var(--text-color);
    font-family: var(--font-montserrat);
}

h1 {
    font-size: 48px;
    font-weight: 800;
}

h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
}

h3 {
    font-size: 20px;
    font-weight: 800;
}

.content p,
.content li {
    line-height: 25px;
}

p:not(:last-child) {
    margin-bottom: 20px;
}

p:not(:last-child):last-of-type {
    margin-bottom: 30px;
}

.content a:not(.button) {
    color: var(--text-color);
    transition: all 0.3s;
}

.content a:not(.button):hover {
    color: var(--primary-color);
}

/*
 * Header
 */

.header {
    position: relative;
    z-index: 10;
}

/*
 * Navigation
 */

.logo {
    display: block;
    left: 0;
    max-width: 65vw;
    position: absolute;
    width: 300px;
}

.logo__link {
    display: block;
}

.logo__image {
    height: auto;
    max-width: 100%;
}

.mobile-nav-toggle {
    background-color: #fff;
    border-radius: 10px;
    color: var(--text-color);
    cursor: pointer;
    height: 50px;
    padding: 5px;
    transition: all 0.3s;
    width: 50px;
}

.mobile-nav-toggle:hover {
    color: var(--primary-color);
}

.mobile-nav-visible .mobile-nav-toggle {
    display: none;
}

.mobile-nav-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    left: -85vw;
    padding: 20px;
    position: fixed;
    top: 0;
    transition: left 0.5s;
    width: 85vw;
    z-index: 10;
}

.mobile-nav-visible .mobile-nav-header {
    left: 0;
}

.mobile-nav-header__logo {
    width: 150px;
}

#mobile-nav-close {
    color: var(--text-color);
    cursor: pointer;
    display: block;
    height: 40px;
    width: 40px;
}

.nav {
    align-items: center;
    display: flex;
    height: 90px;
    justify-content: flex-end;
    margin: 80px auto 0;
    position: relative;
    width: var(--container-width);
}

.nav__items {
    background: #fff;
    bottom: 0;
    gap: 30px;
    left: -85vw;
    list-style: none;
    padding: 150px 20px 20px;
    position: fixed;
    top: 0;
    transition: left 0.5s;
    width: 85vw;
}

.nav__children {
    list-style: none;
    margin: 20px 0 0 20px;
}

.mobile-nav-visible .nav__items {
    left: 0;
}

.nav__link {
    color: var(--text-color);
    display: block;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    text-decoration: none;
}

.mobile-nav-visible .nav__link--active {
    color: var(--primary-color);
}

.nav__item:not(:last-child) {
    margin-bottom: 40px;
}

#mobile-nav-overlay {
    background-color: #00000070;
    bottom: 0;
    cursor: pointer;
    display: none;;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
}

.mobile-nav-visible #mobile-nav-overlay {
    display: block;
}

/*
 * Content
 */

 body {
    background-color: var(--background-color);
 }

.content {
    margin-top: -170px;
}

.content > div:nth-child(odd) {
    background-color: var(--background-color-dark);
}

.content > div:last-child {
    padding-bottom: 100px;
}

.content ul {
    display: inline-block;
    text-align: left;
}

.content .list-columns--with-background ul {
    background: var(--background-color-dark);
    border-radius: 10px;
    padding: 12px 20px;
}

.content .list-columns--three ul {
    display: block;
}

.content ul:not(:last-child) {
    margin-bottom: 30px;
}

.content > div:nth-child(odd).list-columns--with-background ul {
    background: var(--background-color);
}

.content li {
    break-inside: avoid;
    margin-left: 20px;
    padding: 4px 0;
}

img {
    border-radius: 9999px;
    -webkit-filter: sepia(10%) saturate(110%) brightness(102%) contrast(95%) hue-rotate(-8deg);
    filter: sepia(10%) saturate(110%) brightness(102%) contrast(95%) hue-rotate(-8deg);
}

/*
 * Content - Banner
 */

.banner {
    align-items: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;;
    display: flex;
    -webkit-filter: sepia(10%) saturate(110%) brightness(102%) contrast(95%) hue-rotate(-8deg);
    filter: sepia(10%) saturate(110%) brightness(102%) contrast(95%) hue-rotate(-8deg);
    height: 730px;
    justify-content: center;
    max-height: 70vh;
    padding: 0 2.5vw;
    position: relative;
    width: 100vw;
}

.banner:not(:first-child) {
    height: 500px;
    max-height: 50vh;
}

.banner:before {
    background-color: rgb(0, 0, 0, .1);
    bottom: 0;
    content: '';
    display: block;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: -1;
}

.banner:first-child,
.banner:only-child {
    clip-path: ellipse(140% 100% at top);
    padding-top: 170px;
}

.banner__text {
    text-shadow: 0 2px 8px rgb(0, 0, 0, .25);
}

/*
 * Content - One column
 */

.one-column {
    padding: 30px 0;
}

.foto-links {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px !important;
}

.foto-link {
    text-align: center;
}

.foto-link img {
    border-radius: 9999px;
    margin: 0 auto 15px;
}

.one-column p:has(img) {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: center;
    overflow-x: auto;
}

.one-column p > img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    max-width: 180px;
    width: 100%;
}

/*
 * Content - Two columns
 */

.two-columns {
    padding: 30px 0;
}

.two-columns__images {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    overflow-x: scroll;
    width: 100%;
}

.two-columns__image {
    border-radius: 9999px;
    width: 250px;
}

/*
 * Content - Gallery
 */

.gallery {
    padding: 30px 0;
}

.gallery__text {
    margin-bottom: 40px;
}

.gallery__items {
    position: relative;
}

.gallery__item {
    border-radius: 8px;
    position: absolute;
}

/*
 * Content - Booking plugin
 */

.content .wpbc_wizard__border_container {
    background-color: var(--background-color-dark);
    border: none;
    border-radius: 10px;
    font-family: var(--font-montserrat);
    padding: 20px;
}

.content > div:nth-child(odd) .wpbc_wizard__border_container {
    background: var(--background-color);
}

.content .wpbc_container .booking_form input[type="button"] {
    align-items: center;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 9999px;
    color: var(--text-color-light);
    display: inline-flex;
    font-weight: 600;
    gap: 10px;
    justify-content: center;
    line-height: 1;
    padding: 15px 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.content .wpbc_container .booking_form input[type="button"]:hover {
    background-color: var(--primary-color-dark);
    border: 1px solid var(--primary-color-dark);
    border-radius: 9999px;
    color: var(--text-color-light);
    line-height: 1;
    padding: 15px 20px;
}

.content .wpbc_container .wpbc_field_description {
    font-size: 14px;
    font-style: italic;
}

.content .wpbc_container .wpbc_after_booking_thank_you_section .wpbc_ty__message {
    margin-bottom: 30px;
    width: 100%;
}

/*
 * Footer
 */

.footer {
    background-color: var(--footer-color);
    color: var(--text-color-light);
    line-height: 25px;
    padding: 30px 0;
}

.footer-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 30px;
    position: relative;
}

.footer-logo {
    display: block;
    margin-top: -60px;
    width: 200px;
}

.footer-logo__image {
    height: auto;
    max-width: 100%;
}

.footer-logo__inner-wrap {
    align-items: center; 
    display: flex;
    fill: var(--text-color-light);
    gap: 10px;
    justify-content: center;
}

.footer a {
    color: var(--text-color-light);
}

.footer .icons {
    align-items: center;
    display: flex;
    gap: 10px;
}

.footer .icons > a {
    color: var(--text-color-light);
    display: block;
}

/*
 * Utilities
 */

.button {
    align-items: center;
    background-color: transparent;
    border: 1px solid var(--text-color);
    border-radius: 9999px;
    color: var(--text-color);
    display: inline-flex;
    font-weight: 600;
    gap: 10px;
    justify-content: center;
    line-height: 1;
    padding: 15px 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.button:hover,
.foto-link__image:hover + .button {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.button--primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color-light);
}

.button--primary path {
    fill: var(--text-color-light);
}

.button--primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

/*
 * Layout
 */

.container {
    margin: 0 auto;
    width: var(--container-width);
}

/*
 * Responsive
 */

@media screen and (min-width: 768px) {
    .container {
        width: var(--container-width-s);
    }

    .nav {
        width: var(--container-width-s);
    }

    .mobile-nav-header {
        width: 60vw;
    }

    .nav__items {
        width: 60vw;
    }

    .banner:first-child,
    .banner:only-child {
        clip-path: ellipse(130% 100% at top);
        padding-top: 170px;
    }

    .content .list-columns--two ul {
        column-count: 2;
    }

    .content .list-columns--three ul {
        column-count: 3;
    }

    .foto-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .two-columns__wrap {
        display: grid;
        gap: 80px;
        grid-template-columns: 2fr 1fr;
    }

    .two-columns__wrap--reversed {
        grid-template-columns: 1fr 2fr;
    }

    .two-columns__wrap--reversed div:nth-child(2) {
        order: -1;
    }

    .two-columns__images {
        display: flex;
        flex-direction: column;
        margin-top: 0;
        overflow-x: initial;
    }

    .two-columns__image {
        width: auto;
    }

    .footer-wrap {
        align-items: flex-end;
        flex-direction: row;
        gap: 60px;
    }

    .footer-logo {
        align-self: flex-start;
    }
}

@media screen and (min-width: 992px) {
    .container {
        width: var(--container-width-m);
    }

    h2 {
        font-size: 36px;
        margin-bottom: 35px;
    }

    p:not(:last-child) {
        margin-bottom: 30px;
    }

    p:not(:last-child):last-of-type {
        margin-bottom: 40px;
    }

    .mobile-nav-toggle {
        display: none;
    }

    .nav {
        background: linear-gradient(90deg, transparent 0%, transparent 200px, #fff 200px, #fff 100%);
        border-radius: 9999px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .1);
        padding: 20px;
        width: var(--container-width-m);
    }

    .nav__items {
        align-items: center;
        display: flex;
        left: initial;
        padding: 0;
        position: relative;
        width: auto;
    }

    .nav__children {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .1);
        display: none;
        left: 0;
        margin: 0;
        padding: 30px 20px;
        position: absolute;
        top: 100%;
        width: 170%;
    }

    .nav__item:hover {
        z-index: 10;
    }

    .nav__item:hover > .nav__children {
        display: block;
    }

    .nav__item {
        position: relative;
    }

    .nav__item:not(:last-child) {
        margin-bottom: 0;
    }

    .nav__link:not(.button):after {
        background-color: var(--primary-color);
        bottom: -14px;
        content: '';
        height: 4px;
        left: 0;
        position: absolute;
        right: 100%;
        transition: right 0.3s;
    }

    .nav__link:not(.button):hover:after {
        right: 0;
    }

    .nav__link--active:after {
        right: 0 !important;
    }

    .banner:first-child,
    .banner:only-child {
        clip-path: ellipse(120% 100% at top);
    }

    .one-column {
        padding: 70px 0;
    }

    .foto-links {
        margin-top: 70px !important;
    }

    .one-column__wrap {
        max-width: 768px;
        text-align: center;
    }

    .foto-links {
        gap: 60px;
        grid-template-columns: repeat(4, 1fr);
    }

    .two-columns {
        padding: 70px 0;
    }

    .two-columns__wrap {
        grid-template-columns: 1fr 1fr;
    }

    .two-columns__images {
        display: grid;
        grid-template-columns: 1fr 10px 1fr;
        grid-template-rows: repeat(3, 1fr);
        width: 100%;
    }

    .two-columns__image:first-child {
        grid-column: 1 / span 2;
        grid-row: 1 / span 2;
    }

    .two-columns__wrap--reversed .two-columns__image:first-child {
        grid-row: 2 / span 2;
    }

    .two-columns__image:last-child {
        grid-column: 2 / span 2;
        grid-row: 2 / span 2;
    }

    .two-columns__wrap--reversed .two-columns__image:last-child {
        grid-row: 1 / span 2;
    }

    .gallery {
        padding: 70px 0;
    }

    .gallery__text {
        margin: 0 auto 70px;
        max-width: 768px;
        text-align: center;
    }
}

@media screen and (min-width: 1280px) {
    .container {
        width: var(--container-width-l);
    }

    h1 {
        font-size: 64px;
    }

    .nav {
        width: var(--container-width-l);
    }

    .nav__items {
        gap: 50px;
    }

    .nav__link {
        font-size: 18px;
    }

    .banner:first-child,
    .banner:only-child {
        clip-path: ellipse(100% 100% at top);
    }
}

@media screen and (min-width: 1500px) {
    .page {
        margin: 0 auto;
        max-width: 1920px;
    }

    .container {
        width: var(--container-width-xl);
    }

    .nav {
        width: var(--container-width-xl);
    }

    .foto-links {
        gap: 80px;
    }

    .two-columns__images {
        grid-template-columns: 1fr 40px 1fr;
    }
}

/*
 * Fonts
 */

 /* Final Parade Script */
@font-face {
  font-display: swap;
  font-family: 'Final Parade';
  font-style: normal;
  font-weight: 400;
  src: url('../bb-de-buren/src/fonts/final-parade-script.woff2') format('woff2');
}

/* Montserrat Regular */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('../bb-de-buren/src/fonts/montserrat-400.woff2') format('woff2');
}

/* Montserrat Medium */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  src: url('../bb-de-buren/src/fonts/montserrat-500.woff2') format('woff2');
}

/* Montserrat SemiBold */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  src: url('../bb-de-buren/src/fonts/montserrat-600.woff2') format('woff2');
}

/* Montserrat Bold */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: url('../bb-de-buren/src/fonts/montserrat-700.woff2') format('woff2');
}

/* Montserrat ExtraBold */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  src: url('../bb-de-buren/src/fonts/montserrat-800.woff2') format('woff2');
}
