:root {
  /* -- Colors -- */
  --color-primary: hsl(210, 15%, 20%); /* Deep Charcoal */
  --color-primary-light: hsl(210, 15%, 30%);
  --color-primary-dark: hsl(210, 15%, 15%);
  --color-accent: hsl(42, 70%, 55%); /* Goldenrod */

  --color-bg: hsl(0, 0%, 98%); /* Soft Off-White */
  --color-bg-alt: hsl(210, 10%, 95%); /* Light Grayish Blue */
  --color-text: hsl(0, 0%, 20%); /* Dark Gray */
  --color-text-muted: hsl(0, 0%, 40%); /* Muted Gray */
  --color-border: hsl(210, 10%, 85%); /* Light Border Gray */

  /* -- Typography -- */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* -- Layout -- */
  --max-width: 1400px; /* Wider for luxury feel */

  /* ── Standard Tokens (auto-injected) ── */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --radius-default: 4px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7; /* Generous line height */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  line-height: 1.2;
}

h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h4 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Custom CSS for [data-reveal] animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for children elements */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 100ms; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 200ms; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 300ms; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 400ms; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 500ms; }
[data-reveal-stagger].is-visible > *:nth-child(7) { transition-delay: 600ms; }
[data-reveal-stagger].is-visible > *:nth-child(8) { transition-delay: 700ms; }
[data-reveal-stagger].is-visible > * { opacity: 1; transform: translateY(0); }


/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.site-header.is-scrolled {
  background-color: rgba(250, 250, 250, 0.95); /* Semi-opaque off-white */
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Mobile Nav Overlay */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: var(--color-primary); /* Dark background */
  color: var(--color-bg);
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-menu.is-open {
  transform: translateX(0);
}
#mobile-menu .nav-link {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 600;
  color: var(--color-bg);
  display: block;
  padding: 1rem 0;
  transition: color 0.3s ease;
}
#mobile-menu .nav-link:hover {
  color: var(--color-accent);
}

/* Icon styles */
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}
.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 1.5em; height: 1.5em; }
.icon-xl { width: 2em; height: 2em; }

/* Global animations for hover */
.transition-all-elegant {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
  }
}body { margin: 0; }
