/* ========================================================
   ELEVATED INDIA — DESIGN SYSTEM
   main.css — Tokens, Reset, Typography, Layout Utilities
   ======================================================== */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ── Design Tokens ── */
:root {
  /* Colors */
  --ivory:          #F7F3EE;
  --stone:          #EDE8E0;
  --stone-dark:     #DDD5C8;
  --charcoal:       #1C1C1C;
  --charcoal-mid:   #2E2E2E;
  --charcoal-light: #5A5A5A;
  --gold:           #B8964A;
  --gold-light:     #D4AF72;
  --gold-pale:      #E8D5A8;
  --champagne:      #F2E8D4;
  --forest:         #2D4A3E;
  --maroon:         #5C1A2A;
  --indigo:         #2C3456;
  --white:          #FFFFFF;
  --black:          #0A0A0A;

  /* Typography */
  --font-serif:  'Cormorant Garamond', 'Georgia', serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font Sizes */
  --text-xs:     0.6875rem;   /* 11px */
  --text-sm:     0.8125rem;   /* 13px */
  --text-base:   0.9375rem;   /* 15px */
  --text-md:     1.0625rem;   /* 17px */
  --text-lg:     1.25rem;     /* 20px */
  --text-xl:     1.5rem;      /* 24px */
  --text-2xl:    2rem;        /* 32px */
  --text-3xl:    2.625rem;    /* 42px */
  --text-4xl:    3.5rem;      /* 56px */
  --text-5xl:    4.5rem;      /* 72px */
  --text-6xl:    6rem;        /* 96px */

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-width:    1320px;
  --nav-height:   88px;

  /* Transitions */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast:   200ms;
  --duration-base:   400ms;
  --duration-slow:   700ms;
  --duration-slower: 1100ms;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.12), 0 6px 16px rgba(0,0,0,0.08);
  --shadow-xl:  0 32px 72px rgba(0,0,0,0.18), 0 12px 28px rgba(0,0,0,0.10);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--text-base);
  color: var(--charcoal);
  background-color: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ── Typography ── */
.t-display {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, var(--text-6xl));
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.t-headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, var(--text-4xl));
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.t-subheadline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, var(--text-xl));
  line-height: 1.4;
}

.t-section-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.t-body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--charcoal-light);
}

.t-body-md {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--charcoal-light);
}

/* ── Layout Utilities ── */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}

.container-narrow {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}

.section {
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
}

.section-sm {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

.section-dark {
  background-color: var(--charcoal);
  color: var(--ivory);
}

.section-stone {
  background-color: var(--stone);
}

.section-champagne {
  background-color: var(--champagne);
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header .t-section-label {
  display: block;
  margin-bottom: var(--space-4);
}

.section-header .t-headline {
  margin-bottom: var(--space-5);
}

.section-header .t-body {
  max-width: 560px;
  margin: 0 auto;
}

/* ── Grid Utilities ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }

/* ── Gold Divider ── */
.gold-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  display: block;
  margin: var(--space-5) auto;
}

.gold-line-left {
  margin: var(--space-4) 0;
}

/* ── Fade-in Animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-slower) var(--ease-out),
              transform var(--duration-slower) var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity var(--duration-slower) var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
}

.delay-1 { transition-delay: 150ms; }
.delay-2 { transition-delay: 300ms; }
.delay-3 { transition-delay: 450ms; }
.delay-4 { transition-delay: 600ms; }
.delay-5 { transition-delay: 750ms; }
.delay-6 { transition-delay: 900ms; }

/* ── Flex Utilities ── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 72px;
  }

  .container,
  .container-narrow {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }

  .section {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section-header {
    margin-bottom: var(--space-10);
  }
}
