/* Mama Bloom — mamabloom.app
 * Design philosophy (matches the April 2026 pitch-deck refresh):
 *   subtract, don't add. Typography + whitespace do the work that
 *   decorative rules did in the old pilot design.
 *   One accent per section. No gold lines under every heading.
 */

/* ─── Typography sources ────────────────────────────────────────────────
 * Grandeur is self-hosted from /assets/fonts/grandeur.woff2 (OWPictures,
 * Creative Fabrica commercial licence — see README). Self-hosting avoids
 * the Google Fonts GDPR exposure flagged by LG München I (Jan 2022).
 * Body text uses the system sans stack so no external font request ever
 * leaves the browser.
 *
 * Grandeur is missing two glyphs (ß, €), so the font-family stack falls
 * back to Georgia for any glyph Grandeur doesn't have — covered
 * automatically by the browser's per-glyph cascade. The one DE heading
 * that would have hit the ß gap was reworded to "nach" (legally
 * equivalent to "gemäß").
 */
@font-face {
  font-family: "Grandeur";
  src: url("assets/fonts/grandeur.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette (hex, straight from the pitch-deck generator) */
  --plum:       #6B2D5B;
  --plum-deep:  #3D1830;
  --gold:       #C9A96E;
  --gold-soft:  #D9C299;
  --blush:      #F0D5DE;
  --cream:      #FDF7F4;
  --cream-alt:  #FAF4F0;
  --ink:        #2A1A22;
  --ink-soft:   #6F5965;
  --divider:    #EADFD5;
  --white:      #FFFFFF;

  --font-serif: "Grandeur", Georgia, "Times New Roman", serif;
  --font-body:  -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --max-w:      1100px;
  --max-w-text: 720px;
  --pad-x:      24px;

  --ease:       cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ─── Reset / base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: var(--plum); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover, a:focus-visible { color: var(--gold); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--plum);
  line-height: 1.25;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.005em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

.eyebrow {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}
.italic { font-style: italic; }
.muted  { color: var(--ink-soft); }
.center { text-align: center; }

/* ─── Container / sections ───────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
section    { padding: clamp(72px, 10vw, 120px) 0; }
section + section { border-top: 0; }

/* ─── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 247, 244, 0.88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.site-header .brand {
  display: inline-flex;
  align-items: center;
}
.site-header .brand .wordmark {
  /* TM-03 PNG has ~30% whitespace padding baked in, so a 32px tall
   * render only gave ~22px of visible wordmark. Bumped to 56px so the
   * "Mama Bloom" text in the image reads as the site's identity. */
  height: 56px;
  width: auto;
  display: block;
}
/* Legacy styles kept so internal legal pages (if they revert to
 * icon-plus-text) still render sensibly — the teaser landing uses
 * only .wordmark. */
.site-header .brand img:not(.wordmark) { width: 32px; height: auto; }
.site-header .brand-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--plum);
  font-weight: 600;
  margin-left: 10px;
}
.site-header nav {
  display: none;
}

/* ─── Language switcher (EN / DE toggle) ─────────────────────────────
 * Set on <html> by the inline bootstrap in each page, before paint, so
 * CSS can hide the non-selected language without a visible flash. The
 * `.lang-btn` elements are real <button>s for keyboard access; the
 * `aria-pressed` attribute is the source of truth for screen readers.
 */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-body);
}
.lang-btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.lang-btn:hover { color: var(--plum); }
.lang-btn[aria-pressed="true"] {
  color: var(--plum);
  background: rgba(107, 45, 91, 0.08);
  font-weight: 600;
}
.lang-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.lang-sep {
  color: var(--divider);
  user-select: none;
}

/* Visibility rules — any element with `data-lang` shows only when its
 * value matches the active `lang-*` class on <html>. Elements without
 * `data-lang` are language-neutral and always show (e.g. the brand
 * tagline "Your space to breathe.", email addresses, legal-line
 * footer, logos).
 *
 * The `.lang-btn` elements carry `data-lang` too (to identify which
 * language each button selects), so they're exempted below — without
 * this, the DE button disappears when EN is active and vice versa. */
html.lang-en :not(.lang-btn)[data-lang="de"],
html.lang-de :not(.lang-btn)[data-lang="en"] {
  display: none !important;
}

