/* Road Side Inn — shared styles */

:root {
  --pine-900: #15281f;
  --pine-800: #1c3327;
  --pine-700: #234131;
  --pine-600: #2c5240;
  --pine-500: #3d6a52;
  --pine-400: #6b8b78;
  --sage-200: #c8d3c4;
  --sage-100: #dee5d8;
  --cream: #f3ede1;
  --cream-50: #faf6ec;
  --paper: #fbf8f1;
  --brass: #b58c43;
  --brass-dark: #8c6a30;
  --brass-light: #d9b777;
  --ink: #1a1f1a;
  --ink-soft: #4a4f47;
  --rule: rgba(26, 31, 26, 0.12);

  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter Tight', system-ui, -apple-system, sans-serif;

  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--brass-dark);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--brass);
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--brass);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
  color: var(--pine-900);
}
.display {
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  font-weight: 300;
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--brass);
}
h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: -0.015em;
}
h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
.lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  color: var(--ink-soft);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
section { padding: clamp(64px, 10vw, 140px) 0; }
.divider-rule {
  height: 1px;
  background: var(--rule);
  max-width: var(--max);
  margin: 0 auto;
}

/* ---------- Top Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 14px 0;
  transition: background-color .35s ease, color .35s ease, padding .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 0;
  border-bottom-color: var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--pine-900);
}
.brand-mark {
  width: auto;
  height: 66px;
  display: block;
  flex: none;
  object-fit: contain;
  transition: height .35s ease;
}
.nav.scrolled .brand-mark { height: 56px; }
/* Light mark only shows where the brand sits on a dark surface. */
.brand-mark-light { display: none; }
.nav.on-dark .brand-mark { display: none; }
.nav.on-dark .brand-mark-light { display: block; }
.nav.scrolled.on-dark .brand-mark { display: block; }
.nav.scrolled.on-dark .brand-mark-light { display: none; }

.nav.on-dark { color: var(--cream); }
.nav.on-dark .brand { color: var(--cream); }
.nav.scrolled.on-dark { color: var(--pine-900); }
.nav.scrolled.on-dark .brand { color: var(--pine-900); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
  color: inherit;
  opacity: 0.85;
  transition: opacity .2s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--brass);
  color: var(--cream-50);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--brass-dark); transform: translateY(-1px); }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}
.menu-btn span::before,
.menu-btn span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform .25s ease;
}
.menu-btn span::before { top: -7px; }
.menu-btn span::after  { top:  7px; }

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  background: var(--pine-900);
  color: var(--cream);
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter) 32px;
  transform: translateY(-100%);
  transition: transform .45s cubic-bezier(.65,0,.35,1);
}
.drawer.open { transform: translateY(0); }
.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-close {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-size: 24px;
}
.drawer-links {
  list-style: none;
  margin: auto 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer-links a {
  font-family: var(--serif);
  font-size: clamp(36px, 9vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.drawer-links a em { color: var(--brass-light); font-style: italic; font-weight: 300; }
.drawer-foot {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  padding-top: 24px;
}
.drawer-foot a { color: inherit; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--pine-800);
  color: var(--cream-50);
}
.btn-primary:hover { background: var(--pine-900); transform: translateY(-1px); }
.btn-brass {
  background: var(--brass);
  color: var(--cream-50);
}
.btn-brass:hover { background: var(--brass-dark); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid currentColor;
  color: var(--pine-900);
}
.btn-ghost:hover { background: var(--pine-900); color: var(--cream-50); }
.btn-ghost.on-dark { color: var(--cream-50); border-color: rgba(255,255,255,0.4); }
.btn-ghost.on-dark:hover { background: var(--cream-50); color: var(--pine-900); border-color: var(--cream-50); }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--pine-800);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}
.link-arrow .arrow { transition: transform .25s ease; }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .40s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: .48s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: .56s; }

/* ---------- Footer ---------- */
.footer {
  background: var(--pine-900);
  color: var(--cream);
  padding: 64px 0 32px;
  margin-top: 0;
}

/* Front desk band — the loudest thing in the footer, on purpose.
   Phone, WhatsApp and address, value first, qualifier beneath. */
.desk-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--brass);
  border-bottom: 1px solid rgba(217, 183, 119, 0.28);
  background: var(--pine-800);
  margin-bottom: 64px;
}
.desk-cell {
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 4px;
  align-items: center;
  padding: 30px clamp(20px, 3vw, 40px);
  color: var(--cream);
  text-decoration: none;
  transition: background .2s ease;
}
.desk-cell + .desk-cell { border-left: 1px solid rgba(255, 255, 255, 0.08); }
.desk-cell:hover { background: var(--pine-700); }
.desk-icon {
  grid-row: 1 / 3;
  justify-self: center;
  font-size: 20px;
  color: var(--brass-light);
}
.desk-value {
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--cream-50);
}
.desk-cell:hover .desk-value { color: var(--brass-light); }
.desk-note {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.15fr 1.15fr;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  display: block;
  width: auto;
  height: 54px;
  margin-bottom: 20px;
}
.footer-tagline {
  color: rgba(255,255,255,0.65);
  font-size: 14.5px;
  max-width: 34ch;
  margin: 0 0 26px;
}
.footer-book {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--pine-900);
  background: var(--brass-light);
  padding: 12px 22px;
  border-radius: 2px;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.footer-book i { font-size: 12px; transition: transform .2s ease; }
