/* ============================================================
   NovaHome Group — nova.css
   Shared component kit. Every page links tokens.css then nova.css.
   All values source from tokens.css custom properties — no literals.
   Cross-page pieces live here: reset, header, footer, buttons,
   eyebrow, ornamental rule, language toggle, generic form controls.
   Page-specific layout (booking shell, slot picker, hero, etc.)
   stays in each page's own <style>.
   ============================================================ */

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--gold-100); }
img { display: block; max-width: 100%; }

/* ---------- shared atoms ---------- */
.nh-eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.nh-eyebrow--rule::before {
  content: ""; width: 26px; height: 1px; flex: none;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
}
.nh-rule {
  display: flex; align-items: center; gap: 14px;
  width: min(320px, 70vw);
}
.nh-rule span:first-child, .nh-rule span:last-child {
  height: 1px; flex: 1; background: var(--gradient-gold-rule);
}
.nh-rule em { color: var(--gold-400); font-size: .72rem; letter-spacing: .3em; font-style: normal; line-height: 1; }

/* ---------- buttons ---------- */
.nh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  font-family: var(--font-sans); font-weight: 500; font-size: 13px;
  letter-spacing: .13em; text-transform: uppercase;
  padding: 14px 30px; border-radius: 0; cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
  transition: filter .2s ease, background .25s ease, border-color .25s ease, color .25s ease, transform .12s ease;
}
.nh-btn-primary {
  background: linear-gradient(100deg, var(--gold-700), var(--gold-400) 45%, var(--gold-100));
  color: #14120c; border-color: var(--gold-400);
}
.nh-btn-primary:hover { filter: brightness(1.09); color: #14120c; }
.nh-btn-primary:active { transform: translateY(1px) scale(.99); }
.nh-btn-primary:disabled { opacity: .34; cursor: not-allowed; filter: none; transform: none; }
.nh-btn-ghost {
  background: transparent; color: var(--stone); border-color: var(--hairline-faint);
  padding: 14px 22px;
}
.nh-btn-ghost:hover { color: var(--cream); border-color: var(--hairline-gold); }
.nh-btn svg { width: 19px; height: 19px; }
.nh-btn:focus-visible { outline: 2px solid rgba(236,200,88,.65); outline-offset: 3px; }

/* ---------- language toggle (pill, header) ---------- */
.nh-lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--hairline-gold); border-radius: 999px; background: rgba(8,8,7,.35); }
.nh-lang button { font-family: var(--font-sans); font-weight: 700; font-size: 11px; letter-spacing: .12em; color: var(--stone); background: none; border: none; padding: 6px 11px; border-radius: 999px; cursor: pointer; transition: color .25s, background .25s; }
.nh-lang button[aria-pressed="true"] { color: #100B04; background: var(--gold-400); }
.nh-lang button:focus-visible { outline: 2px solid rgba(236,200,88,.65); outline-offset: 2px; }

/* ---------- nav header (fixed, transparent-over-hero → solid on scroll) ---------- */
.nh-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; border-bottom: 1px solid transparent; background: transparent; transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease; }
.nh-header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(8,8,7,.6) 0%, rgba(8,8,7,0) 100%); transition: opacity .4s ease; }
.nh-header.is-scrolled { background: rgba(8,8,7,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--hairline-gold); }
.nh-header.is-scrolled::before { opacity: 0; }
/* solid variant for pages with no hero behind the bar (e.g. booking) */
.nh-header--solid { background: rgba(8,8,7,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--hairline-gold); }
.nh-header--solid::before { opacity: 0; }

