/* ============================================
   DEVYANI JAIPURIA — Design System
   Cultural Canvas + Structured Narrative
   ============================================ */

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

/* ---- CSS Custom Properties ---- */
:root {
  /* Primary Palette */
  --color-ivory:        #FAF6F0;
  --color-ivory-warm:   #F5EDE0;
  --color-cream:        #EDE4D3;
  --color-gold:         #C5A55A;
  --color-gold-muted:   #B89A4A;
  --color-gold-light:   #D4BC7C;
  --color-maroon:       #6B2737;
  --color-maroon-deep:  #4A1A26;
  --color-maroon-light: #8B3A4A;

  /* Earthy Tones */
  --color-earth-warm:   #A0846A;
  --color-earth-soft:   #C4A882;
  --color-earth-pale:   #D9C9B0;
  --color-terracotta:   #B87156;
  --color-sage:         #8A9A7B;

  /* Neutrals */
  --color-charcoal:     #2C2420;
  --color-dark:         #3A322C;
  --color-medium:       #6B5E54;
  --color-muted:        #9A8E82;
  --color-light:        #C8BDB0;
  --color-white:        #FFFFFF;

  /* Functional */
  --color-error:        #A83A3A;
  --color-success:      #5A8A5A;
  --color-overlay:      rgba(44, 36, 32, 0.55);
  --color-overlay-light:rgba(250, 246, 240, 0.92);

  /* Typography */
  --font-heading:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:      'Lora', Georgia, serif;
  --font-ui:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Scale */
  --fs-display:     clamp(2.8rem, 5vw, 4.5rem);
  --fs-h1:          clamp(2.2rem, 4vw, 3.5rem);
  --fs-h2:          clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3:          clamp(1.2rem, 2vw, 1.6rem);
  --fs-h4:          clamp(1rem, 1.5vw, 1.2rem);
  --fs-body:        clamp(0.95rem, 1.2vw, 1.1rem);
  --fs-body-lg:     clamp(1.05rem, 1.4vw, 1.25rem);
  --fs-small:       clamp(0.8rem, 1vw, 0.9rem);
  --fs-caption:     0.75rem;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  8rem;
  --space-4xl:  12rem;

  /* Layout */
  --max-width:      1200px;
  --max-width-sm:   900px;
  --max-width-xs:   680px;
  --nav-height:     80px;
  --border-radius:  8px;
  --border-radius-lg: 16px;

  /* Transitions */
  --transition-fast:   0.2s ease;
  --transition-base:   0.35s ease;
  --transition-slow:   0.6s ease;
  --transition-elegant: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-subtle:  0 2px 12px rgba(44, 36, 32, 0.06);
  --shadow-soft:    0 4px 24px rgba(44, 36, 32, 0.08);
  --shadow-medium:  0 8px 32px rgba(44, 36, 32, 0.12);
  --shadow-warm:    0 6px 28px rgba(107, 39, 55, 0.1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--color-dark);
  background-color: var(--color-ivory);
  overflow-x: hidden;
}

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

a {
  color: var(--color-maroon);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-charcoal);
}

h1 { font-size: var(--fs-h1); margin-bottom: var(--space-md); }
h2 { font-size: var(--fs-h2); margin-bottom: var(--space-md); }
h3 { font-size: var(--fs-h3); margin-bottom: var(--space-sm); }
h4 { font-size: var(--fs-h4); margin-bottom: var(--space-sm); }

p {
  margin-bottom: var(--space-sm);
  color: var(--color-medium);
}

.display-text {
  font-family: var(--font-heading);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.subtitle {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.body-large {
  font-size: var(--fs-body-lg);
  line-height: 1.8;
}

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

.container-sm {
  max-width: var(--max-width-sm);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-xs {
  max-width: var(--max-width-xs);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

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

.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.text-maroon { color: var(--color-maroon); }
.text-ivory { color: var(--color-ivory); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Dividers ---- */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  margin: var(--space-md) 0;
  border: none;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}

.divider-ornament {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-light), transparent);
}

.divider-ornament span {
  color: var(--color-gold);
  font-size: 1.2rem;
}

/* ---- Fade-in Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.4s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.5s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.6s; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .container,
  .container-sm,
  .container-xs {
    padding: 0 var(--space-md);
  }

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

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