/**
 * Ford Product Banner Styles
 * Direct 1-to-1 styling reference from class-ford-main-banner-widget.php
 * with unique class .ford-hero-banner (isolated from legacy .main-banner)
 */

/* Breakout widget to 100vw full width edge-to-edge on product pages */
.elementor-widget-ford_product_banner_widget {
	width: 100vw !important;
	max-width: 100vw !important;
	position: relative !important;
	left: 50% !important;
	right: auto !important;
	margin-left: -50vw !important;
	margin-right: -50vw !important;
	padding: 0 !important;
	z-index: 1 !important;
	/* Below main header (100) and sticky subheader (99/999) */
}

/* Page body padding reset when custom banner is present */
body.has-ford-custom-banner .page-body,
body:has(.ford-hero-banner) .page-body {
	padding-top: 0 !important;
}

/* Product hero banner container (Reference: main.scss line 1114) */
.ford-hero-banner {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 auto !important;
	height: auto !important;
	aspect-ratio: 1920 / 1049 !important;
	min-height: auto !important;
	overflow: hidden !important;
	position: relative !important;
	z-index: 1 !important;
}

@media screen and (max-width: 782px) {
	.ford-hero-banner {
		height: auto !important;
		min-height: unset !important;
		aspect-ratio: 720 / 1148 !important;
	}
}

/* Extends to top body behind header / sticky subheader */
/* Case A: Banner is first element on page */
.elementor-widget-ford_product_banner_widget:first-child,
.elementor-section:first-child .elementor-widget-ford_product_banner_widget {
	margin-top: -72px !important;
}

@media screen and (max-width: 782px) {

	/* Mobile: Top hero banner sits directly below 60px header (not into body) */
	.elementor-widget-ford_product_banner_widget:first-child,
	.elementor-section:first-child .elementor-widget-ford_product_banner_widget {
		margin-top: 60px !important;
	}

	body.admin-bar .elementor-widget-ford_product_banner_widget:first-child,
	body.admin-bar .elementor-section:first-child .elementor-widget-ford_product_banner_widget {
		margin-top: calc(60px + 46px) !important;
	}
}

/* Case B: Subheader is placed above the banner */
.elementor-widget-ford_product_subheader_widget~.elementor-widget-ford_product_banner_widget,
.elementor-section:has(.elementor-widget-ford_product_subheader_widget)+.elementor-section .elementor-widget-ford_product_banner_widget {
	margin-top: -105px !important;
	/* -72px header - 54px subheader */
}

body.admin-bar .elementor-widget-ford_product_subheader_widget~.elementor-widget-ford_product_banner_widget {
	margin-top: calc(-105px - 32px) !important;
}

@media screen and (max-width: 782px) {

	/* Mobile: Banner sits directly below subheader (0 margin) */
	.elementor-widget-ford_product_subheader_widget~.elementor-widget-ford_product_banner_widget,
	.elementor-section:has(.elementor-widget-ford_product_subheader_widget)+.elementor-section .elementor-widget-ford_product_banner_widget {
		margin-top: 0 !important;
	}

	body.admin-bar .elementor-widget-ford_product_subheader_widget~.elementor-widget-ford_product_banner_widget {
		margin-top: 0 !important;
	}
}

/* Slider Track & Items (Reference: main.scss line 1130) */
.ford-hero-banner .slider-wrapping,
.ford-hero-banner .slider,
.ford-hero-banner .slick-list,
.ford-hero-banner .slick-track,
.ford-hero-banner .slider-item {
	height: 100% !important;
}

.ford-hero-banner .slider-item {
	position: relative !important;
	min-height: auto !important;
}

/* Hide spacer image so it does not collapse or create blank space (Reference: main.scss line 1146) */
.ford-hero-banner .slider-item img.invisible {
	display: none !important;
}

/* Background image filling full screen (Reference: main.scss line 700) */
.ford-hero-banner .slider-item::before {
	content: '' !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: calc(100% + 4px) !important;
	bottom: -4px !important;
	background-image: var(--background-image) !important;
	background-size: 100% 100% !important;
	background-position: center top !important;
	background-repeat: no-repeat !important;
	z-index: 1 !important;
}

/* Full background video (Reference: main.scss line 1158) */
.ford-hero-banner .full-background-video {
	padding-bottom: 0 !important;
	height: 100% !important;
}

.ford-hero-banner .full-background-video video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Content overlay (Reference: main.scss line 2503) */
.ford-hero-banner .banner-content-overlay {
	position: absolute;
	bottom: clamp(35px, 5vw, 90px);
	left: 2vw;
	z-index: 10;
	width: calc(100% - 180px);
	max-width: 650px;
}

