/* ═══════════════════════════════════════════════════════════
   La Casa de RUE — Shared Styles
   Design tokens + shared components (nav, footer, buttons, typography)
   Page-specific styles live inline in each HTML file.
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Benedict';
  src: url('Brand_Assets/benedict-regular/benedict-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  /* Colors */
  --bg: #FAF8F4;
  --bg-warm: #F3EEE4;
  --surface: #FFFFFF;
  --beige: #E8DFCF;
  --beige-soft: #F2EBDD;
  --beige-deep: #D4C5A9;
  --blue: #CFDCE5;
  --blue-soft: #E4ECF2;
  --lavender: #E5D9EC;
  --lavender-soft: #EFE7F3;
  --purple: #9A33B3;
  --purple-hover: #7F2995;
  --purple-light: #D9A8E3;
  --purple-deep: #2A1730;
  --ink: #1B1B1B;
  --ink-70: #4A4A4A;
  --ink-50: #6B6B6B;
  --ink-30: #9A9A9A;
  --line: #E8E3DB;
  --line-soft: #F0EBE2;
  --green: #3BB273;
  --red: #C04B4B;

  /* Typography */
  --font-sans: 'Montserrat', system-ui, sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, monospace;
  --font-script: 'Benedict', 'Caveat Brush', cursive;

  /* Shadows (purple-tinted) */
  --shadow-1:
    0 1px 2px rgba(42, 23, 48, 0.04),
    0 2px 8px rgba(42, 23, 48, 0.03);
  --shadow-2:
    0 1px 2px rgba(42, 23, 48, 0.04),
    0 8px 24px rgba(154, 51, 179, 0.06),
    0 24px 48px rgba(42, 23, 48, 0.04);
  --shadow-3:
    0 1px 2px rgba(42, 23, 48, 0.05),
    0 12px 32px rgba(154, 51, 179, 0.08),
    0 40px 80px rgba(42, 23, 48, 0.08);
  --shadow-cta:
    0 1px 2px rgba(42, 23, 48, 0.15),
    0 6px 16px rgba(154, 51, 179, 0.24);
  --shadow-cta-hover:
    0 2px 4px rgba(42, 23, 48, 0.15),
    0 12px 28px rgba(154, 51, 179, 0.32);

  /* Easings */
  --ease-spring: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ——— RESET ——— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html { background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }

/* ——— LAYOUT ——— */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { margin: 18px 0 16px; }
.section-head .lead { color: var(--ink-70); }

