/* Skip link: hidden until keyboard focus. */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: #2a120c;
  color: #fffdf8;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus {
  clip-path: none;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
}

#main-content:focus {
  outline: none;
}

/*
  Two solid bands so the ring stays 3:1 against both light pages and the burgundy footer.
  Default: light inner band, dark outer band.
  Gold buttons: dark inner band (against the gold), light outer band (against the footer).
*/
a:focus-visible,
button:focus-visible {
  outline: 3px solid #2a120c !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 3px #fffdf8 !important;
  /* The buttons use transition-all, which fades the ring in from the faint gold outline. */
  transition: none !important;
}

a.bg-accent:focus-visible,
footer :focus-visible {
  outline-color: #fffdf8 !important;
  box-shadow: 0 0 0 3px #2a120c !important;
}

/*
  The header logo is only given a height (h-12, then h-10 after scroll).
  Width and height attributes would otherwise lock it to 2048px wide and
  squash the wordmark. width:auto keeps the real logo ratio.
*/
[data-header-logo] {
  width: auto;
  max-width: none;
  flex-shrink: 0;
}

/* Interior pages start on a light background, so the wordmark uses the scrolled colour before JavaScript runs. */
[data-header-mode="solid"] [data-header-logo] {
  filter: invert(0) brightness(0.2) sepia(1) hue-rotate(-20deg) saturate(6);
}

/* Five links plus Book Now need a tighter gap once the desktop nav appears. */
@media (min-width: 768px) and (max-width: 1023px) {
  [data-desktop-nav] {
    gap: 0.85rem;
  }
}

a.faq-inline-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a.faq-inline-link:hover {
  color: #2a120c;
}

/* Darkened brand gold (#d9a514 → #84620c). 5.15:1 on the cream background. */
.script-line {
  color: #84620c;
}

.hero-kicker,
.hero-offer,
.hero-offer-detail {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.hero-kicker {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.25;
}

.hero-offer {
  margin: 1.5rem 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}

.hero-offer-detail {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (min-width: 48rem) {
  .hero-kicker {
    font-size: 1.875rem;
  }

  .hero-offer {
    font-size: 1.25rem;
  }
}

/* Flat label. Not a pill, shadow, or border, so it does not read as a button. */
.hero-badge {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

[data-site-header].py-3 {
  padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
}

[data-site-header].py-2 {
  padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
}

.book-bar {
  display: none;
}

.book-bar[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .book-bar:not([hidden]) {
    display: block;
    position: fixed;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background);
    border-top: 1px solid var(--border);
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 20px rgba(42, 18, 12, 0.12);
  }

  html.book-bar-on [data-page="home"] {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }

  html.book-bar-on {
    scroll-padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-gallery-card]:hover {
    transform: none;
  }
}
