/* ==========================================================================
   Leuk Groen — style.css
   Opbouw: 0 fonts · 1 variabelen · 2 basis · 3 hulpklassen · 4 layout
           · 5 componenten · 6 secties · 7 kop & voet
   Alle tekstkleuren halen WCAG AAA (minimaal 7:1, zie README.md).
   ========================================================================== */

/* 0. Fonts --------------------------------------------------------------- */
/* Alle fonts zelf gehost in /fonts.
   Nunito Sans, variabel (gewicht 200–1000), voor de lopende tekst.
   De browser laadt latin-ext alleen als een teken uit dat bereik op de pagina staat. */
@font-face {
    font-family: "Nunito Sans";
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url("../fonts/nunito-sans-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Nunito Sans";
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url("../fonts/nunito-sans-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Bricolage Grotesque, variabel (gewicht 200–800), voor koppen en prijzen.
   Alleen de gewichts-as: de standaard optische grootte (96) is de display-snit
   die we voor alle koppen gebruiken. */
@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 1. Variabelen ---------------------------------------------------------- */
:root {
    /* Kleuren */
    --groen:        #3D4F2E;  /* band, knoppen, footer      — crème erop 8,3:1 */
    --inkt:         #23361C;  /* hoofdtekst                  — op zand 11,5:1  */
    --inkt-zacht:   #3E4A36;  /* bijtekst                    — op wit 9,4:1    */
    --creme:        #FAF7EE;  /* tekst op groen                                */
    --zand:         #F4F1E6;  /* pagina-achtergrond                            */
    --wit:          #FFFFFF;
    --perzik:       #E8C9A0;  /* accent, altijd met --inkt erop (8,2:1)        */

    /* Tinten voor fotoplekken (geen tekst erop behalve labels met eigen vlak) */
    --tint-salie:   #C9D1B3;
    --tint-mos:     #DDE2CC;
    --tint-perzik:  #F1E2CC;
    --tint-zand:    #EFE4C8;

    /* Typografie */
    --font-tekst:   "Nunito Sans", system-ui, sans-serif;
    --font-display: "Bricolage Grotesque", "Nunito Sans", system-ui, sans-serif;

    /* Maten */
    --breedte:      77.5rem;  /* 1240px */
    --gutter:       1.5rem;
    --radius:       1.75rem;
    --radius-groot: 2.25rem;
    --pill:         999px;
    --focus:        3px solid var(--inkt);
    --kop-hoogte:   4.5rem;   /* 72px; desktop 88px, zie kop */
}

/* 2. Basis --------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--kop-hoogte) + 1rem);   /* ankers niet onder de vaste kop */
}

body {
    margin: 0;
    font-family: var(--font-tekst);
    font-size: 1.0625rem;          /* 17px */
    line-height: 1.6;
    color: var(--inkt);
    background: var(--zand);
    padding-top: var(--kop-hoogte);
}

h1, h2, h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.75rem, 6.4vw, 5.25rem); line-height: 0.98; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.5rem; font-weight: 700; }

p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--inkt); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
    outline: var(--focus);
    outline-offset: 3px;
}
/* Op groen een lichte focusrand */
.band--groen :focus-visible,
.site-footer :focus-visible { outline-color: var(--creme); }

.icon { flex: none; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

/* 3. Hulpklassen --------------------------------------------------------- */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skiplink {
    position: fixed;
    left: 1rem;
    top: -10rem;
    z-index: 20;
    padding: 0.75rem 1.25rem;
    border-radius: var(--pill);
    background: var(--perzik);
    color: var(--inkt);
    font-weight: 700;
}
.skiplink:focus { top: 1rem; }

.eyebrow {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* 4. Layout -------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--breedte);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.band--groen {
    background: var(--groen);
    color: var(--creme);
}
.band--groen a { color: var(--creme); }

/* 5. Componenten --------------------------------------------------------- */

/* Knoppen (link of button) */
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    padding: 0 1.875rem;
    border: 2px solid transparent;
    border-radius: var(--pill);
    font: 700 1.125rem/1 var(--font-tekst);
    text-decoration: none;
    cursor: pointer;
}
.button:hover { text-decoration: underline; }