/* ——— TYPOGRAPHY ——— */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--purple);
  display: inline-block;
}
.h-display {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.h-display em {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 300;
  color: var(--purple);
}
.h-section {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.h-card {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.lead {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.65;
  color: var(--ink-70);
  font-weight: 300;
  max-width: 62ch;
}
.mono-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.hl { color: var(--purple); font-weight: 400; }

/* ——— LOGO (text-based until Brand_Assets/logo.png exists) ——— */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}
.brand .mark-top { display: inline-flex; align-items: baseline; gap: 0.35em; }
.brand .lc {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-transform: uppercase;
}
.brand .rue {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 36px;
  color: var(--purple);
  letter-spacing: -0.02em;
  transform: translateY(2px) rotate(-2deg);
  display: inline-block;
}
.brand .sub {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-left: 6px;
}
.brand.on-dark .lc { color: #F3EDE4; }
.brand.on-dark .rue { color: var(--purple-light); }
.brand.on-dark .sub { color: #C9BFB2; }

/* Image-based logo (used in nav across all pages) */
.brand-link {
  display: inline-flex;
  align-items: center;
  transition: opacity .2s ease, transform .2s var(--ease-spring);
}
.brand-link:hover { opacity: 0.75; }
.brand-link:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; border-radius: 4px; }
.brand-logo {
  height: 112px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .brand-logo { height: 70px; }
}
/* Footer / dark-background variant: invert to white so the logo is visible on the dark purple footer. */
.brand-link.on-dark .brand-logo {
  filter: brightness(0) invert(1);
  opacity: 0.92;
  height: 80px;
  transition: opacity .25s ease;
}
.brand-link.on-dark:hover .brand-logo { opacity: 1; }

/* ——— BUTTONS ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition:
    transform .18s var(--ease-out-strong),
    box-shadow .25s var(--ease-out),
    background-color .18s ease,
    color .18s ease,
    border-color .18s ease;
  will-change: transform;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.btn:active { transform: scale(0.97); transition-duration: .12s; }
.btn-primary {
  background: var(--purple);
  color: #FFF;
  box-shadow: var(--shadow-cta);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--purple-hover); transform: translateY(-1px); box-shadow: var(--shadow-cta-hover); }
}
.btn-primary:active { transform: scale(0.97); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
}
.btn-ghost:active { transform: scale(0.97); }

/* ——— Colorful CTA (nav "Termin buchen" attention magnet) ———
   Brand-recolored gradient: purple → magenta → warm coral.
   Dark base + animated glowing gradient blur underneath. */
.btn-colorful {
  position: relative;
  isolation: isolate;
  background: var(--purple-deep);
  color: #FFF;
  overflow: visible;
  box-shadow:
    0 1px 2px rgba(42, 23, 48, 0.18),
    0 8px 20px rgba(154, 51, 179, 0.28);
}
.btn-colorful::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #9A33B3 0%,
    #C13FA8 35%,
    #E94E8C 65%,
    #F2825C 100%
  );
  background-size: 200% 100%;
  filter: blur(5px);
  opacity: 0.3;
  transition: opacity .4s var(--ease-out), filter .4s var(--ease-out);
  animation: btn-colorful-pan 6s linear infinite;
}
.btn-colorful::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #9A33B3 0%,
    #C13FA8 35%,
    #E94E8C 65%,
    #F2825C 100%
  );
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity .4s var(--ease-out);
  animation: btn-colorful-pan 6s linear infinite;
}
@media (hover: hover) and (pointer: fine) {
  .btn-colorful:hover {
    transform: translateY(-1px);
    background: var(--purple-deep);
  }
  .btn-colorful:hover::before { opacity: 0.6; filter: blur(8px); }
  .btn-colorful:hover::after  { opacity: 1; }
}
.btn-colorful:active { transform: scale(0.97); }
.btn-colorful .btn-arrow {
  width: 14px; height: 14px; flex-shrink: 0;
  transition: transform .25s var(--ease-out-strong);
  animation: btn-colorful-nudge 4.5s var(--ease-in-out) infinite;
}
@media (hover: hover) and (pointer: fine) {
  .btn-colorful:hover .btn-arrow {
    transform: translate(2px, -2px);
    animation: none;
  }
}
@keyframes btn-colorful-nudge {
  0%, 80%, 100% { transform: translate(0, 0); }
  86%           { transform: translate(2px, -2px); }
  92%           { transform: translate(0, 0); }
  96%           { transform: translate(1px, -1px); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-colorful .btn-arrow { animation: none; }
}

@keyframes btn-colorful-pan {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-colorful::before,
  .btn-colorful::after { animation: none; }
}
.btn-link {
  padding: 0;
  color: var(--purple);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-link::after {
  content: "→";
  display: inline-block;
  transition: transform .3s var(--ease-spring);
}
.btn-link:hover::after { transform: translateX(4px); }

/* ——— NAV ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  background: rgba(250, 248, 244, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 14px;
  color: var(--ink-70);
  transition: color .18s ease;
  position: relative;
  padding: 4px 0;
}
.nav-links a::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s var(--ease-out-strong);
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--ink); }
  .nav-links a:hover::before { transform: scaleX(1); }
}
.nav-links a:focus-visible { outline: 2px solid var(--purple); outline-offset: 6px; border-radius: 2px; }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--purple);
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.mobile-toggle { display: none; }

/* ——— MOBILE MENU PANEL ——— */
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.mobile-panel-scrim {
  position: absolute;
  inset: 0;
  background: rgba(42, 23, 48, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s var(--ease-out-strong);
}
.mobile-panel-sheet {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 86vw);
  background: var(--surface);
  box-shadow: -20px 0 60px rgba(42, 23, 48, 0.18);
  display: flex;
  flex-direction: column;
  padding: 28px 28px 36px;
  transform: translateX(100%);
  transition: transform .35s var(--ease-drawer);
  will-change: transform;
}
.mobile-panel.open { pointer-events: auto; }
.mobile-panel.open .mobile-panel-scrim { opacity: 1; }
.mobile-panel.open .mobile-panel-sheet { transform: translateX(0); }
.mobile-panel-close {
  align-self: flex-end;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background-color .18s ease, transform .18s var(--ease-out-strong);
}
.mobile-panel-close:hover { background: var(--lavender-soft); }
.mobile-panel-close:active { transform: scale(0.93); }
.mobile-panel-close svg { width: 18px; height: 18px; }
.mobile-panel-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}
.mobile-panel-links a {
  display: block;
  padding: 14px 4px;
  font-size: 18px;
  font-weight: 300;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  letter-spacing: -0.01em;
  position: relative;
  transition: color .18s ease, padding-left .25s var(--ease-out-strong);
  opacity: 0;
  transform: translateX(20px);
}
.mobile-panel.open .mobile-panel-links a {
  opacity: 1;
  transform: translateX(0);
  transition: color .18s ease, padding-left .25s var(--ease-out-strong),
              opacity .35s var(--ease-out-strong),
              transform .35s var(--ease-out-strong);
}
.mobile-panel.open .mobile-panel-links a:nth-child(1) { transition-delay: 0ms,    100ms, 100ms; }
.mobile-panel.open .mobile-panel-links a:nth-child(2) { transition-delay: 0ms,    140ms, 140ms; }
.mobile-panel.open .mobile-panel-links a:nth-child(3) { transition-delay: 0ms,    180ms, 180ms; }
.mobile-panel.open .mobile-panel-links a:nth-child(4) { transition-delay: 0ms,    220ms, 220ms; }
.mobile-panel.open .mobile-panel-links a:nth-child(5) { transition-delay: 0ms,    260ms, 260ms; }
.mobile-panel-links a.active { color: var(--purple); }
.mobile-panel-links a:hover { color: var(--purple); padding-left: 8px; }
.mobile-panel-cta {
  margin-top: 28px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .35s var(--ease-out-strong) 320ms, transform .35s var(--ease-out-strong) 320ms;
}
.mobile-panel.open .mobile-panel-cta { opacity: 1; transform: translateX(0); }
.mobile-panel-cta .btn { width: 100%; }
body.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .mobile-panel-sheet,
  .mobile-panel-links a,
  .mobile-panel-cta {
    transition-duration: .2s;
  }
}

