/**
 * Hero Section Styles — Click Media Lab
 *
 * Sections:
 *  1.  Hero Wrapper & Background
 *  2.  Hero Inner Grid
 *  3.  Left Content Column
 *  4.  Heading & Rotating Text
 *  5.  Sub-text & Small CTA text
 *  6.  Hero Form (CF7 overrides)
 *  7.  Right Panel
 *  8.  Person Image Card
 *  9.  Stat Badge (bottom overlay)
 * 10.  Animated Play Button (bottom-left)
 * 11.  Ticker / Marquee Bar
 * 12.  Responsive
 *
 * @package clickmedialab
 */


/* =============================================================================
   1. Hero Wrapper & Background
   ============================================================================= */
.cml-hero {
	position: relative;
	min-height: 520px;
	background-color: #0a2d8f;
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* Subtle dark overlay so text stays readable over photo backgrounds */
.cml-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		105deg,
		rgba(8, 28, 100, 0.82) 0%,
		rgba(10, 45, 143, 0.65) 55%,
		rgba(10, 45, 143, 0.30) 100%
	);
	z-index: 1;
}

/* Decorative arc — same style as footer */
.cml-hero-arc {
	position: absolute;
	right: -80px;
	top: -80px;
	width: 480px;
	height: 480px;
	pointer-events: none;
	opacity: 0.10;
	z-index: 2;
}

.cml-hero-arc svg {
	width: 100%;
	height: 100%;
}

.cml-hero-body {
	position: relative;
	z-index: 3;
	flex: 1;
	padding: 70px 0 60px;
}


/* =============================================================================
   2. Hero Inner Grid
   ============================================================================= */
/* Layout handled by Bootstrap row align-items-center g-5 + col-12 col-lg-6 */


/* =============================================================================
   3. Left Content Column
   ============================================================================= */
.cml-hero-content {
	color: #fff;
	max-width: 540px;
}


/* =============================================================================
   4. Heading & Rotating Text
   ============================================================================= */
.cml-hero-heading {
	font-size: clamp(26px, 3.5vw, 42px);
	font-weight: 800;
	line-height: 1.2;
	color: #fff;
	margin: 0 0 6px;
	letter-spacing: -0.3px;
}

/* Rotating phrase wrapper */
.cml-hero-rotating-wrap {
	display: block;
	min-height: 1.3em; /* prevents layout jump during swap */
	margin-bottom: 18px;
}

.cml-hero-rotating-phrase {
	display: inline-block;
	color: #e8620e;
	font-size: clamp(26px, 3.5vw, 42px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.3px;
	/* fade transition */
	opacity: 1;
	transition: opacity 0.4s ease;
}

.cml-hero-rotating-phrase.cml-fade-out {
	opacity: 0;
}


/* =============================================================================
   5. Sub-text & Small CTA text
   ============================================================================= */
.cml-hero-subtext {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.65;
	margin: 0 0 8px;
	max-width: 440px;
}

.cml-hero-small-cta {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.70);
	margin: 0 0 22px;
}


/* =============================================================================
   6. Hero Form
   ============================================================================= */
.cml-hero-form {
	display: flex;
	align-items: stretch;
	gap: 0;
	max-width: 460px;
}

.cml-hero-form input[type="text"],
.cml-hero-form input[type="url"],
.cml-hero-form input[type="email"] {
	flex: 1;
	height: 50px;
	padding: 0 18px;
	font-size: 14px;
	color: #333;
	background: #fff;
	border: none;
	border-radius: 4px 0 0 4px;
	outline: none;
	box-shadow: none;
	-webkit-appearance: none;
}

.cml-hero-form input::placeholder {
	color: #aaa;
}

.cml-hero-form button,
.cml-hero-form input[type="submit"] {
	height: 50px;
	padding: 0 22px;
	background: #e8620e;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	border: none;
	border-radius: 0 4px 4px 0;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s;
	-webkit-appearance: none;
}

.cml-hero-form button:hover,
.cml-hero-form input[type="submit"]:hover {
	background: #c9500a;
}

/* CF7 override inside hero form */
.cml-hero-cf7 .wpcf7-form {
	display: flex;
	align-items: stretch;
	gap: 0;
	max-width: 460px;
}

.cml-hero-cf7 .wpcf7-form p {
	margin: 0;
	display: contents;
}

.cml-hero-cf7 span.wpcf7-form-control-wrap {
	flex: 1;
	display: flex;
}

.cml-hero-cf7 span.wpcf7-form-control-wrap input {
	width: 100%;
	height: 50px;
	padding: 0 18px;
	font-size: 14px;
	color: #333;
	background: #fff;
	border: none;
	border-radius: 30px 0 0 30px;
	outline: none;
}

