/* ═══════════════════════════════════════════════════════════
   TubHotels Sanctuary — Shared Design System
   Used on: all pages
═══════════════════════════════════════════════════════════ */

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

:root {
  --ink:         #0d1b2a;
  --ink-2:       #2D3F54;
  --cream:       #FAF7F2;
  --cream-2:     #F3EFE7;
  --sand:        #E8E2D5;
  --sand-2:      #D6CEBD;
  --teal:        #2ab4a0;
  --teal-2:      #22998a;
  --teal-bg:     rgba(42,180,160,.08);
  --teal-border: rgba(42,180,160,.22);
  --gold:        #c9a84c;
  --gold-2:      #a88631;
  --muted:       #6B7A8A;
  --light-muted: #A8B3BF;
  --white:       #FFFFFF;
  --navy:        #0d1b2a; /* alias */
  --shadow-sm:   0 2px 8px rgba(13,27,42,.04);
  --shadow:      0 8px 24px rgba(13,27,42,.06), 0 2px 6px rgba(13,27,42,.04);
  --shadow-lg:   0 24px 60px rgba(13,27,42,.08), 0 8px 24px rgba(13,27,42,.05);
  --shadow-xl:   0 40px 80px rgba(13,27,42,.10), 0 12px 32px rgba(13,27,42,.06);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── SKIP LINK ── */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 20px; z-index: 9999; text-decoration: none; font-weight: 600; }
.skip-link:focus { left: 8px; top: 8px; }

/* ════════════════════════════════════════
   NAV — Homepage (sticky cream)
════════════════════════════════════════ */
#mainNav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 64px;
  background: rgba(250,247,242,.12);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(232,226,213,.25);
}
#mainNav a.nav-logo img { height: 54px; width: auto; display: block; }

