/*
 * Milfa Travel — homepage top (header + hero), matching homepagetop.png.
 *
 * Loaded on the front page only (milfa_home_top_styles). Pairs with
 * milfa_home_header_html() in header.php and the hero overlay printed by
 * page_f.php. Sections below the hero are left as they were, apart from
 * collapsing the empty space under NEWS & UPDATE.
 */

body.home {
	--mh-red: #e3141b;
	--mh-ink: #111111;
	--mh-font: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* ------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------ */

body.home .header_style_wrapper {
	position: relative;
	z-index: 20;
	background: #fff;
	height: auto !important;
}

body.home .milfa-hh {
	background: #fff;
	font-family: var(--mh-font);
}

body.home .milfa-hh-inner {
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	grid-template-areas:
		"logo  .    phone phone"
		"nav   nav  nav   quote";
	align-items: center;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 28px 0 34px;
}

body.home .milfa-hh-row {
	display: contents;
}

/* Logo */
body.home .milfa-hh-logo {
	grid-area: logo;
	display: block;
	align-self: start;
	margin: 4px 0 0;
	line-height: 0;
}

body.home .milfa-hh-logo img {
	display: block;
	width: 340px;
	max-width: 100% !important;
	height: auto;
}

body.home .milfa-hh-logo span {
	font: 700 34px/1.2 var(--mh-font);
	color: var(--mh-red);
}

/* Phone numbers */
body.home .milfa-hh-phone {
	grid-area: phone;
	justify-self: end;
	align-self: start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 14px 52px 0 0;
	color: var(--mh-ink) !important;
	font: 700 19px/1.2 var(--mh-font);
	letter-spacing: 0.1px;
	text-decoration: none;
	white-space: nowrap;
}

body.home .milfa-hh-phone svg {
	width: 19px;
	height: 19px;
	fill: currentColor;
	flex: none;
}

body.home .milfa-hh-phone:hover {
	color: var(--mh-red) !important;
}

/* Navigation */
body.home .milfa-hh-nav {
	grid-area: nav;
	align-self: center;
	min-width: 0;
}

body.home .milfa-hh-menu {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-end;
	align-items: center;
	gap: 0 clamp(18px, 2.4vw, 46px);
	margin: 0 28px 0 0;
	padding: 0;
	list-style: none;
}

body.home .milfa-hh-menu > li {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.home .milfa-hh-menu > li > a {
	display: block;
	padding: 10px 0;
	color: var(--mh-ink) !important;
	font: 600 16px/1.2 var(--mh-font);
	letter-spacing: 0.2px;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: color .2s ease, border-color .2s ease;
}

body.home .milfa-hh-menu > li > a:hover,
body.home .milfa-hh-menu > li.current-menu-item > a {
	color: var(--mh-red) !important;
}

/* Sub-menus (if any are added in the menu editor) */
body.home .milfa-hh-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: -16px;
	min-width: 220px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
	z-index: 30;
}

body.home .milfa-hh-menu > li:hover > .sub-menu,
body.home .milfa-hh-menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

body.home .milfa-hh-menu .sub-menu a {
	display: block;
	padding: 8px 16px;
	color: var(--mh-ink) !important;
	font: 500 14px/1.3 var(--mh-font);
	text-decoration: none;
}

body.home .milfa-hh-menu .sub-menu a:hover {
	color: var(--mh-red) !important;
}

/* Request a Quote */
body.home .milfa-hh-quote {
	grid-area: quote;
	justify-self: end;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 52px;
	margin: 12px 0 16px;
	padding: 0 18px 0 20px;
	border: 2px solid var(--mh-red);
	border-radius: 7px;
	background: #fff;
	color: var(--mh-red) !important;
	font: 600 16px/1 var(--mh-font);
	letter-spacing: 0.2px;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background .2s ease, color .2s ease;
}

/* Small red "spark" strokes over the button's top-right corner */
body.home .milfa-hh-quote::after {
	content: '';
	position: absolute;
	top: -26px;
	right: -14px;
	width: 32px;
	height: 26px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 26' fill='none' stroke='%23e3141b' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M5 4l2 8'/%3E%3Cpath d='M14 8l5 7'/%3E%3Cpath d='M22 18l7-3'/%3E%3C/svg%3E") no-repeat center / contain;
	pointer-events: none;
}

body.home .milfa-hh-plane {
	width: 23px;
	height: 23px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}

body.home .milfa-hh-quote:hover {
	background: var(--mh-red);
	color: #fff !important;
}

/* Hamburger (reuses the theme's #mobile_nav_icon → body.js_nav menu) */
body.home #mobile_nav_icon.milfa-hh-burger {
	grid-area: burger;
	display: none;
	float: none;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 11px 9px;
	border: 1px solid #d9d9d9;
	border-radius: 6px;
	background: #fff none;
	cursor: pointer;
	flex-direction: column;
	justify-content: space-between;
}

