/* ============================================================
   Uma Maurya Salon — base.css
   Design tokens, reset, typography, layout primitives
   ============================================================ */

:root {
  /* Surfaces */
  --ivory: #f7f3ee;
  --ivory-2: #ede8e1;
  --ivory-3: #e4ddd2;
  --charcoal: #2c2c2c;
  --noir: #141414;
  --noir-2: #1d1d1b;

  /* Accent */
  --gold: #c8a96e;
  --gold-light: #e8d5a8;
  --gold-deep: #a8884f;
  --smoke: #9a9590;

  /* Text */
  --ink: #211f1c;
  --ink-soft: #5b554d;
  --on-dark: #f4efe7;
  --on-dark-soft: #b3ada1;

  /* Lines */
  --hair: rgba(44, 44, 44, 0.14);
  --hair-gold: rgba(200, 169, 110, 0.34);
  --hair-on-dark: rgba(244, 239, 231, 0.14);

  /* Type */
  --display: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --gut: clamp(1.1rem, 4vw, 4.5rem);
  --maxw: 1440px;
  --maxw-narrow: 72rem;
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --topbar-h: 38px;
  --header-h: 76px;
  --radius: 999px;

  /* Fluid type scale */
  --fs-eyebrow: clamp(0.7rem, 0.66rem + 0.2vw, 0.8rem);
  --fs-body: clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem);
  --fs-lead: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  --fs-h4: clamp(1.15rem, 1rem + 0.7vw, 1.55rem);
  --fs-h3: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem);
  --fs-h2: clamp(2.2rem, 1.5rem + 3.4vw, 4.6rem);
  --fs-h1: clamp(3rem, 1.6rem + 6.4vw, 8.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-tap-highlight-color: transparent;
}

button, a { -webkit-tap-highlight-color: transparent; }

input, select, textarea { font-size: 16px; }

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--gold);
  color: var(--noir);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}

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

p {
  max-width: 62ch;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
}
.eyebrow::before {
  content: "";
  width: 2.4em;
  height: 1px;
  background: var(--gold);
}
.eyebrow.is-centered::after {
  content: "";
  width: 2.4em;
  height: 1px;
  background: var(--gold);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-soft);
}

.serif-accent {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold-deep);
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: max(var(--gut), var(--safe-l));
  padding-right: max(var(--gut), var(--safe-r));
}
.container--narrow {
  width: 100%;
  max-width: var(--maxw-narrow);
  margin-inline: auto;
  padding-inline: max(var(--gut), var(--safe-l));
  padding-right: max(var(--gut), var(--safe-r));
}

.section {
  padding-block: clamp(4.5rem, 3rem + 7vw, 10rem);
  position: relative;
}
.section--tight {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}

.section--dark {
  background: var(--noir);
  color: var(--on-dark);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--on-dark);
}
.section--dark .lead {
  color: var(--on-dark-soft);
}
.section--dark .eyebrow {
  color: var(--gold-light);
}

.section--ivory-2 {
  background: var(--ivory-2);
}

.section-head {
  max-width: 56rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 5rem);
}
.section-head.is-centered {
  margin-inline: auto;
  text-align: center;
}
.section-head .eyebrow {
  margin-bottom: 1.4rem;
}
.section-head h2 {
  margin-bottom: 1.2rem;
}

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---------- Utility ---------- */
.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;
}

.split-line {
  display: block;
  overflow: hidden;
}
.split-line > span {
  display: block;
  will-change: transform;
}

[data-reveal] {
  opacity: 0;
}

.no-scroll {
  overflow: hidden;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .marquee__track {
    animation: none !important;
  }
  .hero__slide.is-active {
    transform: none !important;
  }
  .curtain { display: none !important; }
}

/* ---------- 480px tier ---------- */
@media (max-width: 480px) {
  :root { --gut: 1rem; }
  .btn { padding: 0.95em 1.6em; letter-spacing: 0.1em; font-size: 0.78rem; }
  .btn-row { gap: 0.6rem; }
}
