/**
 * Destination Hero widget styles.
 *
 * Figma reference:
 * https://www.figma.com/design/UFbyQSXqjJ3fkYXo3ORgO7/Wellenreiten-2026-Handoff-Ext--Copy-?node-id=70-14168
 *
 * Unlike Header Slider (assets/css/header-slider.css), the background
 * is a single static image and the intro text/button (if enabled)
 * never changes — only the camp card cycles. The card itself reuses
 * the same typography/colors as the Surfcamp Cards widget
 * (assets/surfcamp-cards.css) for visual consistency; the intro
 * text/button reuses Header Slider's own typography/gradients.
 */

.wrdh-hero {
	--wrdh-heading-font: 'Archivo', var(--font-family, 'Source Sans 3'), Arial, Helvetica, sans-serif;
	--wrdh-body-font: var(--font-family, 'Source Sans 3'), Arial, Helvetica, sans-serif;
	--wrdh-navy: #0f4c81;
	--wrdh-border: rgba(0, 0, 0, 0.1);
	--wrdh-radius: 16px;
	--wrdh-text: #171717;
	--wrdh-muted: #525252;
	--wrdh-badge: #9c6006;

	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 620px;
	border-radius: var(--wrdh-radius);
	overflow: hidden;
	background-color: var(--wrdh-navy);
}

/* Figma "Hero" frame is 708px tall at its native 1920px desktop canvas. */
@media (min-width: 1024px) {
	.wrdh-hero {
		min-height: 708px;
	}
}

/**
 * Breaks the hero out wider than the page's normal boxed content
 * column (the Elementor container other sections respect), matching
 * the Figma reference: on its 1920px canvas the Hero Image is 1792px
 * wide with only a 64px inset from the page edge, versus 1320px
 * (300px insets) for standard content sections — but capped at
 * --wrdh-max-width so it doesn't keep growing on ultra-wide monitors
 * (Figma's own reference is a fixed 1920px canvas, not an
 * infinitely-scaling one).
 *
 * `left: 50%; transform: translateX(-50%);` is the standard "break out
 * of a centered column, capped at a max-width" technique: because the
 * column itself is horizontally centered on the page (no sidebar),
 * shifting right by 50% of the column's width and then left by 50% of
 * the hero's OWN width always re-centers the hero on the true
 * viewport — regardless of the hero's own computed width — so it
 * keeps working whether that width is the full `100vw - 2*gutter` or
 * the capped --wrdh-max-width. A `calc(50% - 50vw)` margin trick was
 * tried first and rejected: it has no clean way to blend with a
 * max-width cap without the hero going off-center once the cap kicks
 * in (the margin offset is fixed, but the width suddenly isn't).
 * Desktop-only (matches the existing 1024px layout breakpoint) —
 * mobile viewports already have very little side gutter, and don't
 * need the effect.
 */
@media (min-width: 1024px) {
	.wrdh-hero {
		--wrdh-max-width: 1800px;

		left: 50%;
		transform: translateX(-50%);
		width: min(calc(100vw - 80px), var(--wrdh-max-width));
	}
}

.wrdh-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.wrdh-hero__scrim {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(256deg, rgba(15, 76, 129, 0.2) 30%, var(--wrdh-navy) 89%),
		linear-gradient(126deg, rgba(15, 76, 129, 0.2) 59%, var(--wrdh-navy) 100%);
}

/**
 * Holds both the static intro (text/button, never changes) and the
 * cluster (nav arrows + cycling card) — a column on narrow screens
 * (intro stacked above the card), a row from 1024px up (intro left,
 * card cluster right), matching Header Slider's own breakpoint.
 */
.wrdh-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 32px;
	width: 100%;
	padding: 24px;
	text-align: center;
}

@media (min-width: 640px) {
	.wrdh-hero__content {
		padding: 48px;
	}
}

/**
 * max-width + auto margins here re-center the intro text/card cluster
 * to the SAME ~1400px reading column the rest of the page's content
 * uses — not to the hero's own (now deliberately wider) background,
 * which would otherwise leave the intro text out of alignment with
 * the page content above/below it.
 *
 * 1400px was measured directly against page content on two different
 * templates (a classic Elementor section's .elementor-container:
 * max-width 1480px/40px padding nets 1400px of content; a newer Flex
 * Container .e-con row measured at 1400px directly) — this site runs
 * both container systems depending on the page/template, and they
 * don't share a reusable CSS custom property, so 1400px is hardcoded
 * as their common value. Keep this in sync if the site's boxed
 * content width setting changes.
 */
@media (min-width: 1024px) {
	.wrdh-hero__content {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
		max-width: 1400px;
		margin-left: auto;
		margin-right: auto;
		padding: 0;
		gap: 48px;
	}
}

.wrdh-hero__intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	max-width: 560px;
}

@media (min-width: 1024px) {
	.wrdh-hero__intro {
		align-items: flex-start;
		flex: 1 1 auto;
	}
}