body.home #mobile_nav_icon.milfa-hh-burger::before,
body.home #mobile_nav_icon.milfa-hh-burger::after {
	content: none;
	display: none;
}

body.home .milfa-hh-burger span {
	display: block;
	height: 2px;
	border-radius: 2px;
	background: var(--mh-ink);
}

/* ------------------------------------------------------------------
 * Hero — starts directly under the navigation (no white gap)
 * ------------------------------------------------------------------ */

body.home .page_slider,
body.home .page_slider.menu_transparent {
	position: relative !important;
	top: auto !important;
	right: auto !important;
	padding-top: 0 !important;
	margin: 0 !important;
	clear: both;
	z-index: 1;
	overflow: hidden;
	background: #2f6db3;
}

body.home .ppb_wrapper {
	margin-top: 0 !important;
}

/* Spacers that only existed to clear the old overlapping slider: the
   (already hidden) search form's padding and the offers' 100px top margin. */
body.home .ppb_wrapper > .pp_tour_search {
	padding: 0 !important;
}

body.home .ppb_wrapper .portfolio-offer {
	margin-top: 0 !important;
}

body.home .page_slider .metaslider,
body.home .page_slider .slider-wrapper {
	position: relative;
	margin: 0 !important;
}

body.home .page_slider .nivoSlider {
	margin: 0 !important;
	box-shadow: none !important;
}

/* Dots sit on the image, white with a red active dot */
body.home .page_slider .nivo-controlNav {
	position: absolute !important;
	left: 0;
	right: 0;
	bottom: 22px;
	z-index: 12;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 0;
}

body.home .page_slider .nivo-controlNav a {
	display: block !important;
	width: 10px !important;
	height: 10px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, .85) !important;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
	text-indent: -9999px;
	overflow: hidden;
	opacity: 1 !important;
	cursor: pointer;
}

body.home .page_slider .nivo-controlNav a.active {
	width: 15px !important;
	height: 15px !important;
	background: var(--mh-red) !important;
	box-shadow: none;
}

/* Slide caption = the hero text. Each slide's caption is edited in
   Meta Slider (Caption field): use <h2> for the headline and <p> for the
   line under it; plain text is shown as a single bold line. */
body.home .page_slider .metaslider .nivo-caption {
	display: block !important;
	position: absolute;
	top: 9%;
	bottom: auto;
	left: 50%;
	z-index: 11;
	width: min(92%, 900px);
	height: auto;
	margin: 0;
	padding: 0;
	transform: translateX(-50%);
	background: none !important;
	text-align: center;
	color: #fff;
	font: 500 clamp(17px, 1.9vw, 28px)/1.3 var(--mh-font);
	text-shadow: 0 2px 14px rgba(0, 20, 60, .45), 0 1px 2px rgba(0, 0, 0, .3);
	overflow: visible;
	opacity: 1 !important;
	pointer-events: none;
}

