/*
Theme Name: Atelier
Theme URI: https://atelierdusuer.com
Author: Atelier
Description: Custom luxury dark theme for handmade goods
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: atelier
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:       #0a0a0a;
    --bg-soft:  #141414;
    --border:   #242424;
    --text:     #ede9e1;
    --muted:    #7a7a7a;
    --accent:   #c9a96e;
    --white:    #ffffff;
    --font-head: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --max-w:    1200px;
    --gap:      2rem;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 400;
    letter-spacing: .02em;
    line-height: 1.2;
    color: var(--white);
}
h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
p  { margin-bottom: 1rem; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gap);
}
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-content  { flex: 1; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(10,10,10,.93);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.site-logo {
    font-family: var(--font-head);
    font-size: 1.3rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--white);
    white-space: nowrap;
    flex-shrink: 0;
}
.main-nav ul { list-style: none; display: flex; gap: 2.5rem; align-items: center; }
.main-nav a {
    font-size: .75rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color .2s;
}
.main-nav a:hover,
.main-nav .current-menu-item a { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; }
.cart-icon { position: relative; color: var(--muted); transition: color .2s; }
.cart-icon:hover { color: var(--white); }
.cart-count {
    position: absolute; top: -6px; right: -8px;
    background: var(--accent); color: #000;
    font-size: .6rem; font-weight: 700;
    width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.menu-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    color: var(--text); flex-direction: column; gap: 5px; padding: 4px;
}
.menu-toggle span { display: block; width: 22px; height: 1px; background: currentColor; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: .8rem 2.2rem;
    font-family: var(--font-body);
    font-size: .75rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .25s;
    border: none;
    white-space: nowrap;
}
.btn-primary { background: var(--white); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #000; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--white); color: var(--white); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 6rem 0; border-bottom: 1px solid var(--border); }
.section-label {
    font-size: .7rem; letter-spacing: .25em; text-transform: uppercase;
    color: var(--accent); margin-bottom: .75rem; display: block;
}
.section-title { margin-bottom: 3rem; }

/* ============================================================
   HERO — FULLSCREEN MET GRADIENT
   ============================================================ */
.hero-fullscreen {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    /* Voeg eigen afbeelding toe via WordPress Media Library en plak de URL hieronder */
    /* background-image: url('JOUW-AFBEELDING-URL-HIER'); */
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(201,169,110,.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.03) 0%, transparent 50%);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.2) 0%, rgba(0,0,0,.1) 50%, rgba(0,0,0,.5) 100%);
}
.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem var(--gap);
    max-width: 700px;
    margin: 0 auto;
}
.hero-label {
    font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 2rem; display: block;
}
.hero-inner h1 { margin-bottom: 1.5rem; }
.hero-sub {
    font-size: 1rem; color: rgba(237,233,225,.65);
    max-width: 440px; margin: 0 auto 2.5rem;
}
.hero-divider {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px; background: var(--border);
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}
.product-card { background: var(--bg-soft); overflow: hidden; transition: transform .3s; }
.product-card:hover { transform: translateY(-4px); }
.product-card-image { aspect-ratio: 3/4; overflow: hidden; background: var(--border); }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product-card:hover .product-card-image img { transform: scale(1.04); }
.product-card-body { padding: 1.25rem; border-top: 1px solid var(--border); }
.product-card-name { font-family: var(--font-head); font-size: 1.1rem; color: var(--white); margin-bottom: .4rem; }
.product-card-price { font-size: .85rem; color: var(--muted); }
.product-placeholder { width: 100%; height: 100%; min-height: 300px; background: var(--bg-soft); }

/* ============================================================
   HOME ABOUT SPLIT
   ============================================================ */
.home-about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.home-about-image { aspect-ratio: 4/5; overflow: hidden; background: var(--bg-soft); }
.home-about-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%) brightness(.85); transition: transform .6s; }
.home-about-image:hover img { transform: scale(1.03); }

/* ============================================================
   PAGE HERO (binnenste pagina's)
   ============================================================ */
.page-hero { padding: 4rem 0 2.5rem; border-bottom: 1px solid var(--border); }
.page-hero h1 { margin-top: .5rem; }

/* ============================================================
   OVER ONS
   ============================================================ */
.about-hero {
    position: relative;
    height: 55vh;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 3.5rem;
    overflow: hidden;
    background: var(--bg-soft);
}
.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, #1a1208 0%, #0d0d0d 50%, #111 100%);
}
.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 100%);
    z-index: 1;
}
.about-hero-content { position: relative; z-index: 2; }

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}
.about-intro-body p { color: var(--muted); font-size: 1.05rem; line-height: 1.9; }

