*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Image copy protection — disables drag-saving en text-selection van
   images. Right-click contextmenu wordt via JS in animations.js geblokkeerd.
   Dit is geen echte bescherming (screenshots/devtools blijven mogelijk),
   maar verhoogt de drempel voor casual saving. */
img { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
/* scroll-behavior:smooth weggehaald — browser-default smooth is pixels/sec
   dus traag op lange pagina's. JS smoothScrollTo() in navigation.js doet
   vaste 400ms ease-out ongeacht afstand. */
html { -webkit-font-smoothing: antialiased; text-size-adjust: 100%; height: 100%; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--c-page-bg);
  overflow-x: hidden;
  min-height: 100%;
}

img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; }
svg  { flex-shrink: 0; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-weight: 600; line-height: 1.18; color: var(--brand-dark); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); font-weight: 300; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem);   font-weight: 400; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 500; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
p  { color: var(--text-mid); line-height: 1.75; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-eyebrow);
  display: block;
  margin-bottom: 0.75rem;
}

/* ── Language ── */
[data-lang="en"] .text-cn,
[data-lang="en"] [data-lang-cn] { display: none; }
[data-lang="cn"] .text-en { display: none; }
[data-lang="cn"] [data-lang-en] { display: none; }
[data-lang="cn"] [data-lang-cn] { display: revert; }

/* ── Layout utils ── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section      { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-sm   { padding-block: clamp(2rem, 5vw, 4rem); }
.text-center  { text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  white-space: nowrap; cursor: pointer;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--c-btn-primary-bg); color: var(--c-btn-primary-text); border: 1.5px solid var(--c-btn-primary-border); border-radius: 999px; box-shadow: 0 4px 14px var(--c-btn-glow); transition: all .18s ease; }
.btn-primary:hover { background: var(--c-btn-primary-hover); color: #fff; border-color: var(--c-btn-primary-hover); box-shadow: 0 12px 28px var(--c-btn-glow); }

.btn-outline { background: transparent; color: var(--brand-dark); border: 1.5px solid var(--brand-dark); }
.btn-outline:hover { background: var(--brand-dark); color: var(--white); }

.btn-light { background: rgba(255,255,255,0.15); color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255,255,255,0.25); border-color: var(--white); }

.btn-arrow::after { content: '→'; transition: transform var(--t-fast); }
.btn-arrow:hover::after { transform: translateX(5px); }

/* ── Page transition ── */
#spa-content {
  opacity: 1;
  transition: opacity 0.2s ease;
  min-height: 50vh;
}
#spa-content.htmx-swapping { opacity: 0; }
#spa-content.htmx-added    { animation: fadeUp 0.4s var(--ease) both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ── Dividers ── */
.wave-divider { line-height: 0; overflow: hidden; }
.wave-divider svg { display: block; width: 100%; }

/* ── Scrollbar (desktop) ── */
@media (min-width: 1024px) {
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--c-scrollbar-thumb); border-radius: 3px; }
}

/* page-wrap bg matcht section-light zodat empty areas (rond admin login,
   onder korte content) dezelfde kleur hebben als de section erboven en
   geen zichtbare horizontale kleurbreuk ontstaat. Geldt voor alle themes
   (gebruikt theme-vars). Sections binnen #spa-content overpainten waar nodig. */
.page-wrap { background: var(--c-section-light); display: flex; flex-direction: column; min-height: 100vh; }
/* Sticky-footer: laat de wave-wrapper boven de footer de stretch absorberen
   ipv #spa-content. SVG (de tan wave-shape) blijft adjacent aan footer via
   justify-content:flex-end; --wave-bg op transparent zodat page-wrap
   doorschemert — voorkomt twee verschillende achtergrondkleuren naast elkaar
   op themes waar --c-page-bg en --c-section-light zichtbaar verschillen
   (bv. noir admin). Werkt voor alle themes. */
.page-wrap > .c-wave--light-footer-bot {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  --wave-bg: transparent;
}

