/**
 * Homepage Sections CSS
 *
 * Styles for hardcoded homepage sections that replace Elementor widgets.
 * Uses the same CSS variable system as theme-main.css (--main, --black, --gray, --white).
 *
 * @package MIT BoatripSplit
 */

/* ==========================================================================
   0. Homepage Navbar & Structure Fixes
   ========================================================================== */

/* Make the header wrapper transparent and overlay the hero on homepage */
body.home .lte-header-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	background: transparent;
}

/* Hide the empty container.main-wrapper that header.php opens on homepage */
body.home .lte-content-wrapper > .container.main-wrapper:first-of-type {
	display: none;
}

/* Search icon color for transparent nav */
body.home #lte-nav-wrapper.lte-nav-color-white .lte-top-search-ico {
	color: #ffffff;
}

/* Ensure homepage sections are full-width within the content wrapper */
body.home .lte-content-wrapper {
	overflow: visible;
}

/* ==========================================================================
   1. Hero Slider
   ========================================================================== */
.lte-hero-slider {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 600px;
	overflow: hidden;
	background-color: var(--black, #002c3f);
}

.lte-hero-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1s ease, visibility 1s ease;
	z-index: 1;
}

.lte-hero-slide.active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.lte-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to bottom,
		rgba(0, 22, 44, 0.55) 0%,
		rgba(0, 22, 44, 0.4) 50%,
		rgba(0, 22, 44, 0.55) 100%
	);
	z-index: 1;
}

.lte-hero-content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	text-align: center;
}

.lte-hero-content .container {
	max-width: 900px;
}