.cml-hero-cf7 span.wpcf7-form-control-wrap input::placeholder {
	color: #aaa;
}

.cml-hero-cf7 .wpcf7-form input[type="submit"] {
	height: 50px;
	padding: 0 22px;
	background: #e8620e;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	border: none;
	border-radius: 0 30px 30px 0;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s;
	-webkit-appearance: none;
}

.cml-hero-cf7 .wpcf7-form input[type="submit"]:hover {
	background: #c9500a;
}

.cml-hero-cf7 .wpcf7-response-output {
	margin: 6px 0 0;
	font-size: 12px;
	color: #fff;
	border: none !important;
	background: rgba(255,255,255,0.1);
	padding: 4px 10px;
	border-radius: 3px;
}

.cml-hero-cf7 .wpcf7-not-valid-tip {
	color: #ffb3b3;
	font-size: 11px;
}


/* =============================================================================
   7. Right Panel
   ============================================================================= */
.cml-hero-right {
	position: relative;
}


/* =============================================================================
   8. Person Image Card
   ============================================================================= */
.cml-hero-person-card {
position: relative;
    border-radius: 20px;
    margin: 0 auto;
}

.cml-hero-person-card img {
	width: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}


/* =============================================================================
   9. Stat Badge (bottom-left inside image card)
   ============================================================================= */
.cml-hero-stat-badge {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(
		to top,
		rgba(8, 28, 100, 0.92) 0%,
		rgba(10, 45, 143, 0.60) 70%,
		transparent 100%
	);
	padding: 32px 20px 16px;
	text-align: left;
}

.cml-stat-number {
	font-size: 28px;
	font-weight: 800;
	color: #e8620e;
	line-height: 1;
	display: block;
}

.cml-stat-label {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.90);
	letter-spacing: 0.3px;
	display: block;
	margin-top: 2px;
}


/* =============================================================================
   10. Animated Play Button (bottom-left, above stat badge)
   ============================================================================= */
.cml-play-btn {
	position: absolute;
	    bottom: 87px;
    right: 26%;
	width: 52px;
	height: 52px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	cursor: pointer;
	z-index: 2;
}

.cml-play-btn svg {
	position: relative;
	z-index: 1;
	margin-left: 3px; /* optical center for play triangle */
}

/* Pulse rings */
.cml-play-pulse {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.6);
	animation: cml-pulse 2s ease-out infinite;
}

.cml-play-pulse--delay {
	animation-delay: 0.8s;
}

@keyframes cml-pulse {
	0%   { transform: scale(1);   opacity: 0.8; }
	100% { transform: scale(2.2); opacity: 0;   }
}


/* =============================================================================
   11. Ticker / Marquee Bar
   ============================================================================= */
.cml-ticker-bar {
	position: relative;
	z-index: 3;
	background: #e8620e;
	padding: 12px 0;
	overflow: hidden;
	white-space: nowrap;
}

.cml-ticker-track {
	display: inline-flex;
	gap: 0;
	animation: cml-ticker-scroll 30s linear infinite;
	will-change: transform;
}

/* Duplicate the track so we get a seamless loop */
.cml-ticker-track:last-child {
	margin-left: 0;
}

@keyframes cml-ticker-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

.cml-ticker-item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0 28px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	letter-spacing: 0.2px;
}

/* Dot separator between items */
.cml-ticker-item::after {
	content: '';
	display: inline-block;
	width: 5px;
	height: 5px;
	background: rgba(255,255,255,0.6);
	border-radius: 50%;
}

.cml-ticker-item:last-child::after {
	display: none;
}

/* Pause on hover */
.cml-ticker-bar:hover .cml-ticker-track {
	animation-play-state: paused;
}


/* =============================================================================
   12. Responsive
   ============================================================================= */
/* Bootstrap col-12 col-lg-6 + d-none d-lg-block handles column stacking.
   Only custom overrides below. */

@media (max-width: 991px) {
	.cml-hero-body {
		padding: 50px 0 44px;
	}
	.cml-hero-content {
		text-align: center;
	}
	.cml-hero-cf7 .wpcf7-form {
		justify-content: center;
	}
}

@media (max-width: 575px) {
	.cml-hero-cf7 .wpcf7-form {
		flex-direction: column;
		gap: 10px;
	}
	.cml-hero-cf7 span.wpcf7-form-control-wrap input {
		border-radius: 30px;
	}
	.cml-hero-cf7 .wpcf7-form input[type="submit"] {
		border-radius: 30px;
		width: 100%;
	}
	.cml-hero-cf7 span.wpcf7-form-control-wrap {
		width: 100%;
	}
}
