/* ============================================================
   BASE.CSS — Lodge at Deer Crest
   Shared tokens, reset, nav, footer, and utility classes.
   All page-specific styles live in their own CSS file.
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  --ink:        #16120D;
  --forest:     #1C2418;
  --canopy:     #243020;
  --bark:       #2C1F0E;
  --stone:      #6B5E4E;
  --sage:       #7A8C6A;
  --cream:      #F5EFE4;
  --parchment:  #EDE4D3;
  --linen:      #F9F5EE;
  --mist:       #F9F5EE;
  --gold:       #B08D57;
  --gold-lt:    #D4B07A;
  --gold-dim:   rgba(176,141,87,0.14);
  --gold-bdr:   rgba(176,141,87,0.28);
  --border:     rgba(176,141,87,0.20);
  --w70:        rgba(255,255,255,0.70);
  --w45:        rgba(255,255,255,0.45);
  --w20:        rgba(255,255,255,0.20);
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
  --ease:       cubic-bezier(0.22,1,0.36,1);

  /* ── DARK-PAGE ALIASES ── */
  /* Maps legacy dark-theme tokens to the warm system.          */
  /* Corporate Retreat + Things to Do use these without changes. */
  --deep:       #1C2418;   /* = --forest  */
  --panel:      #243020;   /* = --canopy  */
  --surface:    #2C3020;   /* slightly lighter canopy for hover */
  --rim:        rgba(176,141,87,0.15);  /* = --border, subtle   */
  --muted:      rgba(255,255,255,0.45); /* = --w45               */
  --soft:       rgba(255,255,255,0.70); /* = --w70               */
  --text:       rgba(255,255,255,0.88); /* primary on dark bg    */
  --r:          6px;        /* border-radius used by dark pages  */
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--linen);
  color: var(--bark);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Pages where the hero IS the background: content starts under fixed nav */
/* No body padding — the hero adds its own top padding to clear the nav   */

/* Pages that start with light content: push below fixed nav              */
body.light-start { padding-top: 68px; }

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(22,18,13,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(176,141,87,0.15);
}
.nav-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-logo-top {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}
.nav-logo-main {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--cream);
  line-height: 1;
}
.nav-logo-main em { font-style: italic; color: var(--gold-lt); }

.nav-right { display: flex; align-items: center; gap: 24px; }

.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,1.0);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-lt); }

.nav-socials { display: flex; gap: 12px; }
.nav-social {
  color: var(--w45);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.nav-social:hover { color: var(--gold-lt); }
.nav-social svg { width: 15px; height: 15px; fill: currentColor; display: block; }

.nav-book {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  background: var(--gold);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.nav-book:hover { background: var(--gold-lt); transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: 68px; left: 0; right: 0;
  z-index: 199;
  background: rgba(22,18,13,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(176,141,87,0.15);
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translateY(-110%);
  transition: transform 0.4s var(--ease);
  pointer-events: none;
}
.nav-drawer.open { transform: none; pointer-events: all; }

.drawer-link {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--w70);
  text-decoration: none;
  border-bottom: 1px solid rgba(176,141,87,0.1);
  transition: color 0.2s;
}
.drawer-link:last-of-type { border-bottom: none; }
.drawer-link:hover { color: var(--gold-lt); }

.drawer-book {
  display: block;
  margin-top: 20px;
  padding: 14px;
  background: var(--gold);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  text-align: center;
}

.drawer-socials { display: flex; gap: 16px; margin-top: 20px; }
.drawer-social { color: var(--w45); transition: color 0.2s; }
.drawer-social:hover { color: var(--gold-lt); }
.drawer-social svg { width: 20px; height: 20px; fill: currentColor; display: block; }

/* ── FOOTER ── */
footer { background: var(--ink); border-top: 1px solid rgba(176,141,87,0.1); }

.footer-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 40px 40px;
  max-width: 1120px;
  margin: 0 auto;
}

.footer-brand-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 3px;
}
.footer-brand-name em { font-style: italic; color: var(--gold-lt); }
.footer-brand-loc {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--w45);
  margin-bottom: 14px;
}
.footer-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--w45);
  line-height: 1.7;
  margin-bottom: 18px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(176,141,87,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--w45);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.footer-social:hover { border-color: var(--gold-bdr); color: var(--gold); }