/* ── MEGA MENU overrides — all pages ── */
.thmm { --thmm-top-color: #fff; --thmm-burger-color: #0d1b2a; --thmm-maxw: 1400px; z-index: 10001; }
#mainNav .thmm { --thmm-top-color: #fff; }
.thmm-top a.thmm-link { font-family: 'Cormorant Garamond', serif !important; font-size: 15px !important; font-weight: 500 !important; letter-spacing: 3px !important; text-transform: uppercase !important; text-shadow: 0 1px 8px rgba(0,0,0,.5) !important; }
.thmm-top a.thmm-link:hover { color: var(--teal) !important; }
.thmm-top .thmm-caret { border-top-color: currentColor !important; }
.thmm-mega__glass { background: rgba(13,27,42,.97) !important; backdrop-filter: blur(40px) saturate(180%) !important; -webkit-backdrop-filter: blur(40px) saturate(180%) !important; border-top: 1px solid rgba(255,255,255,.12) !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; box-shadow: 0 18px 60px rgba(0,0,0,.35) !important; }
.thmm-mega__glass::before { background: linear-gradient(180deg,rgba(42,180,160,.08),transparent) !important; content: "" !important; }
.thmm-country { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.12) !important; color: #fff !important; font-size: 14px !important; font-weight: 700 !important; }
.thmm-country.is-active { background: rgba(42,180,160,.25) !important; border-color: rgba(42,180,160,.4) !important; }
.thmm-state { color: rgba(255,255,255,.88) !important; font-size: 13px !important; font-weight: 600 !important; }
.thmm-state:hover { background: rgba(42,180,160,.18) !important; color: #fff !important; }
.thmm-state .thmm-count { font-size: 10px; font-weight: 600; color: var(--teal); margin-left: 4px; opacity: .85; }
.thmm-flyout__box { background: #0d1b2a !important; border-color: rgba(255,255,255,.1) !important; }
.thmm-city { color: rgba(255,255,255,.8) !important; font-size: 13px !important; font-weight: 600 !important; }
.thmm-city:hover { background: rgba(42,180,160,.2) !important; color: #fff !important; }
.thmm-blog-tile { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.1) !important; }
.thmm-blog-tile__title { color: rgba(255,255,255,.9) !important; font-size: 13px !important; }
.thmm-blog-cta__btn { background: var(--teal) !important; font-size: 13px !important; font-weight: 700 !important; }
.thmm-overlay__page { background: rgba(13,27,42,.95) !important; }
.thmm-mitem { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.1) !important; }
.thmm-mitem a { font-size: 14px !important; }
.thmm-sublist a { background: rgba(42,180,160,.1) !important; color: rgba(255,255,255,.85) !important; }

/* ════════════════════════════════════════
   NAV — State & City (fixed dark gradient)
════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 52px;
  background: linear-gradient(to bottom, rgba(13,27,42,.75) 0%, transparent 100%);
  border-bottom: 1px solid transparent;
  transition: background .35s, box-shadow .35s, padding .35s, border-color .35s;
}
#nav.scrolled {
  background: rgba(250,247,242,.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(13,27,42,.08);
  border-bottom-color: var(--sand);
  padding: 14px 52px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 48px; width: auto; filter: none; transition: filter .35s; }
#nav.scrolled .nav-logo img { filter: none; }
#nav.scrolled .thmm { --thmm-top-color: var(--ink); }
#nav.scrolled .thmm .thmm-top a.thmm-link { text-shadow: none; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.65);
  padding: 60px 64px 32px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-grid {
  max-width: 1400px; margin: 0 auto 48px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 48px;
}
.f-logo { margin-bottom: 18px; }
.f-logo img { height: 48px; width: auto; opacity: .85; filter: brightness(1.4); }
.f-desc { font-size: 13px; line-height: 1.85; max-width: 300px; margin-bottom: 24px; }
.f-social { display: flex; gap: 10px; }
.f-social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); transition: all .25s; }
.f-social a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.f-social svg { width: 15px; height: 15px; }
.f-col h5 { font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 18px; }
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.f-col a { font-size: 13px; color: rgba(255,255,255,.6); text-decoration: none; transition: color .25s; }
.f-col a:hover { color: var(--teal); }
.footer-bot {
  max-width: 1400px; margin: 0 auto; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12px; color: rgba(255,255,255,.4);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-bot a { color: rgba(255,255,255,.4); text-decoration: none; transition: color .25s; }
.footer-bot a:hover { color: var(--teal); }

/* ════════════════════════════════════════
   GENERIC PAGE
════════════════════════════════════════ */
.generic-page { padding: 80px 0; min-height: 60vh; }
.generic-wrap { max-width: 900px; margin: 0 auto; padding: 0 40px; }
.generic-wrap h1 { font-family: 'Playfair Display', serif; font-size: clamp(28px,4vw,48px); font-weight: 700; color: var(--ink); margin-bottom: 24px; }
.generic-content { font-size: 15px; line-height: 1.85; color: var(--muted); }
.generic-content p { margin-bottom: 18px; }
.generic-content strong { color: var(--ink); }

/* ════════════════════════════════════════
   FAQ (shared — homepage + state + city)
════════════════════════════════════════ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--sand); border-radius: 14px; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.faq-item.open { border-color: var(--teal); box-shadow: var(--shadow); }
.faq-q { width: 100%; background: none; border: none; padding: 22px 28px; text-align: left; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; letter-spacing: -.2px; }
.faq-q:hover { color: var(--teal); }
.faq-icon { flex-shrink: 0; width: 28px; height: 28px; background: var(--cream-2); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .3s ease, background .25s; }
.faq-item.open .faq-icon { background: var(--teal); transform: rotate(45deg); }
.faq-icon svg { width: 14px; height: 14px; color: var(--ink); transition: color .25s; }
.faq-item.open .faq-icon svg { color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner { padding: 0 28px 24px; color: var(--muted); font-size: 14px; line-height: 1.75; }

/* ════════════════════════════════════════
   SECTION HELPERS (shared)
════════════════════════════════════════ */
.sec-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.sec-tit { font-family: 'Playfair Display', serif; font-size: clamp(36px,4.5vw,60px); font-weight: 600; line-height: 1.05; color: var(--ink); letter-spacing: -1.5px; }
.sec-tit em { font-style: italic; font-weight: 400; color: var(--light-muted); }
.sec-lede { font-size: 16px; color: var(--muted); margin-top: 14px; max-width: 620px; line-height: 1.7; }

/* ════════════════════════════════════════
   RESPONSIVE — SHARED
════════════════════════════════════════ */
@media (max-width: 1280px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-grid > div:nth-child(5) { display: none; }
}
@media (max-width: 768px) {
  #mainNav { padding: 14px 18px; }
  #mainNav a.nav-logo img { height: 48px; }
  footer { padding: 48px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > div:nth-child(5) { display: block; grid-column: 1/3; }
  .footer-bot { flex-direction: column; gap: 8px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .2ms !important; }
}
