/* --- Header ------------------------------------------------------------- */

.topbar {
  background: var(--pink);
  color: var(--white);
  font-size: 0.875rem;
}
.topbar .shell {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  align-items: center;
  justify-content: center;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}
.topbar a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
/* Pushes the social links to the right edge on wide viewports and lets them fall
 * back into the centred flow when the bar wraps on a phone. */
.topbar-social {
  display: inline-flex;
  gap: var(--space-3);
  align-items: center;
}
@media (min-width: 700px) {
  .topbar .shell {
    justify-content: flex-start;
  }
  .topbar-social {
    margin-left: auto;
  }
}

/* Sticky, per the client's developer notes. `position: sticky` rather than a
 * scroll listener — the browser does this on the compositor, a JS handler would
 * run on every scroll frame for the same result. */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  /* A soft shadow rather than a 1px rule. The rule drew a hard line straight
   * across the top of the hero, which is the same boxed-in look the wave at the
   * foot of the band removes. */
  box-shadow: 0 1px 12px rgba(51, 51, 51, 0.06);
}
.masthead .shell {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

/* The lockup is her actual logo file at 1024x425 — see the note in base.html.
 * Sized by height with `width: auto` so the ratio is exact and the header cannot
 * reflow while it decodes. Scaling a 425px-tall master down is always sharp,
 * including on a 3x display.
 *
 * It is the brand, and on a local service site the brand IS the trust signal —
 * so it gets real presence rather than being tucked into a corner. 92px puts the
 * wordmark at roughly the same optical weight as the navigation beside it. */
.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  flex: none;
}
.wordmark img {
  height: 92px;
  width: auto;
  display: block;
}

/* --- Navigation ---------------------------------------------------------- */

.nav {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}

/* `:not(.btn)` is load-bearing. Without it this rule's `padding: … 0` overrides
 * the button's own horizontal padding, which collapses "Book Now" into a pill
 * barely wider than its text. A nav link and a nav button are different
 * components that happen to share a tag. */
.nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover,
.nav a:not(.btn)[aria-current="page"] {
  color: var(--pink-text);
  border-bottom-color: var(--pink);
}

.masthead-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: none;
}

/* The mobile menu is <details>/<summary>: open/closed state the browser already
 * tracks, keyboard-operable and screen-reader-announced for free. A JS toggle
 * would re-implement all of that (root §3.8 — native platform first). */
.nav-toggle {
  display: none;
}
.nav-toggle > summary {
  /* BOTH of these are required to suppress the disclosure triangle: Firefox and
   * Safari honour `list-style`, Chrome needs the pseudo-element. Missing either
   * leaves a stray ▶ beside the hamburger. */
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}
.nav-toggle > summary::marker,
.nav-toggle > summary::-webkit-details-marker {
  display: none;
  content: "";
}

/* Below this the five links stop fitting beside the lockup and the button. The
 * value is where THIS layout breaks, measured — not a device name. */
@media (max-width: 1040px) {
  .nav-toggle {
    display: block;
  }
  .masthead .shell {
    position: relative;
  }
  .masthead .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    padding: var(--space-2) var(--space-4) var(--space-4);
    box-shadow: 0 12px 24px rgba(51, 51, 51, 0.12);
  }
  .masthead-actions:has(.nav-toggle[open]) ~ .nav {
    display: flex;
  }
  .masthead .nav a:not(.btn) {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--line);
  }
  .masthead .nav a:not(.btn):last-child {
    border-bottom: 0;
  }
  .masthead .nav a:not(.btn)[aria-current="page"] {
    border-bottom-color: var(--line);
    color: var(--pink-text);
  }
  .wordmark img {
    height: 64px;
  }
}

@media (max-width: 560px) {
  .wordmark img {
    height: 52px;
  }
}

/* The nav follows the actions in the DOM so the button can precede the toggle on
 * a phone; put it back in reading order on a wide screen. */
@media (min-width: 1041px) {
  .masthead .shell {
    justify-content: flex-start;
  }
  .masthead .nav {
    margin-left: auto;
  }
  .masthead-actions {
    margin-left: var(--space-8);
  }
}

/* The masthead button is the same component one notch down, so it sits inside a
 * 76px header without dominating it. */
.masthead .btn {
  min-height: 44px;
  padding: 0 var(--space-6);
  font-size: 0.9375rem;
}
