/* Header and footer chrome (V9 "header" and "footer" sections). */

/* System fonts sized to Figtree's metrics, so text keeps its line breaks when
   Figtree swaps in (unmatched, the desktop hero shifted the page by 0.19 CLS). */
@font-face {
	font-family: "Figtree Fallback";
	src: local("Arial"), local("Roboto"), local("Helvetica");
	font-weight: 300 500;
	size-adjust: 101%;
	ascent-override: 94.06%;
	descent-override: 24.75%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Figtree Fallback";
	src: local("Arial Bold"), local("Roboto Bold"), local("Helvetica Bold");
	font-weight: 600 900;
	size-adjust: 97%;
	ascent-override: 97.94%;
	descent-override: 25.77%;
	line-gap-override: 0%;
}

/* Elementor pages bring their own width and gutters; the content width would squeeze them. */
.os-flush:has(> .elementor) {
	padding-inline: 0;
}

.os-flush > .elementor,
.os-flush > .os-fx {
	max-width: none;
}

/* Booking wizard: the plugin lays it out for 1180px (form + order summary), not the
   text-page content width. The title lines up with the wizard's own 20px padding. */
main:has(> .wp-block-post-content > .fb-wizard) > :is(.wp-block-post-title, .wp-block-post-content) {
	max-width: 1180px;
}

main:has(> .wp-block-post-content > .fb-wizard) > .wp-block-post-title {
	padding-inline: 20px;
}

/* Two-column range below the wizard's full width: room for the route and date fields. */
@media (min-width: 921px) and (max-width: 1180px) {
	.wp-block-post-content > .fb-wizard {
		grid-template-columns: minmax(0, 1fr) 320px;
	}

	.fb-wizard .fb-leg-cell:has(input[type="date"]) {
		flex: 0 0 140px;
	}
}

/* Affiliate form pages: the tinted band runs edge to edge. */
.os-flush:has(> .os-fx) {
	padding-inline: 0;
}

.os-site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 60;
}

@media screen and (max-width: 600px) {
	/* The admin bar scrolls away below 600px, so the header sticks to the top. */
	.admin-bar .os-site-header {
		top: 0;
	}
}

.os-header {
	/* V9 sets no body line-height: header and footer use the browser's "normal". */
	line-height: normal;
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid #E5EBEB;
}

.os-header__bar.os-header__bar {
	height: var(--wp--custom--header-height);
	gap: clamp(24px, calc(24px + (100vw - 1024px) * .12), 36px);
	flex-wrap: nowrap;
}

.os-header__bar > * {
	margin-block: 0;
}

.os-header__chat,
.os-header__bar > .wp-block-buttons {
	flex-shrink: 0;
}

/* Child selectors outrank the flex-layout reset core prints after this file. */
.os-header__bar > .os-header__chat {
	margin-left: auto;
}

/* V9 keeps the support link and the CTA 14px apart, tighter than the bar gap. */
.os-header__bar > .os-header__chat + .wp-block-buttons {
	margin-left: calc(14px - clamp(24px, calc(24px + (100vw - 1024px) * .12), 36px));
}

.os-header .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 20px;
	font-size: var(--wp--preset--font-size--ui);
	white-space: nowrap;
}

@media (max-width: 1023.98px) {
	/* Hamburger sits after the support link, 14px from it, as in V9. */
	.os-header__bar > .os-header__nav {
		order: 3;
		margin-left: calc(14px - clamp(24px, calc(24px + (100vw - 1024px) * .12), 36px));
	}
}

@media (max-width: 719.98px) {
	.os-header__bar > .os-header__nav {
		margin-left: auto;
	}
}

/* Footer */

.os-footer {
	line-height: normal;
	background: var(--wp--preset--color--surface-soft);
	border-top: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--secondary);
}

.os-footer__cols {
	display: flex;
	flex-wrap: wrap;
	gap: 36px 56px;
}

/* Scoped under .os-footer to outrank core's flow-layout block gap. */
.os-footer .os-footer__cols > *,
.os-footer .os-footer__bottom > *,
.os-footer .os-footer__col > *,
.os-footer .os-footer__payments > * {
	margin-block: 0;
}

.os-footer__brand {
	flex: 1 1 300px;
	min-width: 0;
	max-width: 400px;
}

.os-footer__col {
	flex: 1 1 150px;
	min-width: 0;
}

.os-footer .os-footer__heading {
	margin-bottom: 10px; /* V9: 8px margin + 2px column gap */
	font-size: var(--wp--preset--font-size--ui);
	font-weight: 700;
	line-height: normal;
	letter-spacing: 0;
	color: var(--wp--preset--color--heading);
}

.os-footer .os-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 28px;
	margin-top: 44px;
	padding-top: 22px;
	border-top: 1px solid rgba(14, 47, 52, .12);
}

.os-footer__payments {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.os-footer__secure {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: 4px !important;
	font-size: 13.5px;
	font-weight: 600;
}

.os-footer__secure::before {
	content: "";
	width: 15px;
	height: 15px;
	background: currentColor;
	-webkit-mask: url(../../images/icon-lock.svg) center / contain no-repeat;
	mask: url(../../images/icon-lock.svg) center / contain no-repeat;
}

@media (max-width: 719.98px) {
	/* Room for the booking form's sticky mobile bar. */
	body:has(.os-book__sticky) .os-footer {
		padding-bottom: calc(28px + 72px) !important;
	}
}

/* V9 has no gap between the page content and the footer. */
.wp-site-blocks > footer.wp-block-template-part {
	margin-block-start: 0;
}
