:root {
    --container-max: 1200px;
    --gutter: clamp(1rem, 2.5vw, 2rem);
    --space-300: clamp(1.25rem, 2.5vw, 2rem);
    --space-400: clamp(1.5rem, 3vw, 2.5rem);
    --radius-lg: 16px;
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --accent: #2b8a3e;
    --text: #1f2937;
    --muted: #6b7280;
}

/* General styling */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url("/images/fancy_background.png");
    background-size: cover;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Cinzel", serif;
    font-weight: 700 !important;
}

p {
    font-family: "Lato", sans-serif;
}

.highlight{
    color: var(--accent);
}

.line_container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
}

.line {
    width: 100%;
    height: 2px;
    background-color: var(--accent);
}

@media screen and (max-width: 1299px) {
    .line_container {
        padding: 0 50px;
    }    
}

/* JS Styling */
.scrolled {
    position: absolute !important;
    top: 50%;
}

/* Hero section */
.hero {
    position: relative;
    width: 100%;
    height: 400px;
    background: url("/images/veld-achtergrond-header.jpg") no-repeat center center;
    background-size: cover;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4) 100%, rgba(255, 255, 255, 0));
}

@media screen and (max-width: 678px) {
    .hero {
        height: 300px;
    }
}

@media screen and (max-width: 470px) {
    .hero {
        height: 250px;
    }
}

/* JS Styling */
.scrolled {
    top: -4px !important;
    position: fixed !important;
}

.scrolled-logo {
    position: fixed !important;
    width: 200px !important;
    transition: width 0.3s ease;
}

.scrolled-logo img {
    max-height: 60px !important;
    transition: max-height 0.3s ease;
}

.fix-pos {
    top: -82px !important;
    transition: top 0.3s ease;
}

.delete-add {
    display: none !important;
}

.add-shadow {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* Logo */
.logo-box {
    position: absolute;
    top: 0;
    left: 50px;
    background: white;
    padding: 20px 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 9999;
}
.logo-box img {
    max-height: 120px;
}

.logo_addition {
    position: absolute;
    top: -22px;
    left: 50px;
    width: 334px;
    height: 150px;
    margin-top: 185px;
    background-image: url("/images/logo_background_4.png");
    background-repeat: no-repeat;
    background-size: 100%;
    z-index: 9999;
    transform: scaleX(-1);
}

@media screen and (max-width: 800px) {
    .logo-box {
        left: 10px;
    }

    .logo-box img {
        max-height: 80px;
    }

    .logo_addition {
        top: -62px;
        width: 250px;
        left: 10px;
    }

    .scrolled-logo {
        position: fixed !important;
        width: 170px !important;
        transition: width 0.3s ease;
    }

    .scrolled-logo img {
        max-height: 40px !important;
        transition: max-height 0.3s ease;
    }

    .fix-pos {
        top: -102px !important;
        transition: top 0.3s ease;
    }
}

@media screen and (max-width: 470px) {
    .logo-box {
        left: 0;
        width: 100%;
    }

    .logo-box img {
        max-height: 50px;
    }

    .logo_addition {
        display: none;
    }

    .scrolled-logo {
        position: fixed !important;
        width: 100% !important;
        transition: width 0.3s ease;
    }

    .scrolled-logo img {
        max-height: 40px !important;
        transition: max-height 0.3s ease;
    }
}

/* Portaal button */
.portal-btn {
    position: absolute;
    top: 20px;
    right: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2d6a2d;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
    z-index: 9999;
}
.portal-btn:hover {
    background: #245224;
}
.portal-btn img {
    height: 20px;
    width: 20px;
}

@media screen and (max-width: 470px) {
    .portal-btn {
        top: 25px;
        right: 15px;
        padding: 5px 10px;
        font-size: 15px;
    }

    .scrolled {
        top: 25px !important;
        position: fixed !important;
        right: 15px;
    }
}

/* Slogan */
.slogan-box {
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    padding: 20px 40px;
    border-top-left-radius: 25px;
}
.slogan-box h1 {
    color: #2d6a2d;
    font-size: 28px;
    font-weight: bold;
}

@media screen and (max-width: 678px) {
    .slogan-box {
        position: absolute;
        bottom: 0;
        right: 0;
        background: white;
        padding: 10px 20px;
        border-top-left-radius: 10px;
    }
    .slogan-box h1 {
        color: #2d6a2d;
        font-size: 17px;
        font-weight: 700;
    }
}

@media screen and (max-width: 375px) {
    .slogan-box {
        position: absolute;
        bottom: 0;
        right: 0;
        background: white;
        padding: 5px 10px;
        border-top-left-radius: 10px;
    }
    .slogan-box h1 {
        color: #2d6a2d;
        font-size: 12px;
        font-weight: 700;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 125px;
        white-space: pre-line;
    }
    .slogan-box h1::after {
        content: "";
        display: block;
    }
}

/* Welkom sectie */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.welcome {
    padding: 40px 50px;
    color: var(--text);
}

.welcome__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(1.25rem, 3vw, 3rem);
    align-items: center;
}