/* ── Cookie consent banner ───────────────────────────────── */
.cookie-banner {
  background: var(--c-cookie-bg);
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9999;
  width: min(600px, calc(100vw - 2rem));
  background: var(--forest);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
  border: 1px solid rgba(255,209,107,.2);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner.cb-visible {
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
  opacity: 1;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.4rem;
  flex-wrap: wrap;
}
.cookie-text {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  flex: 1;
  min-width: 0;
}
.cookie-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.cookie-text strong {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: .25rem;
}
.cookie-text p {
  font-size: .78rem;
  color: var(--c-footer-text);
  line-height: 1.55;
  margin: 0;
}
.cookie-btns {
  display: flex;
  gap: .6rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: .5rem 1.1rem;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all .15s;
  border: none;
  white-space: nowrap;
}
.cookie-btn--decline {
  background: rgba(255,255,255,.1);
  color: var(--c-footer-text);
  border: 1px solid rgba(255,255,255,.2);
}
.cookie-btn--decline:hover { background: var(--c-footer-social-hover-bg); color: var(--c-footer-link-hover); }
.cookie-btn--accept {
  background: var(--amber);
  color: var(--walnut);
}
.cookie-btn--accept:hover { background: var(--amber-light); }

@media (max-width: 500px) {
  .cookie-inner { flex-direction: column; }
  .cookie-btns  { width: 100%; justify-content: flex-end; }
}

/* ════════════════════════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════════════════════════ */

/* ── Scroll reveal base ── */
.reveal, .reveal-left, .reveal-right, .reveal-up, .reveal-scale {
  opacity: 0;
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.reveal        { transform: translateY(36px); }
.reveal-left   { transform: translateX(-48px); }
.reveal-right  { transform: translateX(48px); }
.reveal-up     { transform: translateY(20px); }
.reveal-scale  { transform: scale(.92); }

.reveal.in-view,
.reveal-left.in-view,
.reveal-right.in-view,
.reveal-up.in-view,
.reveal-scale.in-view {
  opacity: 1; transform: none;
}

/* Stagger children */
.stagger-children > * {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.stagger-children.in-view > *:nth-child(1) { transition-delay: .05s; }
.stagger-children.in-view > *:nth-child(2) { transition-delay: .15s; }
.stagger-children.in-view > *:nth-child(3) { transition-delay: .25s; }
.stagger-children.in-view > *:nth-child(4) { transition-delay: .35s; }
.stagger-children.in-view > *:nth-child(5) { transition-delay: .45s; }
.stagger-children.in-view > * { opacity: 1; transform: none; }



/* ── Floating pulse ── */
@keyframes floatPulse {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.float-pulse { animation: floatPulse 3.5s ease-in-out infinite; }

/* ── Shimmer on brand cards ── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* ── Brand card 3D tilt + glow ── */
.c-brand-card {
  transform-style: preserve-3d;
  perspective: 800px;
  transition: transform .25s ease, box-shadow .25s ease !important;
  position: relative;
  overflow: hidden;
}
.c-brand-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255,209,107,.18) 0%,
    rgba(255,255,255,.06) 40%,
    rgba(122,158,110,.18) 100%);
  opacity: 0;
  transition: opacity .3s ease;
  border-radius: inherit;
  z-index: 0;
}
.c-brand-card:hover::before { opacity: 1; }
.c-brand-card::after {
  content: '';
  position: absolute;
  top: -60%; left: -60%;
  width: 60%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
  z-index: 1;
}
.c-brand-card:hover::after { left: 140%; }
.c-brand-card > * { position: relative; z-index: 2; }

/* Glow ring on hover */
.c-brand-card:hover {
  box-shadow: 0 0 0 1px rgba(255,209,107,.4),
              0 8px 32px rgba(0,0,0,.25),
              0 0 40px rgba(255,209,107,.12) !important;
}

/* Stagger brand cards entrance */
.c-grid--4.stagger-children > .c-brand-card:nth-child(1) { transition-delay: .0s !important; }
.c-grid--4.stagger-children > .c-brand-card:nth-child(2) { transition-delay: .1s !important; }
.c-grid--4.stagger-children > .c-brand-card:nth-child(3) { transition-delay: .2s !important; }
.c-grid--4.stagger-children > .c-brand-card:nth-child(4) { transition-delay: .3s !important; }

/* ── Typewriter cursor ── */
.typewriter { visibility: hidden; }
.typewriter::after { content: '|'; animation: blink .7s step-end infinite; color: var(--amber); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Stat counters ── */
[data-count] {
  display: inline-block;
  animation: none;
}

/* ── Hero entrance ── */
.c-hero__inner { animation: heroEntrance .9s cubic-bezier(.16,1,.3,1) both; }
@keyframes heroEntrance {
  from { opacity:0; transform:translateY(32px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── Section fade-in on load ── */
.c-section, .c-section--white, .c-section--cream, .c-section--dark, .c-section--brand {
  position: relative;
}

/* ── Bottle card lift ── */
.bottle-card {
  transition: transform .25s cubic-bezier(.16,1,.3,1) !important;
}
.bottle-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
}

/* ════════════════════════════════════════════════════════════════
   ANIMATION THEME OVERRIDES
════════════════════════════════════════════════════════════════ */

/* ── Luxe: brand card glow + shimmer ── */

/* ── Luxe: cookie banner ── */



/* ── Luxe + Sage: btn-light (ghost buttons used in hero) ── */

/* ── Cosmos: brand card ── */
