/* ============================================================
 * The Real Barista — App stylesheet
 * ------------------------------------------------------------
 * Base reset, utilities, header & footer (gedeelde CSS).
 * Pagina-specifieke CSS hoort in assets/css/pages/{slug}.css
 * en wordt geladen via trb_enqueue_page_css().
 *
 * Tokens (kleuren, fonts, radius) komen uit tokens.css.
 * ============================================================ */

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background: var(--cream);
    color: var(--charcoal);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ─── Utilities ─── */
.eyebrow {
    font-size: .68rem; letter-spacing: .28em; text-transform: uppercase;
    color: var(--sage-dark); font-weight: 400;
    display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.eyebrow::before {
    content: ''; display: inline-block;
    width: 32px; height: 1px; background: var(--sage); flex-shrink: 0;
}
.eyebrow.light { color: var(--sage-light); }
.eyebrow.light::before { background: var(--sage); }
.eyebrow.center { justify-content: center; }

h2.display {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.8vw, 2.4rem);
    font-weight: 300; line-height: 1.1; letter-spacing: -.01em;
    color: var(--charcoal);
}
h2.display em { font-style: italic; color: var(--sage-dark); }
h2.display.light { color: var(--white); }
h2.display.light em { color: var(--sage-light); }

.body-text { font-size: .93rem; color: var(--mid); line-height: 1.8; font-weight: 300; }
.body-text.light { color: rgba(247,244,238,.6); }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--sans); font-size: .75rem; font-weight: 400;
    letter-spacing: .14em; text-transform: uppercase;
    padding: 13px 28px; border-radius: var(--r);
    transition: all .22s; cursor: pointer; border: none;
}
.btn-dark         { background: var(--charcoal); color: var(--cream); }
.btn-dark:hover   { background: var(--sage-deep); transform: translateY(-1px); }
.btn-sage         { background: var(--sage-dark); color: var(--white); }
.btn-sage:hover   { background: var(--sage-deep); transform: translateY(-1px); }
.btn-outline      { border: 1px solid rgba(28,28,24,.25); color: var(--charcoal); background: transparent; }
.btn-outline:hover{ border-color: var(--charcoal); background: var(--charcoal); color: var(--cream); }
.btn-outline-light       { border: 1px solid rgba(255,255,255,.3); color: var(--white); background: transparent; }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-white        { background: var(--white); color: var(--charcoal); }
.btn-white:hover  { background: var(--cream); transform: translateY(-2px); }
.btn-text {
    font-family: var(--sans); font-size: .75rem; font-weight: 400;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--charcoal); border-bottom: 1px solid var(--charcoal);
    padding-bottom: 2px; transition: color .2s, border-color .2s;
    align-self: center;
}
.btn-text:hover { color: var(--sage-dark); border-color: var(--sage-dark); }
.btn-text.light { color: rgba(247,244,238,.7); border-color: rgba(247,244,238,.4); }
.btn-text.light:hover { color: var(--white); border-color: var(--white); }

.chip {
    display: inline-block;
    font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
    padding: 4px 10px; border-radius: 2px;
}
.chip-sage { background: rgba(138,158,126,.18); color: var(--sage-dark); }
.chip-dark { background: rgba(28,28,24,.08); color: var(--mid); }

.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity .75s ease, transform .75s ease;
}
.reveal.up { opacity: 1; transform: none; }
.stagger-1, .s1 { transition-delay: .05s; }
.stagger-2, .s2 { transition-delay: .15s; }
.stagger-3, .s3 { transition-delay: .25s; }
.stagger-4, .s4 { transition-delay: .35s; }

/* ============================================================
 * HEADER
 * ============================================================ */
#hdr {
    position: fixed; top: 0; left: 0; right: 0; z-index: 999;
    height: 70px;
    background: rgba(247,244,238,.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(138,158,126,.15);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5vw; gap: 24px;
    transition: box-shadow .3s;
}
#hdr.scrolled { box-shadow: 0 4px 40px rgba(28,28,24,.08); }
#hdr .logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
#hdr .logo img { width: 170px; height: auto; max-height: 48px; display: block; }
#hdr nav { display: flex; align-items: center; gap: 0; flex: 1; justify-content: center; }

.nl {
    position: relative;
    font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--charcoal); padding: 8px 14px; border-radius: 4px;
    transition: color .2s; font-weight: 400; white-space: nowrap; cursor: pointer;
}
.nl:hover, .nl.active { color: var(--sage-dark); }
.nl.has-dd:hover .dd { display: block; }
.nl.has-dd::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 10px; }

