/**
 * Ineffable Branding V5 · Dark-Luxury Navy + Gold + Violet
 *
 * Slogan: "We see what others miss"
 * Mood: premium fragrance, dark-mode-first editorial, luxury jewelry-stationery.
 * Palette: deep midnight navy + warm gold + violet undertones + cream off-white.
 * Inspiratie-beelden:
 *   - branding-references/inspiration-v5a-blockff.png (block-FF, paars-getint)
 *   - branding-references/inspiration-v5b-cursiefff.png (cursief ff, navy , PRIMARY)
 * Design-prompt: branding-references/v5-design-prompt.md
 *
 * Buttons: pill-shape, gold-met-dark-navy-text (5.5:1 contrast WCAG AA),
 * gold-tinted glow shadows + lift bij hover.
 */

/* ============================================================
 *  WEB FONTS
 * ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
 *  DESIGN TOKENS , LIGHT MODE (V5 dark-first, light is alternatief)
 * ============================================================ */

:root {
  /* --- Backgrounds (light-mode is voor inverted contexten zoals print) --- */
  --bg: #f6f4ef;
  --bg-elevated: #ffffff;
  --bg-muted: #ebe8e0;

  /* --- Ink (typography) --- */
  --ink: #0b0f1a;
  --ink-soft: #2a2f45;
  --ink-muted: #6b6e7a;

  /* --- Lines --- */
  --line: #d4d2cb;
  --line-strong: #b8b6ad;

  /* --- Accent (warm gold) --- */
  --accent: #d4af37;
  --accent-soft: #e6ce8f;
  --accent-ink: #8b6f1f;
  --gold-tint: #f0e9d2;
  --gold-tint-overlay: rgba(212, 175, 55, 0.10);

  /* --- Secundair (violet uit V5b palette) --- */
  --violet: #463066;
  --violet-soft: #6b4c8e;
  --violet-tint: #e8e2ed;

  --olive: #8b8f98;
  --olive-soft: #c7c4bd;
  --olive-tint: #ebe8e0;
  --clay: #6b4c8e;
  --clay-tint: #e8e2ed;
  --slate-warm: #2a2f45;

  /* --- Status --- */
  --green: #6a8550;
  --green-bg: #e6ebe2;
  --amber: #c7984a;
  --amber-bg: #f5e9d0;
  --red: #b85647;
  --red-bg: #f0d9d4;
  --blue: #6e7b8a;
  --blue-bg: #dce1e8;
  --slate: #8b8f98;
  --slate-bg: #ebe8e0;

  /* --- Typography stacks --- */
  --serif: 'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* --- Type scale --- */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.5rem;
  --text-5xl: clamp(2.5rem, 6vw, 4rem);

  --leading-tight: 1.15;
  --leading-snug: 1.4;
  --leading-normal: 1.7;
  --leading-loose: 1.9;

  /* --- Spacing --- */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  /* --- Radii --- */
  --radius-sm: 2px; --radius-md: 4px; --radius-lg: 6px;
  --radius-xl: 8px; --radius-2xl: 12px; --radius-pill: 100px;

  /* --- Shadows met gold-tinted glow --- */
  --shadow-sm: 0 1px 2px rgba(11, 15, 26, 0.06);
  --shadow-md: 0 2px 12px rgba(11, 15, 26, 0.08);
  --shadow-lg: 0 8px 32px rgba(11, 15, 26, 0.12);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.22);

  /* --- Transitions --- */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* --- Layout --- */
  --content-narrow: 720px;
  --content-base: 980px;
  --content-wide: 1240px;
}

/* ============================================================
 *  DARK MODE , primaire context voor V5
 * ============================================================ */

[data-theme="dark"] {
  --bg: #0b0f1a;
  --bg-elevated: #111827;
  --bg-muted: #1a2238;

  --ink: #f6f4ef;
  --ink-soft: #c7c4bd;
  --ink-muted: #8b8f98;

  --line: #2a2f45;
  --line-strong: #463066;

  --accent: #d4af37;
  --accent-soft: #e6ce8f;
  --accent-ink: #8b6f1f;
  --gold-tint: #2a2218;
  --gold-tint-overlay: rgba(212, 175, 55, 0.12);

  --violet: #6b4c8e;
  --violet-soft: #8c6a8f;
  --violet-tint: #463066;

  --olive: #8b8f98;
  --olive-soft: #6b6e7a;
  --olive-tint: #1a2238;
  --clay: #6b4c8e;
  --clay-tint: #2a1f3a;
  --slate-warm: #c7c4bd;

  --green: #8ca870;
  --green-bg: rgba(106, 133, 80, 0.18);
  --amber: #e0b870;
  --amber-bg: rgba(199, 152, 74, 0.18);
  --red: #d47465;
  --red-bg: rgba(184, 86, 71, 0.18);
  --blue: #94a0ad;
  --blue-bg: rgba(110, 123, 138, 0.18);
  --slate: #c7c4bd;
  --slate-bg: rgba(139, 143, 152, 0.18);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 4px 24px rgba(212, 175, 55, 0.30);
}

