/* Studio Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary-color: #3E3228;
    /* Warm Dark Brown */

    /*
     * ACHTERGRONDKLEUREN
     * Wisselen: vervang de 4 regels hieronder door een van de sets in het commentaar.
     *   --background-color : achtergrond van de hele site
     *   --contact-bar-color: contactbalk + lijntje onder titel in detailvenster
     *   --panel-color      : detailvenster product + invulvelden contactformulier
     *   --backdrop-color   : waas achter het detailvenster (zelfde kleur, 80% dekking)
     */

    /* Gekozen: A. Linnen / greige */
    /*
    --background-color: #eeebe6;
    --contact-bar-color: #e2ddd5;
    --panel-color: #f7f5f1;
    --backdrop-color: rgba(238, 235, 230, 0.8);
    */
    /* B. Steen (iets donkerder, sluit het dichtst aan op de fotoachtergronden) */
    /*
    --background-color: #e3dfd9;
    --contact-bar-color: #d6d0c8;
    --panel-color: #efece7;
    --backdrop-color: rgba(227, 223, 217, 0.8);
    */

    /* C. Zachtere crème (warm, minder geel dan het origineel)*/
    --background-color: #f3ece0;
    --contact-bar-color: #e8dcc6;
    --panel-color: #faf6ee;
    --backdrop-color: rgba(243, 236, 224, 0.8);
    

    /* Origineel: oker-crème
    --background-color: #f7e8c8;
    --contact-bar-color: #e8d4a8;
    --panel-color: #fcf6ea;
    --backdrop-color: rgba(247, 232, 200, 0.8);
    */

    /* Eerder geprobeerde achtergronden: #e3a857 (oker), #9aba8c (groen), #d1b575, #f0d597 */

    --surface-color: #ffffff;
    --text-color: #3E3228;
    /* Warm Dark Brown */
    --text-white: #ffffff;
    --hover-overlay: rgba(62, 50, 40, 0.6);
    /* Brown with opacity */

    /* Typography */
    --font-main: 'Montserrat', sans-serif;
    --font-serif: 'Lora', serif;

    /* Spacing */
    --container-width: 1200px;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--background-color);
    /* Move background here so noise can sit between html and body */
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: transparent;
    /* Transparent to show noise behind */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    /* Ensure body establishes a positioning context if needed */
}

/* Noise Texture Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    /* Behind content, on top of html background */
    opacity: 0.4;
    /* Slightly reduced from 0.5 for balance, but keeping it visible */
    mix-blend-mode: overlay;
    /* Better blending with the yellow background */
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

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

/* All headings in the serif; labels on photos stay in Montserrat (.grid-text) */
h1,
h2,
h3 {
    font-family: var(--font-serif);
}

/* Navigation */
.navbar {
    padding: 2rem 0;
    margin-bottom: 2rem;
    font-family: var(--font-serif);
    /* Apply Serif to entire navbar */
}

.nav-container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.logo {
    font-size: 2.2rem;
    /* Reduced from 3.5rem per user request */
    /* Placeholder size for text logo if image fails */
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
}

.logo img {
    height: 80px;
    /* Adjust based on actual logo */
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
    align-items: center;
    /* Center vertically with logo if in row */
}

.nav-links a {
    position: relative;
    text-transform: uppercase;
    font-weight: 600;
    /* Slightly bolder for serif */
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 0.25rem 0;
    color: var(--text-color);
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nav-links a:hover::after {
    opacity: 1;
}

/* Mobile navigation toggle (hidden on desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Main Content Grid */
.grid-container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-bottom: 4rem;

    /* AANPASSEN: Verander dit getal om de grid omlaag te schuiven */
    margin-top: 150px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* Force 5 items in one row for Home Page */
    gap: 1.5rem;
}

/* Grid for individual product pages (responsive, big images) */

/*
.product-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 1024px) {

    .category-grid,
    .product-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        /* Stack on smaller screens 
    }
}
*/
/* Grid for individual product pages (responsive, big images) */
.product-page-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.product-page-grid .grid-item {
    flex: 0 1 280px;
    width: 100%;
}

@media (max-width: 1024px) {

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .product-page-grid .grid-item {
        flex: 0 1 200px;
    }
}



