/* ==========================================================================
   Header — skeuomorphic sticky bar
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* Transparent, overlaying the hero — reads as part of it */
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* Condenses into a clean flat bar once scrolled (or menu open) */
.site-header.is-stuck {
  background-color: rgba(246, 240, 230, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* While the full-page menu is open, drop the backdrop-filter — otherwise it
   becomes the containing block for the fixed overlay and clips it to the bar */
.site-header.menu-open {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* With the menu open: keep only the close button — hide the CTA and the logo */
.site-header.menu-open .site-header__actions .btn,
.site-header.menu-open .site-header__logo {
  display: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.site-header__logo {
  flex-shrink: 0;
}

.site-header__logo img {
  display: block;
  height: 30px;
  width: auto;
}

/* Nav links */
.site-header__nav ul {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 0; /* links sit flush against each other */
}

.site-header__nav li {
  display: flex;
  align-items: stretch;
}

/* Full-height, full-bleed click areas */
.site-header__nav a:not(.btn) {
  display: flex;
  align-items: center;
  padding: 0 1.05rem;
  color: var(--colour-text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 0;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-header__nav a:not(.btn):hover,
.site-header__nav a:not(.btn):focus {
  color: var(--colour-accent);
  background-color: rgba(30, 122, 84, 0.12);
  text-decoration: none;
}

/* Keep the CTA at its natural size, set apart from the flush links */
.site-header__nav-cta {
  align-items: center;
  margin-left: 0.75rem;
}

/* Mobile-only actions: single booking CTA + hamburger */
.site-header__actions {
  display: none;
  align-items: center;
  gap: 0.6rem;
}

/* Matches the glossy button keys and stretches to their height */
.site-header__toggle {
  align-self: stretch;
  aspect-ratio: 1;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: var(--radius);
  background-image: linear-gradient(180deg, #ffffff 0%, #ece6d8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 3px 0 rgba(0, 0, 0, 0.24);
}

.site-header__toggle:active {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.site-header__toggle-bars,
.site-header__toggle-bars::before,
.site-header__toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--colour-text);
}

.site-header__toggle-bars {
  position: relative;
  transition: background 0.2s ease;
}

.site-header__toggle-bars::before,
.site-header__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  transition: transform 0.25s ease;
}

.site-header__toggle-bars::before { top: -6px; }
.site-header__toggle-bars::after  { top: 6px; }

/* Hamburger → X when open */
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bars {
  background: transparent;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---- Mobile ---- */
@media (max-width: 1200px) {
  /* Give the mobile bar a flat, solid background */
  .site-header {
    background-color: rgba(246, 240, 230, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  .site-header__logo {
    position: relative;
    z-index: 2;
  }

  /* Smaller logo on mobile */
  .site-header__logo img {
    height: 24px;
  }

  .site-header__actions {
    display: flex;
    position: relative;
    z-index: 2; /* X + CTA stay above the overlay */
    margin-left: auto; /* keep the close button top-right even when logo is hidden */
  }

  /* Full-page overlay menu */
  .site-header__nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--colour-bg);
    background-image: url("../../../img/paper.svg");
    background-size: 360px 360px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .site-header__nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header__nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
  }

  .site-header__nav li {
    display: block;
  }

  /* Large centered links, no hover treatment */
  .site-header__nav a:not(.btn) {
    display: block;
    padding: 0.25rem 0.75rem;
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 600;
    color: var(--colour-text);
  }

  .site-header__nav a:not(.btn):hover,
  .site-header__nav a:not(.btn):focus {
    color: var(--colour-text);
    background: transparent;
  }

  /* Single booking CTA lives in .header__actions on mobile */
  .site-header__nav-cta {
    display: none;
  }
}


/* Subpages (blog, privacy) have no hero — the bar sits in flow and stays solid */
.subpage .site-header {
  position: sticky;
  background-color: rgba(246, 240, 230, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