.dd {
    display: none; position: absolute;
    top: calc(100% + 4px); left: 0;
    background: var(--white);
    border: 1px solid rgba(138,158,126,.2);
    border-radius: 8px; padding: 10px 0; min-width: 210px;
    box-shadow: 0 20px 60px rgba(28,28,24,.1);
    z-index: 300;
}
.dd a {
    display: block; padding: 8px 18px;
    font-size: .73rem; letter-spacing: .06em; text-transform: uppercase;
    color: var(--charcoal); transition: background .15s, color .15s;
}
.dd a:hover { background: var(--cream); color: var(--sage-dark); }

.hcta {
    flex-shrink: 0;
    background: var(--charcoal); color: var(--cream);
    padding: 10px 22px; border-radius: var(--r);
    font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
    font-weight: 400; transition: background .2s;
}
.hcta:hover { background: var(--sage-deep); }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--charcoal); border-radius: 2px; }

.mob-nav {
    display: none; position: fixed;
    top: 70px; left: 0; right: 0; bottom: 0;
    background: var(--white); z-index: 998;
    overflow-y: auto;
    padding: 32px 6vw;
    flex-direction: column;
}
.mob-nav.open { display: flex; }
.mob-nav a {
    display: block; padding: 16px 0;
    font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--charcoal); border-bottom: 1px solid var(--cream-mid);
}
.mob-nav a:hover { color: var(--sage-dark); }

/* Header contact (call/WA buttons) */
.hdr-contact { display: flex; align-items: center; gap: 8px; margin-right: 10px; }
.hdr-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 6px;
    font-size: .74rem; letter-spacing: .06em; font-weight: 400;
    white-space: nowrap;
    transition: background .2s, color .2s;
    font-family: inherit; line-height: 1;
}
.hdr-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.hdr-call { background: transparent; color: var(--charcoal); border: 1px solid rgba(17,17,17,.18); }
.hdr-call:hover { background: rgba(17,17,17,.06); }
.hdr-wa { background: #25D366; color: #fff; border: 1px solid transparent; }
.hdr-wa:hover { background: #1ebe59; }

/* Mobile dropdown groups */
.mob-group { border-bottom: 1px solid var(--cream-mid); }
.mob-group-head { display: flex; align-items: stretch; }
.mob-group-link {
    flex: 1;
    display: block !important;
    padding: 16px 0 !important;
    font-size: .85rem !important;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--charcoal) !important;
    border-bottom: 0 !important;
    font-weight: 400;
}
.mob-group.active > .mob-group-head > .mob-group-link { color: var(--sage-dark) !important; }
.mob-group-toggle {
    background: none; border: 0;
    padding: 0 4px 0 18px;
    cursor: pointer; color: var(--charcoal);
    font-family: inherit;
    display: flex; align-items: center;
}
.mob-group-toggle svg { width: 13px; height: 13px; transition: transform .28s; }
.mob-group.open .mob-group-toggle svg { transform: rotate(180deg); }
.mob-submenu {
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease;
    background: rgba(138,158,126,.05);
}
.mob-group.open .mob-submenu { max-height: 600px; }
.mob-submenu a {
    padding: 13px 0 13px 22px !important;
    font-size: .74rem !important;
    color: var(--mid) !important;
    border-bottom: 1px solid rgba(229,228,225,.7) !important;
    letter-spacing: .08em;
}
.mob-submenu a:last-child { border-bottom: 0 !important; }

@media (max-width: 1100px) {
    .hdr-wa .hdr-btn-label { display: none; }
    .hdr-wa { gap: 0; padding: 9px 11px; }
    .hdr-btn svg { width: 16px; height: 16px; }
    .hdr-contact { margin-right: 8px; }
}

@media (max-width: 1024px) {
    #hdr { gap: 12px; padding: 0 4vw; }
    #hdr nav { display: none; }
    .hcta { display: none; }
    .burger { display: flex; flex-shrink: 0; margin-left: 4px; }
}

@media (max-width: 900px) {
    .hdr-contact { margin-left: auto; margin-right: 4px; gap: 6px; align-items: center; flex-shrink: 0; }
    .hdr-wa {
        padding: 0; width: 36px; height: 36px;
        border-radius: 50%;
        justify-content: center; align-items: center; gap: 0;
    }
    .hdr-wa svg { width: 16px; height: 16px; }
    .hdr-call { padding: 8px 12px; border-radius: 20px; font-size: .70rem; gap: 5px; }
    .hdr-call svg { width: 14px; height: 14px; }
}

@media (max-width: 480px) {
    #hdr { padding: 0 3vw; gap: 8px; }
    #hdr .logo img { width: 120px; max-height: 44px; }
    .hdr-call .hdr-btn-label { display: none; }
    .hdr-call {
        padding: 0; width: 36px; height: 36px;
        border-radius: 50%;
        justify-content: center; gap: 0;
    }
    .hdr-contact { gap: 5px; margin-right: 2px; }
}

/* ============================================================
 * FOOTER
 * ============================================================ */
footer {
    background: var(--charcoal);
    border-top: 1px solid rgba(255,255,255,.05);
    padding: 80px 8vw 40px;
}
.footer-grid {
    max-width: 1280px; margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px; padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.f-logo-wrap { display: inline-block; margin-bottom: 22px; }
.f-logo-wrap img { width: 170px; height: auto; filter: brightness(0) invert(1); opacity: .92; }
.f-tagline {
    font-size: .8rem; color: rgba(247,244,238,.35);
    line-height: 1.7; max-width: 220px; font-weight: 300;
    margin-bottom: 24px;
}
.f-social { display: flex; gap: 8px; }
.f-social a {
    width: 34px; height: 34px; border-radius: 4px;
    border: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; color: rgba(247,244,238,.4);
    transition: border-color .2s, color .2s;
}
.f-social a:hover { border-color: var(--sage); color: var(--sage-light); }

.f-col h4 {
    font-size: .6rem; letter-spacing: .22em; text-transform: uppercase;
    color: var(--white); font-weight: 500; margin-bottom: 18px;
}
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.f-col ul li a {
    font-size: .77rem; color: rgba(247,244,238,.38);
    transition: color .2s; font-weight: 300;
}
.f-col ul li a:hover { color: var(--sage-light); }

.f-col-contact .f-contact-title {
    font-size: .78rem; letter-spacing: .24em; text-transform: uppercase;
    color: var(--white); font-weight: 500; margin-bottom: 22px;
}
.f-col-contact .f-contact-row {
    display: flex; align-items: center; gap: 14px;
    font-size: .92rem; color: rgba(247,244,238,.7);
    font-weight: 300; margin-bottom: 14px;
    transition: color .2s;
}
.f-col-contact a.f-contact-row:hover { color: var(--white); }
.f-col-contact .f-contact-ico {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.06);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--sage-light); font-size: .9rem; flex-shrink: 0;
    transition: background .2s, color .2s;
}
.f-col-contact a.f-contact-row:hover .f-contact-ico { background: rgba(138,158,126,.2); color: var(--white); }