.footer-social svg { width: 14px; height: 14px; fill: currentColor; }

.footer-col-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 13px;
  font-weight: 300;
  color: var(--w45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-lt); }

.footer-contact-rows { display: flex; flex-direction: column; gap: 9px; }
.fcr { display: flex; flex-direction: column; gap: 1px; }
.fcr-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--w20);
}
.fcr-val {
  font-size: 13px;
  font-weight: 300;
  color: var(--w45);
  text-decoration: none;
  transition: color 0.2s;
}
.fcr-val:hover { color: var(--gold); }

.footer-base {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 16px 40px;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copy { font-size: 11px; font-weight: 300; color: var(--w20); }
.footer-legal { display: flex; gap: 16px; list-style: none; flex-wrap: wrap; }
.footer-legal a {
  font-size: 11px;
  font-weight: 300;
  color: var(--w20);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--w45); }

/* ── UTILITIES ── */

/* Scroll reveal — visible by default; hidden only when js-ready (real browser) */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.js-ready .reveal          { opacity: 0; transform: translateY(18px); }
.js-ready .reveal.visible  { opacity: 1; transform: none; }

/* FAQ sections */
.faq-section { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }
.js-ready .faq-section         { opacity: 0; transform: translateY(16px); }
.js-ready .faq-section.visible { opacity: 1; transform: none; }

/* Timeline items */
.tl-item { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }
.js-ready .tl-item         { opacity: 0; transform: translateX(20px); }
.js-ready .tl-item.visible { opacity: 1; transform: none; }

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--gold); opacity: 0.7; }

/* Common section label */
.section-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  #nav { padding: 0 20px; height: 60px; }
  .nav-links, .nav-socials { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer { top: 60px; }
  body.light-start { padding-top: 60px; }
  .footer-body { grid-template-columns: 1fr 1fr; padding: 40px 20px 28px; }
  .footer-base { padding: 14px 20px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 580px) {
  #nav { height: 56px; }
  .nav-logo-main { font-size: 16px; }
  .nav-drawer { top: 56px; }
  .nav-book { padding: 8px 16px; font-size: 10px; }
  body.light-start { padding-top: 56px; }
  .footer-body { grid-template-columns: 1fr; padding: 32px 16px 20px; }
  .footer-base { padding: 12px 16px; }
  .footer-legal { gap: 10px; }
}

/* ── STICKY AVAILABILITY BAR ── */
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 190;
  background: rgba(22,18,13,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(176,141,87,0.15);
  padding: 12px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  will-change: transform;
}
.sticky-bar.visible { transform: none; }
.sticky-bar-left { display: flex; flex-direction: column; gap: 2px; }
.sticky-bar-name { font-family: var(--serif); font-size: 15px; font-weight: 300; color: var(--cream); line-height: 1; }
.sticky-bar-name em { font-style: italic; color: var(--gold-lt); }
.sticky-bar-sub { font-size: 10px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--w45); }
.sticky-bar-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.sticky-bar-rate { font-size: 13px; font-weight: 300; color: var(--w70); white-space: nowrap; }
.sticky-bar-rate strong { color: var(--gold-lt); font-weight: 400; }
.sticky-bar-btn {
  display: inline-flex; align-items: center;
  padding: 10px 24px;
  background: var(--gold); color: var(--ink);
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none;
  border-radius: 3px; white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.sticky-bar-btn:hover { background: var(--gold-lt); transform: translateY(-1px); }
/* Hide on availability page — booking widget is already the whole page */
body.page-availability .sticky-bar { display: none; }

@media (max-width: 860px) {
  .sticky-bar { padding: 10px 16px; }
  .sticky-bar-left, .sticky-bar-rate { display: none; }
  .sticky-bar-right { width: 100%; }
  .sticky-bar-btn { width: 100%; justify-content: center; padding: 14px; font-size: 13px; letter-spacing: 0.1em; }
}
