/* Header (transparent over the hero, light when scrolled) + mobile menu + loader. */

.r-header {
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  right: 0;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background-color .35s, border-color .35s, transform .45s var(--r-ease);
}
.r-header__in {
  max-width: var(--r-maxw);
  height: 88px;
  margin: 0 auto;
  padding: 0 max(var(--r-gutter), env(safe-area-inset-right, 0px)) 0 max(var(--r-gutter), env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.r-header__logo { position: relative; display: block; flex: none; width: 170px; height: 67px; transition: transform .3s; }
.r-header__logo:hover { transform: scale(1.04); }
.r-header__logo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .35s; }
.r-header__logo-dark { opacity: 0; }

.r-header__nav { display: flex; gap: 34px; font: 500 15px/18px var(--r-font); color: #f6f1e7; }
.r-header__nav a { position: relative; padding: 6px 0; white-space: nowrap; transition: color .2s; }
.r-header__nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--r-gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--r-ease);
}
.r-header__nav a:hover { color: var(--r-gold-text); }
.r-header__nav a:hover::after { transform: scaleX(1); }

.r-header__right { display: flex; align-items: center; gap: 26px; }
.r-header__contact { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; white-space: nowrap; }
.r-header__phone { font: 600 17px/21px var(--r-font); color: #f6f1e7; transition: color .35s; }
.r-header__hours { font: 400 13px/16px var(--r-font); color: rgba(246, 241, 231, .66); transition: color .35s; }

.r-header__book { background: var(--r-gold-grad); color: var(--r-navy); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }
.r-header__book:hover { filter: brightness(1.08); }

.r-header__burger {
  display: none;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 16px 0 18px;
  border: 1px solid rgba(255, 255, 255, .55) !important;
  border-radius: 22px;
  font: 500 14px/1 var(--r-font);
  color: #fff;
  transition: border-color .3s, color .3s, background-color .3s;
}
.r-header__burger-icon { position: relative; width: 18px; height: 12px; }
.r-header__burger-icon i {
  position: absolute; left: 0; width: 18px; height: 1.5px; border-radius: 1px; background: currentColor;
  transition: transform .35s var(--r-ease), top .35s var(--r-ease);
}
.r-header__burger-icon i:first-child { top: 2px; }
.r-header__burger-icon i:last-child { top: 9px; }

/* Solid (scrolled) state and menu-open state share the light look. */
.r-header.is-solid, .r-menu-open .r-header {
  background: var(--r-cream);
  border-bottom-color: rgba(31, 40, 68, .1);
}
.r-header.is-solid .r-header__logo-gold, .r-menu-open .r-header__logo-gold { opacity: 0; }
.r-header.is-solid .r-header__logo-dark, .r-menu-open .r-header__logo-dark { opacity: 1; }
.r-header.is-solid .r-header__nav { color: var(--r-ink); }
.r-header.is-solid .r-header__nav a:hover { color: #9a7634; }
.r-header.is-solid .r-header__phone, .r-menu-open .r-header__phone { color: var(--r-ink); }
.r-header.is-solid .r-header__hours, .r-menu-open .r-header__hours { color: rgba(31, 40, 68, .6); }
.r-header.is-solid .r-header__book { background: var(--r-navy-grad); color: var(--r-cream); box-shadow: none; }
.r-header.is-solid .r-header__burger, .r-menu-open .r-header__burger { border-color: rgba(31, 40, 68, .14) !important; color: var(--r-ink); }
.r-menu-open .r-header__burger-icon i:first-child { top: 5px; transform: rotate(45deg); }
.r-menu-open .r-header__burger-icon i:last-child { top: 5px; transform: rotate(-45deg); }

/* ---------- Mobile menu panel ---------- */
.r-mnav {
  position: fixed;
  z-index: 65;
  inset: 0;
  padding-top: calc(88px + env(safe-area-inset-top, 0px));
  background: var(--r-cream);
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.r-menu-open .r-mnav { visibility: visible; opacity: 1; transition: opacity .35s ease; }
.r-mnav__in {
  height: 100%;
  max-width: var(--r-maxw);
  margin: 0 auto;
  padding: 24px var(--r-gutter) calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  overflow-y: auto;
}
.r-mnav__list { display: flex; flex-direction: column; gap: 2px; }
.r-mnav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s var(--r-ease), transform .55s var(--r-ease);
}
.r-menu-open .r-mnav__item { opacity: 1; transform: none; transition-delay: calc(.06s * var(--i) + .08s); }
.r-mnav__num, .r-mnav__arrow { flex: none; width: 22px; height: 24px; display: flex; align-items: center; }
.r-mnav__num { font: 500 13px/1 var(--r-font); color: #a9843f; }
.r-mnav__arrow { position: absolute; left: 0; top: 50%; margin-top: -12px; opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .3s var(--r-ease); }
.r-mnav__text {
  font: 300 38px/1.1 var(--r-font-head);
  letter-spacing: -.02em;
  color: var(--r-ink);
  white-space: nowrap;
}
.r-mnav__item:hover .r-mnav__num, .r-mnav__item:focus-visible .r-mnav__num { opacity: 0; }
.r-mnav__item:hover .r-mnav__arrow, .r-mnav__item:focus-visible .r-mnav__arrow { opacity: 1; transform: none; }
.r-mnav__item:hover .r-mnav__text, .r-mnav__item:focus-visible .r-mnav__text {
  background: linear-gradient(158deg, #3a4c9a 0%, #1f2844 71%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.r-mnav__foot { display: flex; flex-direction: column; gap: 12px; }
.r-mnav__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.r-mnav__action {
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 16px;
  border-radius: 16px;
  background: rgba(31, 40, 68, .06);
  font: 500 14px/1 var(--r-font);
  color: var(--r-ink);
  transition: background-color .25s;
}
.r-mnav__action:hover { background: rgba(31, 40, 68, .1); }
.r-mnav__action img { width: 20px; height: 20px; flex: none; }
.r-page .r-mnav__book { width: 100%; height: 56px; font-size: 16px; }
.r-mnav__hours { padding-top: 4px; text-align: center; font: 400 13px/16px var(--r-font); color: rgba(31, 40, 68, .6); }

/* ---------- Breakpoints ---------- */
@media (max-width: 1199px) {
  .r-header__nav, .r-header__book { display: none; }
  .r-header__burger { display: inline-flex; }
}
@media (min-width: 1200px) {
  .r-mnav { display: none; }
}
@media (max-width: 767px) {
  .r-header__in { height: 72px; }
  .r-header__contact { display: none; }
  .r-header__logo { width: 133px; height: 52px; }
  .r-menu-open .r-header__logo, .r-header.is-solid .r-header__logo { width: 140px; height: 55px; }
  .r-mnav { padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
}

/* ---------- Loader ---------- */
.r-loader {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 62.5% 71.4% at 50% 50%, #13204a 0%, #0a1230 70%);
  overflow: hidden;
}
.r-loading .r-loader { display: flex; }
.r-loader.is-gone {
  display: flex;
  pointer-events: none;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--r-hole), #000 calc(var(--r-hole) + 1px));
  mask: radial-gradient(circle at 50% 50%, transparent var(--r-hole), #000 calc(var(--r-hole) + 1px));
  animation: r-loader-portal 1.3s cubic-bezier(.7, 0, .25, 1) both;
}
@property --r-hole { syntax: '<length>'; inherits: false; initial-value: 0px; }
@keyframes r-loader-portal { from { --r-hole: 0px; } to { --r-hole: 150vmax; } }

.r-loader__logo { position: relative; width: min(720px, 88vw); aspect-ratio: 720 / 285; filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .35)); }
.r-loader__logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.r-loader__mount { animation: r-loader-unblur 1.1s ease .2s both; }
.r-loader__word { animation: r-loader-write 1.5s cubic-bezier(.45, .05, .3, 1) .6s both; }
.r-loader__orn { animation: r-loader-orn 1s cubic-bezier(.2, .7, .2, 1) 1.5s both; }
.r-loader__shine {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 244, 214, .55) 50%, transparent 60%) no-repeat;
  background-size: 250% 100%;
  -webkit-mask: var(--r-shine-mask) center / 100% 100% no-repeat;
  mask: var(--r-shine-mask) center / 100% 100% no-repeat;
  mix-blend-mode: screen;
  animation: r-loader-shine 1.2s ease-in-out 2s both;
}
.r-loader.is-gone .r-loader__logo { transition: transform 1.3s cubic-bezier(.7, 0, .25, 1), opacity .6s ease; transform: scale(1.2); opacity: 0; }
@keyframes r-loader-unblur { from { opacity: 0; filter: blur(12px); transform: translateY(6px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes r-loader-write { from { opacity: .2; clip-path: inset(0 100% 0 0); filter: blur(4px); } to { opacity: 1; clip-path: inset(0 0 0 0); filter: blur(0); } }
@keyframes r-loader-orn { from { opacity: 0; clip-path: inset(0 50% 0 50%); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes r-loader-shine { from { background-position: 120% 0; } to { background-position: -20% 0; } }

/* Beat the generic `.r-page button` reset in base.css. */
.r-page .r-header__book { padding: 0 24px; background: var(--r-gold-grad); color: var(--r-navy); }
.r-page .r-header.is-solid .r-header__book { background: var(--r-navy-grad); color: var(--r-cream); }
.r-page .r-header__burger { padding: 0 16px 0 18px; color: #fff; }
.r-page .r-header.is-solid .r-header__burger, .r-menu-open .r-header .r-header__burger { color: var(--r-ink); }
.r-page .r-mnav__book { padding: 0 24px; background: var(--r-navy-grad); color: var(--r-cream); }
.r-page .r-header__book { font: 500 16px/1 var(--r-font); }
.r-page .r-header__burger { font: 500 14px/1 var(--r-font); }
.r-page .r-mnav__book { font: 500 16px/1 var(--r-font); }
/* Beat the generic `.r-page a { color: inherit }` reset in base.css. */
.r-page .r-header__phone { color: #f6f1e7; }
.r-page .r-header.is-solid .r-header__phone, .r-menu-open .r-header .r-header__phone { color: var(--r-ink); }