.footer-bottom {
    max-width: 1280px; margin: 0 auto;
    padding-top: 28px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
}
.f-copy { font-size: .68rem; color: rgba(247,244,238,.2); letter-spacing: .06em; }
.f-links { display: flex; gap: 20px; }
.f-links a { font-size: .68rem; color: rgba(247,244,238,.2); transition: color .2s; letter-spacing: .06em; }
.f-links a:hover { color: var(--sage-light); }

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .f-brand { grid-column: span 3; }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .f-brand { grid-column: span 2; }
}

/* ============================================================
 * CTA STRIP — gedeeld (template-parts/sections/cta-strip.php)
 * ============================================================ */
.s-cta {
    padding: 120px 8vw;
    background: var(--sage-deep);
    position: relative; overflow: hidden; isolation: isolate;
}
.s-cta-photo { position: absolute; inset: 0; z-index: 0; }
.s-cta-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center right; }
.s-cta-photo::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(45,58,44,.97) 0%, rgba(45,58,44,.92) 38%, rgba(45,58,44,.72) 70%, rgba(45,58,44,.55) 100%);
}
.s-cta::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background-image: repeating-linear-gradient(-45deg, transparent, transparent 50px, rgba(255,255,255,.03) 50px, rgba(255,255,255,.03) 100px);
}
.s-cta-inner { max-width: 680px; position: relative; z-index: 2; }
.s-cta-inner .eyebrow { color: rgba(247,244,238,.6); margin-bottom: 22px; }
.s-cta-inner .eyebrow::before { background: rgba(247,244,238,.35); }
.s-cta .cta-actions { margin-bottom: 28px; }
.s-cta .cta-actions .btn { padding: 15px 32px; }
.cta-h2 {
    font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 300; color: var(--white); line-height: 1.1; letter-spacing: -.01em; margin-bottom: 18px;
}
.cta-h2 em { font-style: italic; color: var(--sage-light); }
.cta-sub { font-size: .97rem; color: rgba(247,244,238,.7); line-height: 1.7; margin-bottom: 40px; max-width: 520px; font-weight: 300; }
.cta-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.cta-micro { font-size: .67rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(247,244,238,.4); }

