/* ============================================================
   AADRIT — GLOBAL DESIGN SYSTEM
   Apple-style minimalism. Every token has purpose.
============================================================ */

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

/* ── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  /* Colors */
  --color-bg:         #FAFAF8;
  --color-white:      #FFFFFF;
  --color-navy:       #0A1628;
  --color-navy-mid:   #152544;
  --color-navy-light: #1E3A5F;
  --color-ink:        #1A1A2E;
  --color-muted:      #6B7280;
  --color-subtle:     #9CA3AF;
  --color-accent:     #C9A96E;
  --color-accent-dim: #E8D5B0;
  --color-border:     #E8E8EC;
  --color-border-light: #F0F0F4;

  /* Product variant colors */
  --color-calm:     #D4E8D4;
  --color-radiance: #F5E6CC;
  --color-purity:   #E8E4F0;
  --color-serenity: #CCE0E8;

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

  /* Font sizes — fluid clamp */
  --fs-hero:    clamp(4rem, 10vw, 9rem);
  --fs-h1:      clamp(2.5rem, 5vw, 4.5rem);
  --fs-h2:      clamp(1.875rem, 3.5vw, 3rem);
  --fs-h3:      clamp(1.375rem, 2vw, 1.875rem);
  --fs-h4:      clamp(1.125rem, 1.5vw, 1.375rem);
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-xs:      0.75rem;
  --fs-quote:   clamp(1.375rem, 2.5vw, 2rem);

  /* Weights */
  --fw-light:   300;
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600;

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

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

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

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.07), 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.04);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.16);
  --shadow-gold:0 8px 32px rgba(201,169,110,0.25);

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:     150ms;
  --t-base:     300ms;
  --t-slow:     600ms;
  --t-slower:   900ms;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
  line-height: 1.75;
  color: var(--color-muted);
}

/* ── LAYOUT UTILITIES ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

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

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.8125rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--t-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-navy);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201,169,110,0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

.btn-ghost--dark {
  color: var(--color-navy);
  border-color: rgba(10,22,40,0.25);
}

.btn-ghost--dark:hover {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.btn-navy {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-navy:hover {
  background: var(--color-navy-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ── TAGS / LABELS ──────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tag--gold {
  background: var(--color-accent-dim);
  color: #8B6914;
}

.tag--navy {
  background: rgba(10,22,40,0.08);
  color: var(--color-navy);
}

/* ── SECTION LABELS ─────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-light);
  color: var(--color-ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.section-title--white {
  color: var(--color-white);
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--color-muted);
  max-width: 520px;
  line-height: 1.75;
}

/* ── DIVIDER ────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-2xl) 0;
}

.divider--gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

/* ── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 350ms; }
.reveal-delay-4 { transition-delay: 500ms; }

/* ── PAGE TRANSITION OVERLAY ────────────────────────────── */
.page-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-navy);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease;
}

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

@media (max-width: 768px) {
  .section { padding: var(--space-3xl) 0; }
  .section--sm { padding: var(--space-2xl) 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; gap: var(--space-lg); }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}
