/* ============================================
   GANGINA — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Caveat:wght@600;700&family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Dancing+Script:wght@600;700&family=Montserrat:wght@200;300;400;500;600;700&family=Parisienne&family=Pinyon+Script&family=Satisfy&family=Syncopate:wght@400;700&family=Tenor+Sans&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Backgrounds */
  --bg-cream: #ffffff;
  --bg-white: #ffffff;
  --bg-warm: #ece8e1;
  --bg-dark: #1a1a1a;
  --bg-black: #0d0d0d;

  /* Text */
  --text-dark: #1a1a1a;
  --text-body: #3a3a3a;
  --text-muted: #8a8a8a;
  --text-light: #f5f2ed;
  --text-chrome: linear-gradient(135deg, #888, #e8e8e8, #aaa, #fff, #999);

  /* Accent */
  --gold: #d4af37;
  --gold-light: #f0d060;
  --gold-dim: #a08520;
  --chrome: #c0c0c0;

  /* Borders */
  --border-light: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.15);
  --border-dark: rgba(0, 0, 0, 0.25);

  /* Typography */
  --font-primary: 'Montserrat', 'Segoe UI', sans-serif;
  --font-weight-regular: 400;
  --font-weight-bold: 700;

  /* Sizing scale */
  --text-xs: 0.7rem;
  --text-sm: 0.8rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.5rem;
  --text-6xl: 5rem;
  --text-hero: clamp(3.5rem, 10vw, 8rem);

  /* Spacing scale */
  --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;
  --space-5xl: 8rem;
  --space-section: clamp(5rem, 12vh, 10rem);

  /* Layout */
  --container-max: 1400px;
  --container-narrow: 900px;
  --nav-height: 70px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-base: 400ms;
  --duration-slow: 700ms;
  --duration-carousel: 1000ms;

  /* Border Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-cream);
  overflow-x: hidden;
  min-height: 100vh;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol { list-style: none; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button { cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  color: var(--text-dark);
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }

p {
  color: var(--text-body);
  line-height: 1.8;
}

.text-chrome {
  background: var(--text-chrome);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-chrome-animated {
  background: linear-gradient(135deg, #555 0%, #ccc 25%, #888 50%, #eee 75%, #777 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: chromeShimmer 6s ease-in-out infinite;
}

@keyframes chromeShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.tracking-wide { letter-spacing: 0.12em; }
.tracking-ultra { letter-spacing: 0.3em; }
.text-center { text-align: center; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-section) 0;
}

/* ---------- Dividers ---------- */
.divider {
  width: 60px;
  height: 1px;
  background: var(--border-dark);
  margin: var(--space-lg) auto;
}

.divider--wide { width: 100%; }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Selection ---------- */
::selection {
  background: var(--text-dark);
  color: var(--bg-cream);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-cream); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-dark); }

/* ---------- Page transition ---------- */
.page-content {
  animation: pageEnter 0.7s var(--ease-out) both;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
