/* ============================================================
   DIGITAL AASHNA — GLOBAL CSS
   Design System · Animations · Utilities
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;0,800;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@300;400;500;600&family=EB+Garamond:ital,wght@0,400;1,400;1,500&display=swap');

/* ===== CUSTOM PROPERTIES — SWEET MINIMAL THEME ===== */
:root {
  /* 🎨 New Palette: Lavender · Blush · White */
  --bg-parchment:       #FEFEFE;
  --gold-accent:        #8B6CD4;    /* soft lavender-purple (primary) */
  --gold-light:         #B09AE8;    /* lighter purple */
  --gold-dark:          #6B50B0;    /* deeper purple */
  --dusty-rose:         #E87FA8;    /* blush pink (secondary) */
  --dusty-rose-light:   #F9C5D9;    /* light blush */
  --dusty-rose-dark:    #C95F88;    /* deeper blush */
  --espresso:           #16132A;    /* deep indigo-black (replaces espresso) */
  --espresso-light:     #241F40;    /* dark indigo */
  --linen-card:         #F4F1FD;    /* lavender-tinted card surface */
  --warm-taupe:         #7A789E;    /* purple-gray muted text */
  --warm-taupe-light:   #AAA8C4;    /* lighter muted */
  --white:              #FFFFFF;

  /* Typography */
  --font-display:   'Playfair Display', Georgia, serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;
  --font-body:      'Jost', system-ui, sans-serif;
  --font-eyebrow:   'EB Garamond', Georgia, serif;

  /* Fluid Type Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;
  --text-8xl:  6rem;

  /* Spacing */
  --sp-xs:  0.25rem;
  --sp-sm:  0.5rem;
  --sp-md:  1rem;
  --sp-lg:  1.5rem;
  --sp-xl:  2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;
  --sp-5xl: 8rem;

  /* Radius */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(28,20,16,.06);
  --shadow-md:   0 4px 20px rgba(28,20,16,.10);
  --shadow-lg:   0 8px 40px rgba(28,20,16,.14);
  --shadow-xl:   0 16px 60px rgba(28,20,16,.18);
  --shadow-gold: 0 4px 32px rgba(201,169,110,.30);
  --shadow-rose: 0 4px 32px rgba(139,79,111,.22);

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   300ms ease;
  --t-slow:   500ms ease;
  --t-bounce: 300ms cubic-bezier(.34,1.56,.64,1);

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(1rem, 5vw, 2rem);

  /* Z-index */
  --z-base:    1;
  --z-dropdown: 100;
  --z-navbar:  200;
  --z-overlay: 400;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  background-color: var(--bg-parchment);
  color: var(--espresso);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 { line-height: 1.15; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h3 {
  font-family: var(--font-editorial);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
}
h4 {
  font-family: var(--font-editorial);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
}
p {
  font-size: var(--text-base);
  line-height: 1.85;
  color: var(--warm-taupe);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-eyebrow);
  font-style: italic;
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-accent);
  margin-bottom: var(--sp-md);
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section         { padding-block: var(--sp-5xl); }
.section--sm     { padding-block: var(--sp-4xl); }
.section--dark   { background-color: var(--espresso); color: var(--bg-parchment); }
.section--linen  { background-color: var(--linen-card); }
.section--gold   { background-color: #F7F1E6; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-2xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-xl); }

.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      { flex-direction: column; }

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-3xl);
}
.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: var(--sp-lg);
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-accent), transparent);
  transition: transform 0.9s ease;
}
.section-header.in-view h2::after { transform: translateX(-50%) scaleX(1); }
.section-header p {
  max-width: 580px;
  margin-inline: auto;
  font-size: var(--text-lg);
  color: var(--warm-taupe);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left.in-view { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-right.in-view { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(.93);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-scale.in-view { opacity: 1; transform: scale(1); }

.d1 { transition-delay: .10s; }
.d2 { transition-delay: .20s; }
.d3 { transition-delay: .30s; }
.d4 { transition-delay: .40s; }
.d5 { transition-delay: .50s; }
.d6 { transition-delay: .60s; }

/* ===== ANIMATION KEYFRAMES ===== */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes goldUnderlineDraw {
  from { transform: translateX(-50%) scaleX(0); }
  to   { transform: translateX(-50%) scaleX(1); }
}

@keyframes levitate {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes numberShimmer {
  0%   { background-position: -400px center; }
  100% { background-position: 400px center; }
}

@keyframes ctaPulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139,79,111,.45); }
  50%       { box-shadow: 0 0 0 14px rgba(139,79,111,0); }
}

@keyframes cursorBlink {
  0%, 49%  { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes radialGlowPulse {
  0%, 100% { transform: scale(1); opacity: .55; }
  50%       { transform: scale(1.18); opacity: .75; }
}

@keyframes grainMove {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-2%,-3%); }
  40%  { transform: translate(3%, 2%); }
  60%  { transform: translate(-1%, 3%); }
  80%  { transform: translate(2%,-2%); }
  100% { transform: translate(0,0); }
}

@keyframes slideInLeft  { from { opacity:0; transform:translateX(-40px); } to { opacity:1; transform:translateX(0); } }
@keyframes slideInRight { from { opacity:0; transform:translateX( 40px); } to { opacity:1; transform:translateX(0); } }
@keyframes scaleIn      { from { opacity:0; transform:scale(.9); }          to { opacity:1; transform:scale(1); } }
@keyframes spin         { to { transform:rotate(360deg); } }

@keyframes heroWordFade {
  from { opacity:0; transform:translateY(20px); filter:blur(4px); }
  to   { opacity:1; transform:translateY(0);    filter:blur(0); }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar        { width: 5px; }
::-webkit-scrollbar-track  { background: #F4F1FD; }
::-webkit-scrollbar-thumb  { background: var(--gold-accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ===== SELECTION ===== */
::selection { background: var(--dusty-rose-light); color: var(--espresso); }

/* ===== 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) {
  .section { padding-block: var(--sp-3xl); }
  .section--sm { padding-block: var(--sp-2xl); }
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .grid-4 { grid-template-columns: 1fr; gap: var(--sp-lg); }
}
@media (max-width: 480px) {
  .section { padding-block: var(--sp-2xl); }
  .section--sm { padding-block: var(--sp-xl); }
}