body.home .page_slider .metaslider .nivo-caption::after {
	content: '';
	display: block;
	width: 90px;
	height: 4px;
	margin: clamp(10px, 1.2vw, 16px) auto 0;
	border-radius: 2px;
	background: var(--mh-red);
}

body.home .page_slider .metaslider .nivo-caption.milfa-cap-empty {
	visibility: hidden;
}

body.home .page_slider .metaslider .nivo-caption.milfa-cap-in {
	animation: milfaCapIn .7s ease both;
}

/* filter, not opacity: Nivo drives the caption's inline opacity */
@keyframes milfaCapIn {
	from { filter: opacity(0); margin-top: 10px; }
	to   { filter: opacity(1); margin-top: 0; }
}

body.home .page_slider .metaslider .nivo-caption h1,
body.home .page_slider .metaslider .nivo-caption h2 {
	margin: 0;
	padding: 0;
	color: #fff !important;
	font: 700 clamp(30px, 3.9vw, 56px)/1.12 var(--mh-font);
	letter-spacing: -0.2px;
	text-transform: none;
	text-shadow: inherit;
}

body.home .page_slider .metaslider .nivo-caption p {
	margin: clamp(8px, 1vw, 14px) 0 0;
	padding: 0;
	color: #fff !important;
	font: 500 clamp(14px, 1.6vw, 23px)/1.3 var(--mh-font) !important;
	text-shadow: inherit;
}

body.home .page_slider .metaslider .nivo-caption > div {
	font-weight: 700;
}

body.home .page_slider .metaslider .nivo-caption strong {
	font-weight: 700;
}

body.home .page_slider .metaslider .nivo-caption a {
	color: #fff !important;
	pointer-events: auto;
}

/* ------------------------------------------------------------------
 * Airport photo band above WHAT CUSTOMERS SAY. The theme's scroll
 * parallax mis-positions its fixed image layer here, leaving a 600px white
 * gap; show the same image as a plain cover background instead
 * (milfa_home_static_parallax sets it from the block's data-image).
 * ------------------------------------------------------------------ */

body.home .parallax-block {
	display: none !important;
}

body.home .ppb_wrapper .parallax.milfa-static-bg {
	background-size: cover;
	background-position: center 65%;
	background-repeat: no-repeat;
}

@media (max-width: 767px) {
	body.home .ppb_wrapper .parallax.milfa-static-bg {
		height: 280px !important;
		overflow: hidden;
	}
}

/* ------------------------------------------------------------------
 * NEWS & UPDATE — remove the big empty band under the posts
 * ------------------------------------------------------------------ */

body.home .ppb_wrapper > .withbg:has(#blog_grid_wrapper) {
	padding-bottom: 24px !important;
}

/* Footer widget area has no widgets: don't print an empty black block */
body.home .footer_bar #footer:not(:has(li)) {
	display: none;
}

/* ------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------ */

@media (max-width: 1440px) {
	body.home .milfa-hh-inner {
		padding: 0 22px 0 24px;
	}
	body.home .milfa-hh-logo img {
		width: 300px;
	}
	body.home .milfa-hh-phone {
		margin-right: 20px;
		font-size: 17px;
	}
	body.home .milfa-hh-menu {
		gap: 0 clamp(14px, 1.9vw, 28px);
		margin-right: 20px;
	}
	body.home .milfa-hh-menu > li > a {
		font-size: 15px;
	}
	body.home .milfa-hh-quote {
		height: 48px;
		padding: 0 14px 0 16px;
		font-size: 15px;
	}
}

@media (max-width: 1260px) {
	body.home .milfa-hh-logo img {
		width: 260px;
	}
	body.home .milfa-hh-menu {
		gap: 0 clamp(12px, 1.5vw, 20px);
		margin-right: 16px;
	}
	body.home .milfa-hh-menu > li > a {
		font-size: 13.5px;
		letter-spacing: 0;
	}
	body.home .milfa-hh-quote {
		height: 44px;
		gap: 8px;
		padding: 0 12px;
		font-size: 13.5px;
	}
	body.home .milfa-hh-plane {
		width: 19px;
		height: 19px;
	}
}

