/* Navigation: desktop bar + mobile drawer. Real <a href> links throughout. */

.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: var(--z-nav);
  color: #f4efe5;
  transition: background-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}
.nav--scrolled {
  background: rgb(250 247 241 / 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--color-line);
  color: var(--color-ink);
}
.nav__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.nav__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
  font-family: var(--font-display);
}
/* The hotel's own logo mark replaces the old text wordmark. It is sized from
   its intrinsic ratio (355x95) and constrained by height, so the header height
   stays exactly as --header-h defines it and the layout does not shift. */
.nav__brand img {
  display: block;
  block-size: 2.25rem;
  inline-size: auto;
  max-inline-size: 100%;
  object-fit: contain;
}
/* On the transparent (over-hero) header the mark sits on a dark photograph, so
   a soft light halo keeps its edges readable without recolouring the artwork. */
.nav:not(.nav--scrolled) .nav__brand img {
  filter: drop-shadow(0 1px 3px rgb(0 0 0 / 0.55));
}
@media (min-width: 62em) {
  .nav__brand img { filter: none; }
}
.nav__brand b { font-size: var(--text-md); font-weight: var(--weight-semibold); letter-spacing: 0.01em; }
.nav__brand span { font-size: var(--text-2xs); letter-spacing: 0.34em; text-transform: uppercase; color: var(--color-accent); }
.nav__links {
  display: none;
  align-items: center;
  gap: clamp(var(--space-3), 2vw, var(--space-5));
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  text-decoration: none;
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  padding-block: 0.4em;
  border-block-end: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.nav__links a:hover { border-block-end-color: var(--color-accent); }
.nav__cta { display: none; }
@media (min-width: 62em) {
  .nav__links, .nav__cta { display: inline-flex; }
  .nav__burger { display: none !important; }
  .nav { color: var(--color-ink); background: rgb(250 247 241 / 0.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--color-line); }
}

/* Burger */
.nav__burger {
  inline-size: 2.75rem;
  block-size: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
}
.nav__burger:hover { background: rgb(255 255 255 / 0.12); }
.nav--scrolled .nav__burger:hover { background: rgb(20 40 46 / 0.07); }
.nav__burger span {
  display: block;
  inline-size: 1.35rem;
  block-size: 2px;
  background: currentColor;
  margin-block: 3px;
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: var(--color-ocean-deep);
  color: #f4efe5;
  padding: calc(var(--header-h) + var(--space-5)) var(--gutter) var(--space-7);
  display: none;
  overflow-y: auto;
}
.drawer[data-open="true"] { display: block; }
.drawer__list { display: grid; gap: var(--space-1); }
.drawer__list a {
  display: block;
  padding: var(--space-3) 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  text-decoration: none;
  border-block-end: 1px solid var(--color-line-dark);
}
.drawer__list a:hover { color: #e9c98f; }
.drawer__sub { margin-block: var(--space-2) var(--space-4); display: grid; gap: var(--space-2); font-size: var(--text-sm); color: #c3d4d3; }
.drawer__sub a { text-decoration: none; }
.drawer__sub a:hover { color: #e9c98f; }
.drawer__close {
  position: absolute;
  inset-block-start: var(--space-3);
  inset-inline-end: var(--gutter);
  inline-size: 2.75rem;
  block-size: 2.75rem;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  border-radius: var(--radius-pill);
}
.drawer__close:hover { background: rgb(255 255 255 / 0.1); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nav, .nav__links a, .nav__burger span, .card, .btn { transition: none; }
}
