/**
 * UROCLINIC Hero — Image Showcase + Trust Strip
 * Premium medical hero with framed clinic composition
 * Mobile-first | 8px grid | WCAG AA
 */

/* Smooth scroll behavior for anchor links */
html {
	scroll-behavior: smooth;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-medical {
	position: relative;
	min-height: 90vh;
	min-height: 90svh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: linear-gradient(135deg, #071620 0%, #0a5a5c 45%, #0D7377 100%);
	padding-bottom: 64px; /* space for scroll indicator */
}

/* Subtle radial overlays for depth */
.hero-medical::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 15% 85%, rgba(45, 212, 216, 0.08) 0%, transparent 45%),
		radial-gradient(circle at 85% 15%, rgba(255,255,255,0.04) 0%, transparent 35%);
	pointer-events: none;
	z-index: 1;
}

/* Animated gradient overlay */
.hero-medical::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 30% 20%, rgba(232, 90, 36, 0.06) 0%, transparent 50%);
	animation: heroGlow 8s ease-in-out infinite alternate;
	pointer-events: none;
	z-index: 1;
}

@keyframes heroGlow {
	0% { opacity: 0.3; transform: scale(1); }
	100% { opacity: 0.6; transform: scale(1.1); }
}

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

.hero-container {
	position: relative;
	z-index: 3;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 1280px;
	margin: 0 auto;
	padding: clamp(80px, 12vh, 120px) 24px clamp(80px, 10vh, 100px);
	width: 100%;
	gap: 40px;
}

/* ==========================================================================
   HERO CONTENT (Text Side)
   ========================================================================== */