/* Tablet: menu collapses into the theme's slide-out menu */
@media (max-width: 1100px) {
	body.home .milfa-hh-inner {
		grid-template-columns: 1fr auto auto;
		grid-template-areas:
			"logo phone phone"
			"logo quote burger";
		column-gap: 12px;
		padding: 10px 20px 12px;
	}
	body.home .milfa-hh-logo {
		align-self: center;
		margin: 0;
	}
	body.home .milfa-hh-logo img {
		width: 270px;
	}
	body.home .milfa-hh-phone {
		justify-self: end;
		margin: 0 0 10px;
		font-size: 16px;
	}
	body.home .milfa-hh-nav {
		display: none;
	}
	body.home .milfa-hh-quote {
		justify-self: end;
		height: 44px;
		margin: 0;
		font-size: 14px;
	}
	body.home .milfa-hh-quote::after {
		top: -18px;
		right: -10px;
		width: 22px;
		height: 18px;
	}
	body.home #mobile_nav_icon.milfa-hh-burger {
		display: flex;
	}
	body.home .mobile_menu_wrapper {
		display: block;
	}
}

/* Mobile */
@media (max-width: 767px) {
	body.home .milfa-hh-inner {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"logo  burger"
			"phone quote";
		column-gap: 10px;
		row-gap: 8px;
		padding: 8px 16px 12px;
	}
	body.home .milfa-hh-logo img {
		width: 200px;
	}
	body.home .milfa-hh-phone {
		justify-self: start;
		align-self: center;
		margin: 0;
		gap: 6px;
		font-size: 14px;
		white-space: normal;
	}
	body.home .milfa-hh-phone svg {
		width: 15px;
		height: 15px;
	}
	body.home .milfa-hh-quote {
		height: 40px;
		gap: 8px;
		padding: 0 12px;
		font-size: 13px;
		border-radius: 6px;
	}
	body.home .milfa-hh-quote::after {
		display: none;
	}
	body.home .milfa-hh-plane {
		width: 18px;
		height: 18px;
	}

	/* Slide images are short on phones: smaller caption over a soft shade */
	body.home .page_slider .metaslider .nivo-caption {
		top: 0;
		bottom: 0;
		width: 100%;
		display: flex !important;
		flex-direction: column;
		justify-content: center;
		padding: 8px 14px 22px;
		background: linear-gradient(180deg, rgba(10, 40, 90, .45), rgba(10, 40, 90, .15)) !important;
		font-size: 12.5px;
		line-height: 1.35;
	}
	body.home .page_slider .metaslider .nivo-caption h1,
	body.home .page_slider .metaslider .nivo-caption h2 {
		font-size: clamp(17px, 5vw, 22px);
	}
	body.home .page_slider .metaslider .nivo-caption p {
		margin-top: 4px;
		font-size: 12px !important;
	}
	body.home .page_slider .metaslider .nivo-caption::after {
		width: 48px;
		height: 3px;
		margin-top: 6px;
	}
	body.home .page_slider .nivo-controlNav {
		bottom: 10px;
		gap: 12px;
	}
	body.home .page_slider .nivo-controlNav a {
		width: 8px !important;
		height: 8px !important;
	}
	body.home .page_slider .nivo-controlNav a.active {
		width: 11px !important;
		height: 11px !important;
	}
}

@media (max-width: 400px) {
	body.home .milfa-hh-inner {
		grid-template-areas:
			"logo  burger"
			"phone phone"
			"quote quote";
	}
	body.home .milfa-hh-logo img {
		width: 180px;
	}
	body.home .milfa-hh-phone {
		justify-self: center;
	}
	body.home .milfa-hh-quote {
		justify-self: stretch;
	}
}