.grid-item {
    position: relative;
    aspect-ratio: 4/5;
    /* Square images */
    overflow: hidden;
    cursor: pointer;
}

/* Cards on the home page and category pages: photo with the name underneath */
.category-grid .grid-item,
.product-card {
    aspect-ratio: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.grid-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    clip-path: inset(0);
    transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1),
        clip-path 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.category-grid .grid-image,
.product-card .grid-image {
    height: auto;
    aspect-ratio: 4 / 5;
}

/* Zoom inside the photo frame: the inset (1 - 1/1.05) / 2 keeps the visible area at the original size */
@media (hover: hover) {

    .grid-item:hover .grid-image,
    .grid-item:focus-within .grid-image {
        transform: scale(1.05);
        clip-path: inset(2.381%);
    }
}

.grid-overlay {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0.75rem 0.25rem 0;
}

.grid-text {
    font-family: var(--font-main);
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.3;
    text-align: center;
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 1rem;
    z-index: 2000;
    padding: 0.75rem 1rem;
    background-color: var(--primary-color);
    color: var(--text-white);
    font-weight: 600;
}

.skip-link:focus {
    left: 1rem;
}

/* Product cards (category pages) */
.product-card img.grid-image {
    object-fit: cover;
}

/* The button text is hidden; its ::after still makes the whole card clickable */
.product-trigger {
    background: none;
    border: 0;
    padding: 0;
    font-size: 0;
    cursor: pointer;
}

/* Makes the whole card clickable */
.product-trigger::after {
    content: '';
    position: absolute;
    inset: 0;
}

.product-trigger:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible,
.category-links a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.product-trigger:focus-visible {
    outline: none;
}

.product-card:has(.product-trigger:focus-visible),
.category-grid .grid-item:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.product-specs dt {
    font-weight: 700;
    margin-top: 0.75rem;
}

.product-specs dd {
    margin: 0;
}

.lightbox-desc p + p {
    margin-top: 1rem;
}

/* Category page content */
.category-header {
    text-align: center;
    container-type: inline-size;
    margin: 0 auto 3rem;
}

.category-header .page-title {
    font-size: min(2.5rem, 3.8cqi);
    white-space: nowrap;
    margin-bottom: 1rem;
}

