/* Header: top bar, sticky navigation bar, dropdowns, search, mobile menu. */

/* ---- Top bar (Deep Teal) ---- */
.topbar { background: var(--c-deep-teal); color: var(--c-white); border-bottom: 3px solid var(--c-teal); }
.topbar__inner {
	max-width: calc(var(--content-max) + clamp(40px, 10vw, 128px));
	margin: 0 auto;
	padding: 6px var(--gutter);
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	align-items: center;
	justify-content: space-between;
}
.topbar__phones { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; font-size: var(--fs-14); margin-left: auto; }
.topbar__phone {
	color: var(--c-white);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	text-decoration: underline;
	white-space: nowrap;
}
.topbar__phone svg { flex: none; }
.topbar__phone:hover { color: var(--c-cream); }
.topbar__sep { color: var(--c-teal); }

/* "Where would you like to start?" */
.start-menu { position: relative; }
.start-menu__toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: var(--c-white);
	font: 600 var(--fs-14)/1 var(--font-heading);
	min-height: 44px;
	padding: 0 2px;
}
.start-menu__toggle:hover { color: var(--c-yellow); }
.start-menu__pin {
	flex: none;
	width: 26px; height: 26px;
	border-radius: var(--r-pill);
	background: var(--c-yellow);
	color: var(--c-black);
	display: grid;
	place-items: center;
}
.start-menu__label { text-decoration: underline; text-underline-offset: 3px; }
.start-menu__panel { position: absolute; top: 100%; left: 0; padding-top: 8px; min-width: 320px; z-index: 120; }
.start-menu__card {
	list-style: none;
	margin: 0;
	background: var(--c-cream);
	color: var(--c-black);
	border: 1px solid var(--c-line-soft);
	border-radius: 20px 20px 20px 6px;
	box-shadow: var(--shadow-start);
	padding: 10px;
}
.start-menu__card a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 14px;
	color: var(--c-black);
	text-decoration: none;
	font: 600 var(--fs-15)/1.35 var(--font-heading);
	min-height: 52px;
}
.start-menu__card a:hover { background: var(--c-white); color: var(--c-black); }
.start-menu__icon { flex: none; width: 40px; height: 40px; border-radius: var(--r-pill); display: grid; place-items: center; }

/* ---- Navigation bar (Cream, sticky) ---- */
.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	background: var(--c-cream);
	border-bottom: 1px solid var(--c-line);
	/* box-shadow: var(--shadow-header); */
}
body.scrolled .site-header { box-shadow: var(--shadow-header); }
.site-header__inner {
	max-width: calc(var(--content-max) + clamp(40px, 10vw, 128px));
	margin: 0 auto;
	padding: 10px var(--gutter);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px clamp(12px, 2.4vw, 24px);
}
.site-header__logo { display: block; flex: none; padding: 2px; }
.site-header__logo-img { width: clamp(104px, 26vw, 144px); height: auto; }

.primary-nav { display: flex; align-items: center; justify-content: center; flex: 1 1 auto; }
.primary-nav[hidden] { display: none; }
.primary-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.primary-nav__item { position: relative; }
.primary-nav__link {
	background: transparent;
	font: 600 var(--fs-14)/1 var(--font-heading);
	letter-spacing: -.01em;
	color: var(--c-black);
	min-height: 48px;
	padding: 0 8px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	border-radius: 10px;
	white-space: nowrap;
	text-decoration: none;
}
.primary-nav__link:hover { background: var(--c-nav-hover); color: var(--c-black); }
.primary-nav__panel { position: absolute; top: 100%; left: 0; z-index: 300; padding-top: 10px; min-width: 300px; }
.primary-nav__item:first-child .primary-nav__panel { min-width: 340px; }
.primary-nav__item:last-child .primary-nav__panel { left: auto; right: 0; }
.primary-nav__menu {
	list-style: none;
	margin: 0;
	background: var(--c-white);
	border: 1px solid var(--c-line-soft);
	border-radius: 20px 20px 20px 6px;
	box-shadow: var(--shadow-menu);
	padding: 10px;
}
.primary-nav__menu a {
	display: block;
	padding: 11px 14px;
	border-radius: 12px;
	color: var(--c-black);
	text-decoration: none;
	font: 600 var(--fs-16)/1.4 var(--font-heading);
}
.primary-nav__menu a:hover { background: var(--c-cream); color: var(--c-deep-ochre); }