@media (max-width: 768px) {
    .s-cta { padding: 90px 6vw; }
}

/* ============================================================
 * PROOF STRIP — gedeeld (template-parts/sections/proof-strip.php)
 * ============================================================ */
.s-proof-mini {
    background: var(--charcoal-2);
    padding: 26px 8vw;
    display: flex; align-items: center; justify-content: center;
    gap: 40px; flex-wrap: wrap;
}
.proof-mini-item { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.proof-mini-icon { font-size: 1rem; color: var(--sage-light); }
.proof-mini-text { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(247,244,238,.55); }
.proof-mini-text strong { color: var(--white); font-weight: 500; }
.proof-mini-sep { width: 1px; height: 28px; background: rgba(255,255,255,.1); flex-shrink: 0; }

@media (max-width: 640px) {
    .s-proof-mini { gap: 20px; }
    .proof-mini-sep { display: none; }
}

/* ============================================================
 * CLIENT LOGOS TICKER — gedeeld
 *   template-parts/sections/client-logos.php
 * ============================================================ */
.s-logos {
    padding: 48px 0;
    background: var(--white);
    overflow: hidden;
    border-bottom: 1px solid var(--cream-mid);
}
.s-logos-label {
    text-align: center;
    font-size: .62rem; letter-spacing: .28em; text-transform: uppercase;
    color: var(--light); margin-bottom: 28px;
}
.logos-fade-wrap {
    position: relative; overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
}
.logos-scroll-track {
    display: flex; white-space: nowrap;
    animation: logosScroll 15s linear infinite;
}
.logos-scroll-track:hover { animation-play-state: paused; }
.logo-client {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 38px; height: 64px;
    border-right: 1px solid var(--cream-dark);
}
.logo-client img {
    max-height: 44px; max-width: 130px;
    width: auto; height: auto;
    object-fit: contain;
    border-radius: 8px;
    filter: grayscale(0); opacity: 1;
    transition: filter .3s, opacity .3s;
}
.logos-scroll-track:hover .logo-client:hover img { filter: grayscale(0); opacity: 1; }
@keyframes logosScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
 * REVIEWS-MINI — gedeeld
 *   template-parts/sections/reviews-mini.php
 * ============================================================ */
.s-reviews-mini { padding: 80px 8vw; background: var(--white); overflow: hidden; }
.s-reviews-mini-inner { max-width: 1280px; margin: 0 auto; }
.reviews-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.review-card-mini {
    background: var(--cream); border-radius: 10px;
    border: 1px solid rgba(138,158,126,.16);
    padding: 30px 28px;
    display: flex; flex-direction: column;
    transition: box-shadow .3s, border-color .3s;
}
.review-card-mini:hover { box-shadow: 0 16px 50px rgba(28,28,24,.07); border-color: var(--sage-light); }
.rcm-stars { color: #F4B942; font-size: .85rem; letter-spacing: 2px; margin-bottom: 14px; }
.rcm-quote {
    font-family: var(--serif); font-size: 1rem; font-weight: 300;
    color: var(--charcoal); line-height: 1.55; font-style: italic;
    flex: 1; margin-bottom: 22px;
    padding-left: 14px; border-left: 2px solid var(--sage-light);
}
.rcm-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--cream-mid); }
.rcm-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--sage-dark);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: .95rem;
    color: var(--white); flex-shrink: 0; font-weight: 500;
}
.rcm-name { font-size: .76rem; font-weight: 500; color: var(--charcoal); margin-bottom: 1px; }
.rcm-role { font-size: .68rem; color: var(--light); }
.rcm-tag {
    font-size: .58rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--sage-dark); background: rgba(138,158,126,.1);
    padding: 3px 8px; border-radius: 3px;
    white-space: nowrap; flex-shrink: 0;
    align-self: flex-start; margin-left: auto;
}

@media (max-width: 900px) {
    .reviews-mini-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .reviews-mini-grid { grid-template-columns: 1fr; }
}