.category-intro {
    max-width: 800px;
    margin-inline: auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.empty-message {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.content-section {
    max-width: 800px;
    margin: 4rem auto 0;
}

.collection-more {
    max-width: 800px;
    margin: 3rem auto 0;
}

.collection-more summary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.collection-more summary::-webkit-details-marker {
    display: none;
}

.collection-more summary::after {
    content: '+';
    content: '+' / '';
    font-size: 1.3rem;
    line-height: 1;
}

.collection-more[open] summary::after {
    content: '\2212';
    content: '\2212' / '';
}

.collection-more summary:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.collection-more summary:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.collection-more .content-section:first-of-type {
    margin-top: 2rem;
}

.content-section h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.content-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.content-section p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem 2rem;
}

.text-link {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.category-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-links a {
    display: inline-block;
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.category-links a:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.footer a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Category sub-navigation on product pages (mobile only) */
.category-subnav {
    display: none;
}

/* Mobile styles — desktop (768px+) unchanged */
@media (max-width: 767px) {
    .nav-container {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .logo {
        grid-column: 1;
        grid-row: 1;
        font-size: 1.6rem;
    }

    .nav-toggle {
        display: flex;
        grid-column: 2;
        grid-row: 1;
    }

    .nav-links {
        grid-column: 1 / -1;
        grid-row: 2;
        display: none;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        padding-top: 0.5rem;
    }

    .nav-links.nav-open {
        display: flex;
    }

    .grid-container {
        margin-top: 2rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }

    .grid-overlay {
        padding-top: 0.6rem;
    }

    .grid-text {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .category-subnav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .category-subnav::-webkit-scrollbar {
        display: none;
    }

    .category-subnav a {
        flex-shrink: 0;
        padding: 0.5rem 0.85rem;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border: 1px solid var(--primary-color);
        white-space: nowrap;
    }

    .category-subnav a.active {
        background-color: var(--primary-color);
        color: var(--text-white);
    }

    .product-page-grid .grid-item {
        flex: 0 1 calc(50% - 0.75rem);
        min-width: 140px;
    }

    .page-title {
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none !important;
    }

    .nav-links {
        display: flex !important;
    }
}

/* Page Content (for other pages) */
.page-content {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.page-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.25;
}

/* Home page: banner photo + intro */
.grid-container.home {
    margin-top: 0;
}

.hero {
    max-width: 960px;
    margin: 0 auto 3rem;
    overflow: hidden;
    border-radius: 4px;
}

.hero img {
    width: 100%;
    aspect-ratio: 5 / 1;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.75) brightness(1.06) contrast(0.92);
}

.products-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
}

.products-intro p {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    line-height: 1.6;
}

.products-intro p span {
    display: block;
    text-wrap: balance;
}

@media (max-width: 767px) {
    .hero {
        margin-bottom: 2rem;
    }

    .hero img {
        aspect-ratio: 2.5 / 1;
    }

    .products-intro {
        margin-bottom: 2.5rem;
    }

    .products-intro p {
        font-size: 1.2rem;
    }
}

/* About page: photo next to the text */
.about-page {
    max-width: 1050px;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 3.5rem;
    align-items: start;
}

.about-photo {
    position: sticky;
    top: 2rem;
}

.about-photo img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: 50% 35%;
    border-radius: 4px;
}

.about-text p {
    line-height: 1.8;
}

.about-text strong {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
}

.about-text > strong {
    display: block;
    margin-bottom: 0.5rem;
}

@media (max-width: 767px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-photo {
        position: static;
        max-width: 420px;
    }

    .about-photo img {
        aspect-ratio: 4 / 5;
    }
}

/* Contact Form Simple Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(62, 50, 40, 0.25);
    border-radius: 2px;
    background: var(--panel-color);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(62, 50, 40, 0.12);
}

.btn-submit {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background: #5a4838;
}

.btn-submit:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* Contact Page */
.contact-page {
    padding-bottom: 3rem;
}

.contact-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.contact-note {
    margin-bottom: 2.5rem;
}

.contact-note h2 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.contact-note p {
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.contact-form {
    margin-bottom: 0;
}

.contact-details-bar {
    background-color: var(--contact-bar-color);
    padding: 2.5rem 0;
    margin-top: 1rem;
}

.contact-details-inner {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-detail-item strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.contact-detail-item a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-detail-business {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 3rem;
}

.contact-detail-business strong {
    display: inline;
    margin-bottom: 0;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .contact-details-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.thank-you-banner {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto 1rem;
    padding: 1rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--text-white);
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    width: 90%;
    max-width: var(--container-width);
    margin: 3rem auto 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(62, 50, 40, 0.15);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .nav-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Lightbox / Modal Styles */
.lightbox {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--backdrop-color);
    /* Reduced opacity (was 0.9) */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    background-color: var(--panel-color);
    padding: 2rem;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    gap: 2rem;
    border-radius: 4px;
    position: relative;
    /* overflow-y: auto; Removed to allow internal scrolling */
    /* For smaller screens */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
    align-items: flex-start;
    /* Align items to top */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-image {
    width: 50%;
    object-fit: contain;
    /* Changed to contain to show full image */
    max-height: 80vh;
    border-radius: 4px;
}

.lightbox-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Start from top so title isn't clipped */
    color: var(--text-color);
    overflow-y: auto;
    /* Enable vertical scroll for text */
    max-height: 80vh;
    /* Match roughly image height constraint */
    padding-right: 0.5rem;
    /* Space for scrollbar */
}

.lightbox-title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--contact-bar-color);
    /* Ochre accent */
    padding-bottom: 0.5rem;
    display: inline-block;
}

.lightbox-desc {
    font-family: var(--font-main);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--text-color);
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

@media (max-width: 768px) {
    .lightbox-content {
        flex-direction: column;
        padding: 1.5rem;
        width: 95%;
    }

    .lightbox-image {
        width: 100%;
        max-height: 40vh;
        margin-bottom: 1rem;
    }

    .lightbox-title {
        font-size: 1.5rem;
    }
}

/* Lightbox Gallery Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.4);
    border: none;
    font-size: 3rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 1001;
    color: var(--text-color);
    transition: background 0.3s ease;
    border-radius: 4px;
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}
