/* ═══════════════════════════════════════════════════════════════════════════
   NEXAGH DESIGN SYSTEM
   Core variables, typography, utilities, and base styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══ CSS CUSTOM PROPERTIES ═══ */
:root {
  /* Colors - Primary */
  --navy: #080F1E;
  --navy-mid: #0D1B33;
  --navy-light: #112244;

  /* Colors - Accent */
  --teal: #0E8FA8;
  --teal-bright: #1ABCDC;
  --gold: #C9952A;
  --gold-light: #F0C84A;
  --gold-dark: #A67B1F;

  /* Colors - Text */
  --cream: #F7F3EC;
  --cream-dark: #EDE7DA;
  --text-muted: #8A9AB5;

  /* Typography */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 80px;
  --space-section: 100px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Borders */
  --border-subtle: 1px solid rgba(255,255,255,0.06);
  --border-gold: 1px solid rgba(201,149,42,0.25);
  --border-gold-subtle: 1px solid rgba(201,149,42,0.12);

  /* Shadows */
  --shadow-card: 0 24px 60px rgba(0,0,0,0.4);
  --shadow-gold: 0 12px 40px rgba(201,149,42,0.4);
}

/* ═══ RESET ═══ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--navy);
  color: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

/* ═══ TYPOGRAPHY ═══ */
.heading-xl {
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 94px);
  font-weight: 300;
  line-height: 1.0;
  color: var(--cream);
}

.heading-lg {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
}

.heading-md {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--cream);
}

.heading-sm {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--cream);
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--teal-bright);
  display: block;
  margin-bottom: 14px;
}

.body-lg {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
}

.body-md {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
}

.body-sm {
  font-size: 12px;
  color: var(--text-muted);
}

/* Emphasis */
em, .text-italic {
  font-style: italic;
  color: var(--gold-light);
}

/* ═══ UTILITY CLASSES ═══ */

/* Text Colors */
.text-gold { color: var(--gold-light); }
.text-teal { color: var(--teal-bright); }
.text-muted { color: var(--text-muted); }
.text-cream { color: var(--cream); }

/* Background Colors */
.bg-navy { background: var(--navy); }
.bg-navy-mid { background: var(--navy-mid); }
.bg-navy-light { background: var(--navy-light); }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Spacing */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* Max Width */
.max-w-sm { max-width: 420px; }
.max-w-md { max-width: 540px; }
.max-w-lg { max-width: 720px; }
.max-w-xl { max-width: 900px; }

/* ═══ DECORATIVE ELEMENTS ═══ */
.gold-rule {
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  margin-bottom: 30px;
}

.gold-rule-center {
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  margin: 0 auto 30px;
}

/* ═══ SECTION DEFAULTS ═══ */
section {
  padding: var(--space-section) 5vw;
}

.section-eyebrow {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 14px;
  display: block;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 18px;
}

.section-title em {
  font-style: italic;
  color: var(--gold-light);
}

.section-sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 60px;
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

@keyframes slowRotate {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ RESPONSIVE BREAKPOINTS ═══ */
/* Tablet: max-width 1000px */
/* Mobile: max-width 800px */
/* Small Mobile: max-width 480px */
