/**
 * UROCLINIC Cinematic Hero
 * Premium full-viewport hero with floating cards and animated elements
 */

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

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

.hero-cinematic {
	position: relative;
	min-height: 100svh;
	min-height: calc(100vh - 60px); /* Fallback */
	display: flex;
	flex-direction: column;
	overflow: hidden;
	overflow-x: hidden;
	background: #070d1a;
	/* Prevent ANY horizontal overflow */
	max-width: 100vw;
	width: 100%;
}

/* Global overflow prevention */
.hero-cinematic * {
	max-width: 100%;
}

/* ==========================================================================
   ANIMATED BACKGROUND
   ========================================================================== */

.hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

/* Main gradient - cinematic dark blue to black */
.hero-gradient {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 120% 80% at 10% 90%, rgba(13, 115, 119, 0.15) 0%, transparent 50%),
		radial-gradient(ellipse 100% 60% at 90% 10%, rgba(232, 90, 36, 0.08) 0%, transparent 40%),
		radial-gradient(ellipse 80% 50% at 50% 50%, rgba(13, 115, 119, 0.05) 0%, transparent 60%),
		linear-gradient(180deg, #0a1628 0%, #070d1a 50%, #050a14 100%);
}

/* Ambient glow effect */
.hero-glow {
	position: absolute;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(13, 115, 119, 0.2) 0%, transparent 70%);
	border-radius: 50%;
	top: 20%;
	left: -10%;
	filter: blur(80px);
	animation: glow-pulse 8s ease-in-out infinite;
}

@keyframes glow-pulse {
	0%, 100% { opacity: 0.5; transform: scale(1); }
	50% { opacity: 0.8; transform: scale(1.1); }
}

/* Subtle medical accent dots - softer, more appropriate for clinic */
.hero-particles {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	overflow: hidden;
}

.particle {
	position: absolute;
	width: 4px;
	height: 4px;
	background: rgba(13, 115, 119, 0.6);
	border-radius: 50%;
	opacity: 0;
	animation: particle-gentle 15s linear infinite;
}

/* Subtle glow */
.particle::after {
	content: "";
	position: absolute;
	inset: -4px;
	background: radial-gradient(circle, rgba(13, 115, 119, 0.3) 0%, transparent 70%);
	border-radius: 50%;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; animation-delay: -2s; }
.particle:nth-child(3) { left: 40%; animation-delay: -4s; }
.particle:nth-child(4) { left: 55%; animation-delay: -6s; }
.particle:nth-child(5) { left: 70%; animation-delay: -8s; }
.particle:nth-child(6) { left: 85%; animation-delay: -10s; }
.particle:nth-child(7) { left: 15%; animation-delay: -12s; }
.particle:nth-child(8) { left: 60%; animation-delay: -14s; }

@keyframes particle-gentle {
	0% {
		bottom: -10px;
		opacity: 0;
	}
	5% {
		opacity: 0.8;
	}
	95% {
		opacity: 0.6;
	}
	100% {
		bottom: 100%;
		opacity: 0;
	}
}

/* ==========================================================================
   MAIN CONTAINER
   ========================================================================== */

.hero-container {
	position: relative;
	z-index: 2;
	flex: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
	max-width: 1400px;
	margin: 0 auto;
	padding: 80px 40px 60px;
	width: 100%;
}

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