.nh-nav { max-width: 1180px; margin: 0 auto; height: clamp(58px,8vh,76px); padding: 0 clamp(18px,5vw,48px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nh-brand { display: inline-flex; align-items: flex-end; gap: 12px; text-decoration: none; }
.nh-brand img { height: clamp(30px,4.2vw,40px); width: auto; filter: drop-shadow(0 0 14px rgba(243,210,92,.20)); }
.nh-brand__word { font-family: var(--font-display); font-weight: 600; font-size: clamp(16px,1.9vw,21px); letter-spacing: .01em; line-height: 1; color: var(--amber); white-space: nowrap; text-shadow: 0 1px 12px rgba(0,0,0,.45); padding-bottom: 2px; }
.nh-nav__right { display: flex; align-items: center; gap: clamp(20px,3vw,38px); }
.nh-links { display: flex; align-items: center; gap: clamp(20px,3vw,34px); list-style: none; margin: 0; padding: 0; }
.nh-links a { position: relative; display: inline-block; font-family: var(--font-sans); font-weight: 700; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); text-decoration: none; padding: 8px 0; transition: color .28s ease; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.nh-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gradient-gold-rule); transform: scaleX(0); transition: transform .34s cubic-bezier(0.16,1,0.3,1); }
.nh-links a:hover, .nh-links a:focus-visible, .nh-links a[aria-current="page"] { color: var(--gold-100); }
.nh-links a:hover::after, .nh-links a:focus-visible::after, .nh-links a[aria-current="page"]::after { transform: scaleX(1); }
.nh-brand:focus-visible, .nh-links a:focus-visible, .nh-burger:focus-visible, .nh-mobile a:focus-visible { outline: 2px solid rgba(236,200,88,.65); outline-offset: 4px; }
.nh-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 10px; background: none; border: none; cursor: pointer; }
.nh-burger span { display: block; width: 100%; height: 1.5px; background: var(--gold-100); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nh-burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nh-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* mobile overlay menu */
.nh-mobile { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(26px,5vw,40px); background: rgba(8,8,7,.97); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .42s ease, visibility .42s ease; }
.nh-mobile.is-open { opacity: 1; visibility: visible; }
.nh-mobile__nav { display: flex; flex-direction: column; align-items: center; gap: clamp(22px,4vw,34px); }
.nh-mobile__nav a { font-family: var(--font-sans); font-weight: 700; font-size: 16px; letter-spacing: .26em; text-transform: uppercase; color: var(--parchment); text-decoration: none; opacity: 0; transform: translateY(18px); transition: color .25s ease; }
.nh-mobile__nav a:hover { color: var(--gold-100); }
.nh-mobile.is-open .nh-mobile__nav a { animation: nhRise .6s cubic-bezier(0.16,1,0.3,1) forwards; }
.nh-mobile.is-open .nh-mobile__nav a:nth-child(1) { animation-delay: .08s; }
.nh-mobile.is-open .nh-mobile__nav a:nth-child(2) { animation-delay: .18s; }
.nh-mobile.is-open .nh-mobile__nav a:nth-child(3) { animation-delay: .28s; }
.nh-mobile .nh-lang { opacity: 0; transform: translateY(18px); }
.nh-mobile.is-open .nh-lang { animation: nhRise .6s cubic-bezier(0.16,1,0.3,1) .28s forwards; }
@keyframes nhRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 720px) {
  .nh-nav__right { display: none; }
  .nh-burger { display: flex; }
}
@media (max-width: 400px) { .nh-brand__word { display: none; } }

/* ---------- footer ---------- */
.nh-footer { background: #060605; border-top: 1px solid var(--hairline-faint); padding: clamp(44px, 6vw, 70px) clamp(22px, 6vw, 64px); text-align: center; }
.nh-footer__in { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.nh-footer img { width: 92px; height: auto; opacity: .92; }
.nh-footer__line { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(16px,2.2vw,21px); color: var(--parchment); margin: 0; }
.nh-footer__caps { font-family: var(--font-sans); font-weight: 700; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--stone); margin: 0; }
.nh-footer__copy { font-family: var(--font-sans); font-weight: 500; font-size: 11px; letter-spacing: .04em; color: var(--stone-faint); margin: 6px 0 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
