/* Header + mobile menu  (header.php → template-parts/header/*)
   Options: Clinic Settings → Header & Footer → Header */
.hdr {
	position: fixed; inset: var(--admin-bar) 0 auto; z-index: 60;
	padding-top: env(safe-area-inset-top, 0px);
	color: var(--ink);
	transition: background .35s, color .35s, box-shadow .35s, transform .4s var(--ease-out);
}
/* Over the navy hero: transparent with cream text */
.has-dark-hero .hdr { color: var(--on-navy); }
.has-dark-hero .hdr.scrolled { background: color-mix(in srgb, var(--brand-primary) 72%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
/* Past the hero (or pages without a dark hero): cream glass */
.hdr.solid, .has-dark-hero .hdr.solid, .no-dark-hero .hdr { background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.hdr .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; background: currentColor; display: grid; place-items: center; transition: background .35s; }
.logo-mark .icon { width: 22px; height: 22px; color: var(--brand-primary); }
.hdr.solid .logo-mark .icon, .no-dark-hero .logo-mark .icon, .site-footer .logo-mark .icon { color: var(--bg); }
.logo-text b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; line-height: 1; }
.logo-text small { display: block; font-size: .78rem; opacity: .75; margin-top: 3px; white-space: nowrap; }
.logo-img img { max-height: 52px; width: auto; }
.logo-img .logo-light { display: none; }
.has-dark-hero .hdr:not(.solid) .logo-img:has(.logo-light) .logo-dark { display: none; }
.has-dark-hero .hdr:not(.solid) .logo-img .logo-light { display: block; }

.pill-nav { display: flex; gap: 4px; padding: 6px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); list-style: none; margin: 0; }
.pill-nav a { display: block; padding: 9px 16px; border-radius: 999px; text-decoration: none; font-size: .95rem; font-weight: 500; white-space: nowrap; transition: background .25s; }
.pill-nav a:hover, .pill-nav .current-menu-item > a { background: color-mix(in srgb, currentColor 12%, transparent); }
.hdr-end { display: flex; align-items: center; gap: 12px; }
.hdr .btn-book { min-height: 46px; padding: 0 22px; background: var(--cream); color: var(--brand-primary); }
.hdr.solid .btn-book, .no-dark-hero .hdr .btn-book { background: var(--btn); color: var(--btn-text); }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; align-items: center; justify-content: center; cursor: pointer; }
.burger .icon { width: 20px; height: 20px; }
.burger .i-close, .menu-open .burger .i-open { display: none; }
.menu-open .burger .i-close { display: block; }
@media (max-width: 1080px) { .hdr-nav { display: none; } .burger { display: inline-flex; } }
@media (max-width: 520px) { .hdr .btn-book { display: none; } .logo-text small { display: none; } }

/* Mobile menu panel */
.mmenu {
	position: fixed; inset: 0; z-index: 55; background: var(--bg); color: var(--ink);
	padding: calc(var(--header-h) + var(--admin-bar) + env(safe-area-inset-top, 0px) + 24px) 0 calc(32px + env(safe-area-inset-bottom, 0px));
	overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-12px);
	transition: opacity .35s, transform .45s var(--ease-out), visibility .35s;
}
.menu-open .mmenu { opacity: 1; visibility: visible; transform: none; }
.menu-open { overflow: hidden; }
.menu-open .hdr { background: var(--bg) !important; color: var(--ink) !important; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .hdr .logo-mark .icon { color: var(--bg); }
.mmenu-in { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 100%; }
.mmenu-list { list-style: none; margin: 0; padding: 0; }
.mmenu-list a { display: block; padding: 10px 0; font-family: var(--font-head); font-weight: var(--heading-weight); font-size: clamp(2rem, 8vw, 2.8rem); letter-spacing: -.03em; line-height: 1.1; text-decoration: none; border-bottom: 1px solid var(--line); }
.mmenu-foot { display: grid; gap: 18px; }
.mmenu-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.mmenu .status { color: var(--muted); }

/* Header button switched off in settings */
.no-header-btn .hdr .btn-book { display: none; }