.ford-hero-banner .banner-heading {
	font-family: 'American Grotesk Compressed', sans-serif !important;
	font-size: clamp(2rem, 12vw, 6rem);
	font-weight: 900;
	color: #fff;
	text-transform: uppercase;
	line-height: 1;
	margin-bottom: 0.5rem !important;
}

.ford-hero-banner .banner-description {
	font-family: 'FordF1TC', sans-serif !important;
	font-size: clamp(1rem, 2.5vw, 1.25rem);
	color: #fff;
	max-width: 600px;
	margin-bottom: 1.5rem !important;
	font-weight: 400;
}

/* Banner Action Buttons */
.ford-hero-banner .banner-action-buttons .btn-banner {
	font-size: 14px;
	border-radius: 30px;
}

/* Ford dots numbering & pagination (Reference: main.scss line 1846 & 2489) */
.ford-hero-banner .ford-dots {
	position: absolute;
	left: 5vw;
	bottom: 30px;
	z-index: 10;
}

/* Responsive Mobile View (Full Image Width & Proportional Ratio, sits cleanly below 60px header) */
@media screen and (max-width: 782px) {

	.ford-hero-banner {
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		min-height: unset !important;
		aspect-ratio: 720 / 1148 !important;
	}

	body.admin-bar .ford-hero-banner {
		height: auto !important;
		min-height: unset !important;
	}

	.ford-hero-banner .slider-wrapping,
	.ford-hero-banner .slider,
	.ford-hero-banner .slick-list,
	.ford-hero-banner .slick-track,
	.ford-hero-banner .slider-item {
		height: 100% !important;
		min-height: unset !important;
	}

	/* Background image: 100% full image width with zero cropping */
	.ford-hero-banner .slider-item::before {
		background-size: 100% auto !important;
		background-position: center top !important;
		background-repeat: no-repeat !important;
		width: 100% !important;
		height: 100% !important;
	}

	.ford-hero-banner .banner-content-overlay {
		left: 15px;
		bottom: 60px;
		width: calc(100% - 30px);
		max-width: 100%;
	}

	.ford-hero-banner .banner-description {
		font-size: 0.95rem;
	}

	.ford-hero-banner .banner-heading {
		font-size: clamp(1.35rem, 6.5vw, 2.5rem) !important;
		margin-bottom: 0.25rem !important;
	}

	.ford-hero-banner .banner-action-buttons .btn-banner {
		font-size: 13px !important;
		padding-top: 8px !important;
		padding-bottom: 8px !important;
		border-radius: 30px !important;
	}

	.ford-hero-banner .ford-dots {
		left: 15px !important;
		right: auto !important;
		width: auto !important;
		max-width: calc(100% - 30px) !important;
		bottom: 15px !important;
		padding-left: 0 !important;
		flex-wrap: nowrap;
		overflow: hidden !important;
	}

	.ford-hero-banner .ford-dots .dots-numbering {
		flex: 0 0 auto;
		font-size: 1.1rem !important;
	}
}

/* Legacy Secondary Navigation Bar (retained for backward compatibility) */
.ford-product-nav {
	background-color: #fff;
	border-bottom: 1px solid #e0e0e0;
	padding: 15px 0;
	position: relative;
	z-index: 10;
	font-family: var(--e-global-typography-primary-font-family), sans-serif;
}

.fpn-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 15px;
}

.fpn-back a {
	color: #00095b;
	text-decoration: none;
	transition: color 0.3s;
}

.fpn-back a:hover {
	color: #006bf5;
}

.fpn-icon {
	stroke-width: 2px;
}

.fpn-back-text {
	font-size: 1.1rem;
	color: #00095b;
}

.fpn-divider {
	width: 1px;
	height: 24px;
	background-color: #006bf5;
}

.fpn-links {
	gap: 1.5rem;
}

.fpn-links li a {
	color: #555;
	text-decoration: none;
	font-weight: 500;
	font-size: 1rem;
	transition: color 0.3s;
}

.fpn-links li a:hover,
.fpn-links li a.active {
	color: #00095b;
	font-weight: 600;
}

@media (max-width: 767px) {
	.ford-product-nav .d-flex {
		flex-wrap: wrap;
	}

	.fpn-divider {
		display: none;
	}

	.fpn-links {
		width: 100%;
		margin-top: 10px;
		overflow-x: auto;
		padding-bottom: 5px;
		white-space: nowrap;
	}

	.fpn-links li {
		display: inline-block;
	}
}