/* ═══════════════════════════════════════════════════════════
   BASE  —  Reset, globals, typography
═══════════════════════════════════════════════════════════ */

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

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Noise texture overlay — tasteful grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: var(--z-noise);
  opacity: 0.4;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ── Fluid container ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

/* ── Section spacing ── */
.section {
  padding-block: var(--section-pad);
}

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

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

.section--cream-dark {
  background: var(--cream-dark);
}

/* ── Section header ── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 600;
  line-height: 1.15;
  color: inherit;
}

.section-title em {
  font-style: italic;
  color: var(--gold-light);
}

.section-title--dark em {
  color: var(--gold-light);
}

.section-subtitle {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-top: var(--space-4);
}

.section--dark .section-subtitle,
.section--navy-mid .section-subtitle {
  color: rgba(255,255,255,0.6);
}

.section-header {
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* ── Gold divider ── */
.gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: var(--r-full);
  margin-top: var(--space-5);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 13px 28px;
  border-radius: var(--r-full);
  transition: all var(--t-base) var(--ease);
  white-space: nowrap;
}

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

.btn--outline {
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
  background: transparent;
}
.btn--outline:hover {
  background: var(--gold-dim);
  transform: translateY(-2px);
}

.btn--teal {
  background: var(--teal);
  color: var(--white);
}
.btn--teal:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(26,172,160,0.3);
}

.btn--ghost {
  color: rgba(255,255,255,0.75);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn--ghost:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
}

/* ── Card base ── */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ── Scroll reveal ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slower) var(--ease-out),
              transform var(--t-slower) var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}
[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; }
[data-reveal-delay="500"] { transition-delay: 0.5s; }

/* ── Nepali font toggle ── */
[data-lang="ne"] body,
[data-lang="ne"] p,
[data-lang="ne"] h1, [data-lang="ne"] h2, [data-lang="ne"] h3, [data-lang="ne"] h4,
[data-lang="ne"] li, [data-lang="ne"] span, [data-lang="ne"] a,
[data-lang="ne"] .btn, [data-lang="ne"] label {
  font-family: var(--font-nepali);
}

/* ── Accessibility ── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

/* ── Utility ── */
.text-gold     { color: var(--gold-light); }
.text-teal     { color: var(--teal-light); }
.text-muted    { color: var(--muted); }
.text-center   { text-align: center; }
.mt-auto       { margin-top: auto; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.gap-2         { gap: var(--space-2); }
.gap-4         { gap: var(--space-4); }
