/**
 * Kanubar Home Page Styles
 * Loaded only on front-page (is_front_page)
 */

/* === HERO === */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80vh;
	background-color: var(--color-primary-dark);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	margin-top: calc(-1 * var(--nav-height-mobile));
	padding-top: var(--nav-height-mobile);
}

@media (min-width: 1024px) {
	.hero {
		min-height: 70vh;
		margin-top: calc(-1 * var(--nav-height-desktop));
		padding-top: var(--nav-height-desktop);
	}
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.3) 0%,
		rgba(0, 0, 0, 0.5) 100%
	);
	z-index: 1;
}

.hero__content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: var(--space-2xl) var(--container-padding);
	max-width: 800px;
}

.hero__title {
	color: #FFFFFF;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	margin-bottom: var(--space-md);
}

.hero__subtitle {
	color: rgba(255, 255, 255, 0.9);
	font-size: var(--text-body);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	margin-bottom: var(--space-xl);
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.hero__ctas {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
	align-items: center;
}

@media (min-width: 768px) {
	.hero__ctas {
		flex-direction: row;
		justify-content: center;
	}
}

.btn--lg {
	min-height: 56px;
	padding: var(--space-md) var(--space-xl);
	font-size: var(--text-cta);
}

.btn--hero-secondary {
	color: #FFFFFF;
	border-color: rgba(255, 255, 255, 0.6);
}

.btn--hero-secondary:hover {
	background-color: rgba(255, 255, 255, 0.15);
	color: #FFFFFF;
	border-color: #FFFFFF;
}

/* === STEPS (So funktioniert's) === */

.steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-xl);
	margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
	.steps {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--space-2xl);
	}
}

.steps--four {
	grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 900px) {
	.steps--four {
		grid-template-columns: repeat(4, 1fr);
	}
}

.steps--four .step {
	padding: var(--space-md);
}

.step {
	text-align: center;
	padding: var(--space-lg);
}

.step__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto var(--space-sm);
	background-color: var(--color-surface);
	border-radius: var(--radius-full);
	color: var(--color-primary);
	box-shadow: var(--shadow-sm);
}

.steps--four .step__icon svg {
	width: 36px;
	height: 36px;
}

.step__title {
	font-size: var(--text-h4);
	margin-bottom: var(--space-sm);
}

.step__text {
	font-size: var(--text-small);
	color: var(--color-muted-foreground);
	max-width: 280px;
	margin: 0 auto;
}

.section__cta {
	margin-top: var(--space-xl);
}

.section__cta p {
	margin-bottom: var(--space-md);
}

/* === BOATS === */

.boats-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-lg);
	margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
	.boats-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.boats-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.boats-grid--three {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* === PRICE BOX === */

.price-box {
	background-color: var(--color-muted);
	border-radius: var(--radius-lg);
	padding: var(--space-xl);
	margin: var(--space-xl) 0;
	text-align: center;
}

.price-box__title {
	font-size: var(--text-h4);
	margin-bottom: var(--space-lg);
}

.price-box__grid {
	display: flex;
	justify-content: center;
	gap: var(--space-2xl);
	flex-wrap: wrap;
	margin-bottom: var(--space-md);
}

.price-box__item {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
}

.price-box__note {
	font-size: var(--text-small);
}

.boat-card__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	background-size: cover;
	background-position: center;
	object-fit: cover;
	object-position: center;
}

img.boat-card__image {
	display: block;
}

.boat-card__desc {
	font-size: var(--text-small);
	color: var(--color-muted-foreground);
	margin-bottom: var(--space-md);
}

.boat-card__prices {
	display: flex;
	gap: var(--space-lg);
	padding-top: var(--space-md);
	border-top: 1px solid var(--color-border);
}

.boat-card__price {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
}

.boats__includes {
	margin-top: var(--space-lg);
	margin-bottom: var(--space-sm);
}

/* === TOUR TEASER === */

.tour-teaser {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-xl);
	align-items: center;
}

@media (min-width: 768px) {
	.tour-teaser {
		grid-template-columns: 1fr 1fr;
		gap: var(--space-2xl);
	}
}

.tour-teaser__content h2 {
	margin-bottom: var(--space-md);
}

.tour-teaser__content p {
	margin-bottom: var(--space-md);
}

.tour-teaser__highlights {
	margin-bottom: var(--space-xl);
}

.tour-teaser__highlights li {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	padding: var(--space-sm) 0;
	font-weight: 500;
}

.tour-teaser__highlights svg {
	color: var(--color-primary);
	flex-shrink: 0;
}

.tour-teaser__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: var(--radius-lg);
	aspect-ratio: 16 / 9;
}

.tour-teaser__image-placeholder {
	width: 100%;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
	border-radius: var(--radius-lg);
	opacity: 0.3;
}

/* === LOCATION TEASER === */

.location-teaser {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-xl);
	align-items: start;
}

@media (min-width: 768px) {
	.location-teaser {
		grid-template-columns: 1fr 1fr;
		gap: var(--space-2xl);
	}
}

.location-teaser__distance {
	font-size: var(--text-h3);
	color: var(--color-primary);
	margin-bottom: var(--space-md);
}

.location-teaser__map {
	width: 100%;
	min-height: 350px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background-color: var(--color-muted);
}

@media (min-width: 768px) {
	.location-teaser__map {
		min-height: 400px;
	}
}

.location-teaser__map iframe,
.location-teaser__map .maps-embed,
.location-teaser__map .maps-embed iframe {
	width: 100% !important;
	height: 100% !important;
	min-height: 350px;
	border: none;
	display: block;
}

@media (min-width: 768px) {
	.location-teaser__map iframe,
	.location-teaser__map .maps-embed,
	.location-teaser__map .maps-embed iframe {
		min-height: 400px;
	}
}

.location-teaser__map-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: var(--space-xl);
	text-align: center;
	color: var(--color-muted-foreground);
}
