/* =========================================================
   NURA — main.css
   Global reset, tokens, typography, layout utilities
   ========================================================= */

/* ---------- @font-face ---------- */
@font-face {
  font-family: 'NewAstro';
  src: url('../fonts/NewAstro-Regular.woff2') format('woff2'),
       url('../fonts/NewAstro-Regular.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NewAstro';
  src: url('../fonts/NewAstro-Light.woff2') format('woff2'),
       url('../fonts/NewAstro-Light.woff')  format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'RooneySans';
  src: url('../fonts/RooneySans-Regular.woff2') format('woff2'),
       url('../fonts/RooneySans-Regular.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'RooneySans';
  src: url('../fonts/RooneySans-Medium.woff2') format('woff2'),
       url('../fonts/RooneySans-Medium.woff')  format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'RooneySans';
  src: url('../fonts/RooneySans-Bold.woff2') format('woff2'),
       url('../fonts/RooneySans-Bold.woff')  format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette */
  --indigo:    #28556c;
  --indigo-dk: #1d3f52;
  --indigo-lt: #3a6f8a;
  --azure:     #b4ccd1;
  --azure-lt:  #d6e8eb;
  --pistacho:  #cce3c6;
  --matcha:    #8fb991;
  --matcha-dk: #6fa072;
  --orchid:    #f3a5bb;
  --peach:     #f9c29c;
  --cream:     #faf8f4;
  --white:     #ffffff;
  --ink:       #1a2a33;
  --ink-muted: #4a6270;

  /* Typography */
  --font-display: 'RooneySans', sans-serif;
  --font-body:    'NewAstro', sans-serif;

  /* Scale */
  --text-xs:  0.75rem;
  --text-sm:  0.875rem;
  --text-base:1rem;
  --text-lg:  1.125rem;
  --text-xl:  1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;
  --text-5xl: 4rem;
  --text-6xl: 5.5rem;
  --text-7xl: 7.5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-w: 1320px;
  --nav-h: 88px;

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

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(40,85,108,.08);
  --shadow-md:  0 8px 32px rgba(40,85,108,.12);
  --shadow-lg:  0 16px 56px rgba(40,85,108,.16);
  --shadow-xl:  0 32px 96px rgba(40,85,108,.20);

  /* Easing */
  --ease-out:   cubic-bezier(0.16,1,0.3,1);
  --ease-in-out:cubic-bezier(0.4,0,0.2,1);
  --ease-spring:cubic-bezier(0.34,1.56,0.64,1);

  /* Transitions */
  --t-fast:  150ms var(--ease-out);
  --t-base:  300ms var(--ease-out);
  --t-slow:  600ms var(--ease-out);
  --t-xslow: 900ms var(--ease-out);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
}
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
.display-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 8vw, var(--text-7xl));
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, var(--text-6xl));
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}
.display-md {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}
.display-sm {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, var(--text-4xl));
  line-height: 1.15;
  text-transform: lowercase;
}
h1, .h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-3xl); line-height: 1.2; text-transform: lowercase; }
h2, .h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-2xl); line-height: 1.25; text-transform: lowercase; }
h3, .h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); line-height: 1.3; text-transform: lowercase; }
h4, .h4 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-lg); text-transform: lowercase; }
p { font-weight: 300; line-height: 1.65; }

.label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--matcha-dk);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 3rem);
}
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-sm { padding-block: clamp(2rem, 4vw, 3.5rem); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-indigo  { color: var(--indigo); }
.text-matcha  { color: var(--matcha-dk); }
.text-muted   { color: var(--ink-muted); }
.text-white   { color: var(--white); }
.bg-cream     { background: var(--cream); }
.bg-indigo    { background: var(--indigo); }
.bg-azure-lt  { background: var(--azure-lt); }
.bg-pistacho  { background: var(--pistacho); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.rounded-full { border-radius: var(--r-full); }

/* ---------- Scroll Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="left"].revealed,
[data-reveal="right"].revealed,
[data-reveal="scale"].revealed { transform: translateX(0) scale(1); }

[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }

/* ---------- Responsive breakpoints ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}
