/* Skip link, announcement bar and site header with mobile menu (WEB-5, WEB-8.1). */

.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  padding: .75rem 1rem;
  background: var(--ink); color: var(--on-dark);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: .5rem; }

/* ---------- Announcement bar ---------- */
/* Sand band, always on; only the link reacts to hover (2026-10-13) */
.announce {
  padding-block: .625rem;
  background: var(--soft);
  font-size: var(--text-sm); text-align: center;
}
.announce-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .25rem 1rem; }
.announce-label { display: inline-flex; align-items: center; gap: .5rem; }
.announce-dot { width: .4375rem; height: .4375rem; border-radius: 50%; background: var(--spark); }
.announce a {
  font-weight: 600; color: var(--primary);
  text-decoration-thickness: 1px; text-underline-offset: .25em;
  transition: color var(--fast) var(--ease), text-decoration-thickness var(--fast) var(--ease);
}
.announce a:hover,
.announce a:focus-visible { color: var(--primary-deep); text-decoration-thickness: 2px; }

/* was until 2026-10-13: plain bar with a hairline, then the whole bar turned dark on hover
.announce {
  padding-block: .625rem;
  border-bottom: var(--rule);
  font-size: var(--text-sm); text-align: center;
}
.announce a { font-weight: 600; color: var(--primary); }
.announce { transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.announce:hover,
.announce:focus-within { background: var(--ink); color: var(--on-dark); border-bottom-color: var(--ink); }
.announce:hover a,
.announce:focus-within a { color: var(--on-dark); }
*/

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: var(--rule-strong); /* always on: the line that divides the nav bar from the page (2026-10-13) */
  /* was until 2026-10-13: border only after scrolling (WEB-5.4)
  border-bottom: 1px solid transparent;
  transition: border-color var(--fast);
  */
}
/* was until 2026-10-13: .site-header.is-scrolled { border-bottom-color: var(--line); } */

.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; min-height: 4.5rem; }

.brand {
  margin-right: auto;
  font: 600 1.375rem/1 var(--display); letter-spacing: -.02em;
  text-decoration: none;
}

.nav-list { display: flex; flex-wrap: wrap; gap: .25rem 2rem; }
.nav-list a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 500; text-decoration: none; }
.nav-list a:hover { text-decoration: underline; text-underline-offset: .3em; }

.menu-toggle { display: none; }

/* ---------- Mobile menu (only when JavaScript runs; without it the links simply wrap) ---------- */
@media (max-width: 55rem) {
  .js .menu-toggle {
    display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: 1rem;
    border: var(--rule-strong); border-radius: var(--radius-control);   /* was until 2026-11-02 (Krishna: round every button): var(--radius) */
    background: transparent; color: var(--ink);
    font: 600 var(--text-sm)/1 var(--body);
  }
  .js .nav-list {
    display: none;
    position: absolute; inset: 100% 0 auto;
    flex-direction: column; gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--bg); border-bottom: var(--rule);
  }
  .js .nav-list.is-open { display: flex; }
  .js .nav-list a { display: flex; border-bottom: var(--rule); }
}

@media (max-width: 35rem) {
  .header-cta { display: none; } /* the announcement bar and hero carry Book a call on phones */
}

/* 2026-11-04 (Krishna: change the Menu button to a burger menu). Three ink lines in a round 48px tap area, no border;
   when the menu is open (aria-expanded="true") the top and bottom lines turn into an X and the middle one fades.
   The word "Menu" stays for screen readers (.sr-only). Was: a pill button with the word Menu (above). */
@media (max-width: 55rem) {
  .js .menu-toggle {
    justify-content: center; width: var(--tap); height: var(--tap); padding: 0; margin-right: -.75rem;
    border: 0; border-radius: 50%; cursor: pointer;
  }
  .burger { position: relative; display: block; width: 1.5rem; height: 1rem; }
  .burger span {
    position: absolute; left: 0; width: 100%; height: .125rem; border-radius: .125rem; background: currentColor;
    transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease), top var(--fast) var(--ease);
  }
  .burger span:nth-child(1) { top: 0; }
  .burger span:nth-child(2) { top: calc(50% - .0625rem); }
  .burger span:nth-child(3) { top: calc(100% - .125rem); }
  .menu-toggle[aria-expanded="true"] .burger span:nth-child(1) { top: calc(50% - .0625rem); transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .burger span:nth-child(3) { top: calc(50% - .0625rem); transform: rotate(-45deg); }
}
@media (prefers-reduced-motion: reduce) { .burger span { transition: none; } }
@media (max-width: 55rem) and (hover: hover) { .js .menu-toggle:hover { background: var(--soft); } }   /* mouse only, so a tap leaves no circle behind */

/* 2026-11-04 (Krishna: make the nav bar a little narrower, it takes too much space). Phones and tablets: the bar is
   56px tall (was 72px, min-height 4.5rem above) and the burger's tap area 44px (was 48px), still a comfortable target. */
@media (max-width: 55rem) {
  .header-inner { min-height: 3.5rem; }
  .js .menu-toggle { width: 2.75rem; height: 2.75rem; min-height: 0; margin-right: -.625rem; }
}
/* same day: the "Now booking" bar above it took two to three lines on phones (72 to 92px). On phones it is one line,
   "Now booking" and "Book a call", the middle sentence only from 35rem up; slimmer padding. */
@media (max-width: 35rem) {
  .announce { padding-block: .375rem; }
  .announce-inner { flex-wrap: nowrap; gap: .75rem; }
  .announce-text { display: none; }
}
/* same day (Krishna: still too much padding in the nav bar): 48px tall on phones and tablets (was 56px), the burger's
   tap area 40px (above the 24px minimum), the name a touch smaller so it sits comfortably in the slimmer bar */
@media (max-width: 55rem) {
  .header-inner { min-height: 3rem; }
  .js .menu-toggle { width: 2.5rem; height: 2.5rem; margin-right: -.5rem; }
  .brand { font-size: 1.25rem; }
}
/* same day, third pass (Krishna: there is still much padding): the bar 44px on phones and tablets (was 48px), the burger
   36px (still above the 24px minimum), and the Now booking line slimmer too */
@media (max-width: 55rem) {
  .header-inner { min-height: 2.75rem; }
  .js .menu-toggle { width: 2.25rem; height: 2.25rem; margin-right: -.375rem; }
  .header-cta { min-height: 2.25rem; padding-block: .375rem; }
}
@media (max-width: 35rem) { .announce { padding-block: .25rem; } }
/* same day, fourth pass (Krishna: still too much padding in the nav bar on mobile): the bar 40px on phones, just the
   burger's height plus a hair, and the open menu tighter too (rows 44px, was 48px; less space under the last link) */
@media (max-width: 35rem) {
  .header-inner { min-height: 2.5rem; }
  .js .nav-list { padding: 0 var(--gutter) .75rem; }
  .js .nav-list a { min-height: 2.75rem; }
}