.wrdh-hero__intro-heading-group {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.wrdh-hero__intro-kicker {
	display: block;
	font: 600 18px/26px var(--wrdh-body-font);
	text-transform: uppercase;
	background: linear-gradient(87.5deg, #fdbf53, #fdefce);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1024px) {
	.wrdh-hero__intro-kicker {
		font-size: 20px;
		line-height: 30px;
	}
}

.wrdh-hero__intro-heading {
	margin: 0;
	font: 700 40px/48px var(--wrdh-heading-font);
	letter-spacing: -0.02em;
	color: #ffffff;
}

@media (min-width: 1024px) {
	.wrdh-hero__intro-heading {
		font-size: 56px;
		line-height: 64px;
	}
}

@media (min-width: 1440px) {
	.wrdh-hero__intro-heading {
		font-size: 64px;
		line-height: 76px;
	}
}

.wrdh-hero__intro-subtext {
	margin: 0;
	font: 500 18px/28px var(--wrdh-body-font);
	color: #ffffff;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.wrdh-hero__intro-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	padding: 12px 18px;
	background: linear-gradient(95deg, #fadf9e, #fdbf53);
	border-radius: 8px;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	font: 700 18px/28px var(--wrdh-body-font);
	color: var(--wrdh-text);
	text-decoration: none;
	cursor: pointer;
}

/**
 * The nav-arrows + card cluster — a flex child of .wrdh-hero__content
 * now (not absolutely positioned), so it naturally sits opposite the
 * intro text and stays vertically centered within the row.
 */
.wrdh-hero__cluster {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	max-width: 100%;
}

@media (min-width: 640px) {
	.wrdh-hero__cluster {
		gap: 16px;
	}
}

/**
 * Scoped as `.wrdh-hero .wrdh-hero__nav` (not just `.wrdh-hero__nav`) so
 * these plain <button> elements out-specify the site's global Elementor
 * Kit button reset (`.elementor-kit-<id> button`, specificity 0,1,1) —
 * same reasoning as Header Slider's nav buttons (assets/css/header-slider.css).
 */
/**
 * Elementor Pro's site-wide Font Awesome Pro Kit integration (a
 * database setting, not theme code) injects its own CSS that
 * out-cascades this theme's bundled Font Awesome 6 Free icon set.
 * The Kit's currently-configured icon subset doesn't include
 * angle-left/angle-right, so its rule sets an empty `content`,
 * making these nav icons invisible wherever that Kit is active.
 * Setting content + font-family explicitly (matching the theme's own
 * bundled all.min.css mapping) makes these two icons independent of
 * whichever Font Awesome source wins the cascade. Same issue/fix as
 * Header Slider's nav buttons (assets/css/header-slider.css).
 */
.wrdh-hero .wrdh-hero__nav .fa-angle-left::before {
	content: '\f104';
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
}

.wrdh-hero .wrdh-hero__nav .fa-angle-right::before {
	content: '\f105';
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
}

.wrdh-hero .wrdh-hero__nav {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	background: rgba(255, 255, 255, 0.9);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 0;
	border-radius: 9999px;
	color: var(--wrdh-text);
	font-size: 16px;
	cursor: pointer;
}

/**
 * Without this, the site's global Elementor Kit `:hover` rule
 * (`.elementor-kit-<id> button:hover { background-color: ... }`,
 * specificity 0,2,1) out-specifies the plain `.wrdh-hero .wrdh-hero__nav`
 * rule above on hover (0,2,0 loses to 0,2,1), repainting the button's
 * background to the kit's dark secondary color and making the icon
 * disappear against it. Tripling the class count here (0,3,0) beats it
 * regardless of stylesheet load order.
 */
.wrdh-hero .wrdh-hero__nav:hover {
	background: #ffffff;
}

.wrdh-hero__stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: min(306px, 62vw);
}

@media (min-width: 640px) {
	.wrdh-hero__stage {
		width: 306px;
	}
}

.wrdh-hero__cards {
	display: grid;
	width: 100%;
}

.wrdh-hero__card {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid var(--wrdh-border);
	border-radius: var(--wrdh-radius);
	box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.16);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease;
}

.wrdh-hero__card.is-active {
	opacity: 1;
	visibility: visible;
}

.wrdh-hero__card-media {
	border-bottom: 0.5px solid var(--wrdh-border);
	aspect-ratio: 306 / 204;
	overflow: hidden;
}

.wrdh-hero__card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wrdh-hero__card-body {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 16px 24px 24px;
}

.wrdh-hero__card-heading {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wrdh-hero__card-badge {
	margin: 0;
	font: 500 16px/24px var(--wrdh-body-font);
	text-transform: uppercase;
	color: var(--wrdh-badge);
}

.wrdh-hero__card-title {
	margin: 0;
	font: 700 24px/32px var(--wrdh-heading-font);
	letter-spacing: -0.48px;
	color: var(--wrdh-text);
}

.wrdh-hero__card-desc {
	margin: 0;
	font: 400 16px/24px var(--wrdh-body-font);
	color: var(--wrdh-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wrdh-hero__card-price {
	margin: 0;
	font: 700 24px/32px var(--wrdh-heading-font);
	letter-spacing: -0.48px;
	color: var(--wrdh-navy);
}

.wrdh-hero__dots {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px;
	background: rgba(15, 76, 129, 0.25);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	border-radius: 9999px;
}

.wrdh-hero .wrdh-hero__dot {
	width: 16px;
	height: 4px;
	padding: 0;
	background: rgba(244, 248, 251, 0.5);
	border: 0;
	border-radius: 9999px;
	cursor: pointer;
}

.wrdh-hero .wrdh-hero__dot.is-active {
	background: #ffffff;
}

@media (max-width: 640px) {
	.wrdh-hero__cluster {
		gap: 8px;
	}

	.wrdh-hero .wrdh-hero__nav {
		width: 36px;
		height: 36px;
		font-size: 14px;
	}
}
