/* ==========================================================================
   Nirvana Lounge — base: tokens, reset, typography, buttons, utilities
   Mobile-first (written for ~360px, enhanced with min-width queries).
   Breakpoints: 480 / 768 / 1024 / 1280
   ========================================================================== */

:root {
  /* Emerald */
  --emerald-950: #04281F;
  --emerald-900: #063B2D;
  --emerald-800: #0A5240;
  --emerald-700: #0E6B52;
  --emerald-600: #12866A;
  --emerald-500: #1FA37F;
  --emerald-100: #DDF0E8;
  --emerald-50:  #F0F8F4;
  /* Gold (700 is the text-safe gold for light backgrounds) */
  --gold-700: #85641F;
  --gold-500: #B8923F;
  --gold-400: #C9A75A;
  --gold-300: #DCC283;
  --gold-gradient: linear-gradient(135deg, #B8923F, #E6CF94 50%, #B8923F);
  /* Neutrals */
  --ivory: #FAF7F0;
  --cream: #F3EEE2;
  --white: #FFFFFF;
  --ink: #14231E;
  --ink-soft: #44564F;
  --line: rgba(184, 146, 63, .35);
  --line-strong: rgba(184, 146, 63, .6);

  /* Type */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Spacing scale */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem;
  --section-pad: 3.5rem;       /* 56px mobile */
  --gutter: 1rem;              /* 16px mobile */

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(4, 40, 31, .07);
  --shadow: 0 10px 30px rgba(4, 40, 31, .12);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px)  { :root { --gutter: 1.5rem; } }
@media (min-width: 1024px) { :root { --gutter: 2rem; --section-pad: 6rem; --header-h: 80px; } }

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
iframe { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-serif); font-weight: 600; line-height: 1.12; color: var(--emerald-900); letter-spacing: .005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }
a { color: var(--emerald-700); text-underline-offset: .18em; }
a:hover { color: var(--emerald-900); }
button { font: inherit; color: inherit; cursor: pointer; }
address { font-style: normal; }
s { text-decoration-thickness: 1px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-300); color: var(--emerald-950); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---- Layout primitives ---- */
.container { width: min(100% - (var(--gutter) * 2), 1200px); margin-inline: auto; }
.container--narrow { width: min(100% - (var(--gutter) * 2), 820px); }
.center { text-align: center; }
.mt-6 { margin-top: var(--space-6); }
.muted { color: var(--ink-soft); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed; top: .5rem; left: .5rem; z-index: 300; transform: translateY(-200%);
  background: var(--emerald-900); color: var(--ivory); padding: .75rem 1rem; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { transform: none; color: var(--ivory); }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---- Typography helpers ---- */
.eyebrow {
  margin: 0 0 .75rem;
  font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-700);
}
.eyebrow--light { color: var(--gold-300); }
.h3-serif { font-size: clamp(1.5rem, 3.2vw, 2rem); margin: 2rem 0 .75rem; }
.h3-serif:first-child { margin-top: 0; }
.note, .disclaimer {
  max-width: 70ch; margin: 2rem auto 0; padding: .9rem 1.1rem;
  font-size: .92rem; color: var(--ink-soft);
  background: rgba(184, 146, 63, .08); border-left: 3px solid var(--gold-500); border-radius: 0 8px 8px 0;
}
.disclaimer { font-style: italic; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.5rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font-family: var(--font-sans); font-size: .98rem; font-weight: 500; letter-spacing: .03em; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn .icon { width: 1.2em; height: 1.2em; }
.btn--sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .92rem; }
.btn--block { display: flex; width: 100%; }

.btn--primary { background: var(--emerald-800); color: var(--ivory); border-color: var(--emerald-800); }
.btn--primary:hover { background: var(--emerald-950); color: var(--gold-300); border-color: var(--gold-500); }

.btn--gold { background: var(--gold-gradient); background-size: 160% 100%; color: var(--emerald-950); border-color: var(--gold-400); }
.btn--gold:hover { background-position: 100% 0; color: var(--emerald-950); box-shadow: 0 8px 22px rgba(184, 146, 63, .35); }

.btn--outline { background: transparent; color: var(--emerald-800); border-color: var(--gold-500); }
.btn--outline:hover { background: var(--emerald-800); color: var(--ivory); border-color: var(--emerald-800); }

.btn--outline-light { background: rgba(250, 247, 240, .06); color: var(--ivory); border-color: var(--gold-300); }
.btn--outline-light:hover { background: var(--ivory); color: var(--emerald-900); border-color: var(--ivory); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.25rem; }
.btn-row--center { justify-content: center; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--gold-500); background: transparent; color: var(--emerald-800);
  text-decoration: none; transition: background-color .25s, color .25s;
}
.icon-btn .icon { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--emerald-800); color: var(--ivory); }

/* ---- Ornament divider ---- */
.divider { display: flex; align-items: center; justify-content: center; gap: .75rem; margin: 1rem 0 1.25rem; color: var(--gold-500); }
.divider i { display: block; width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-500)); }
.divider i:last-child { background: linear-gradient(270deg, transparent, var(--gold-500)); }
.divider-icon { width: 20px; height: 20px; }
.divider--left { justify-content: flex-start; }
.divider--left i:first-child { display: none; }

/* ---- Scroll reveal (JS adds .is-visible; CSS fallback reveals after 2.5s if JS never runs) ---- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); animation: reveal-fallback 0s 2.5s forwards; }
.js .reveal.is-visible { opacity: 1; transform: none; animation: none; }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; animation: none; }
}