.hero-content {
	text-align: center;
	max-width: 680px;
	opacity: 0;
	animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

@keyframes heroFadeUp {
	from { opacity: 0; transform: translateY(28px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Trust Badge */
.hero-trust-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: rgba(13, 115, 119, 0.25);
	padding: 8px 18px;
	border-radius: 50px;
	margin-bottom: 24px;
	border: 1px solid rgba(45, 212, 216, 0.3);
	opacity: 0;
	animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.trust-icon {
	width: 22px;
	height: 22px;
	background: linear-gradient(135deg, #0D7377 0%, #14b8a6 100%);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: bold;
	box-shadow: 0 2px 8px rgba(13, 115, 119, 0.4);
}

.hero-trust-badge span:last-child {
	color: #5de6e8;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* Title */
.hero-medical-title {
	font-size: clamp(1.75rem, 5vw, 3.25rem);
	font-weight: 800;
	color: #ffffff;
	line-height: 1.15;
	margin: 0 0 20px;
	letter-spacing: -0.02em;
	opacity: 0;
	animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.title-accent {
	background: linear-gradient(135deg, #2dd4d8 0%, #5de6e8 50%, #a5f3fc 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Subtitle */
.hero-medical-subtitle {
	font-size: clamp(0.9375rem, 1.8vw, 1.125rem);
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.75;
	margin: 0 0 32px;
	letter-spacing: 0.005em;
	opacity: 0;
	animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

/* ==========================================================================
   CTA BUTTONS — Pill-shaped Premium
   ========================================================================== */

.hero-medical-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	opacity: 0;
	animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

/* Primary Phone CTA */
.btn-hero-call {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: linear-gradient(135deg, #E85A24 0%, #d14a18 100%);
	color: white;
	padding: 16px 32px;
	border-radius: 60px;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	box-shadow:
		0 4px 20px rgba(232, 90, 36, 0.35),
		0 0 0 0 rgba(232, 90, 36, 0.4);
	position: relative;
	overflow: hidden;
	animation: ctaPulse 2.5s ease-in-out 2s infinite;
}

@keyframes ctaPulse {
	0%, 100% { box-shadow: 0 4px 20px rgba(232, 90, 36, 0.35), 0 0 0 0 rgba(232, 90, 36, 0.4); }
	50% { box-shadow: 0 4px 30px rgba(232, 90, 36, 0.45), 0 0 0 10px rgba(232, 90, 36, 0); }
}

.btn-hero-call::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #ff6b35 0%, #E85A24 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
	border-radius: 60px;
}

.btn-hero-call:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 8px 35px rgba(232, 90, 36, 0.45);
	animation: none;
}

.btn-hero-call:hover::before {
	opacity: 1;
}

.btn-hero-call:active {
	transform: translateY(-1px);
	transition-duration: 0.1s;
}

.btn-hero-call svg,
.btn-hero-call span {
	position: relative;
	z-index: 1;
}

/* Phone ring animation */
.btn-hero-call svg {
	animation: phoneRing 3s ease-in-out infinite;
	animation-delay: 2s;
}

@keyframes phoneRing {
	0%, 100% { transform: rotate(0deg); }
	5% { transform: rotate(-10deg); }
	10% { transform: rotate(10deg); }
	15% { transform: rotate(-8deg); }
	20% { transform: rotate(8deg); }
	25% { transform: rotate(0deg); }
}

/* Secondary CTA */
.btn-hero-services {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 28px;
	background: rgba(255, 255, 255, 0.06);
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 60px;
	color: white;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.btn-hero-services::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(13, 115, 119, 0.3), rgba(13, 115, 119, 0.1));
	opacity: 0;
	transition: opacity 0.3s ease;
	border-radius: 60px;
}

.btn-hero-services:hover {
	border-color: rgba(45, 212, 216, 0.5);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(13, 115, 119, 0.25);
}

.btn-hero-services:hover::before {
	opacity: 1;
}

.btn-hero-services:active {
	transform: translateY(0);
}

.btn-hero-services span,
.btn-hero-services svg {
	position: relative;
	z-index: 1;
}

.btn-hero-services svg {
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-hero-services:hover svg {
	transform: translateX(5px);
}

/* Focus states */
.btn-hero-call:focus-visible,
.btn-hero-services:focus-visible {
	outline: none;
	box-shadow:
		0 0 0 3px #ffffff,
		0 0 0 6px rgba(13, 115, 119, 0.5);
}

/* ==========================================================================
   IMAGE SHOWCASE
   ========================================================================== */

.hero-image-showcase {
	position: relative;
	width: 100%;
	max-width: 620px;
	margin: 0 auto;
	opacity: 0;
	transform: scale(0.96);
	animation: imageReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes imageReveal {
	to { opacity: 1; transform: scale(1); }
}

/* Decorative glow behind image */
.hero-image-showcase::before {
	content: "";
	position: absolute;
	inset: -20px;
	background: radial-gradient(ellipse at center, rgba(45, 212, 216, 0.15) 0%, transparent 70%);
	border-radius: 28px;
	z-index: 0;
	opacity: 0;
	animation: glowFade 1s ease 0.8s forwards;
	filter: blur(20px);
}

@keyframes glowFade {
	to { opacity: 1; }
}

.hero-image-showcase img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.3),
		0 2px 8px rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.1);
	position: relative;
	z-index: 1;
}

/* ==========================================================================
   SCROLL INDICATOR
   ========================================================================== */

.hero-scroll {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	z-index: 10;
	cursor: pointer;
	opacity: 0;
	animation: scrollReveal 0.6s ease 1.2s forwards;
	transition: transform 0.3s ease, opacity 0.3s ease;
	padding: 8px 0px;
}

.hero-scroll:hover {
	transform: translateX(-50%) translateY(-3px);
}

@keyframes scrollReveal {
	to { opacity: 1; }
}

.scroll-text {
	font-size: 10px;
	color: rgba(255, 255, 255, 0.8);
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 600;
}

.scroll-icon {
	width: 26px;
	height: 42px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: 13px;
	position: relative;
	display: flex;
	justify-content: center;
	transition: border-color 0.3s ease;
}

.hero-scroll:hover .scroll-icon {
	border-color: rgba(45, 212, 216, 0.8);
}

.scroll-wheel {
	width: 3px;
	height: 8px;
	background: linear-gradient(180deg, #2dd4d8, #5de6e8);
	border-radius: 3px;
	margin-top: 8px;
	animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
	0%, 100% { transform: translateY(0); opacity: 1; }
	50% { transform: translateY(14px); opacity: 0.3; }
}

.hero-scroll:focus-visible {
	outline: 2px solid #2dd4d8;
	outline-offset: 4px;
	border-radius: 4px;
}

/* ==========================================================================
   TRUST STRIP — Unified Stats Bar (all viewports)
   ========================================================================== */

.trust-strip {
	position: relative;
	z-index: 5;
	margin-top: -24px;
	overflow: hidden;
}

.trust-strip-inner {
	position: relative;
	background: linear-gradient(135deg, #0a5a5c 0%, #0D7377 50%, #0f8386 100%);
	padding: 28px 24px;
	z-index: 1;
}

/* Subtle ambient glow */
.trust-strip-inner::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 20% 50%, rgba(45, 212, 216, 0.12) 0%, transparent 50%),
		radial-gradient(circle at 80% 50%, rgba(232, 90, 36, 0.08) 0%, transparent 50%);
	pointer-events: none;
}

/* Top edge highlight */
.trust-strip-inner::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent 5%, rgba(45, 212, 216, 0.3) 50%, transparent 95%);
}

.trust-strip-stats {
	display: flex;
	justify-content: center;
	align-items: center;
	max-width: 700px;
	margin: 0 auto;
	gap: 0;
	position: relative;
}

.trust-stat {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 0 16px;
}

.trust-stat-icon {
	width: 36px;
	height: 36px;
	margin-bottom: 10px;
	color: #2dd4d8;
	opacity: 0.85;
}

.trust-stat-icon svg {
	width: 100%;
	height: 100%;
}

.trust-stat-number {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 2px;
	line-height: 1;
	margin-bottom: 6px;
}

.trust-stat-number .stat-counter {
	font-size: 2rem;
	font-weight: 800;
	color: #ffffff;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.trust-stat-number .stat-suffix {
	font-size: 1.25rem;
	font-weight: 700;
	color: #2dd4d8;
}

.trust-stat-label {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.75);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 500;
}

.trust-stat-divider {
	width: 1px;
	height: 48px;
	background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
	flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE — DESKTOP 1024px+
   ========================================================================== */

@media (min-width: 1024px) {
	.hero-medical {
		min-height: 85vh;
		min-height: 85svh;
	}

	.hero-container {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 48px;
		align-items: center;
		padding: clamp(80px, 10vh, 120px) 40px 24px;
	}

	.hero-content {
		text-align: left;
	}

	.hero-trust-badge {
		margin-left: 0;
	}

	.hero-medical-cta {
		justify-content: flex-start;
	}

	.hero-image-showcase {
		max-width: 560px;
	}

	.hero-image-showcase img {
		border-radius: 20px;
	}

	/* Trust strip stats can be wider on desktop */
	.trust-strip-stats {
		max-width: 900px;
	}

	.trust-stat-number .stat-counter {
		font-size: 2.5rem;
	}

	.trust-stat-number .stat-suffix {
		font-size: 1.5rem;
	}

	.trust-stat-label {
		font-size: 12px;
	}

	.trust-stat-icon {
		width: 40px;
		height: 40px;
	}
}

/* ==========================================================================
   RESPONSIVE — LARGE DESKTOP 1280px+
   ========================================================================== */

@media (min-width: 1280px) {
	.hero-container {
		gap: 64px;
		max-width: 1340px;
	}

	.hero-medical-title {
		font-size: 3.25rem;
	}

	.hero-image-showcase {
		max-width: 600px;
	}
}

/* ==========================================================================
   RESPONSIVE — TABLET 768px
   ========================================================================== */

@media (max-width: 1023px) and (min-width: 768px) {
	.hero-medical {
		min-height: auto;
		padding-bottom: 72px;
	}

	.hero-container {
		padding: 40px 32px 36px;
		gap: 32px;
	}

	.hero-medical-title {
		font-size: 2.5rem;
	}

	.hero-image-showcase {
		max-width: 480px;
	}

	.trust-strip-stats {
		max-width: 600px;
	}
}

/* ==========================================================================
   RESPONSIVE — MOBILE ≤767px
   ========================================================================== */

@media (max-width: 767px) {
	.hero-medical {
		min-height: auto;
		padding-bottom: 0;
	}

	.hero-container {
		padding: 24px 20px 28px;
		gap: 24px;
	}

	.hero-medical-title {
		font-size: clamp(1.75rem, 8vw, 2.5rem);
		margin-bottom: 12px;
	}

	.hero-medical-subtitle {
		font-size: 0.9375rem;
		margin-bottom: 24px;
		line-height: 1.7;
	}

	.hero-medical-cta {
		flex-direction: column;
		gap: 12px;
		width: 100%;
	}

	.btn-hero-call,
	.btn-hero-services {
		justify-content: center;
		padding: 14px 24px;
		font-size: 14px;
		border-radius: 50px;
		min-height: 52px;
		width: 100%;
	}

	.btn-hero-call {
		animation: none;
		box-shadow: 0 4px 16px rgba(232, 90, 36, 0.35);
	}

	.hero-image-showcase {
		max-width: 100%;
		padding-bottom:70px;
	}

	.hero-image-showcase img {
		border-radius: 12px;
	}

	/* Scroll indicator — in flow below image on mobile */
	.hero-scroll {
		position: relative;
		bottom: auto;
		left: auto;
		right: auto;
		transform: none;
		margin: 8px auto 10px 0;
		padding: 12px 0 0;
	}

	.hero-scroll:hover {
		transform: translateY(-3px);
	}

	/* Trust strip mobile */
	.trust-strip-inner {
		padding: 24px 16px;
	}

	.trust-stat {
		padding: 0 8px;
	}

	.trust-stat-icon {
		width: 28px;
		height: 28px;
		margin-bottom: 8px;
	}

	.trust-stat-number .stat-counter {
		font-size: 1.625rem;
	}

	.trust-stat-number .stat-suffix {
		font-size: 1rem;
	}

	.trust-stat-label {
		font-size: 10px;
	}

	.trust-stat-divider {
		height: 40px;
	}
}

/* ==========================================================================
   RESPONSIVE — SMALL MOBILE ≤480px
   ========================================================================== */

@media (max-width: 480px) {
	.hero-container {
		padding: 20px 16px 24px;
		gap: 20px;
	}

	.hero-medical-title {
		font-size: clamp(1.625rem, 7.5vw, 2.25rem);
	}

	.hero-trust-badge {
		padding: 6px 14px;
		margin-bottom: 16px;
	}

	.hero-trust-badge span:last-child {
		font-size: 11px;
	}

	.btn-hero-call,
	.btn-hero-services {
		padding: 14px 20px;
	}

	.hero-image-showcase img {
		border-radius: 10px;
	}
}

/* ==========================================================================
   RESPONSIVE — TINY ≤360px
   ========================================================================== */

@media (max-width: 360px) {
	.hero-container {
		padding: 16px 14px 20px;
	}

	.trust-strip-inner {
		padding: 20px 12px;
	}

	.trust-stat-number .stat-counter {
		font-size: 1.375rem;
	}

	.trust-stat-label {
		font-size: 9px;
	}

	.trust-stat-icon {
		width: 24px;
		height: 24px;
	}
}

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

@media (prefers-reduced-motion: reduce) {
	.hero-content,
	.hero-trust-badge,
	.hero-medical-title,
	.hero-medical-subtitle,
	.hero-medical-cta,
	.hero-image-showcase,
	.hero-image-showcase::before,
	.hero-scroll {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}

	.btn-hero-call {
		animation: none !important;
	}

	.btn-hero-call svg {
		animation: none !important;
	}

	.scroll-wheel {
		animation: none !important;
	}

	.hero-medical::after {
		animation: none !important;
	}
}