.about-image-full { width: 100%; height: 60vh; overflow: hidden; }
.about-image-full img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) brightness(.5); }

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}
.value-item { border-top: 1px solid var(--border); padding-top: 2rem; }
.value-number {
    font-family: var(--font-head);
    font-size: 2.5rem; color: var(--border); line-height: 1; margin-bottom: 1rem;
}
.value-item h4 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: .75rem; }
.value-item p  { color: var(--muted); font-size: .95rem; line-height: 1.8; margin: 0; }

.about-split-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.about-split-image { aspect-ratio: 3/4; overflow: hidden; background: var(--bg-soft); }
.about-split-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%) brightness(.8); transition: transform .6s; }
.about-split-image:hover img { transform: scale(1.03); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: start;
}
.contact-info h3 { font-family: var(--font-head); font-size: 1.8rem; margin-bottom: 1rem; }
.contact-detail {
    display: flex; flex-direction: column; gap: .25rem;
    padding: 1.1rem 0; border-bottom: 1px solid var(--border);
}
.contact-label { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }

/* Contact Form 7 — sterk override */
.contact-form-wrap .wpcf7 { color: var(--text); }

.contact-form-wrap .wpcf7 input:not([type="submit"]),
.contact-form-wrap .wpcf7 textarea,
.contact-form-wrap .wpcf7 select {
    display: block !important;
    width: 100% !important;
    background: var(--bg-soft) !important;
    border: 1px solid var(--border) !important;
    border-radius: 0 !important;
    color: var(--text) !important;
    font-family: var(--font-body) !important;
    font-size: .95rem !important;
    padding: .85rem 1rem !important;
    margin-bottom: 1rem !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color .2s !important;
    -webkit-appearance: none !important;
}
.contact-form-wrap .wpcf7 input:not([type="submit"]):focus,
.contact-form-wrap .wpcf7 textarea:focus {
    border-color: var(--white) !important;
}
.contact-form-wrap .wpcf7 textarea { min-height: 150px !important; resize: vertical !important; }

.contact-form-wrap .wpcf7 input[type="submit"] {
    display: inline-block !important;
    background: var(--white) !important;
    color: var(--bg) !important;
    border: none !important;
    border-radius: 0 !important;
    padding: .8rem 2.2rem !important;
    font-family: var(--font-body) !important;
    font-size: .75rem !important;
    letter-spacing: .16em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background .25s !important;
}
.contact-form-wrap .wpcf7 input[type="submit"]:hover {
    background: var(--accent) !important;
}
.wpcf7-not-valid-tip { color: #e07070 !important; font-size: .8rem !important; }
.wpcf7-response-output { border: 1px solid var(--border) !important; padding: .75rem 1rem !important; margin-top: 1rem !important; }

/* ============================================================
   WOOCOMMERCE
   ============================================================ */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2px !important;
    margin: 0 !important;
}
.woocommerce ul.products li.product { background: var(--bg-soft); margin: 0 !important; }
.woocommerce ul.products li.product a img { border: none !important; }
.woocommerce ul.products li.product .price { color: var(--muted) !important; }
.woocommerce ul.products li.product .button,
.woocommerce .button,
.woocommerce button.button.alt {
    background: var(--white) !important;
    color: var(--bg) !important;
    border-radius: 0 !important;
    font-size: .75rem !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
    padding: .75rem 1.5rem !important;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce button.button.alt:hover {
    background: var(--accent) !important;
    color: #000 !important;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    background: var(--bg-soft) !important;
    border: 1px solid var(--border) !important;
    border-radius: 0 !important;
    color: var(--text) !important;
    padding: .75rem 1rem !important;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-bar {
    overflow: hidden; border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border); padding: 1rem 0; white-space: nowrap;
}
.marquee-inner { display: inline-flex; gap: 4rem; animation: marquee 24s linear infinite; }
.marquee-item { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { padding: 4rem 0 2rem; border-top: 1px solid var(--border); }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}
.footer-brand { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: .75rem; }
.footer-desc { font-size: .88rem; color: var(--muted); line-height: 1.8; }
.footer-heading { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--white); margin-bottom: 1.25rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { font-size: .88rem; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    padding-top: 2rem; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    font-size: .75rem; color: var(--muted);
}

/* ============================================================
   ABOUT — QUOTE & PROCESS
   ============================================================ */
.about-quote {
    padding: 5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
    background: var(--bg-soft);
}
.about-quote blockquote {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 300;
    font-style: italic;
    color: var(--white);
    line-height: 1.4;
    letter-spacing: .02em;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--gap);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 1rem;
    align-items: start;
}
.process-step { text-align: center; }
.process-num {
    display: block;
    font-family: var(--font-head);
    font-size: 2rem;
    font-style: italic;
    color: var(--accent);
    margin-bottom: .75rem;
}
.process-step h4 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    margin-bottom: .75rem;
}
.process-arrow {
    color: var(--border);
    font-size: 1.2rem;
    padding-top: .6rem;
    align-self: start;
}

