/**
 * GDC Zone 1: The Stop (Hero) — Styles
 * S7 §Z1: Full-bleed hero, content overlay, trust bar, responsive layout
 *
 * @package GDC
 * @since   5.0.0
 */

/* ==========================================================
   HERO CONTAINER
   ========================================================== */

.gdc-zone-1-hero {
	position: relative;
	min-height: 480px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
	/* Clear the fixed site header (72px + safe-area) so the hero title can
	   never paint up underneath the logo when the hero is short or the
	   title wraps tall. Scoped to the trip hero only. */
	padding-top: calc(var(--header-height, 72px) + env(safe-area-inset-top, 0px));
}

/* ==========================================================
   HERO IMAGE — full-bleed with gradient overlay
   ========================================================== */

.gdc-hero-image-wrapper {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.gdc-hero-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.gdc-hero-gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.7) 100%);
	pointer-events: none;
}

/* ==========================================================
   CONTENT OVERLAY — title, subtitle, price, CTA
   ========================================================== */

.gdc-hero-content {
	position: relative;
	z-index: 2;
	padding: 0 var(--gdc-section-px-mobile) var(--gdc-space-3);
	text-align: left;
	max-width: var(--gdc-max-content);
	width: 100%;
}

.gdc-hero-title {
	font-family: var(--gdc-font-heading);
	font-size: var(--gdc-text-4xl);
	font-weight: var(--gdc-font-semibold);
	color: var(--gdc-white);
	letter-spacing: var(--gdc-tracking-tighter);
	line-height: var(--gdc-leading-tight);
	margin: 0 0 var(--gdc-space-1);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.gdc-hero-subtitle {
	font-family: var(--gdc-font-body);
	font-size: var(--gdc-text-base);
	color: var(--gdc-alpha-70);
	letter-spacing: var(--gdc-tracking-wider);
	text-transform: uppercase;
	margin: 0 0 var(--gdc-space-2);
}

.gdc-hero-icons {
	font-family: var(--gdc-font-body);
	font-size: var(--gdc-text-sm);
	color: var(--gdc-alpha-60);
	line-height: var(--gdc-leading-loose);
	margin-bottom: var(--gdc-space-3);
}

.gdc-hero-price {
	font-family: var(--gdc-font-body);
	font-size: var(--gdc-text-xl);
	font-weight: var(--gdc-font-bold);
	color: var(--gdc-purple);
	margin-bottom: var(--gdc-space-3);
}

/* ==========================================================
   CTA BUTTON
   ========================================================== */

.gdc-hero-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--gdc-accent-cta);
	color: var(--gdc-white);
	padding: 0 var(--gdc-space-5);
	border-radius: var(--gdc-radius-button);
	font-family: var(--gdc-font-body);
	font-size: var(--gdc-text-base);
	font-weight: var(--gdc-font-semibold);
	text-decoration: none;
	letter-spacing: var(--gdc-tracking-wide);
	min-height: var(--gdc-tap-target-primary);
	transition: background var(--gdc-duration-standard) var(--gdc-ease-default),
	            transform var(--gdc-duration-fast) var(--gdc-ease-default);
	width: 100%;
	text-align: center;
}

.gdc-hero-cta:hover {
	background: var(--gdc-accent-hover);
	color: var(--gdc-white);
}

.gdc-hero-cta:active {
	background: var(--gdc-accent-active);
	transform: scale(0.98);
}

.gdc-hero-cta:focus-visible {
	outline: none;
	box-shadow: var(--gdc-accent-focus);
}

/* ==========================================================
   TRUST BAR — below hero content
   ========================================================== */

.gdc-hero-trust-bar {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: var(--gdc-space-xs);
	padding: var(--gdc-space-2) var(--gdc-section-px-mobile);
	border-top: 1px solid var(--gdc-border-light);
	background: rgba(10, 10, 10, 0.5);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.gdc-trust-item {
	display: flex;
	align-items: center;
	gap: var(--gdc-space-1);
	padding: var(--gdc-space-1) 0;
	text-decoration: none;
	color: var(--gdc-text-primary);
	transition: opacity var(--gdc-duration-fast) var(--gdc-ease-default);
}

.gdc-trust-item:hover {
	opacity: 0.8;
	color: var(--gdc-text-primary);
}

.gdc-trust-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--gdc-purple);
	width: 20px;
	height: 20px;
}

.gdc-trust-label {
	font-family: var(--gdc-font-body);
	font-size: var(--gdc-text-sm);
	font-weight: var(--gdc-font-semibold);
	color: var(--gdc-white);
	white-space: nowrap;
}

.gdc-trust-detail {
	font-family: var(--gdc-font-body);
	font-size: var(--gdc-text-xs);
	color: var(--gdc-white-muted);
	white-space: nowrap;
}

/* ==========================================================
   TABLET — 768px+
   ========================================================== */

@media (min-width: 768px) {
	.gdc-zone-1-hero {
		min-height: 520px;
	}

	.gdc-hero-content {
		padding: 0 var(--gdc-space-6) var(--gdc-space-4);
	}

	.gdc-hero-title {
		font-size: var(--gdc-text-5xl);
	}

	.gdc-hero-subtitle {
		font-size: var(--gdc-text-xl);
	}

	.gdc-hero-price {
		font-size: var(--gdc-text-2xl);
	}

	.gdc-hero-cta {
		width: auto;
		min-width: 240px;
	}

	.gdc-hero-trust-bar {
		flex-direction: row;
		justify-content: center;
		gap: var(--gdc-space-4);
		padding: var(--gdc-space-2) var(--gdc-space-6);
	}

	.gdc-trust-item {
		padding: var(--gdc-space-1) var(--gdc-space-2);
	}
}

/* ==========================================================
   DESKTOP — 1200px+
   ========================================================== */

@media (min-width: 1200px) {
	.gdc-zone-1-hero {
		min-height: 560px;
	}

	.gdc-hero-content {
		padding: 0 var(--gdc-space-8) var(--gdc-space-6);
		max-width: var(--gdc-max-wide);
		margin: 0 auto;
		text-align: left;
	}

	.gdc-hero-title {
		font-size: var(--gdc-text-7xl);
	}

	.gdc-hero-subtitle {
		font-size: var(--gdc-text-xl);
	}

	.gdc-hero-trust-bar {
		gap: var(--gdc-space-6);
		padding: var(--gdc-space-3) var(--gdc-space-8);
	}
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
	.gdc-hero-cta {
		transition: none;
	}

	.gdc-trust-item {
		transition: none;
	}
}
