/* ==========================================================================
   Ambient Hall — base styles: reset, tokens, layout, header, footer
   ========================================================================== */

:root {
  --color-cream: #f7f5f0;
  --color-navy: #0f141d;
  --color-navy-text: #e5e0d8;
  --color-gold: #c5a059;

  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1400px;
  --space-section-y: clamp(3.5rem, 6vw, 8rem);
  --space-section-x: clamp(1.25rem, 4vw, 3rem);

  --transition-slow: 700ms ease;
  --transition-base: 300ms ease;

  --focus-ring: 2px solid var(--color-gold);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  background: var(--color-cream);
  color: var(--stone-900);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

address {
  font-style: normal;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Custom scrollbar, matching the gold/navy identity */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) var(--color-cream);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-gold);
  border-radius: 6px;
  border: 2px solid var(--color-cream);
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-navy);
  color: var(--color-navy-text);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  transition: top var(--transition-base);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.skip-link:focus {
  top: 1rem;
}

/* Shared type/pattern helpers */
.eyebrow {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--stone-500);
}

.eyebrow--gold {
  color: var(--color-gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 2rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 1px solid transparent;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base);
}

.btn--dark {
  background: var(--stone-900);
  color: var(--color-cream);
}

.btn--dark:hover,
.btn--dark:focus-visible {
  background: var(--stone-700);
}

.btn--outline {
  border-color: var(--stone-900);
  color: var(--stone-900);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--stone-900);
  color: var(--color-cream);
}

.btn--ghost {
  border-color: var(--stone-400);
  color: var(--stone-700);
  background: transparent;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--stone-200);
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background: #d9b678;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: transparent;
  transition:
    background-color var(--transition-slow),
    box-shadow var(--transition-slow);
}

.site-header--scrolled {
  background: rgba(247, 245, 240, 0.92);
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.08);
}

/* backdrop-filter establishes a containing block for position:fixed
   descendants (like the mobile nav drawer). That's harmless while the
   header itself is position:fixed (home), but on legal/404 pages the
   header is position:relative — so the blur would hijack the drawer's
   fixed positioning and blow out the page's horizontal scroll area.
   Only apply it where the header is actually fixed. */
body:not(.page-legal):not(.page-404) .site-header--scrolled {
  backdrop-filter: blur(8px);
}

.page-legal .site-header,
.page-404 .site-header {
  background: rgba(247, 245, 240, 0.96);
  position: relative;
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.08);
}

.site-header__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.site-header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Logo: intrinsic 403x162 source ratio preserved via height + width:auto so
   only one dimension is ever constrained — no distortion, no layout shift. */
.site-logo__img {
  display: block;
  height: 2.25rem;
  width: auto;
  max-width: 100%;
}

.site-logo__img--white {
  display: none;
}

[data-theme='evening'] .site-logo__img--black {
  display: none;
}

[data-theme='evening'] .site-logo__img--white {
  display: block;
}

.site-nav__list {
  display: none;
  align-items: center;
  gap: 2rem;
}

.site-nav__link {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--stone-700);
  transition: opacity var(--transition-base);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  opacity: 0.6;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  position: relative;
  height: 2.25rem;
  width: 4rem;
  border-radius: 999px;
  border: 1px solid rgba(28, 25, 23, 0.3);
  background: transparent;
  transition: border-color var(--transition-slow);
}

.theme-toggle__thumb {
  position: absolute;
  left: 0.25rem;
  top: 0.25rem;
  height: 1.75rem;
  width: 1.75rem;
  border-radius: 999px;
  background: #fff;
  color: var(--stone-800);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-slow);
}

[data-theme='evening'] .theme-toggle__thumb {
  transform: translateX(1.75rem);
  background: var(--color-navy);
  color: var(--color-gold);
}

.nav-toggle {
  display: inline-flex;
  background: none;
  border: none;
  color: var(--stone-900);
  padding: 0.25rem;
}

.site-nav__close {
  display: none;
}

.site-nav__brand {
  display: none;
}