.image-stack {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 11;
}

.image-stack__main,
.image-stack__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.image-stack__main {
    inset: 0 8% 18% 0;
}

.image-stack__overlay {
    inset: auto auto -5% 35%;
    width: 68%;
    height: 58%;
    object-position: center;
    translate: 0 0;
    background: #fff;
}

.welcome__title {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    line-height: 1.15;
    margin: 0 0 var(--space-300);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.welcome__title .accent {
    color: var(--accent);
}

.welcome__content p {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 70ch;
}

@media (max-width: 992px) {
    .welcome__grid {
        grid-template-columns: 1fr;
    }
    .welcome__media {
        order: -1;
    }
    .image-stack {
        aspect-ratio: 16 / 10;
    }
    .image-stack__main {
        inset: 0 4% 22% 0;
    }
    .image-stack__overlay {
        width: 72%;
        height: 54%;
        inset: auto auto -3% 28%;
    }

    .welcome__title {
        padding-top: 20px;
    }
}

@media (max-width: 560px) {
    .image-stack {
        aspect-ratio: 4 / 3;
    }
    .image-stack__main {
        inset: 0 2% 28% 0;
    }
    .image-stack__overlay {
        width: 78%;
        height: 50%;
        inset: auto auto -4% 25%;
    }
}
/* Ons verhaal */
.story {
    width: 100%;
    height: auto;
    color: #ffffff;
    padding: 20px 50px;
}

.story__inner {
    background: #5aa14f;
    border-radius: 15px;
    max-width: 1200px;
    max-height: 700px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 10px;
    padding-bottom: 20px;
}

.story__title {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    font-weight: 800;
    text-align: center;
    margin: 0 0 15px;
}

.story__grid {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.story__text {
    text-align: left;
    line-height: 1.8;
    font-size: 18px;
    margin: 0 auto;
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
}

.story__text p {
    color: #f7fff6;
}

.story__media {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.story__media img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
}

@media screen and (max-width: 1050px) {
    .story__text {
        font-size: 17px !important;
    }
}

@media screen and (max-width: 750px) {
    .story__text {
        font-size: 13px !important;
        margin: 0 0;
        width: 100%;
    }

    .story__media {
        width: 100%;
    }

    .story__grid {
        flex-direction: column;
        gap: 10px;
    }
}

/* Onze specialiteiten */
.specials__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.specials__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 44px;
    align-items: center;
}

.specials__media {
    border-radius: 22px;
    overflow: hidden;
}

.specials__media img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.specials__content {
    max-width: 760px;
}

.specials__title {
    color: #2f7d33;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    font-weight: bold;
    line-height: 1.1;
    margin: 0 0 20px;
}

.specials__content p {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--muted);
}

@media (max-width: 1120px) {
    .specials__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .specials__media {
        height: 360px;
    }
}

@media (max-width: 680px) {
    .specials__content p {
        font-size: 16px;
    }
    .specials__media {
        height: 260px;
        border-radius: 18px;
    }
}

/* Cards sectie */
.suppliers {
    padding: 0 50px;
}

.suppliers__inner {
    max-width: 1280px;
    margin: 0 auto;
}

.suppliers__title {
    margin: 0 0 28px;
    text-align: center;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    font-weight: 800;
    color: #3a6b2f;
}

.supplier-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 36px;
}

.supplier-card {
    max-width: 400px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.supplier-card__media {
    background: #fafafa;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

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

.supplier-card__brand {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #7a8b7c;
    margin: 12px 0 0;
}

.supplier-card__rule {
    height: 2px;
    background: #7aa266;
    border-radius: 2px;
    margin: 18px 8px 16px;
}

.supplier-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #476e33;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 18px;
}

.supplier-card__btn:hover {
    filter: brightness(1.05);
}

.supplier-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

@media (max-width: 950px) {
    .supplier-list{
        flex-wrap: wrap;
    }
    .suppliers__title{
        text-align: left;
    }
}

@media (max-width: 640px) {
    .supplier-card__brand {
        font-size: 28px;
    }
    .supplier-card__media {
        min-height: 180px;
    }
    .supplier-card__btn{
        font-size: 14px;
    }
    .supplier-card__icon{
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    .supplier-card__brand{
        font-size: 16px;
    }
}

footer{
    width: 100%;
    height: 40px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2f7d33;
    gap: 2px;
}

footer > p{
    text-align: center;
    font-size: 10px;
}

footer > p > a:hover{
    cursor: pointer;
    text-decoration: underline;
}

@media screen and (max-width: 680px) {
    footer > p {
        font-size: 8px;
    }
}

/* Media queries voor padding op pagina (Standaard 50px left and right) */
@media screen and (max-width: 470px) {
    .welcome,
    .story,
    .specials__inner,
    .line_container,
    .suppliers {
        padding: 0 40px;
    }
}

@media screen and (max-width: 370px) {
    .welcome,
    .story,
    .specials__inner,
    .line_container,
    .suppliers {
        padding: 0 30px;
    }
}