/* ——— FOOTER ——— */
footer {
  background: var(--purple-deep);
  color: #C9BFB2;
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(243, 237, 228, 0.1);
}
.footer-grid h5 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #F3EDE4;
  margin-bottom: 20px;
}
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { font-size: 14px; color: #C9BFB2; transition: color .2s ease; }
.footer-grid a:hover { color: #F3EDE4; }
.footer-grid li.footer-addr { padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid rgba(243, 237, 228, 0.08); }
.footer-grid li.footer-addr a { line-height: 1.55; display: inline-flex; align-items: flex-start; flex-wrap: wrap; }
.footer-grid li.footer-addr a:hover { color: var(--purple-light); }
.footer-grid li.footer-addr svg { color: var(--purple-light); }
.footer-grid a[href^="tel:"],
.footer-grid a[href^="mailto:"] {
  color: var(--purple-light);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(217, 168, 227, 0.45);
}
.footer-grid a[href^="tel:"]:hover,
.footer-grid a[href^="mailto:"]:hover {
  color: #F3EDE4;
  text-decoration-color: #F3EDE4;
}
.footer-tag { font-size: 14px; line-height: 1.7; margin-top: 20px; max-width: 320px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #7A7166;
}

/* ——— FINAL CTA BLOCK (reused on every page) ——— */
.cta-final {
  position: relative;
  background: var(--purple-deep);
  border-radius: 28px;
  padding: clamp(48px, 7vw, 96px);
  color: #F3EDE4;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 10% 20%, rgba(154, 51, 179, 0.45) 0%, transparent 60%),
    radial-gradient(50% 60% at 90% 100%, rgba(217, 168, 227, 0.25) 0%, transparent 60%);
  pointer-events: none;
}
.cta-final > * { position: relative; z-index: 1; }
.cta-final .eyebrow { color: var(--purple-light); }
.cta-final .eyebrow::before { background: var(--purple-light); }
.cta-final h2 { color: #FFF; margin: 20px 0 24px; max-width: 720px; }
.cta-final h2 em { font-style: normal; color: var(--purple-light); font-weight: 300; }
.cta-final .lead { color: rgba(243, 237, 228, 0.75); margin-bottom: 40px; max-width: 640px; }
.cta-final .btn-primary { background: #FFF; color: var(--purple-deep); box-shadow: 0 6px 24px rgba(0,0,0,0.2); }
.cta-final .btn-primary:hover { background: #F3EDE4; }
.cta-final .btn-ghost { border-color: rgba(243, 237, 228, 0.3); color: #F3EDE4; }
.cta-final .btn-ghost:hover { border-color: #F3EDE4; }
.cta-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ——— UTILITIES ——— */
.bullet { display: flex; align-items: flex-start; gap: 12px; }
.bullet .check {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--lavender-soft);
  color: var(--purple);
  display: grid;
  place-items: center;
  margin-top: 3px;
}
.bullet .check svg { width: 11px; height: 11px; }

.bullet-x { display: flex; align-items: flex-start; gap: 12px; }
.bullet-x .x {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #FBEBEB;
  color: var(--red);
  display: grid;
  place-items: center;
  margin-top: 3px;
}
.bullet-x .x svg { width: 11px; height: 11px; }

/* Grain overlay helper */
.grain::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

/* ——— EMBEDDED MAP ——— */
.map-embed {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-warm);
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-1);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  z-index: 1;
}
.map-embed::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, var(--bg-warm) 30%, var(--lavender-soft) 50%, var(--bg-warm) 70%);
  background-size: 200% 100%;
  animation: map-shimmer 1.6s linear infinite;
  z-index: 0;
}
@keyframes map-shimmer {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}
.map-embed.compact { aspect-ratio: 4 / 3; border-radius: 10px; }
.map-embed.compact iframe { filter: saturate(0.85); }

/* Footer-specific compact map (sits inside the Kontakt column on dark footer) */
.footer-map {
  position: relative;
  margin-top: 18px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(243, 237, 228, 0.12);
  background: rgba(243, 237, 228, 0.04);
  aspect-ratio: 16 / 11;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  max-width: 280px;
}

/* DSGVO map consent button — shown until user opts in. */
.map-consent {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 20px;
  background: var(--bg-warm);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  border: 0;
  font: inherit;
  transition: background-color .2s ease;
}
.map-consent:hover { background: var(--lavender-soft); }
.map-consent:focus-visible { outline: 2px solid var(--purple); outline-offset: -3px; }
.map-consent svg { width: 22px; height: 22px; color: var(--purple); margin-bottom: 4px; }
.map-consent .mc-title {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 14px; letter-spacing: -0.005em; color: var(--ink);
}
.map-consent .mc-desc {
  font-family: var(--font-sans); font-weight: 300;
  font-size: 12px; line-height: 1.5; color: var(--ink-50);
  max-width: 38ch;
}

/* Footer (dark) variant */
.footer-map .map-consent {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(2px);
}
.footer-map .map-consent:hover { background: rgba(255, 255, 255, 0.08); }
.footer-map .map-consent svg { color: var(--purple-light); }
.footer-map .map-consent .mc-title { color: #F3EDE4; font-size: 12px; }
.footer-map .map-consent .mc-desc { color: rgba(243, 237, 228, 0.6); font-size: 10.5px; line-height: 1.4; max-width: 26ch; }
.footer-map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.9) brightness(0.96);
}
@media (max-width: 640px) {
  .footer-map { max-width: 100%; aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  .map-embed::before { animation: none; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease-out-strong), transform .55s var(--ease-out-strong);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Staggered reveal: parent gets .reveal.stagger, children animate in sequence */
.reveal.stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease-out-strong), transform .5s var(--ease-out-strong);
}
.reveal.stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal.stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal.stagger.in > *:nth-child(2) { transition-delay: 60ms; }
.reveal.stagger.in > *:nth-child(3) { transition-delay: 120ms; }
.reveal.stagger.in > *:nth-child(4) { transition-delay: 180ms; }
.reveal.stagger.in > *:nth-child(5) { transition-delay: 240ms; }
.reveal.stagger.in > *:nth-child(6) { transition-delay: 300ms; }
.reveal.stagger.in > *:nth-child(7) { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.stagger > * {
    transform: none;
    transition-duration: .3s;
  }
}

/* ——— RESPONSIVE SHARED ——— */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .cta-ctas .btn { flex: 1; min-width: 160px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav .nav-cta .btn-colorful {
    padding: 9px 16px;
    font-size: 12px;
    gap: 6px;
  }
}

/* ═══════════════════════════════════════════════════════════
   AURORA BACKGROUND — site-wide ambient layer
   Brand-tuned: lavender / purple / beige (not the original blue/indigo).
   Sits behind every page via position:fixed, z-index:-1.
   Subtle (opacity ~22%) so content always wins.
   ═══════════════════════════════════════════════════════════ */

/* Color tokens used by the aurora gradient */
:root {
  --aurora-c1: #E5D9EC;   /* lavender-soft */
  --aurora-c2: #D9A8E3;   /* purple-light */
  --aurora-c3: #CFDCE5;   /* blue-soft */
  --aurora-c4: #F2EBDD;   /* beige-soft */
  --aurora-c5: #9A33B3;   /* brand purple (deepest accent) */
  --aurora-tint: #FAF8F4; /* page bg, used for the "wash" stripes */
  --aurora-transparent: transparent;
}

/* The fixed background layer. One <div class="aurora-bg"> per page, right after <body>. */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg); /* fallback while layers paint */
}