.lte-hero-subheading {
	font-family: 'aAutoSignature', cursive;
	font-size: 48px;
	color: var(--main, #d0a249);
	margin-bottom: 10px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 1px;
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.lte-hero-slide.active .lte-hero-subheading {
	opacity: 1;
	transform: translateY(0);
}

.lte-hero-heading {
	font-family: var(--font-headers, 'Outfit'), sans-serif;
	font-size: 80px;
	font-weight: 400;
	color: #ffffff;
	line-height: 1.1;
	margin-bottom: 20px;
	text-transform: none;
	letter-spacing: -0.5px;
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.lte-hero-slide.active .lte-hero-heading {
	opacity: 1;
	transform: translateY(0);
}

.lte-hero-heading .lte-header {
	color: var(--main, #d0a249);
}

.lte-hero-description {
	font-size: 18px;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 35px;
	font-weight: 300;
	line-height: 1.6;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}

.lte-hero-slide.active .lte-hero-description {
	opacity: 1;
	transform: translateY(0);
}

.lte-hero-buttons {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease 0.8s, transform 0.8s ease 0.8s;
}

.lte-hero-slide.active .lte-hero-buttons {
	opacity: 1;
	transform: translateY(0);
}

.lte-hero-buttons .lte-btn {
	min-width: 180px;
	text-align: center;
}

/* Hero secondary button override — white bg, dark text */
.lte-hero-buttons .lte-btn.btn-white {
	background-color: #ffffff;
	color: var(--black, #002c3f);
	border-color: #ffffff;
}

/* Hero Dots Navigation */
.lte-hero-dots {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 12px;
	z-index: 10;
}

.lte-hero-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.6);
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: all 0.3s ease;
	outline: none;
}

.lte-hero-dot:hover {
	border-color: #ffffff;
}

.lte-hero-dot.active {
	background-color: var(--main, #d0a249);
	border-color: var(--main, #d0a249);
}

/* Hero Slider Responsive */
@media (max-width: 1198px) {
	.lte-hero-heading {
		font-size: 56px;
	}
	.lte-hero-subheading {
		font-size: 40px;
	}
	.lte-hero-description {
		font-size: 16px;
	}
}

@media (max-width: 768px) {
	.lte-hero-slider {
		height: 85vh;
		min-height: 500px;
	}
	.lte-hero-heading {
		font-size: 40px;
	}
	.lte-hero-subheading {
		font-size: 32px;
	}
	.lte-hero-description {
		font-size: 15px;
		padding: 0 15px;
	}
	.lte-hero-buttons {
		flex-direction: column;
		align-items: center;
	}
	.lte-hero-dots {
		bottom: 25px;
	}
}

@media (max-width: 480px) {
	.lte-hero-slider {
		height: 75vh;
		min-height: 450px;
	}
	.lte-hero-heading {
		font-size: 32px;
	}
	.lte-hero-subheading {
		font-size: 26px;
	}
}

/* ==========================================================================
   2. About Section
   ========================================================================== */
.lte-about-section {
	padding: 100px 0;
	background-color: var(--white, #ffffff);
}

.lte-about-image {
	position: relative;
	padding: 0;
}

.lte-about-image img {
	width: 100%;
	height: 100%;
	display: block;
	position: relative;
	z-index: 2;
	object-fit: cover;
}

.lte-about-image-border {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border: 2px solid var(--main, #d0a249);
	z-index: 3;
	pointer-events: none;
}

.lte-about-content {
	padding-left: 30px;
}

.lte-about-content .lte-heading h2 {
	font-size: 44px;
	line-height: 1.3em;
	letter-spacing: -1px;
}

.lte-about-text {
	font-size: 16px;
	line-height: 1.8;
	color: #666666;
	margin-bottom: 30px;
}

.lte-about-contacts {
	margin-top: 30px;
	display: flex;
	flex-wrap: wrap;
	gap: 20px 40px;
	align-items: flex-start;
}

.lte-about-phone {
	display: flex;
	align-items: center;
	gap: 15px;
}

.lte-about-phone-label {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #999999;
	font-weight: 500;
}

.lte-about-phone-number {
	font-size: 22px;
	font-weight: 700;
	color: var(--black, #002c3f);
	text-decoration: none;
	transition: color 0.3s ease;
}

.lte-about-phone-number:hover {
	color: var(--main, #d0a249);
}

.lte-about-phone-number i {
	color: var(--main, #d0a249);
	margin-right: 8px;
	font-size: 18px;
}

.lte-about-contact--small .lte-about-phone-number {
	font-size: 16px;
}

.lte-about-contact--small .lte-about-phone-number i {
	font-size: 14px;
}

/* About Responsive */
@media (max-width: 991px) {
	.lte-about-section {
		padding: 70px 0;
	}
	.lte-about-content {
		padding-left: 0;
		padding-top: 40px;
	}
	.lte-about-image {
		max-width: 500px;
		margin: 0 auto;
	}
	.lte-about-contacts {
		flex-direction: column;
		gap: 15px;
	}
}

@media (max-width: 576px) {
	.lte-about-section {
		padding: 50px 0;
	}
	.lte-about-phone {
		flex-direction: column;
		align-items: flex-start;
	}
	.lte-about-phone-number {
		font-size: 18px;
	}
	.lte-about-contact--small .lte-about-phone-number {
		font-size: 14px;
	}
}

/* ==========================================================================
   3. Services Section (lte-layout-grid — image on top, text card below)
   ========================================================================== */
.lte-services-section {
	padding: 100px 0 70px;
	background-color: var(--white, #ffffff);
}

/* Card item — the lte-item IS the column div in grid layout */
.lte-services-section .lte-services-sc .lte-item {
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 30px;
}

/* Card inner container */
.lte-services-section .lte-services-sc .lte-item-inner {
	width: 100%;
	overflow: hidden;
}

/* Description wrapper — stacks photo + info vertically */
.lte-services-section .lte-services-sc .lte-description {
	display: flex;
	flex-direction: column;
}

/* Photo wrapper */
.lte-services-section .lte-services-sc .lte-photo-wrapper {
	display: block;
	overflow: hidden;
}

.lte-services-section .lte-services-sc .lte-photo-wrapper img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.5s ease;
}

.lte-services-section .lte-services-sc .lte-item:hover .lte-photo-wrapper img {
	transform: scale(1.1);
}

/* Info section — white card below image */
.lte-services-section .lte-services-sc .lte-info {
	display: block;
	padding: 30px 35px;
	background-color: var(--white, #ffffff);
	position: relative;
}

/* Heading link — inline with animated underline */
.lte-services-section .lte-services-sc .lte-info .lte-header {
	font-family: var(--font-headers, 'Outfit'), sans-serif;
	font-size: 24px;
	line-height: 1.3em;
	font-weight: 600;
	color: var(--black, #002c3f);
	text-decoration: none;
	display: inline;
	background-image: linear-gradient(var(--second, #d0a249), var(--second, #d0a249));
	background-position: 0% 100%;
	background-repeat: no-repeat;
	background-size: 0% 2px;
	transition: all 0.5s ease;
}

.lte-services-section .lte-services-sc .lte-info .lte-header:hover {
	background-size: 100% 2px;
	color: var(--black, #002c3f);
}

/* "View more" button */
.lte-services-section .lte-services-sc .lte-btn-wrap {
	padding-top: 12px;
}

@media (max-width: 991px) {
	.lte-services-section {
		padding: 70px 0 40px;
	}
}

@media (max-width: 767px) {
	.lte-services-section .lte-services-sc .lte-info {
		padding: 35px 20px;
		text-align: center;
	}

	.lte-services-section .lte-services-sc .lte-btn-wrap {
		display: none;
	}
}

@media (max-width: 576px) {
	.lte-services-section {
		padding: 50px 0 20px;
	}
}

/* ==========================================================================
   4. Events Section — two-column: heading+map (left) | events list (right)
   ========================================================================== */
.lte-events-section {
	padding: 100px 0;
	background-color: var(--white, #ffffff);
}

/* --- Left Column: Heading + Map --- */
.lte-events-left {
	padding-right: 30px;
}

.lte-events-heading {
	font-family: var(--font-headers), serif;
	font-size: 48px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--black, #002c3f);
	margin: 0 0 40px;
	letter-spacing: -0.5px;
}

.lte-events-map {
	margin-top: 20px;
}
@media (max-width: 1200px) {
	.lte-events-map {
		display: none;
	}
}

.lte-events-map img {
	max-width: 100%;
	height: auto;
}

/* --- Right Column: Events List --- */
.lte-events-section .lte-events-sc {
	width: 100%;
}

.lte-events-section .lte-events-sc.lte-layout-table .lte-item {
	padding-left: 0;
	padding-right: 0;
}

/* Force circular images (override theme-main oval from rectangular source) */
.lte-events-section .lte-events-sc.lte-layout-table .lte-item .lte-img {
	width: 150px;
	padding-right: 30px;
}

.lte-events-section .lte-events-sc.lte-layout-table .lte-item .lte-img img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 50%;
}

/* Venue / departure label above time+cost */
.lte-events-section .lte-event-venue {
	display: block;
	font-size: 12px;
	color: rgba(0, 22, 44, 0.55);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
}

/* Time and cost as inline siblings */
.lte-events-section .lte-event-time,
.lte-events-section .lte-event-cost {
	font-size: 14px;
	color: rgba(0, 22, 44, 0.7);
	line-height: 1.4;
}

.lte-events-section .lte-event-time {
	padding-right: 20px;
}

/* Title wrapper */
.lte-events-section .lte-title-wrapper {
	margin-top: 4px;
}

/* Override: remove the old absolute-positioned arrow from .lte-info .lte-header:after */
.lte-events-section .lte-events-sc.lte-layout-table .lte-item .lte-info .lte-header:after {
	display: none;
}

/* Title styling */
.lte-events-section .lte-events-sc.lte-layout-table .lte-item .lte-info .lte-header {
	font-size: 22px;
	margin: 0;
	display: block;
	background-image: none;
}

.lte-events-section .lte-events-sc.lte-layout-table .lte-item .lte-info .lte-header a {
	color: var(--black, #002c3f);
}

.lte-events-section .lte-events-sc.lte-layout-table .lte-item .lte-info .lte-header a:hover {
	color: var(--main, #d0a249);
}

/* Info column */
.lte-events-section .lte-events-sc.lte-layout-table .lte-item .lte-info {
	padding-right: 20px;
}

/* Date column: navy color on white bg */
.lte-events-section .lte-events-sc.lte-layout-table .lte-item .lte-event-date {
	color: var(--black, #002c3f);
}

.lte-events-section .lte-events-sc.lte-layout-table .lte-item .lte-event-date .lte-event-m {
	color: var(--black, #002c3f);
}

/* Dashed dividers: dark on white bg */
.lte-events-section .lte-events-sc.lte-layout-table .lte-item:after {
	border-color: rgba(0, 44, 63, 0.15);
}

@media (max-width: 991px) {
	.lte-events-section {
		padding: 70px 0;
	}

	.lte-events-left {
		padding-right: 0;
		margin-bottom: 40px;
		text-align: center;
	}

	.lte-events-heading {
		font-size: 36px;
	}

	.lte-events-map img {
		max-width: 300px;
	}

	.lte-events-section .lte-event-arrow {
		display: none;
	}
}

@media (max-width: 576px) {
	.lte-events-section {
		padding: 50px 0;
	}

	.lte-events-heading {
		font-size: 30px;
	}
}

/* ==========================================================================
   5. Discovery Section (lte-layout-photos cards — styled by theme-main.css)
   ========================================================================== */
.lte-discovery-section {
	padding: 100px 0;
	background-color: var(--white, #ffffff);
}

@media (max-width: 991px) {
	.lte-discovery-section {
		padding: 70px 0;
	}
}

@media (max-width: 576px) {
	.lte-discovery-section {
		padding: 50px 0;
	}
}

/* Discovery section: row gap between cards when they wrap */
.lte-discovery-section .row [class*="col-"] {
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 30px;
}

/* Discovery section: uniform image height */
.lte-discovery-section .lte-photo-wrapper {
	position: relative;
	height: 420px;
	overflow: hidden;
}

.lte-discovery-section .lte-photo-wrapper a {
	display: block;
	width: 100%;
	height: 100%;
}
.lte-discovery-section .lte-photo-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Discovery section: gradient overlay so white title text is readable */
.lte-discovery-section .lte-photo-wrapper:before {
	background: linear-gradient(to bottom, transparent 40%, rgba(0, 22, 44, 0.75) 100%) !important;
	opacity: 1 !important;
}

/* ==========================================================================
   6. Features Section (single-column centered layout)
   ========================================================================== */
.lte-features-section {
	padding: 100px 0 80px;
	background-color: var(--white, #ffffff);
}

/* Rope divider image */
.lte-features-rope {
	margin-bottom: 40px;
}

.lte-features-rope img {
	display: inline-block;
	max-width: 100%;
	height: auto;
}

/* Section heading — centered, with gold span via lte-subcolor-main */
.lte-features-section .lte-heading.lte-heading-align-center {
	text-align: center;
	margin-bottom: 50px;
}

.lte-features-section .lte-heading .lte-header {
	font-family: var(--font-headers, 'Outfit'), sans-serif;
	font-size: 30px;
	line-height: 1.4em;
	font-weight: 400;
	color: var(--black, #002c3f);
	max-width: 700px;
	margin: 0 auto;
}

.lte-features-section .lte-heading.lte-subcolor-main .lte-header span {
	color: var(--main, #d0a249);
}

/* Yacht cutout image — centered */
.lte-features-yacht {
	margin-bottom: 60px;
}

.lte-features-yacht img {
	display: inline-block;
	max-width: 100%;
	height: auto;
}

/* Icon grid — <ul> based, uses Bootstrap columns inside */
.lte-features-section .lte-block-icon {
	list-style: none;
	padding: 0;
	margin: 0 -15px;
	display: flex;
	flex-wrap: wrap;
}

.lte-features-section .lte-block-icon .lte-item {
	list-style: none;
	padding: 0 15px;
	margin-bottom: 40px;
	float: left;
	width: 33.3333%;
}

.lte-features-section .lte-block-icon .lte-inner {
	display: flex;
	align-items: flex-start;
	gap: 18px;
}

.lte-features-section .lte-block-icon .lte-inner > i {
	font-size: 40px;
	color: var(--main, #d0a249);
	flex-shrink: 0;
	line-height: 1;
	margin-top: 2px;
}

.lte-features-section .lte-block-icon .lte-icon-content {
	display: block;
	flex: 1;
}

.lte-features-section .lte-block-icon .lte-header.lte-h5 {
	display: block;
	font-family: var(--font-headers, 'Outfit'), sans-serif;
	font-size: 18px;
	font-weight: 600;
	color: var(--black, #002c3f);
	margin-bottom: 8px;
	line-height: 1.3;
}

.lte-features-section .lte-block-icon .lte-descr {
	display: block;
	font-size: 15px;
	font-weight: 300;
	color: #666666;
	line-height: 1.6;
}

/* Features Responsive */
@media (max-width: 991px) {
	.lte-features-section {
		padding: 70px 0 60px;
	}
	.lte-features-section .lte-block-icon .lte-item {
		width: 50%;
	}
}

@media (max-width: 767px) {
	.lte-features-section .lte-heading .lte-header {
		font-size: 26px;
	}
	.lte-features-section .lte-block-icon .lte-item {
		width: 50%;
		margin-bottom: 30px;
	}
}

@media (max-width: 576px) {
	.lte-features-section {
		padding: 50px 0 40px;
	}
	.lte-features-section .lte-block-icon .lte-item {
		width: 100%;
		margin-bottom: 25px;
	}
	.lte-features-section .lte-heading .lte-header {
		font-size: 22px;
	}
}

/* ==========================================================================
   7. Gallery Section (wrapper — inner .lte-gallery-sc styles exist)
   ========================================================================== */
.lte-gallery-section {
	padding: 100px 0 80px;
}

.lte-gallery-section .lte-gallery-sc {
	margin-top: 10px;
}

/* Gallery grid — dynamic CSS Grid (columns set via --gallery-cols) */
.gallery-grid {
	display: grid;
	gap: 4px;
	grid-template-columns: repeat(var(--gallery-cols, 4), 1fr);
	grid-template-rows: 250px 250px;
}

.gallery-grid .gallery-featured {
	grid-column: span 2;
	grid-row: span 2;
}

/* Gallery images */
.lte-gallery-section .lte-gallery {
	display: block;
	overflow: hidden;
	height: 100%;
}

.lte-gallery-section .lte-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.lte-gallery-section .lte-gallery:hover img {
	transform: scale(1.15);
}

@media (max-width: 991px) {
	.lte-gallery-section {
		padding: 70px 0 0;
	}

	.gallery-grid {
		grid-template-columns: repeat(3, 1fr);
		grid-template-rows: 200px;
		grid-auto-rows: 200px;
	}

	.gallery-grid .gallery-featured {
		grid-column: span 2;
		grid-row: span 1;
	}
}

@media (max-width: 576px) {
	.lte-gallery-section {
		padding: 50px 0 0;
	}

	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 180px;
	}

	.gallery-grid .gallery-featured {
		grid-column: span 2;
		grid-row: span 1;
	}
}

/* ==========================================================================
   8. Section Heading Spacing (global for homepage sections)
   ========================================================================== */
.lte-about-section .lte-heading,
.lte-services-section .lte-heading,
.lte-events-section .lte-heading,
.lte-discovery-section .lte-heading,
.lte-features-section .lte-heading,
.lte-gallery-section .lte-heading {
	margin-bottom: 50px;
}

/* About section heading uses tighter spacing */
.lte-about-section .lte-heading {
	margin-bottom: 30px;
}

/* Section heading text colors - ensure they respect context */
.lte-about-section .lte-heading .lte-header,
.lte-services-section .lte-heading .lte-header,
.lte-discovery-section .lte-heading .lte-header,
.lte-features-section .lte-heading .lte-header,
.lte-gallery-section .lte-heading .lte-header {
	color: var(--black, #002c3f);
}

/* Subheader color */
.lte-heading .lte-subheader.color-main {
	color: var(--main, #d0a249);
}
@media (max-width: 1200px) {
	.lte-gallery-section .lte-heading .lte-header.lte-size-md {
		margin-top: 1rem;
	}
}
@media (max-width: 992px) {
	.lte-gallery-section .lte-heading .lte-header.lte-size-md {
		margin-top: 1rem;
	}
}
@media (max-width: 768px) {
	.lte-about-section .lte-heading,
	.lte-services-section .lte-heading,
	.lte-events-section .lte-heading,
	.lte-discovery-section .lte-heading,
	.lte-features-section .lte-heading,
	.lte-gallery-section .lte-heading {
		margin-bottom: 35px;
	}
}

/* ==========================================================================
   9. Global Helper Overrides
   ========================================================================== */

/* Ensure sections are not constrained by parent containers */
body.home section {
	position: relative;
}

/* Fix potential overflow from .lte-content-wrapper */
body.home .lte-content-wrapper {
	overflow-x: hidden;
}

/* Fix Bootstrap row negative margins inside sections */
.lte-about-section .row,
.lte-services-section .row,
.lte-events-section .row,
.lte-discovery-section .row,
.lte-features-section .row {
	margin-left: -15px;
	margin-right: -15px;
}
