/* ================================================================
   SPARK — Unified Brand System (spark-brand.css)
   Single source of truth across all 3 properties:
     · sparkplaces.com            (.hv2 / .stg-*)
     · sparkskyresidences.de      (.ssr-mini-header)
     · socialclub-fra.de          (.sc-*)

   LOAD LAST. This is an override layer — it normalizes typography,
   buttons, header/logo geometry, and motion so the three sites read
   as one brand.

   Principles baked in:
     · Söhne is the ONE typeface (body, headings, nav, eyebrows, buttons)
     · Serif (Instrument Serif italic) is allowed ONLY for the hero
       display accent word ("Sky Lounge", "Months Ahead", "Above Berlin")
     · No monospace eyebrows — the "STAGE COLLECTION · No. 03" mono look is removed
     · Emil Kowalski: strong ease-out curves, :active scale, focus-visible
     · Impeccable: text-wrap balance/pretty, contrast, keyboard focus
     · Taste: unseen consistency compounds
   ================================================================ */

/* ── Canonical Söhne face (consistent name across all sites) ──── */
@font-face {
  font-family: 'Söhne';
  src: local('Söhne Buch'), url('fonts/Sohne-Buch.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: local('Söhne Kräftig'), url('fonts/Sohne-Kraftig.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: local('Söhne Kräftig'), url('fonts/Sohne-Kraftig.otf') format('opentype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: local('Söhne Kräftig'), url('fonts/Sohne-Kraftig.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}


/* ── Brand tokens (shared) ────────────────────────────────────── */
:root {
  /* The one sans. Söhne first, robust system fallbacks after. */
  --spark-sans: 'Söhne', 'General Sans', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  /* The ONLY serif — display accent word only. */
  --spark-accent-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  /* Emil Kowalski easing curves — stronger than the CSS built-ins. */
  --spark-ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --spark-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --spark-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Unified geometry */
  --spark-nav-h:    66px;   /* one nav height for every site */
  --spark-logo-h:   24px;   /* one logo height for every site */
  --spark-radius-pill: 999px;
  --spark-btn-h:    48px;
  --spark-btn-pad-x: 26px;

  /* ONE brand gold — no orange/peach anywhere. */
  --spark-gold:   #B0894A;   /* antique gold — every accent */
  --spark-gold-2: #C7A463;   /* lighter gold — hover / on-dark emphasis */
}

/* Re-point every site's local font variables at Söhne, so existing
   rules that reference them inherit the unified face automatically.
   Mono is included on purpose: eyebrows, meta lines, time slots and
   menu toggles that used JetBrains Mono now render in Söhne. */
:root {
  --font-display: var(--spark-sans) !important;
  --font-body:    var(--spark-sans) !important;
  --stg-sans:     var(--spark-sans) !important;
  --f-body:       var(--spark-sans) !important;
  --stg-mono:     var(--spark-sans) !important;
  --f-mono:       var(--spark-sans) !important;
  --font-mono:    var(--spark-sans) !important;
}

/* ── ONE gold: override every site's accent token ─────────────── */
/* Kills the orange dark-theme accent (#c8a878/#d8bd90), the warm oak
   (#C6A87A) and the champagne tones in favour of a single gold. */
:root,
.stg, .stg--dark, .stg--light, .stg--dusk,
.sc-body, body {
  --accent:        var(--spark-gold) !important;
  --accent-2:      var(--spark-gold-2) !important;
  --oak:           var(--spark-gold) !important;
  --oak-deep:      var(--spark-gold) !important;
  --champagne:     var(--spark-gold) !important;
  --champagne-2:   var(--spark-gold-2) !important;
  --champagne-deep:var(--spark-gold) !important;
}


/* ── Global typeface enforcement ──────────────────────────────── */
body,
.stg,
.sc-body {
  font-family: var(--spark-sans);
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings → Söhne everywhere (the display serif is applied ONLY to
   the accent <em>/<span> inside, see below). */
h1, h2, h3, h4, h5, h6,
.stg-h1, .stg-h2, .stg-h3,
.sc-h1, .sc-h2, .sc-h3,
.display {
  font-family: var(--spark-sans);
}

/* Impeccable: even line lengths, fewer orphans */
h1, h2, h3,
.stg-h1, .stg-h2, .stg-h3,
.sc-h1, .sc-h2, .sc-h3 {
  text-wrap: balance;
  letter-spacing: -0.025em;
}
p, .stg-lede, .sc-lede, .stg-body, .sc-body-copy {
  text-wrap: pretty;
}


/* ── Display accent word — the ONE allowed serif ──────────────── */
/* Keeps "Sky Lounge", "Months Ahead", "Dinner Above Berlin" italic
   serif and gold, unified across all three sites. */
.stg-h1 em, .stg-h2 em, .stg-h3 em, .stg em, .stg-serif,
.sc-h1 .sc-em, .sc-h2 .sc-em, .sc-h3 .sc-em, .sc-em,
h1 em, h2 em, h3 em,
.hero-anim__title h1 em {
  font-family: var(--spark-accent-serif) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: var(--accent, var(--spark-gold));
  letter-spacing: 0;
}


/* ── Eyebrow / kicker — Söhne, NOT monospace ──────────────────── */
/* Directly removes the "SPARK STAGE COLLECTION · No. 03" mono look. */
.stg-eyebrow,
.sc-eyebrow,
.eyebrow,
.label {
  font-family: var(--spark-sans) !important;
  font-weight: 500;
  font-size: 11px !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase;
  color: var(--accent, var(--spark-gold));
  /* Consistent eyebrow rhythm across every site */
  display: inline-flex !important;
  align-items: center;
  gap: 14px !important;
  margin: 0 0 24px !important;
}
.hv2__mega-col h6 {
  font-family: var(--spark-sans) !important;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Unified leading rule before every eyebrow (same length everywhere). */
.stg-eyebrow::before,
.sc-eyebrow::before,
.eyebrow::before {
  content: "" !important;
  width: 30px !important;
  height: 1px !important;
  background: currentColor !important;
  opacity: 0.8;
  flex: 0 0 auto;
}
.stg-eyebrow--center,
.sc-eyebrow--center { justify-content: center; }


/* ── Unified button system ────────────────────────────────────── */
/* Shape, type, and motion unified across .btn / .stg-btn / .sc-btn.
   Per-site color modifiers (--primary/--ghost) are preserved. */
.btn,
.stg-btn,
.sc-btn,
.hv2__enquire,
.ssr-mini-header__cta,
.hero-anim__cta {
  font-family: var(--spark-sans) !important;
  border-radius: var(--spark-radius-pill) !important;
  transition:
    background   .18s var(--spark-ease-out),
    color        .18s var(--spark-ease-out),
    border-color .18s var(--spark-ease-out),
    transform    .16s var(--spark-ease-out) !important;
}

/* Emil: every pressable element confirms the press. */
.btn:active,
.stg-btn:active,
.sc-btn:active,
.hv2__enquire:active,
.ssr-mini-header__cta:active,
.hero-anim__cta:active,
.hero-anim__chapter:active {
  transform: scale(0.97);
}

/* Emil: hover lift is subtle and consistent. */
.btn:hover,
.stg-btn:hover,
.sc-btn:hover,
.hero-anim__cta:hover {
  transform: translateY(-1px);
}

/* Normalize the stage button away from the 2px-radius outlier. */
.stg-btn {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* ── Header + logo geometry (one height, one logo size) ───────── */
.hv2__main      { height: var(--spark-nav-h); }
.stg-nav        { height: var(--spark-nav-h); }
.ssr-mini-header__inner { min-height: var(--spark-nav-h); }
.sc-header      { min-height: var(--spark-nav-h); }

/* Logo: exactly one rendered height across every property. */
.hv2__brand-img,
.ssr-mini-header__mark img,
.ssr-mini-footer__mark img {
  height: var(--spark-logo-h) !important;
  width: auto !important;
}
.sc-header__mark svg {
  height: var(--spark-logo-h) !important;
  width: auto !important;
}

/* Sublabel ("Sky Residence Berlin" / "Supper Club Berlin") →
   Instrument Serif italic in gold (the brand signature, kept per request). */
.ssr-mini-header__sublabel,
.sc-header__sublabel,
.stg-nav__brand span {
  font-family: var(--spark-accent-serif) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  color: var(--accent, var(--spark-gold)) !important;
}


/* ── Keyboard focus (Impeccable / WCAG 2.4.7) ─────────────────── */
:focus-visible {
  outline: 2px solid var(--accent, var(--spark-gold));
  outline-offset: 3px;
  border-radius: 2px;
}
.btn:focus-visible,
.stg-btn:focus-visible,
.sc-btn:focus-visible,
.hero-anim__cta:focus-visible,
.hv2__enquire:focus-visible,
.ssr-mini-header__cta:focus-visible {
  outline-offset: 4px;
}


/* ── Reduced motion (Emil + WCAG 2.3.3) ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .btn, .stg-btn, .sc-btn,
  .hv2__enquire, .ssr-mini-header__cta,
  .hero-anim__cta, .hero-anim__chapter {
    transition-duration: 0.01ms !important;
  }
  .btn:active, .stg-btn:active, .sc-btn:active,
  .hv2__enquire:active, .hero-anim__cta:active,
  .hero-anim__chapter:active,
  .btn:hover, .stg-btn:hover, .sc-btn:hover,
  .hero-anim__cta:hover {
    transform: none !important;
  }
}


/* ================================================================
   UNIFIED NAVIGATION — link typography, CTA, burger + drawer
   Standardizes the bar formatting across .hv2 / .ssr / .sc.
   Per-site link CONTENT stays; only the formatting is shared.
   ================================================================ */

/* Primary nav links — one type treatment everywhere */
.hv2__nav-link,
.ssr-mini-header__nav a,
.sc-header__nav a {
  font-family: var(--spark-sans) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  transition: color .15s var(--spark-ease-out);
}

/* Header CTA — one small gold pill everywhere */
.ssr-mini-header__cta,
.sc-header__cta,
.hv2__enquire {
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  padding: 8px 16px !important;
  border-radius: var(--spark-radius-pill) !important;
}

/* ── Shared burger button (injected on sites without one) ─────── */
.spark-burger {
  display: inline-flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 40px; height: 40px; padding: 0;
  background: none; border: 0; cursor: pointer; color: inherit;
}
.spark-burger span {
  display: block; width: 22px; height: 1.5px;
  background: currentColor; transition: transform .2s var(--spark-ease-out), opacity .2s var(--spark-ease-out);
}

/* ── Shared drawer (DE/EN lives here on every site) ───────────── */
.spark-drawer { position: fixed; inset: 0; z-index: 1000; display: none; }
.spark-drawer.is-open { display: block; }
.spark-drawer__scrim {
  position: absolute; inset: 0; background: rgba(11,11,12,0.55);
  opacity: 0; transition: opacity .25s var(--spark-ease-out);
}
.spark-drawer.is-open .spark-drawer__scrim { opacity: 1; }
.spark-drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(420px, 88vw);
  background: var(--paper, #F6F3EE); color: var(--ink, #0b0b0c);
  display: flex; flex-direction: column;
  padding: 28px clamp(24px, 4vw, 40px);
  transform: translateX(100%);
  transition: transform .32s var(--spark-ease-drawer);
  overflow-y: auto;
}
.spark-drawer.is-open .spark-drawer__panel { transform: translateX(0); }
.spark-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 24px; margin-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.spark-drawer__brand {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--spark-sans); font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; font-size: 15px; color: var(--ink, #0b0b0c);
}
.spark-drawer__brand .sub {
  font-family: var(--spark-accent-serif); font-style: italic; font-weight: 400;
  letter-spacing: 0; text-transform: none; font-size: 17px;
  color: var(--accent, var(--spark-gold));
}
.spark-drawer__close {
  width: 40px; height: 40px; border: 0; background: none; cursor: pointer;
  font-size: 24px; line-height: 1; color: var(--ink, #0b0b0c);
}
.spark-drawer__nav { display: flex; flex-direction: column; padding: 18px 0; }
.spark-drawer__nav a {
  font-family: var(--spark-sans); font-size: 22px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--ink, #0b0b0c);
  padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: color .15s var(--spark-ease-out);
}
.spark-drawer__nav a:hover { color: var(--accent, var(--spark-gold)); }

/* ── DE / EN language switch (consistent on every site) ───────── */
.spark-lang {
  display: inline-flex; align-items: center; gap: 0;
  margin-top: auto; padding-top: 24px;
  font-family: var(--spark-sans); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase;
}
.spark-lang__opt {
  background: none; border: 0; cursor: pointer; padding: 6px 12px;
  color: rgba(0,0,0,0.45); font: inherit; letter-spacing: inherit;
  transition: color .15s var(--spark-ease-out);
}
.spark-lang__opt:hover { color: var(--ink, #0b0b0c); }
.spark-lang__opt.is-active { color: var(--accent, var(--spark-gold)); font-weight: 600; }
.spark-lang__sep { color: rgba(0,0,0,0.25); }

@media (prefers-reduced-motion: reduce) {
  .spark-drawer__scrim, .spark-drawer__panel { transition-duration: 0.01ms !important; }
}
