/**
 * FM-MUC Premium & Minimal Theme
 *
 * Design philosophy: Whispered elegance, not shouted luxury.
 * Muted warm tones, generous whitespace, refined typography.
 */

:root {
  /* Premium color palette - warm, muted, luxury */
  --theme-bg-primary: #fafaf9;          /* Warm off-white, not stark white */
  --theme-bg-secondary: #f5f5f0;        /* Subtle warm gray */
  --theme-bg-dark: #292524;             /* Warm charcoal (not pure black) */
  --theme-text-primary: #292524;        /* Warm dark for body text */
  --theme-text-secondary: #78716c;      /* Warm medium gray */
  --theme-text-light: #a8a29e;          /* Light warm gray for subtle text */
  --theme-accent: #971829;              /* Brand red used sparingly */
  --theme-border: #e7e5e4;             /* Very subtle warm border */
  --theme-gold: #b8860b;               /* Dark gold accent for premium feel */
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Body defaults with premium background */
body {
  background-color: var(--theme-bg-primary);
  color: var(--theme-text-primary);
}

/* Premium typography adjustments */
.premium-label {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--theme-text-light);
}

.premium-heading {
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.premium-divider {
  width: 3rem;
  height: 1px;
  background-color: var(--theme-accent);
  margin: 0 auto;
}

.premium-quote-mark {
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--theme-gold);
  opacity: 0.3;
}

/* Subtle hover effects for premium feel */
.premium-link {
  transition: color 0.3s ease, opacity 0.3s ease;
}

.premium-link:hover {
  color: var(--theme-accent);
  opacity: 0.8;
}

/* Premium button style - minimal, ghost-like */
.premium-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-weight: 300;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.premium-button:hover {
  background-color: var(--theme-accent);
  border-color: var(--theme-accent);
  color: white;
}

/* Thin horizontal rule for section dividers */
.premium-hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--theme-border), transparent);
  margin: 4rem 0;
}

/* Service image styling - subtle shadow, minimal rounding */
.premium-service-image {
  border-radius: 0.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-service-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* ── Hero: Glassmorphism panel ── */
.hero-glass {
  position: relative;
  background: rgba(41, 37, 36, 0.45);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(184, 134, 11, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── Hero: Staggered fade-in animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-fade-up   { animation: fadeUp 0.8s ease-out 0.2s both; }
.hero-fade-up-1 { animation: fadeUp 0.7s ease-out 0.4s both; }
.hero-fade-up-2 { animation: fadeUp 0.7s ease-out 0.6s both; }
.hero-fade-up-3 { animation: fadeUp 0.7s ease-out 0.8s both; }
.hero-fade-up-4 { animation: fadeUp 0.7s ease-out 1.0s both; }

/* ── Hero: Gold line reveal (horizontal + vertical) ── */
@keyframes lineReveal {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes lineRevealY {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
.hero-line-reveal {
  animation: lineReveal 1.2s ease-out 0.3s both;
}
.hero-line-reveal-v {
  animation: lineRevealY 1.4s ease-out 0.5s both;
  transform-origin: top;
}

/* ── Hero: Floating ambient shapes ── */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-20px) scale(1.05); }
}
@keyframes floatDelayed {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-14px) scale(1.03); }
}
.hero-float         { animation: float 8s ease-in-out infinite; }
.hero-float-delayed { animation: floatDelayed 10s ease-in-out 2s infinite; }

/* ── Hero: Mascot gentle hover ── */
@keyframes mascotHover {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.hero-mascot {
  animation: mascotHover 4s ease-in-out infinite;
}

/* ── Hero: Button subtle glow pulse ── */
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(184, 134, 11, 0); }
  50%      { box-shadow: 0 0 20px rgba(184, 134, 11, 0.15); }
}
.hero-btn-glow:hover {
  animation: btnGlow 2s ease-in-out infinite;
  border-color: var(--theme-gold);
  color: var(--theme-gold);
}

/* ── Reduce motion for accessibility ── */
@media (prefers-reduced-motion: reduce) {
  .hero-fade-up, .hero-fade-up-1, .hero-fade-up-2,
  .hero-fade-up-3, .hero-fade-up-4, .hero-line-reveal,
  .hero-float, .hero-float-delayed, .hero-mascot {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* Mobile menu adjustments for premium theme */
@media (max-width: 768px) {
  .premium-label {
    letter-spacing: 0.2em;
    font-size: 0.7rem;
  }

  .premium-quote-mark {
    font-size: 3rem;
  }
}

/* ── Nav Logo — fixed px, immune to root font-size scaling ── */
.nav-logo {
  height: 50px;
}

/* ── WQHD & 4K Scaling ──
   Fluid root font-size above 1920px so all rem-based Tailwind utilities
   grow incrementally. 16px at ≤1920px → 24px at 3840px.
   Standard 1920x1080 displays: completely unaffected. */
@media (min-width: 1921px) {
  html {
    font-size: clamp(16px, calc(16px + (100vw - 1920px) * 8 / 1920), 24px);
  }
}

/* ═══════════════════════════════════════════════════════════════
   Animation Foundation — Scroll, Micro-interaction & Parallax
   Added by Phase 07-01
   ═══════════════════════════════════════════════════════════════ */

/* ── No-JS Fallback ──
   Elements with data-animate start invisible, but show if JS is disabled */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
}

html.js-enabled [data-animate] {
  /* JS will handle visibility via is-visible class */
}

html:not(.js-enabled) [data-animate] {
  opacity: 1;
  transform: none;
}

/* ── Scroll Animation Classes (triggered by JS adding is-visible) ── */
[data-animate="slide-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-animate="scale-up"].is-visible {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate="scale-up"] {
  transform: scale(0.95);
}

[data-animate="line-reveal"] {
  opacity: 1;
  transform: scaleX(0);
  transform-origin: left;
}

[data-animate="line-reveal"].is-visible {
  transform: scaleX(1);
  transition: transform 0.8s ease-out;
}

/* ── Stagger Delay Classes ── */
[data-delay="1"].is-visible { transition-delay: 0.1s; }
[data-delay="2"].is-visible { transition-delay: 0.2s; }
[data-delay="3"].is-visible { transition-delay: 0.3s; }
[data-delay="4"].is-visible { transition-delay: 0.4s; }
[data-delay="5"].is-visible { transition-delay: 0.5s; }

/* ── Scroll Progress Bar ── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, var(--theme-gold), var(--theme-accent));
  z-index: 9999;
  pointer-events: none;
}

/* ── Header Scroll States ── */
header {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 50;
}

header.header-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

header.header-hidden {
  transform: translateY(-100%);
}

/* ── Micro-interaction Hover Effects ── */
[data-interact="lift"] {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-interact="lift"]:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

[data-interact="glow"] {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

[data-interact="glow"]:hover {
  box-shadow: 0 0 20px rgba(184, 134, 11, 0.25);
  border-color: var(--theme-gold);
}

/* ── Extended Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  [data-animate].is-visible {
    animation: none !important;
    transition: none !important;
  }
  [data-interact="lift"],
  [data-interact="glow"] {
    transition: none !important;
  }
  [data-interact="lift"]:hover {
    transform: none !important;
  }
  header {
    transition: none !important;
  }
  header.header-hidden {
    transform: none !important;
  }
  #scroll-progress {
    display: none !important;
  }
  [data-parallax] {
    transform: none !important;
  }
}