/* ─── Teaser (minimal landing) ───────────────────────────────────────── */
.teaser { min-height: 100vh; display: flex; flex-direction: column; }
.teaser-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 8vw, 80px) var(--pad-x);
}
.teaser-inner {
  max-width: 720px;
  text-align: center;
}
.teaser-inner .hero-logo {
  /* The trademark PNG has ~30% whitespace padding baked in, so the
   * visible logo is smaller than the displayed width suggests. Sized
   * to match the visual weight of the Grandeur tagline below, centered
   * directly above it with minimal gap. */
  width: clamp(360px, 70vw, 620px);
  margin: 0 auto -12px;
  display: block;
}
.teaser-title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  color: var(--plum);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.teaser-line {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}
.teaser-soon {
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 28px;
}
.teaser-contact {
  margin-top: 12px;
  font-size: 0.95rem;
}
.teaser-contact a {
  font-family: var(--font-serif);
  color: var(--plum);
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 1px;
}
.teaser-contact a:hover { color: var(--gold); border-color: var(--gold); }

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-alt) 100%);
  padding-top: clamp(48px, 8vw, 88px);
  padding-bottom: clamp(72px, 10vw, 120px);
  text-align: center;
}
.hero .logo-mark {
  width: clamp(120px, 18vw, 200px);
  margin: 0 auto 36px;
}
.hero h1 {
  max-width: 780px;
  margin: 0 auto 20px;
}
.hero .tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.hero .lede {
  max-width: 620px;
  margin: 0 auto;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ─── Pillars (solution section) ─────────────────────────────────────── */
.pillars {
  background: var(--white);
}
.pillars .container { max-width: var(--max-w); }
.pillars .section-intro {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.pillars .section-intro h2 {
  margin-bottom: 14px;
}
.pillars .section-intro p {
  color: var(--ink);
  font-size: 1.1rem;
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.pillar {
  text-align: left;
  padding: 0;
}
.pillar h3 {
  font-size: 1.2rem;
  color: var(--plum);
  margin-bottom: 10px;
  font-weight: 600;
}
.pillar p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}
.pillar-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  margin-bottom: 16px;
  display: inline-block;
}
@media (max-width: 768px) {
  .pillar-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ─── Journey (stages) section ───────────────────────────────────────── */
.journey {
  background: var(--cream);
}
.journey .container { max-width: 920px; text-align: center; }
.journey h2 { margin-bottom: 16px; }
.journey .subhead {
  color: var(--ink);
  font-size: 1.1rem;
  margin-bottom: 48px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.stages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--plum);
}
.stages .chip {
  padding: 10px 20px;
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: 999px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.stages .chip:hover { transform: translateY(-2px); border-color: var(--gold-soft); }

/* ─── Quote section ──────────────────────────────────────────────────── */
.quote {
  background: var(--plum-deep);
  color: var(--blush);
  text-align: center;
}
.quote blockquote {
  max-width: 780px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  line-height: 1.5;
  color: var(--blush);
}
.quote cite {
  display: block;
  margin-top: 28px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── Contact / closing CTA ──────────────────────────────────────────── */
.contact {
  background: var(--cream-alt);
  text-align: center;
}
.contact .container { max-width: 680px; }
.contact h2 { margin-bottom: 16px; }
.contact p {
  color: var(--ink);
  font-size: 1.1rem;
  margin-bottom: 28px;
}
.contact .mail-link {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--plum);
  font-weight: 600;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 2px;
}
.contact .mail-link:hover { border-color: var(--gold); color: var(--gold); }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--plum-deep);
  color: var(--gold-soft);
  padding: 48px 0 32px;
  font-size: 0.85rem;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}
.site-footer .footer-brand {
  font-family: var(--font-serif);
  color: var(--blush);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.site-footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.site-footer nav a {
  color: var(--gold-soft);
  font-size: 0.9rem;
}
.site-footer nav a:hover { color: var(--blush); }
.site-footer .legal-line {
  color: var(--gold-soft);
  opacity: 0.7;
  font-size: 0.78rem;
  line-height: 1.6;
  max-width: 680px;
}

/* ─── Legal pages (impressum, privacy, terms) ────────────────────────── */
.legal-page {
  padding: clamp(60px, 8vw, 100px) var(--pad-x) 80px;
  max-width: 780px;
  margin: 0 auto;
}
.legal-page .back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}
.legal-page .back-link:hover { color: var(--plum); }
.legal-page h1 {
  font-size: 2.25rem;
  margin-bottom: 6px;
}
.legal-page .meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 40px;
  font-style: italic;
}
.legal-page h2 {
  font-size: 1.4rem;
  margin: 40px 0 12px;
}
.legal-page h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--plum);
  margin: 24px 0 8px;
}
.legal-page p,
.legal-page li {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal-page ul { padding-left: 22px; margin-bottom: 18px; }
.legal-page li { margin-bottom: 6px; }
.legal-page .lang-divider {
  margin: 64px 0 40px;
  padding-top: 32px;
  border-top: 1px solid var(--divider);
}
.legal-page .lang-divider .eyebrow { margin-bottom: 4px; }
.legal-page .lang-divider .divider-note {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.legal-page .authoritative-note {
  background: rgba(201, 169, 110, 0.08);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.legal-page .authoritative-note strong { color: var(--plum); font-weight: 600; }

/* ─── Utility ────────────────────────────────────────────────────────── */
.visually-hidden {
  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) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