/* Search: replaces the navigation while open */
.search-form { display: flex; align-items: center; gap: 10px; }
.search-form--header { flex: 1 1 auto; max-width: 640px; }
.search-form[hidden] { display: none; }
.search-form__input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 48px;
	border: 2px solid var(--c-black);
	border-radius: var(--r-pill);
	background: var(--c-white);
	padding: 0 18px;
	font-size: var(--fs-16);
}
.search-form__close {
	flex: none;
	width: 48px; height: 48px;
	border-radius: var(--r-pill);
	border: 2px solid var(--c-black);
	background: transparent;
	color: var(--c-black);
	cursor: pointer;
	display: grid;
	place-items: center;
}
.search-form__close:hover { background: var(--c-black); color: var(--c-cream); }
.search-form__submit {
	flex: none;
	width: 48px; height: 48px;
	border-radius: var(--r-pill);
	border: 0;
	background: var(--c-black);
	color: var(--c-cream);
	cursor: pointer;
	display: grid;
	place-items: center;
}

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-actions__search {
	width: 44px; height: 44px;
	border-radius: var(--r-pill);
	border: 1px solid var(--c-black);
	background: transparent;
	color: var(--c-black);
	cursor: pointer;
	display: grid;
	place-items: center;
}
.header-actions__search[hidden] { display: none; }
.header-actions__search:hover { background: var(--c-black); color: var(--c-cream); }
.header-actions__contact {
	background: var(--c-deep-teal);
	color: var(--c-white);
	font: 600 var(--fs-15)/1 var(--font-ui);
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid var(--c-deep-teal);
	border-radius: var(--r-pill);
	min-height: 44px;
	padding: 0 20px;
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}
.header-actions__contact:hover { background: var(--c-contact-hover); color: var(--c-white); }
.header-actions__referral,
.header-mobile__referral {
	background: var(--c-yellow);
	color: var(--c-black);
	font: 700 var(--fs-15)/1.45 var(--font-ui);
	text-transform: uppercase;
	text-decoration: none;
	border-radius: var(--r-pill);
	min-height: 44px;
	padding: 0 20px;
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}
.header-actions__referral:hover,
.header-mobile__referral:hover { background: var(--c-warm-gold); color: var(--c-black); }

/* Phone and tablet header (below 1240px, the mockup's switch point) */
.header-mobile { display: none; }
.header-mobile__referral {
	min-height: 48px;
	padding: 0 clamp(12px, 3.4vw, 18px);
	justify-content: center;
	text-align: center;
	line-height: 1.15;
	white-space: normal;
	flex: 0 1 auto;
	min-width: 0;
}
.header-mobile__menu {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--c-black);
	color: var(--c-cream);
	border: 0;
	border-radius: var(--r-pill);
	min-height: 48px;
	padding: 0 clamp(13px, 3.6vw, 20px);
	font: 600 var(--fs-16)/1 var(--font-heading);
	cursor: pointer;
	flex: none;
}
.header-mobile__menu svg { flex: none; }

.mobile-nav {
	background: var(--c-cream);
	border-top: 1px solid var(--c-line);
	padding: 14px var(--gutter) 22px;
	max-height: 70vh;
	overflow: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav .search-form { margin-bottom: 12px; }
.mobile-nav__section {
	width: 100%;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--c-line-soft);
	cursor: pointer;
	font: 600 var(--fs-18)/1 var(--font-heading);
	color: var(--c-black);
	min-height: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-align: left;
}
.mobile-nav__panel { padding: 6px 0 10px 14px; border-bottom: 1px solid var(--c-line-soft); }
.mobile-nav__panel[hidden] { display: none; }
.mobile-nav__panel ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav__panel a,
.mobile-nav__link {
	display: flex;
	align-items: center;
	min-height: 48px;
	color: var(--c-black);
	font: 600 var(--fs-16)/1.4 var(--font-heading);
}
.mobile-nav__contact {
	display: flex;
	align-items: center;
	min-height: 56px;
	color: var(--c-black);
	text-decoration: none;
	font: 600 var(--fs-18)/1 var(--font-heading);
}

/*
 * Phones and tablets: logo, Make a referral and Menu on one row, as mocked
 * (84px header, 104px logo at 390). The referral button's text wraps before
 * the row does.
 */
@media (max-width: 1239.98px) {
	.primary-nav,
	.header-actions,
	.search-form--header { display: none !important; }
	.site-header__inner { flex-wrap: nowrap; min-height: 83px; }
	.header-mobile { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 1 1 auto; min-width: 0; }
}
/*
 * Desktop: search, Contact and Make a referral share the nav row, ending at the
 * 1360px grid edge at 1440. Nav link padding (8px to 6px) and the gap between
 * logo, nav and actions (24px to 16px) are tightened to fit. Below about 1420px
 * the actions wrap under the logo as in the mockup; the header stays 160px
 * either way (brief 4.3, L6).
 */