/* V5 default: dark-mode tenzij explicit light */
html:not([data-theme]) {
  --bg: #0b0f1a;
  --bg-elevated: #111827;
  --bg-muted: #1a2238;
  --ink: #f6f4ef;
  --ink-soft: #c7c4bd;
  --ink-muted: #8b8f98;
  --line: #2a2f45;
  --line-strong: #463066;
  --gold-tint: #2a2218;
  --gold-tint-overlay: rgba(212, 175, 55, 0.12);
  --violet: #6b4c8e;
  --violet-soft: #8c6a8f;
  --violet-tint: #463066;
  --olive: #8b8f98;
  --olive-soft: #6b6e7a;
  --olive-tint: #1a2238;
}

/* ============================================================
 *  RESET + BASE
 * ============================================================ */

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ============================================================
 *  TYPOGRAPHY
 * ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-4);
  color: var(--ink);
  letter-spacing: -0.005em;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 400;
  letter-spacing: -0.015em;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 400;
  color: var(--ink);
  margin-top: var(--space-12);
  font-style: italic;
}

h3 { font-size: var(--text-3xl); margin-top: var(--space-8); }
h4 { font-size: var(--text-2xl); margin-top: var(--space-6); }
h5 { font-size: var(--text-xl); }
h6 {
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--accent);
}

p { margin: 0 0 var(--space-4); color: var(--ink-soft); }
p strong { color: var(--ink); font-weight: 600; }

.lede {
  font-family: var(--serif);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: var(--leading-snug);
  color: var(--ink-soft);
  max-width: 60ch;
  font-style: italic;
}

.eyebrow {
  font-family: var(--sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-4);
  display: inline-block;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 0.25em;
  transition: color var(--transition-fast);
}
a:hover { color: var(--accent-soft); }

ul, ol { margin: 0 0 var(--space-4); padding-left: var(--space-6); }
li { margin: var(--space-2) 0; color: var(--ink-soft); }

blockquote {
  margin: var(--space-8) 0;
  padding: var(--space-2) var(--space-8);
  border-left: 1px solid var(--accent);
  font-family: var(--serif);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--ink);
  font-weight: 400;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg-elevated);
  color: var(--accent);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

pre {
  font-family: var(--mono);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  overflow-x: auto;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--ink);
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: var(--space-12) 0;
}

/* ============================================================
 *  LOGO V5 , "ineffable" met cursief gouden ff op dark
 * ============================================================ */

.ineffable-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.ineffable-logo:hover { color: var(--ink); }
.ineffable-logo:hover .ff { color: var(--accent-soft); }

.ineffable-star {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
}

.ineffable-wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  letter-spacing: 0;
  text-transform: lowercase;
  line-height: 1;
}

.ineffable-wordmark .ff {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15em;
  letter-spacing: -0.06em;
  display: inline-block;
  margin: 0 0.04em;
  transform: translateY(0.04em);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.20);
}

.ineffable-underline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: 4em;
  height: 1px;
  margin-top: 0.2em;
  color: var(--accent);
}
.ineffable-underline::before,
.ineffable-underline::after {
  content: '';
  width: 3px; height: 3px;
  background: currentColor;
  border-radius: 50%;
  flex: none;
}
.ineffable-underline > span {
  flex: 1;
  height: 1px;
  background: currentColor;
  display: block;
}

.ineffable-tagline {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.6rem;
}

.ineffable-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  text-transform: lowercase;
  border: 1px solid var(--line-strong);
}
.ineffable-mark .ff {
  color: var(--accent);
  font-style: italic;
}

