body {
    background-color: #D4CEE6;
    color: #D4CEE6;
    font-family: "caraque-melted", sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    overflow-x: hidden;
}

footer {
    background-color: #675893;
    margin-top: 4rem
}

body p em {
    font-weight: 500;
}

img {
    border-radius: 1.875rem;
}

button {
    background-color: #634791;
    color: white;
    font-family: "caraque-melted", sans-serif;
    font-weight: 500;
    font-size: 2rem;
    border: none;
    padding: 0.5rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

button,
.discover-button {
    transition:
        background-color 0.3s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

button:hover,
.discover-button:hover {
    background-color: #2C2A5A;
    transform: translateY(-0.15rem);
    box-shadow: 0 0.5rem 1.5rem rgba(44, 42, 90, 0.25);
}


/* TYPOGRAFIE */



h1,
h2 {
    font-family: "jumble", sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 3.5rem;
    color: #675893;
}

section h2,
div h2 {
    margin-bottom: 3rem;
}

h3 {
    font-family: "caraque-melted", sans-serif;
    font-weight: 500;
    font-size: 2.625rem;
    color: white;
    margin-bottom: 1.25rem;
}



/* HEADER & NAV */



header {
    background-color: #D4CEE6;

    background-image: url("../../assets/images/hero-achtergrond.jpg");
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: 0 0;
    animation: bgScroll 60s linear infinite;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5%;
}

nav a {
    color: #2C2A5A;
    font-family: "caraque-melted", sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    text-decoration: none;
    margin: 0 1rem;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

nav a:hover {
    color: #634791;
    transform: translateY(-0.1rem);
}

nav img#logo {
    width: 8%;
    min-width: 5rem;
}



/* STRUCTUUR */



header,
main,
footer {
    width: 100%;
}

main section,
main div {
    padding: 12% 14%;
}



/* HERO (HEADER) */



#hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2% 10% 10% 10%;
}

#heroImage {
    width: 45%;
    animation: floatPanda 10s linear infinite;
    will-change: transform;
}

.heroText {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 5%;
    color: #2C2A5A;
}

.heroText h1 {
    color: #2C2A5A;
}

.heroText p {
    font-weight: 500;
    font-size: 2rem;
    margin: 2rem 0;
}

#heroButton {
    align-self: flex-start;
}

#wat {
    position: relative;
    padding: 8% 14% 40% 14%;
}

#wat::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 30%;
    background-image: url("../../assets/images/Section-end1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* STANDARD SECTIONS */



.standardSection {
    background-color: #675893;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.standardSection img {
    width: 40%;
}

.standardSection article {
    width: 55%;
}

.standardSection p {
    margin-bottom: 1.25rem;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}


/* WAAROM */



#waarom {
    background-color: #D4CEE6;
    text-align: center;
    padding: 12% 14% 28% 14%;
    position: relative;
}

#waarom::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 20%;
    background-image: url("../../assets/images/Section-end2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#reasons-container {
    display: flex;
    justify-content: center;
    gap: 2%;
    margin-top: 5%;
    align-items: flex-end;
    padding: 0;
}

#reasons-container article {
    width: auto;
    padding: 4rem 2rem 2rem 2rem;
    background-color: #675893;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    border-radius: 1.25rem;
    transition: background-color 0.35s ease;
}

#reasons-container article:hover {
    background-color: #534070;
}

#reasons-container img {
    width: 75%;
    height: auto;
}

#reasons-container h4 {
    margin-top: 2rem;
    color: #D4CEE6;
    font-weight: 500;
    font-size: 2.25rem;
}



/* OVER ONS */

#over-ons {
    position: relative;
    padding: 12% 14% 40% 14%;
}

#over-ons::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 30%;
    background-image: url("../../assets/images/Section-end3.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* ANDERE KOEKJES */



#cookies {
    background-color: #D4CEE6;
    padding: 12% 14% 26% 14%;
    position: relative;
}

#cookies h2 {
    color: #675893;
    text-align: center;
}

#products-container {
    display: flex;
    justify-content: space-between;
    gap: 6%;
    margin-top: 5%;
    padding: 0;
}

#products-container .product {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10%;
    position: relative;
}

#products-container img {
    width: 100%;
    height: 22rem;
    object-fit: cover;
    border: 0.85rem solid #634791;
}

.discover-button {
    position: absolute;
    top: 2rem;
    right: 1rem;
    text-decoration: none;
    background-color: #634791;
    color: white;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    font-size: 1.125rem;
    border-radius: 0.375rem;
}



/* CONTACT */



#contact {
    position: relative;
    background-color: #8373A4;
    width: 40%;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 5%;

    margin: 0 auto;
    margin-top: 4rem;
    border-radius: 2rem 2rem 0 0;
    padding: 6rem 4rem 12rem 4rem;
}

#contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -75%);
    
    width: clamp(8rem, 15vw, 14rem);
    aspect-ratio: 1 / 1;

    background-image: url("../../assets/images/mascotte-hoofd.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    z-index: 3;
}

#contact::after {
    content: "";
    position: absolute;
    bottom: -8.5rem;
    left: 50%;
    transform: translateX(-50%);

    width: 100vw;
    height: 50%;
    aspect-ratio: 1920 / 300;

    background-image: url("../../assets/images/Section-end4.jpg");
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;

    z-index: 1;
}

#contact p {
    margin-bottom: 2rem;
}

#contact input {
    width: 96%;
    padding: 2%;
    border-radius: 0.5rem;
    border: none;
    margin: 0.5rem 0;
}

#contact button {
    width: 100%;
}

.checkboxLabel {
    display: flex;
    align-items: center;
    padding-right: 2rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    gap: 1rem;
}

.checkboxLabel input[type="checkbox"] {
    transform: scale(1.4);
    accent-color: #634791;
}

.checkboxLabel #newsletterCheckbox {
    width: auto;
}



/* FOOTER */



#footerBody {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5% 10%;
    z-index: 10;
}

#footerBody img {
    width: 15%;
    border-radius: 0;
}

#footerBody section,
#footerBody div {
    width: 30%;
}

#footerBottom {
    background-color: #2C2A5A;
    color: white;
    font-family: "caraque-melted", sans-serif;
    font-weight: 500;
    font-size: 1.125rem;
    text-align: center;
    padding: 1rem 0;
}



/* RESPONSIVE */



@media (max-width: 1024px) {

    nav a {
        font-size: 1.4rem;
    }

    body {
        text-align: left;
    }

    #hero,
    .standardSection {
        flex-direction: column;
        text-align: left;
    }

    #heroImage,
    .standardSection img,
    .standardSection article {
        width: 80%;
    }

    .heroText {
        width: 100%;
        align-items: center;
    }

    #reasons-container {
        flex-wrap: wrap;
        align-items: stretch;
        gap: 2rem;
    }

    #reasons-container article {
        width: 45%;
    }

    #products-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    #products-container .product {
        width: 80%;
    }

    #footerBody {
        flex-direction: column;
        gap: 2rem;
    }

    #footerBody section,
    #footerBody div {
        width: 100%;
    }


    #footerBody #footerLogo {
        width: 40%;
    }

    #hero {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .heroText {
        align-items: flex-start;
        width: 100%;
    }

    #heroImage {
        width: 100%;
    }

    #contact {
        width: 60%;
        padding: 8rem 3rem 14rem 3rem;
    }

    #wat::after,
    #over-ons::after {
        height: 18%;
    }

    #waarom::after {
        height: 5%;
    }

    #contact::after {
        bottom: -6rem;
    }


    #products-container img {
        height: 22rem;
    }
}

@media (max-width: 600px) {

    h1,
    h2 {
        font-size: 2.5rem;
    }

    nav {
        position: relative;
        justify-content: center;
    }

    .nav-link {
        display: none;
    }

    #logo {
        margin: 0 auto;
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 5%;
        transition: none;
    }

    .hamburger:hover {
        background-color: transparent;
        transform: none;
        box-shadow: none;
    }

    nav a {
        font-size: 0.9rem;
    }

    nav img#logo {
        width: 20%;
    }

    #hero {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .heroText {
        align-items: flex-start;
        width: 100%;
    }

    #heroImage {
        width: 100%;
    }

    #wat,
    #over-ons,
    #doos {
        padding: 22% 5% 50% 5%;
    }

    #doos {
        padding-bottom: 30%;
    }

    #reasons-container article {
        width: 100%;
    }

    #products-container .product {
        width: 100%;
    }

    #contact {
        width: 64%;
        padding: 8rem 2rem 14rem 2rem;
    }

    #contact input {
        padding: 4% 2%;
    }

    #wat::after,
    #over-ons::after {
        height: 16%;
    }

    #waarom::after {
        height: 4%;
    }

    #contact::after {
        width: 120vw;
        height: 16%;
        bottom: -4rem;
    }


    #footerBody #footerLogo {
        width: 64%;
    }

    #footerBottom {
        font-size: 0.9rem;
    }

    #products-container img {
        height: 16rem;
    }
}

@keyframes floatPanda {
    0%   { transform: translate(0, 0) rotate(0deg); }
    20%  { transform: translate(-6px, -10px) rotate(-0.6deg); }
    40%  { transform: translate(4px, -16px) rotate(0.8deg); }
    60%  { transform: translate(10px, -8px) rotate(0.4deg); }
    80%  { transform: translate(-2px, -12px) rotate(-0.3deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes bgScroll {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -2000px 0;
    }
}
