/* ================================================================
   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;

  /* Brand gold fallback — each site already defines its own --accent;
     this only fills in if a surface has none. */
  --spark-gold: #C6A87A;
}

/* Re-point every site's local font variables at Söhne, so existing
   rules that reference them inherit the unified face automatically. */
: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;
}


/* ── 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,
.hv2__mega-col h6 {
  font-family: var(--spark-sans) !important;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}


/* ── 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") →
   Söhne, not italic serif, so the brand lockup matches everywhere. */
.ssr-mini-header__sublabel,
.sc-header__sublabel,
.stg-nav__brand span {
  font-family: var(--spark-sans) !important;
  font-style: normal !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
}


/* ── 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;
  }
}