/* ============================================================
 *  BUTTONS , best-practice CTA, dark-luxury
 * ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  padding: 1.1rem 2.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  min-height: 48px;
}

.btn-primary {
  background: var(--accent);
  color: #0b0f1a;
  border-color: var(--accent);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: #0b0f1a;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(212, 175, 55, 0.40);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  padding: 0.8rem 1.2rem;
  letter-spacing: 0.2em;
  box-shadow: none;
}
.btn-ghost:hover {
  color: var(--accent-soft);
  background: var(--gold-tint);
}

.btn-sm { font-size: 0.72rem; padding: 0.85rem 1.8rem; letter-spacing: 0.16em; min-height: 40px; }
.btn-lg { font-size: 0.88rem; padding: 1.3rem 3.2rem; letter-spacing: 0.22em; min-height: 56px; }

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

/* ============================================================
 *  PILLS
 * ============================================================ */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid;
  white-space: nowrap;
  background: transparent;
}
.pill-good   { color: var(--green); border-color: var(--green); }
.pill-amber  { color: var(--amber); border-color: var(--amber); }
.pill-red    { color: var(--red); border-color: var(--red); }
.pill-blue   { color: var(--blue); border-color: var(--blue); }
.pill-slate  { color: var(--slate); border-color: var(--slate); }
.pill-accent { color: var(--accent); border-color: var(--accent); }

/* ============================================================
 *  CARDS
 * ============================================================ */

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-10);
}
.card-elevated { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.card-accent {
  border-color: var(--accent);
  border-left-width: 2px;
  background: var(--gold-tint);
}

.container {
  width: 100%;
  max-width: var(--content-base);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-narrow { max-width: var(--content-narrow); }
.container-wide { max-width: var(--content-wide); }

.brand-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-16) 0 var(--space-10);
  margin-top: var(--space-24);
  text-align: center;
}

/* ============================================================
 *  ACCESSIBILITY
 * ============================================================ */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

/* Floating WhatsApp button (fase 14/cap-1) */
#whatsappFloat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 9000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
#whatsappFloat:hover, #whatsappFloat:focus-visible {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
}
@media (max-width: 640px) {
  #whatsappFloat { bottom: 16px; right: 16px; width: 52px; height: 52px; }
}

/* Phone-popup modal (fase 14/cap-2) */
.phone-popup-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9500;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  animation: phone-popup-fade-in 0.3s ease;
}
.phone-popup-overlay.is-closing {
  animation: phone-popup-fade-out 0.3s ease forwards;
}
@keyframes phone-popup-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes phone-popup-fade-out { to { opacity: 0; } }
.phone-popup-modal {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  border-radius: 18px;
  padding: 2.6rem 2.4rem 2.2rem;
  max-width: 460px; width: 100%;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65), 0 0 60px rgba(212, 175, 55, 0.18);
  animation: phone-popup-slide-up 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes phone-popup-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.phone-popup-close {
  position: absolute; top: 14px; right: 18px;
  background: transparent; border: 0;
  font-size: 1.6rem; line-height: 1;
  color: var(--ink-muted); cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.phone-popup-close:hover { color: var(--accent); }
.phone-popup-eyebrow {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 0.6rem;
}
.phone-popup-title {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 1.7rem; line-height: 1.15;
  color: var(--ink); margin: 0 0 0.8rem;
  letter-spacing: -0.01em;
}
.phone-popup-lede {
  font-family: var(--sans); font-size: 0.95rem;
  color: var(--ink-soft); line-height: 1.5;
  margin: 0 0 1.6rem;
}
.phone-popup-input {
  width: 100%; min-height: 56px;
  padding: 0 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans); font-size: 1.05rem;
  margin-bottom: 0.9rem;
  transition: border-color var(--transition-fast);
}
.phone-popup-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}
.phone-popup-submit {
  width: 100%; min-height: 56px;
  border-radius: 100px;
  background: var(--accent); color: #0b0f1a;
  border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 0.95rem;
  font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.32);
}
.phone-popup-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.5);
}
.phone-popup-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.phone-popup-error {
  font-family: var(--sans); font-size: 0.82rem;
  color: var(--red); margin: 0.8rem 0 0;
  min-height: 1rem;
}
.phone-popup-success {
  font-family: var(--sans); font-size: 1rem; font-weight: 500;
  color: var(--green);
  text-align: center; padding: 1rem;
  background: rgba(167, 183, 161, 0.12);
  border-radius: 12px; margin: 0.8rem 0;
}
.phone-popup-disclaimer {
  font-family: var(--sans); font-size: 0.74rem;
  color: var(--ink-muted); line-height: 1.4;
  margin: 1rem 0 0;
}
@media (max-width: 480px) {
  .phone-popup-modal { padding: 2rem 1.6rem 1.8rem; }
  .phone-popup-title { font-size: 1.45rem; }
}
