/*
  FILE: global.css
  ══════════════════════════════════════════════════
  PURPOSE:
  Global design tokens, baseline reset, typography, layout containers, animations, and css variables.

  RESPONSIBILITIES:
  - Establishes canonical custom properties (colors, typography, spacing, easing).
  - Resets browser layout baselines and defines custom scrollbars.
  - Hosts utility classes (flex, grid, margin/padding spacing) and global animation keyframes.

  DEVELOPED BY : MIRRO
  CODED BY     : SIVASURYA
  ══════════════════════════════════════════════════
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,200;0,300;0,400;0,500;1,200;1,300;1,400;1,500&family=Bodoni+Moda:ital,opsz,wght@0,6..96,300;0,6..96,400;0,6..96,500;1,6..96,300;1,6..96,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@200;300;400;500&family=Manrope:wght@200;300;400;500&display=swap');

/* ═════════ ROOT VARIABLES ═════════ */
:root {
  /* Brand Colors — canonical */
  --navy:              #07142B;
  --navy-deep:         #04101F;
  --navy-mid:          #091A35;
  --copper:            #B87333;
  --copper-light:      #C8A46B;
  --copper-pale:       rgba(184, 115, 51, 0.08);
  --copper-glow:       rgba(184, 115, 51, 0.18);
  --copper-shimmer:    rgba(200, 164, 107, 0.30);
  --ivory:             #F5F1EA;
  --ivory-warm:        #EDE8DF;
  --ivory-deep:        #E8E2D9;
  --cream:             #F3ECE3;
  --marble:            #F0EBE3;
  --gold:              #C8A46B;
  --gold-pale:         rgba(200, 164, 107, 0.10);
  --burgundy:          #4A0E12;
  --burgundy-deep:     #3A0A0D;
  --obsidian:          #050505;

  /* Semantic backgrounds */
  --bg-main:           #F8F6F2;
  --bg-sec:            #F3EFE8;
  --text-main:         #07142B;
  --text-sec:          rgba(7, 20, 43, 0.55);

  /* Glass Tokens */
  --glass-dark:        rgba(10, 10, 10, 0.50);
  --glass-dark-heavy:  rgba(5, 5, 5, 0.80);
  --glass-navy:        rgba(7, 20, 43, 0.75);
  --glass-ivory:       rgba(245, 241, 234, 0.82);
  --glass-blur:        blur(24px);
  --glass-blur-heavy:  blur(44px);

  /* Text styling */
  --text-on-dark:      rgba(245, 241, 234, 0.90);
  --text-dim:          rgba(7, 20, 43, 0.65);
  --text-muted:        rgba(7, 20, 43, 0.40);
  --text-on-light:     #07142B;
  --text-secondary:    rgba(7, 20, 43, 0.48);
  --text-muted-light:  rgba(7, 20, 43, 0.30);

  /* Borders */
  --border-dark:       rgba(200, 164, 107, 0.15);
  --border-copper:     rgba(184, 115, 51, 0.28);
  --border-ivory:      rgba(7, 20, 43, 0.09);
  --border-glass:      rgba(255, 255, 255, 0.07);

  /* Typography — editorial hierarchy */
  --font-display:  'Cormorant Garamond', 'Bodoni Moda', Georgia, serif;
  --font-serif:    'Playfair Display', Georgia, serif;
  --font-sans:     'Inter', system-ui, sans-serif;
  --font-ui:       'Manrope', 'Inter', sans-serif;

  /* Spacing — luxury scale */
  --s1:  8px;
  --s2:  16px;
  --s3:  28px;
  --s4:  48px;
  --s5:  80px;
  --s6: 120px;
  --s7: 180px;
  --s8: 240px;

  /* Easing — cinematic luxury */
  --ease-luxury:    cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in-expo:   cubic-bezier(0.95, 0.05, 0.795, 0.035);
  --ease-out-expo:  cubic-bezier(0.19, 1, 0.22, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-rr:        cubic-bezier(0.25, 0.1, 0.25, 1.0);

  /* Radius */
  --r-sm:   2px;
  --r-md:   6px;
  --r-lg:   14px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-copper:    0 12px 80px rgba(184,115,51,0.20);
  --shadow-copper-sm: 0 4px 24px rgba(184,115,51,0.14);
  --shadow-dark:      0 40px 120px rgba(4,16,31,0.55);
  --shadow-card:      0 4px 40px rgba(4,16,31,0.10);
  --shadow-glass:     0 8px 48px rgba(4,16,31,0.22), inset 0 1px 0 rgba(255,255,255,0.07);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#app {
  flex: 1 0 auto;
  width: 100%;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: var(--navy-deep);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--copper), var(--gold));
  border-radius: 2px;
}