.aurora-bg::before,
.aurora-bg::after {
  content: "";
  position: absolute;
  inset: -10%;
  background-image:
    repeating-linear-gradient(
      100deg,
      var(--aurora-tint) 0%,
      var(--aurora-tint) 7%,
      var(--aurora-transparent) 10%,
      var(--aurora-transparent) 12%,
      var(--aurora-tint) 16%
    ),
    repeating-linear-gradient(
      100deg,
      var(--aurora-c1) 10%,
      var(--aurora-c2) 15%,
      var(--aurora-c3) 20%,
      var(--aurora-c4) 25%,
      var(--aurora-c5) 30%
    );
  background-size: 300% 200%;
  background-position: 50% 50%, 50% 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform, background-position;
}

/* Second layer animates */
.aurora-bg::after {
  background-size: 200% 100%;
  mix-blend-mode: multiply;
  opacity: 0.4;
  animation: aurora 90s linear infinite;
}

@keyframes aurora {
  from { background-position: 50% 50%, 50% 50%; }
  to   { background-position: 350% 50%, 350% 50%; }
}

/* Mobile: gentler, less blur, lower opacity (battery + perceived noise) */
@media (max-width: 640px) {
  .aurora-bg::before,
  .aurora-bg::after {
    filter: blur(40px);
    opacity: 0.4;
  }
  .aurora-bg::after { opacity: 0.3; }
}

/* Accessibility: kill animation when user opts out of motion */
@media (prefers-reduced-motion: reduce) {
  .aurora-bg::after { animation: none; }
}

/* ───────────────────────────────────────────────────────────
   Aurora bleed-through — make section backgrounds translucent
   so the fixed aurora layer shows on every page.
   Cards, nav, footer keep their solid surfaces.
   ─────────────────────────────────────────────────────────── */

/* Translucent variants of the opaque tokens */
:root {
  --bg-warm-glass: rgba(243, 238, 228, 0.55);
  --surface-glass: rgba(255, 255, 255, 0.6);
}

/* Override known section-level backgrounds (index + sub-pages) */
.pain,
.forwhom,
.why,
section.why,
section[id="video"] {
  background: var(--bg-warm-glass) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.strategy {
  background: var(--surface-glass) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Catch-all for any <section> with inline opaque cream/beige bg */
section[style*="--bg-warm"],
section[style*="--surface"],
section[style*="--bg)"] {
  background: var(--bg-warm-glass) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