@media (min-width: 1240px) {
	.mobile-nav { display: none !important; }
	.site-header__inner { min-height: 159px; align-content: center; column-gap: 16px; }
	.primary-nav__link { padding: 0 6px; }
}
/* GIFSA asked for a bigger logo (6 Oct). 160px is the most that keeps one row at 1440; below that the
 * actions wrap (as mocked) and the 144px logo keeps the header at 160px. */
@media (min-width: 1440px) {
	.site-header__logo-img { width: 160px; }
}
@media (max-width: 500px) {
	.header-mobile__menu-label { display: none; }
}

/* Current section and page (from the mockup) */
.primary-nav__link.is-current-section { background: var(--c-nav-hover); }
.primary-nav__menu a[aria-current="page"] { color: var(--c-deep-ochre); background: var(--c-cream); font-weight: 700; }
.mobile-nav__panel a[aria-current="page"],
.mobile-nav__link[aria-current="page"],
.mobile-nav__section.is-current-section { color: var(--c-deep-ochre); font-weight: 700; }




/* ---- Floating "Where would you like to start?" panel (the mockup's wayfinder) ----
 * Bottom left; hidden until the reader scrolls past the opening section
 * (assets/js/navigation.js). On narrow (< 620px) or short (< 760px) screens the
 * launcher is a round icon button, docked bottom right when there is width,
 * as in the mockup. The panel's buttons are 44px (A9; the mockup's are 36px). */
.wayfinder {
	position: fixed;
	left: clamp(12px, 2vw, 24px);
	bottom: clamp(12px, 2vw, 24px);
	z-index: 250;
	font-family: var(--font-heading);
}
.wayfinder[hidden] { display: none; }
.wayfinder__launcher {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: var(--c-deep-teal);
	color: var(--c-white);
	border: 0;
	border-radius: var(--r-pill);
	min-height: 56px;
	padding: 0 22px 0 10px;
	font: 700 var(--fs-15)/1.45 var(--font-ui);
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: var(--shadow-start);
}
.wayfinder__launcher[hidden] { display: none; }
.wayfinder__launcher:hover { background: var(--c-contact-hover); }
.wayfinder__pin {
	flex: none;
	width: 36px; height: 36px;
	border-radius: var(--r-pill);
	background: var(--c-yellow);
	color: var(--c-black);
	display: grid;
	place-items: center;
}
.wayfinder__panel {
	width: min(320px, calc(100vw - 32px));
	background: var(--c-cream);
	color: var(--c-black);
	border-radius: 26px 26px 26px 8px;
	box-shadow: var(--shadow-start);
	overflow: hidden;
}
.wayfinder__head {
	background: var(--c-deep-teal);
	color: var(--c-white);
	padding: 10px 10px 10px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.wayfinder__title { margin: 0; font: 700 var(--fs-14)/1.35 var(--font-heading); }
.wayfinder__tools { display: flex; gap: 6px; flex: none; }
.wayfinder__tool {
	width: 44px; height: 44px;
	border-radius: var(--r-pill);
	border: 1px solid var(--c-white);
	background: transparent;
	color: var(--c-white);
	cursor: pointer;
	display: grid;
	place-items: center;
}
.wayfinder__tool:hover { background: var(--c-contact-hover); }
.wayfinder__list { list-style: none; margin: 0; padding: 8px; }
.wayfinder__list a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 16px;
	color: var(--c-black);
	text-decoration: none;
	font: 600 var(--fs-15)/1.35 var(--font-heading);
	min-height: 56px;
}
.wayfinder__list a:hover { background: var(--c-white); color: var(--c-black); }
.wayfinder__icon { flex: none; width: 40px; height: 40px; border-radius: var(--r-pill); display: grid; place-items: center; }

@media (max-width: 619.98px), (max-height: 759.98px) {
	.wayfinder__launcher { width: 56px; height: 56px; padding: 0; justify-content: center; }
	.wayfinder__launcher .wayfinder__pin { width: 38px; height: 38px; }
	.wayfinder__label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
}
/* @media (max-height: 759.98px) and (min-width: 700px) {
	.wayfinder { left: auto; right: clamp(12px, 2vw, 24px); }
} */
@media print {
	.wayfinder { display: none !important; }
}
/* Phones (Simon, 9 Oct 2026): the top bar was 153px (start menu and both numbers on three lines). On phones it is one
 * row of two call links (town name visible, number read out by screen readers); the "Where would you like to start?"
 * menu is the floating launcher, shown from the top of the page on phones (navigation.js). */
@media (max-width: 767.98px) {
	.topbar .start-menu { display: none; }
	.topbar__inner { padding-block: 2px; }
	.topbar__phones { margin: 0 auto; flex-wrap: nowrap; gap: 0 22px; justify-content: center; font-size: var(--fs-15, .9375rem); }
	.topbar__sep { display: none; }
	.topbar__number { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
}