/* ═════════ TYPOGRAPHY SYSTEM ═════════ */
.t-label {
  font-family: var(--font-ui);
  font-size: 0.60rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
}

.t-body {
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.90;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 10vw, 13rem);
  font-weight: 200;
  letter-spacing: -0.025em;
  line-height: 0.90;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 7rem);
  font-weight: 200;
  letter-spacing: -0.020em;
  line-height: 0.96;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.018em;
  line-height: 1.08;
}

.display-sm {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.t-h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.sec-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.60rem;
  letter-spacing: 0.42em;
  color: var(--copper);
  margin-bottom: 1rem;
  display: block;
  text-transform: uppercase;
}

.sec-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 1rem;
  font-weight: 400;
}

.sec-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-sec);
  margin-bottom: 0;
}

.text-copper   { color: var(--copper); }
.text-gold     { color: var(--gold); }
.text-cream    { color: var(--cream); }
.text-ivory    { color: var(--ivory); }
.text-dim      { color: var(--text-dim); }
.text-navy     { color: var(--navy); }
.serif         { font-family: var(--font-serif); }
.italic        { font-style: italic; }

/* ═════════ LAYOUT & GRID SYSTEM ═════════ */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--s4);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--s3);
  }
}

/* ── Section Spacing ── */
.section    { padding: var(--s7) 0; }
.section-sm { padding: var(--s6) 0; }
.section-lg { padding: var(--s8) 0; }

/* ── Shared decorators ── */
.copper-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--copper), var(--gold));
  display: block;
  flex-shrink: 0;
}

.copper-line-full {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper) 30%, var(--gold) 50%, var(--copper) 70%, transparent);
  display: block;
}

.section-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,164,107,0.25), transparent);
  border: none;
}

/* ═════════ KEYFRAME ANIMATIONS ═════════ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(48px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  animation: fade-up 1.4s var(--ease-out-expo) forwards;
}

.reveal-1 { animation-delay: 0.15s; }
.reveal-2 { animation-delay: 0.30s; }
.reveal-3 { animation-delay: 0.50s; }
.reveal-4 { animation-delay: 0.70s; }
.reveal-5 { animation-delay: 0.95s; }

/* ═════════ UTILITY CLASSES ═════════ */
.glass-dark {
  background: var(--glass-dark);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
}

.glass-ivory {
  background: rgba(245, 241, 234, 0.80);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(200, 164, 107, 0.12);
}

.w-100 { width: 100%; }
.h-100 { height: 100%; }
.m-0 { margin: 0; }
.mt-1 { margin-top: var(--s1); }
.mt-2 { margin-top: var(--s2); }
.mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }
.mt-5 { margin-top: var(--s5); }

.p-0 { padding: 0; }
.pt-1 { padding-top: var(--s1); }
.pt-2 { padding-top: var(--s2); }

.d-flex { display: flex; }
.d-none { display: none; }
.d-block { display: block; }
.d-grid { display: grid; }

.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.z-1 { z-index: 1; }
.z-10 { z-index: 10; }
.z-100 { z-index: 100; }
.z-max { z-index: 9999; }