.footer-book:hover { background: var(--cream-50); }
.footer-book:hover i { transform: translateX(3px); }

.footer-col h4 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--brass-light);
  margin: 4px 0 20px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer ul li { font-size: 14px; color: rgba(255,255,255,0.78); }
.footer ul a { color: rgba(255,255,255,0.78); font-size: 14px; text-decoration: none; }
.footer ul a:hover { color: var(--brass-light); }
.footer-facts li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: baseline;
  line-height: 1.45;
}
.footer-facts i {
  color: var(--brass);
  font-size: 13px;
  justify-self: center;
}

.footer-bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}
.socials {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}
.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: var(--cream);
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.socials a svg { display: block; }
.socials a:hover { background: var(--brass); border-color: var(--brass); color: var(--cream-50); }

/* ---------- Cards / utils ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
/* The brand, four links and the Book Now pill need ~800px of their own; below
   that the links move into the drawer. */
@media (max-width: 980px) {
  .nav-links, .nav-cta-wrap { display: none; }
  .menu-btn { display: inline-flex; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .desk-band { grid-template-columns: 1fr; margin-bottom: 56px; }
  .desk-cell + .desk-cell {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .brand { font-size: 23px; gap: 10px; }
  .brand-mark, .nav.scrolled .brand-mark { height: 50px; }
  .footer-logo { height: 46px; }
  .desk-cell { padding: 24px 0; }
  .desk-band {
    background: transparent;
    border-bottom-color: rgba(255,255,255,0.08);
  }
}

/* ---------- Page-specific layout helpers ---------- */
.page-hero {
  padding-top: 160px;
  padding-bottom: 64px;
  background: linear-gradient(180deg, var(--cream-50) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--rule);
}
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.025em;
}
.page-hero h1 em { font-style: italic; color: var(--brass); font-weight: 300; }
.page-hero .lede { max-width: 56ch; margin-top: 24px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

/* placeholder image (graceful fallback) */
.ph {
  background: linear-gradient(135deg, var(--sage-200), var(--cream));
  position: relative;
  overflow: hidden;
}
.ph::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 60%);
}

/* hide scrollbars on horizontal rails */
.rail { overflow-x: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }

/* ---------- Focus visibility ----------
   Keyboard users need to see where they are. Applied via :focus-visible so
   pointer users never see a ring on click. */
:focus-visible {
  outline: 2px solid var(--brass-dark);
  outline-offset: 3px;
  border-radius: 2px;
}
.nav.on-dark :focus-visible,
.drawer :focus-visible,
.footer :focus-visible,
.cta-band :focus-visible,
.amenities :focus-visible,
.featured-col :focus-visible {
  outline-color: var(--brass-light);
}
/* The hero quick-book bar has borderless inputs, so the ring goes on the field.
   .bk-field (contact form) already draws its own focus state — left alone. */
.qb-field:focus-within {
  outline: 2px solid var(--brass-dark);
  outline-offset: -1px;
}

/* Skip link — first stop for keyboard and screen-reader users. */
.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -160%);
  z-index: 70;
  background: var(--pine-900);
  color: var(--cream-50);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Closed drawer must not be reachable ----------
   translateY alone leaves the links off-screen but still tabbable. */
.drawer {
  visibility: hidden;
  transition: transform .45s cubic-bezier(.65,0,.35,1), visibility 0s linear .45s;
}
.drawer.open {
  visibility: visible;
  transition: transform .45s cubic-bezier(.65,0,.35,1), visibility 0s;
}

/* ---------- Reduced motion ----------
   Honour the OS setting: reveal content immediately, drop transforms. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .btn:hover,
  .nav-cta:hover,
  .btn:hover .arrow,
  .link-arrow:hover .arrow { transform: none; }
}

/* ---------- No-JS fallback ----------
   .reveal starts at opacity:0; without JS the page would render blank. */
.no-js .reveal,
.no-js .reveal-stagger > * {
  opacity: 1;
  transform: none;
}

/* ---------- CTA band ----------
   Shared by the home, rooms and gallery pages. */
.cta-band {
  background: var(--pine-800);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(181,140,67,0.18), transparent 50%);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
}
.cta-inner h2 { margin-top: 18px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 1024px) {
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