.button--perzik     { background: var(--perzik); color: var(--inkt); }
.band--groen .button--perzik { color: var(--inkt); }
.button--lijn-licht { border-color: var(--creme); color: var(--creme); }
.button--groen      { background: var(--groen); color: var(--creme); }
.button--donker     { background: var(--inkt); color: var(--creme); }

/* Ronde iconknop */
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 50%;
    background: var(--groen);
    color: var(--creme);
    cursor: pointer;
}

/* Filterchip */
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 1.25rem;
    border: 2px solid var(--groen);
    border-radius: var(--pill);
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
}
.chip[aria-current="true"] { background: var(--groen); color: var(--creme); }

/* Label op een foto */
.tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.875rem;
    background: var(--creme);
    color: var(--inkt);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Formulierveld */
.field { display: flex; flex-direction: column; gap: 0.375rem; flex: 1 1 15rem; }
.field label { font-weight: 700; font-size: 1rem; }
.field input {
    min-height: 3.5rem;
    padding: 0 1.25rem;
    border: 2px solid var(--inkt);
    border-radius: var(--pill);
    background: var(--wit);
    color: var(--inkt);
    font: 400 1.0625rem var(--font-tekst);
}

/* Productkaart */
.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--wit);
}
.product-card__media { position: relative; aspect-ratio: 5 / 4; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1.375rem 1.375rem;
}
.product-card__title a { text-decoration: none; }
.product-card__title a:hover { text-decoration: underline; }
.product-card__text { flex: 1; font-size: 1rem; line-height: 1.5; color: var(--inkt-zacht); }
.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.product-card__price { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; }

.tint-salie  { background: var(--tint-salie); }
.tint-mos    { background: var(--tint-mos); }
.tint-perzik { background: var(--tint-perzik); }
.tint-zand   { background: var(--tint-zand); }

/* 6. Secties ------------------------------------------------------------- */

/* Hero */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
    padding-block: 3.5rem 6rem;
}
.hero__logo { flex: 0 0 auto; }
.hero__logo img { width: 18.75rem; max-width: 100%; height: auto; }   /* 300px */
.hero__text { flex: 1 1 28rem; min-width: 0; }
.hero .lead { margin: 1.5rem 0 2rem; max-width: 35rem; font-size: 1.25rem; }

/* Voordelen */
.usp { margin-top: -2.5rem; }
.usp__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 0.75rem 2rem;
    padding: 1.25rem;
    border-radius: var(--radius);
    background: var(--wit);
    font-weight: 700;
}
.usp__list li { display: flex; align-items: center; gap: 0.5rem; padding-block: 0.625rem; }

/* Producten */
.products { padding-block: 6rem 5rem; }
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}
.filter ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16.25rem, 1fr));
    gap: 1.5rem;
}

/* Seizoen */
.season { padding-bottom: 6rem; }
.season__card {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    border-radius: var(--radius-groot);
    background: var(--perzik);
}
.season__text {
    display: flex;
    flex: 1 1 27.5rem;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: clamp(2rem, 5vw, 4rem);
}
.season__text h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.season__text .button { margin-top: 0.5rem; }
.season__image { flex: 1 1 22.5rem; width: 100%; min-width: 0; min-height: 20rem; object-fit: cover; }

/* Nieuwsbrief */
.newsletter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 6rem;
}
.newsletter__text { flex: 1 1 23.75rem; }
.newsletter__text h2 { margin-bottom: 0.5rem; font-size: 2.5rem; }
.newsletter__text p { font-size: 1.125rem; color: var(--inkt-zacht); }
.newsletter__form {
    display: flex;
    flex: 1 1 26.25rem;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
}

/* 7. Kop & voet ---------------------------------------------------------- */
/* Vaste kop. Hoogte staat in --kop-hoogte; de body schuift daaronder. */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 10;
    height: var(--kop-hoogte);
    background: var(--groen);
    color: var(--creme);
    box-shadow: 0 1px 0 rgb(0 0 0 / 0.12);
}
.site-header a { color: var(--creme); }
.site-header :focus-visible { outline-color: var(--creme); }

.site-header__bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
}
.site-header__logo,
.site-footer__logo {
    display: block;
    flex: none;
    border-radius: 50%;
}
.site-header__logo { grid-column: 2; grid-row: 1; }
.site-header__logo img { width: 3.5rem; height: 3.5rem; }   /* 56px */
.site-footer__logo img { width: 7.5rem; height: 7.5rem; }   /* 120px */