/* Afbeelding filters — altijd donker en strak */
.home-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%) brightness(.8);
    transition: transform .6s;
}
.home-about-image:hover img { transform: scale(1.03); }

.about-image-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(.45) contrast(1.05);
}

.about-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(60%) brightness(.7);
    transition: transform .6s;
}
.about-split-image:hover img { transform: scale(1.03); }

/* About hero achtergrond — foto via ::before zodat filter werkt */
.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=1920&q=85&fit=crop');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(.28);
    z-index: 0;
}
.about-hero-overlay { z-index: 1; }
.about-hero-content { z-index: 2; }

/* ============================================================
   HOMEPAGE — STATEMENT STRIP
   ============================================================ */
.statement-strip {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.statement-text {
    font-family: var(--font-head);
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-style: italic;
    color: var(--muted);
    letter-spacing: .03em;
    margin: 0;
}

/* Section head: titel + knop naast elkaar */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}
.section-head h2 { margin-bottom: 0; }

/* Full-width sfeerbeeld met overlay quote */
.home-fullimage {
    position: relative;
    height: 70vh;
    min-height: 400px;
    overflow: hidden;
}
.home-fullimage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(.35);
}
.home-fullimage-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.25);
}
.home-quote {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 300;
    font-style: italic;
    color: var(--white);
    text-align: center;
    line-height: 1.35;
    letter-spacing: .02em;
    padding: 0 var(--gap);
    max-width: 900px;
}

/* About text spacing */
.home-about-text p {
    color: var(--muted);
    margin-top: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.9;
}
.home-about-text .btn { margin-top: 1rem; }

/* Waarden strip */
.values-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 4rem 0;
    background: var(--bg-soft);
}
.values-strip-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: center;
}
.vs-item { text-align: center; padding: 1rem 2rem; }
.vs-num {
    display: block;
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--accent);
    margin-bottom: .5rem;
}
.vs-item h4 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    margin-bottom: .5rem;
}
.vs-item p { color: var(--muted); font-size: .88rem; margin: 0; }
.vs-divider { width: 1px; height: 80px; background: var(--border); }

/* ============================================================
   PROMISE BAR
   ============================================================ */
.promise-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    background: var(--bg-soft);
}
.promise-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.promise-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.promise-icon {
    font-size: .4rem;
    color: var(--accent);
}

/* ============================================================
   ABOUT CTA SECTIE
   ============================================================ */
.about-cta {
    padding: 6rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
}
.about-cta h2 { margin-bottom: 1rem; }
.about-cta p {
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    font-size: 1rem;
    line-height: 1.8;
}

/* ============================================================
   RESPONSIVE — MOBIEL
   ============================================================ */
@media (max-width: 1024px) {
    .values-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

@media (max-width: 768px) {
    :root { --gap: 1.25rem; }

    /* Header */
    .menu-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--bg); border-bottom: 1px solid var(--border);
        padding: 1.5rem var(--gap); z-index: 300;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 1.25rem; align-items: flex-start; }

    /* Grids → single column */
    .products-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .about-intro,
    .about-split-inner,
    .home-about-inner,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .value-item { padding: 1.5rem 0; }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .process-arrow { display: none; }
    .process-step { text-align: left; border-top: 1px solid var(--border); padding-top: 1.5rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }

    /* Homepage mobiel */
    .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .home-fullimage { height: 50vh; }
    .home-quote { font-size: 1.6rem; }
    .values-strip-grid { grid-template-columns: 1fr; }
    .vs-divider { width: 80px; height: 1px; margin: 0 auto; }
    .vs-item { padding: 1.5rem 0; }
    .promise-inner { justify-content: center; gap: 1.5rem; }
    .statement-strip { padding: 2rem 0; }

    /* About image */
    .about-image-full { height: 40vh; }
    .about-split-image { aspect-ratio: 16/9; }

    .section { padding: 4rem 0; }
}

@media (max-width: 480px) {
    .products-grid,
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }
}
