/*
 * Site header built in Elementor as an Ultimate Addons header template.
 * Layout, colours and type come from the Elementor template's own controls,
 * and the navigation is the FKA Mega Menu widget (assets/css/mega-menu.css).
 * The header container uses the shared `fka-section` layout (theme.css), so
 * its background is full width and the logo, menu and button sit in the
 * shared content box.
 * These rules cover only what those controls cannot express, and every rule
 * is scoped to the container with the `fka-site-header` CSS class.
 */

/* Keep the header, and the menu panels positioned against it, above the page content. */

.e-con.fka-site-header {
	--z-index: 100;
}

/* Logo: allow the Image widget to shrink on narrow phones instead of overflowing. */

.fka-site-header .fka-site-header__logo {
	min-width: 0;
}

.fka-site-header .fka-site-header__logo img {
	display: block;
}

.fka-site-header .elementor-widget-image a:focus-visible,
.fka-site-header .fka-book-tour .elementor-button:focus-visible {
	outline: 2px solid var(--fka-color-blue);
	outline-offset: 3px;
}

@media (min-width: 1280px) {
	.e-con.fka-site-header .fka-site-header__logo.elementor-widget-image img {
		width: 230px;
	}
}

/*
 * Narrow desktops (1025px to 1279px): Elementor Free has no breakpoint between
 * tablet and desktop, so spacing is tightened here to keep the menu on one
 * line. The shared gutter narrows at the same width (theme.css). The
 * selectors are deliberately more specific than Elementor's generated
 * per-element rules.
 */

@media (min-width: 1025px) and (max-width: 1279px) {
	.e-con.e-flex.e-parent.fka-site-header {
		--gap: 0px 16px;
		--row-gap: 0px;
		--column-gap: 16px;
	}

	.e-con.fka-site-header .fka-site-header__logo.elementor-widget-image img {
		width: 180px;
	}

	.e-con.fka-site-header .fka-book-tour.elementor-widget-button .elementor-button {
		padding: 13px 16px;
		font-size: 13px;
	}
}

/*
 * Longer primary labels (Our Commitment to Child Safety, Come Join Our Team)
 * need slightly tighter item padding so the row stays inside the 1440px box.
 */
@media (min-width: 1280px) {
	.fka-site-header .fka-mega-menu .menu > .menu-item > a,
	.fka-site-header .elementor-nav-menu--main .menu-item > a {
		padding-inline: 0.55rem;
		font-size: 14px;
	}
}

@media (min-width: 1440px) {
	.fka-site-header .fka-mega-menu .menu > .menu-item > a,
	.fka-site-header .elementor-nav-menu--main .menu-item > a {
		padding-inline: 0.7rem;
		font-size: 15px;
	}
}

/* Very narrow phones: drop the decorative heart so the logo keeps a legible size. */

@media (max-width: 359px) {
	.fka-site-header .fka-book-tour .elementor-button-icon {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fka-site-header .elementor-button {
		transition: none !important;
	}
}