/* Hamburgerknop (mobiel en tablet) */
.menu-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-left: -0.5rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--creme);
    cursor: pointer;
}
.menu-toggle__sluit { display: none; }
body:has(.menu-panel:popover-open) .menu-toggle__open { display: none; }
body:has(.menu-panel:popover-open) .menu-toggle__sluit { display: block; }
body:has(.menu-panel:popover-open) { overflow: hidden; }

/* Winkelmandje */
.cart-link {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 3rem;
    padding: 0 1rem;
    border-radius: var(--pill);
    background: var(--perzik);
    font-weight: 700;
    text-decoration: none;
}
.site-header .cart-link { color: var(--inkt); }

/* Menupaneel mobiel: klapt onder de kop open over de volle breedte */
.menu-panel {
    position: fixed;
    inset: var(--kop-hoogte) 0 auto 0;
    width: 100%;
    max-height: calc(100dvh - var(--kop-hoogte));
    margin: 0;
    padding: 0.5rem var(--gutter) 2rem;
    overflow-y: auto;
    border: 0;
    border-top: 1px solid rgb(250 247 238 / 0.25);
    background: var(--groen);
    color: var(--creme);
    box-shadow: 0 1rem 2rem rgb(0 0 0 / 0.2);
}
.menu-panel::backdrop {
    top: 4.5rem;   /* = --kop-hoogte mobiel: de kop blijft onbedekt */
    background: rgb(35 54 28 / 0.5);
}

.main-nav ul { display: flex; flex-direction: column; }
.main-nav a {
    display: block;
    padding-block: 0.875rem;
    border-bottom: 1px solid rgb(250 247 238 / 0.2);
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--creme);
    text-decoration: none;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25em;
}

.search { position: relative; display: flex; margin-top: 1.5rem; }
.search__input {
    width: 100%;
    min-height: 3rem;
    padding: 0 3.25rem 0 1.125rem;
    border: 0;
    border-radius: var(--pill);
    background: var(--creme);
    color: var(--inkt);
    font: 400 1rem var(--font-tekst);
}
.search__input::placeholder { color: var(--inkt-zacht); opacity: 1; }
.search__button {
    position: absolute;
    right: 0.25rem;
    top: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--inkt);
    cursor: pointer;
}
.site-header .search__button:focus-visible { outline-color: var(--inkt); outline-offset: 0; }

/* Desktop: alles op één regel, geen hamburger */
@media (min-width: 64em) {
    :root { --kop-hoogte: 5.5rem; }   /* 88px */

    .site-header__bar {
        grid-template-columns: auto 1fr auto;
        gap: 2.5rem;
    }
    .menu-toggle { display: none; }
    .site-header__logo { grid-column: 1; }
    .site-header__logo img { width: 4rem; height: 4rem; }   /* 64px */

    .menu-panel,
    .menu-panel:popover-open {
        grid-column: 2;
        grid-row: 1;
        position: static;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        width: auto;
        max-height: none;
        padding: 0;
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
    .menu-panel::backdrop { display: none; }
    body:has(.menu-panel:popover-open) { overflow: visible; }

    .main-nav ul { flex-direction: row; gap: 2rem; }
    .main-nav a {
        padding-block: 0.75rem;
        border-bottom: 0;
        font-family: var(--font-tekst);
        font-size: 1.0625rem;
    }

    .search { margin-top: 0; }
    .search__input { width: 16rem; }
}

.site-footer {
    padding-block: 3.5rem 2.5rem;
    border-radius: 2.5rem 2.5rem 0 0;
    background: var(--groen);
    color: var(--creme);
}
.site-footer a { color: var(--creme); }
.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2.5rem;
}
.footer-nav { flex: 1 1 12.5rem; }
.footer-nav a { display: inline-block; padding-block: 0.5rem; }
.site-footer__address { flex: 1 1 12.5rem; font-style: normal; }
.site-footer__small { margin-top: 2.5rem; font-size: 0.9375rem; }

/* Kleine schermen */
@media (max-width: 40em) {
    .hero__logo img { width: 8rem; }   /* 128px */
    .hero { padding-bottom: 5rem; }
}