.hero-content {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* Specialty Badges */
.hero-badges {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 50px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	animation: badge-fade-in 0.8s ease-out both;
}

.badge svg {
	flex-shrink: 0;
}

.badge-primary {
	background: rgba(13, 115, 119, 0.2);
	border: 1px solid rgba(13, 115, 119, 0.4);
	color: var(--wp--preset--color--primary-light, #2dd4d8);
	animation-delay: 0.2s;
}

.badge-secondary {
	background: rgba(232, 90, 36, 0.15);
	border: 1px solid rgba(232, 90, 36, 0.3);
	color: #ff9a6c;
	animation-delay: 0.35s;
}

@keyframes badge-fade-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Main Title */
.hero-title {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	line-height: 1;
}

.title-line {
	display: block;
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	font-weight: 800;
	color: #ffffff;
	letter-spacing: -0.02em;
	animation: title-slide-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.title-line-1 {
	animation-delay: 0.3s;
}

.title-line-2 {
	animation-delay: 0.45s;
}

.title-line-2 em {
	font-style: normal;
	background: linear-gradient(135deg, var(--wp--preset--color--primary) 0%, #2dd4d8 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	position: relative;
}

/* Animated underline on the emphasized word */
.title-line-2 em::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0.05em;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, var(--wp--preset--color--secondary), #ff9a6c);
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: left;
	animation: underline-grow 0.6s ease-out 1s forwards;
}

@keyframes title-slide-up {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes underline-grow {
	to {
		transform: scaleX(1);
	}
}

/* Subtitle */
.hero-subtitle {
	margin: 0;
	font-size: clamp(1rem, 2vw, 1.25rem);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.7);
	max-width: 500px;
	animation: fade-in-up 0.8s ease-out 0.6s both;
}

@keyframes fade-in-up {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ==========================================================================
   CTA BUTTONS
   ========================================================================== */

.hero-cta-group {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: 8px;
	animation: fade-in-up 0.8s ease-out 0.75s both;
}

/* Primary CTA - Phone Call */
.hero-cta-primary {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	background: linear-gradient(135deg, var(--wp--preset--color--secondary) 0%, var(--wp--preset--color--secondary-dark, #c74a1a) 100%);
	color: #ffffff;
	padding: 16px 28px 16px 20px;
	border-radius: 60px;
	text-decoration: none;
	font-weight: 600;
	position: relative;
	overflow: hidden;
	transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow:
		0 4px 20px rgba(232, 90, 36, 0.3),
		0 0 0 0 rgba(232, 90, 36, 0.4);
	animation: cta-pulse 2.5s ease-in-out infinite;
}

@keyframes cta-pulse {
	0%, 100% { box-shadow: 0 4px 20px rgba(232, 90, 36, 0.3), 0 0 0 0 rgba(232, 90, 36, 0.4); }
	50% { box-shadow: 0 4px 30px rgba(232, 90, 36, 0.4), 0 0 0 12px rgba(232, 90, 36, 0); }
}

/* Phone ring animation for hero CTA */
@keyframes hero-phone-ring {
	0%, 100% { transform: rotate(0deg); }
	8% { transform: rotate(-14deg); }
	16% { transform: rotate(14deg); }
	24% { transform: rotate(-14deg); }
	32% { transform: rotate(14deg); }
	40% { transform: rotate(0deg); }
}

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

.hero-cta-primary .cta-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	animation: hero-phone-ring 2.5s ease-in-out infinite;
}

.hero-cta-primary:hover .cta-icon {
	animation: none;
	background: rgba(255, 255, 255, 0.3);
	transform: scale(1.05);
}

.hero-cta-primary .cta-text {
	display: flex;
	flex-direction: column;
	text-align: left;
}

.hero-cta-primary .cta-text small {
	font-size: 12px;
	font-weight: 500;
	opacity: 0.85;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.hero-cta-primary .cta-text strong {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.hero-cta-primary .cta-arrow {
	display: flex;
	transition: transform 200ms ease;
}

.hero-cta-primary:hover .cta-arrow {
	transform: translateX(4px);
}

/* Secondary CTA - Enhanced with better animations */
.hero-cta-secondary {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	padding: 14px 24px;
	border-radius: 50px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.15);
	position: relative;
	overflow: hidden;
	transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta-secondary::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 300ms ease;
	border-radius: 50px;
}

.hero-cta-secondary:hover {
	color: #ffffff;
	border-color: rgba(13, 115, 119, 0.5);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(13, 115, 119, 0.25);
}

.hero-cta-secondary:hover::before {
	opacity: 1;
}

.hero-cta-secondary svg {
	position: relative;
	z-index: 1;
	transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta-secondary:hover svg {
	transform: translateX(6px);
}

.hero-cta-secondary span {
	position: relative;
	z-index: 1;
}

/* ==========================================================================
   FLOATING INFO CARDS (Right Side)
   ========================================================================== */

.hero-cards {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 40px 0;
}

.hero-card {
	display: flex;
	align-items: center;
	gap: 18px;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	padding: 24px 28px;
	transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
	animation: card-float-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
	cursor: default;
}

.hero-card:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(13, 115, 119, 0.3);
	transform: translateX(-10px) translateY(-2px);
	box-shadow:
		0 20px 40px rgba(0, 0, 0, 0.3),
		0 0 60px rgba(13, 115, 119, 0.1);
}

.hero-card-experience { animation-delay: 0.5s; }
.hero-card-patients { animation-delay: 0.65s; margin-left: 40px; }
.hero-card-location { animation-delay: 0.8s; margin-left: 20px; }

@keyframes card-float-in {
	from {
		opacity: 0;
		transform: translateX(60px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.hero-card .card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, rgba(13, 115, 119, 0.2) 0%, rgba(13, 115, 119, 0.05) 100%);
	border: 1px solid rgba(13, 115, 119, 0.3);
	border-radius: 16px;
	color: var(--wp--preset--color--primary-light, #2dd4d8);
	flex-shrink: 0;
	transition: all 300ms ease;
}

.hero-card:hover .card-icon {
	background: linear-gradient(135deg, var(--wp--preset--color--primary), var(--wp--preset--color--primary-dark));
	border-color: transparent;
	color: #ffffff;
	transform: scale(1.05);
}

.hero-card .card-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hero-card .card-value {
	font-size: 1.75rem;
	font-weight: 800;
	color: #ffffff;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.hero-card .card-label {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
	font-weight: 500;
}

/* ==========================================================================
   SCROLL INDICATOR - Animated mouse wheel style
   ========================================================================== */

.hero-scroll-indicator {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	cursor: pointer;
	padding: 12px 20px;
	border-radius: 30px;
	transition: all 300ms ease;
	animation: indicator-fade-in 1s ease-out 1.2s both;
}

@keyframes indicator-fade-in {
	from { opacity: 0; transform: translateX(-50%) translateY(20px); }
	to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.hero-scroll-indicator:hover {
	background: rgba(255, 255, 255, 0.08);
}

.scroll-text {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: rgba(255, 255, 255, 0.5);
	font-weight: 600;
	transition: color 300ms ease;
}

.hero-scroll-indicator:hover .scroll-text {
	color: rgba(255, 255, 255, 0.8);
}

/* Mouse wheel shape */
.scroll-line {
	width: 24px;
	height: 40px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 12px;
	position: relative;
	transition: border-color 300ms ease;
}

.hero-scroll-indicator:hover .scroll-line {
	border-color: rgba(255, 255, 255, 0.5);
}

/* Animated dot inside mouse */
.scroll-line::after {
	content: "";
	position: absolute;
	top: 6px;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 8px;
	background: #0D7377;
	border-radius: 4px;
	animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
	0%, 100% {
		top: 6px;
		opacity: 1;
	}
	50% {
		top: 22px;
		opacity: 0.3;
	}
}

/* ==========================================================================
   RESPONSIVE - TABLET
   ========================================================================== */

@media (max-width: 1024px) {
	.hero-container {
		grid-template-columns: 1fr;
		gap: 50px;
		padding: 60px 32px 80px;
		text-align: center;
	}

	.hero-content {
		align-items: center;
	}

	.hero-badges {
		justify-content: center;
	}

	.hero-title {
		align-items: center;
	}

	.hero-subtitle {
		text-align: center;
		max-width: 600px;
	}

	.hero-cta-group {
		justify-content: center;
	}

	.hero-cards {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		gap: 16px;
		padding: 0;
	}

	.hero-card {
		margin-left: 0 !important;
		flex: 0 1 auto;
	}

	.hero-card:hover {
		transform: translateY(-5px);
	}
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */

@media (max-width: 640px) {
	.hero-cinematic {
		min-height: calc(100svh - 60px);
		overflow-x: hidden;
	}

	.hero-container {
		padding: 40px 16px 100px;
		gap: 36px;
		overflow: hidden;
	}

	.hero-content,
	.hero-cards {
		overflow: hidden;
	}

	.hero-badges {
		gap: 8px;
	}

	.badge {
		padding: 8px 14px;
		font-size: 11px;
	}

	.title-line {
		font-size: clamp(1.875rem, 9vw, 2.5rem);
	}

	.hero-subtitle {
		font-size: 0.9375rem;
		line-height: 1.6;
	}

	.hero-cta-group {
		flex-direction: column;
		align-items: center;
		gap: 14px;
	}

	/* Mobile CTA - NOT full width, compact sizing */
	.hero-cta-primary {
		width: auto;
		padding: 12px 20px 12px 14px;
		gap: 12px;
	}

	.hero-cta-primary .cta-icon {
		width: 42px;
		height: 42px;
	}

	.hero-cta-primary .cta-icon svg {
		width: 20px;
		height: 20px;
	}

	.hero-cta-primary .cta-text small {
		font-size: 11px;
	}

	.hero-cta-primary .cta-text strong {
		font-size: 15px;
	}

	.hero-cta-primary .cta-arrow {
		display: none;
	}

	.hero-cta-secondary {
		padding: 12px 20px;
		font-size: 14px;
	}

	.hero-cards {
		gap: 10px;
		width: 100%;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}

	.hero-card {
		padding: 14px 16px;
		border-radius: 12px;
		width: auto;
		max-width: calc(50% - 5px);
		flex: 0 0 auto;
	}

	/* Make location card full width on mobile */
	.hero-card-location {
		max-width: 100%;
	}

	.hero-card .card-icon {
		width: 46px;
		height: 46px;
		border-radius: 12px;
	}

	.hero-card .card-icon svg {
		width: 22px;
		height: 22px;
	}

	.hero-card .card-value {
		font-size: 1.375rem;
	}

	.hero-card .card-label {
		font-size: 12px;
	}

	.hero-scroll-indicator {
		bottom: 20px;
	}

	/* Subtle glow repositioned for mobile */
	.hero-glow {
		width: 300px;
		height: 300px;
		top: 10%;
		left: -30%;
	}

	/* Fewer particles on mobile for performance */
	.particle:nth-child(n+5) {
		display: none;
	}
}

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

@media (prefers-reduced-motion: reduce) {
	.particle,
	.hero-glow,
	.scroll-line::after {
		animation: none !important;
	}

	.badge,
	.title-line,
	.hero-subtitle,
	.hero-cta-group,
	.hero-card,
	.hero-scroll-indicator {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}

	.hero-cta-primary {
		animation: none !important;
	}

	.title-line-2 em::after {
		animation: none !important;
		transform: scaleX(1) !important;
	}
}