@media (min-width: 64rem) {
  .site-nav__list {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* Mobile nav drawer
   Rendered above the header (and everything else) with an explicit opaque
   background so it never inherits the header's transparent/blurred
   scrolled state or lets page content show through. */
@media (max-width: 63.98rem) {
  .site-nav {
    position: fixed;
    inset: 0;
    height: 100dvh;
    background-color: var(--color-cream);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    padding: 5rem 2rem 2rem;
    z-index: 200;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav__brand {
    display: inline-flex;
    margin-bottom: 2.5rem;
  }

  .site-nav__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .site-nav__link {
    font-size: 1rem;
  }

  .site-nav__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2.75rem;
    height: 2.75rem;
    background: transparent;
    border: 1px solid var(--stone-300);
    border-radius: 999px;
    color: var(--stone-900);
  }

  .site-nav__close span {
    position: relative;
    width: 1.1rem;
    height: 1.1rem;
    display: block;
  }

  .site-nav__close span::before,
  .site-nav__close span::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
  }

  .site-nav__close span::before {
    transform: rotate(45deg);
  }

  .site-nav__close span::after {
    transform: rotate(-45deg);
  }

  .site-nav__close:hover,
  .site-nav__close:focus-visible {
    border-color: var(--stone-900);
    background: var(--stone-100);
  }
}

/* Lock background scrolling while the mobile menu is open. */
body.nav-open {
  overflow: hidden;
}

/* ==========================================================================
   Evening theme (day / evening atmosphere toggle)
   ========================================================================== */

[data-theme='evening'] body {
  background: var(--color-navy);
  color: var(--color-navy-text);
}

[data-theme='evening'] .site-header--scrolled,
[data-theme='evening'] .page-legal .site-header,
[data-theme='evening'] .page-404 .site-header {
  background: rgba(15, 20, 29, 0.92);
}

[data-theme='evening'] .site-nav__link,
[data-theme='evening'] .nav-toggle {
  color: var(--color-navy-text);
}

[data-theme='evening'] .section:not(.section--dark) {
  background: var(--color-navy);
  color: var(--color-navy-text);
}

[data-theme='evening'] .section:not(.section--dark) .eyebrow {
  color: var(--color-gold);
}

[data-theme='evening'] .room-card__tags,
[data-theme='evening'] .why-grid__index {
  color: var(--color-gold);
}

[data-theme='evening'] .why-grid {
  border-color: rgba(197, 160, 89, 0.25);
  background: rgba(197, 160, 89, 0.25);
}

[data-theme='evening'] .why-grid__item {
  background: var(--color-navy);
  color: var(--color-navy-text);
}

[data-theme='evening'] .why-grid__item:hover {
  background: rgba(229, 224, 216, 0.06);
}

[data-theme='evening'] .site-footer,
[data-theme='evening'] .booking-bar__inner,
[data-theme='evening'] .legal {
  background: var(--color-navy);
  color: var(--color-navy-text);
}

@media (max-width: 63.98rem) {
  [data-theme='evening'] .site-nav {
    background-color: var(--color-navy);
    color: var(--color-navy-text);
  }

  [data-theme='evening'] .site-nav__close {
    border-color: rgba(229, 224, 216, 0.3);
    color: var(--color-navy-text);
  }

  [data-theme='evening'] .site-nav__close:hover,
  [data-theme='evening'] .site-nav__close:focus-visible {
    border-color: var(--color-gold);
    background: rgba(229, 224, 216, 0.08);
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 40rem;
  width: 100%;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__image {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(247, 245, 240, 0.7),
    transparent 60%,
    rgba(247, 245, 240, 0.2)
  );
}

.hero__content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 6rem;
}

.hero__inner {
  max-width: var(--max-width);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--space-section-x);
}

.hero__inner > .eyebrow {
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  color: var(--stone-900);
}

.hero__lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--stone-700);
}

.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--stone-500);
}

.hero__scroll span {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.hero__scroll svg {
  animation: bounce 2s infinite;
}

@media (min-width: 64rem) {
  .hero__scroll {
    display: flex;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ==========================================================================
   Generic section layout
   ========================================================================== */

.section {
  position: relative;
  padding: var(--space-section-y) var(--space-section-x);
  background: var(--color-cream);
  color: var(--stone-900);
}

.section--dark {
  background: var(--color-navy);
  color: var(--color-navy-text);
}

.section--dark .eyebrow {
  color: var(--color-gold);
}

.section__inner {
  max-width: var(--max-width);
  margin-inline: auto;
}

.section__title {
  margin-top: 1rem;
  max-width: 48rem;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  line-height: 1.2;
}

.section__divider {
  display: flex;
  justify-content: center;
  padding-block: 3rem;
}

.section__divider::before {
  content: '';
  height: 1px;
  width: 6rem;
  background: var(--stone-400);
  opacity: 0.6;
}

.section__divider--gold::before {
  background: var(--color-gold);
  opacity: 0.6;
}

.two-col {
  display: grid;
  gap: 2.5rem;
}

.two-col p {
  font-size: 1.125rem;
  line-height: 1.6;
}

@media (min-width: 64rem) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
}

.media-col {
  display: grid;
  align-items: center;
  gap: 3rem;
}

.media-col p {
  font-size: 1.125rem;
  line-height: 1.6;
}

.media-col p + p {
  margin-top: 1.5rem;
}

.media-col__image img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 1500ms ease;
}

.media-col__image:hover img {
  transform: scale(1.05);
}

@media (min-width: 64rem) {
  .media-col {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
  .media-col--image-right .media-col__image {
    order: 2;
  }
  .media-col--image-right .media-col__text {
    order: 1;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-cream);
  color: var(--stone-700);
  border-top: 1px solid var(--stone-300);
  padding: 4rem var(--space-section-x) 2rem;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin-inline: auto;
}

.site-footer__grid {
  display: grid;
  gap: 3rem;
}

.site-footer__about p {
  margin-top: 1.25rem;
  max-width: 24rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer__links h3 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--stone-500);
  font-weight: 500;
}

.site-footer__links ul {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__links a {
  font-size: 0.9rem;
  transition: opacity var(--transition-base);
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  opacity: 0.6;
}

.footer-address {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-address a {
  transition: opacity var(--transition-base);
}

.footer-address a:hover,
.footer-address a:focus-visible {
  opacity: 0.6;
}

.site-footer__bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--stone-300);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.75rem;
  opacity: 0.7;
}

@media (min-width: 40rem) {
  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 64rem) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}
