/* Agency Hero Page Header — base layout (colors/typography/spacing are controlled live from Elementor) */

.ahh-hero {
	--ahh-primary: #1656F2;
	--ahh-accent: #FFC629;
	position: relative;
	width: 100%;
	background-color: var(--ahh-primary);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
	box-sizing: border-box;
}

.ahh-hero *,
.ahh-hero *::before,
.ahh-hero *::after {
	box-sizing: border-box;
}

.ahh-overlay {
	position: absolute;
	inset: 0;
	background: rgba(8, 20, 48, 0.6);
	z-index: 1;
}

.ahh-inner {
	position: relative;
	z-index: 2;
	max-width: 1320px;
	margin: 0 auto;
	padding: 90px 60px;
}

.ahh-grid {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 50px;
	flex-wrap: wrap;
}

.ahh-content-col {
	flex: 1 1 480px;
	min-width: 280px;
}

/* Badge */
.ahh-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 50px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 14px;
	margin-bottom: 22px;
}

.ahh-badge i,
.ahh-badge svg {
	color: var(--ahh-accent);
	width: 14px;
	height: 14px;
}

.ahh-badge-text strong {
	font-weight: 700;
}

.ahh-badge-dot {
	margin: 0 6px;
	opacity: 0.6;
}

/* Heading */
.ahh-heading {
	margin: 0 0 20px 0;
	font-size: 52px;
	font-weight: 800;
	line-height: 1.15;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: -0.5px;
}

.ahh-highlight {
	color: var(--ahh-accent, #FFC629);
}

.ahh-description {
	margin: 0 0 32px 0;
	max-width: 560px;
	font-size: 17px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
}

/* Buttons */
.ahh-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-bottom: 36px;
}

.ahh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 30px;
	border-radius: 50px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	line-height: 1;
	border: 1px solid transparent;
	transition: all 0.25s ease;
	white-space: nowrap;
}

.ahh-btn-primary {
	background-color: var(--ahh-accent);
	color: #0B1B3D;
}

.ahh-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.ahh-btn-secondary {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
}

.ahh-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.18);
}

/* Trust badges */
.ahh-trust-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.ahh-trust-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(4px);
}

.ahh-trust-icon {
	display: inline-flex;
	font-size: 18px;
	color: var(--ahh-accent);
}

.ahh-trust-text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.ahh-trust-title {
	font-size: 14px;
	font-weight: 700;
	color: #fff;
}

.ahh-trust-subtitle {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.65);
}

/* -------------------- Image column & floating vectors -------------------- */
.ahh-media-col {
	flex: 1 1 480px;
	max-width: 480px;
	align-self: center;
}

.ahh-media {
	--ahh-vec-1: #FFC629;
	--ahh-vec-2: #FFFFFF;
	--ahh-vec-blob: rgba(255, 198, 41, 0.28);
	position: relative;
	width: 100%;
	padding: 34px 30px 46px;
}

/* --- The image itself --- */
.ahh-media-frame {
	position: relative;
	z-index: 3;
	overflow: hidden;
	border: 6px solid rgba(255, 255, 255, 0.18);
	box-shadow: 0 24px 60px rgba(8, 20, 48, 0.35);
	background: rgba(255, 255, 255, 0.06);
	line-height: 0;
}

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

.ahh-media-frame.is-rounded {
	border-radius: 24px;
	aspect-ratio: 4 / 3;
}

.ahh-media-frame.is-blob {
	border-radius: 58% 42% 46% 54% / 46% 52% 48% 54%;
	aspect-ratio: 1 / 1;
}

.ahh-media-frame.is-arch {
	border-radius: 260px 260px 20px 20px;
	aspect-ratio: 3 / 4;
}

.ahh-media-frame.is-circle {
	border-radius: 50%;
	aspect-ratio: 1 / 1;
}

.ahh-media-frame.is-tilt {
	border-radius: 24px;
	aspect-ratio: 4 / 3;
	transform: rotate(-3.5deg);
}

/* Second, smaller image tucked into the lower-left */
.ahh-media-frame--small {
	position: absolute;
	left: 0;
	bottom: 18px;
	z-index: 4;
	width: 42%;
	max-width: 190px;
	aspect-ratio: 1 / 1;
	border-radius: 18px;
	border-width: 5px;
	box-shadow: 0 16px 34px rgba(8, 20, 48, 0.4);
}

/* --- Floating stat chip --- */
.ahh-stat-chip {
	position: absolute;
	right: -6px;
	top: 12%;
	z-index: 5;
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-width: 190px;
	padding: 14px 18px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 18px 38px rgba(8, 20, 48, 0.28);
}

.ahh-stat-chip::before {
	content: "";
	position: absolute;
	left: 0;
	top: 14px;
	bottom: 14px;
	width: 4px;
	border-radius: 0 4px 4px 0;
	background: var(--ahh-vec-1);
}

.ahh-stat-value {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.1;
	color: #0B1B3D;
}

.ahh-stat-label {
	font-size: 12px;
	line-height: 1.4;
	color: #5A6884;
}

/* --- Vector layer --- */
.ahh-vectors {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.ahh-vec {
	position: absolute;
	display: block;
	opacity: 0.85;
	will-change: transform;
}

.ahh-vec svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.ahh-vec-blob {
	top: 4%;
	left: 2%;
	width: 88%;
	height: 88%;
	background: var(--ahh-vec-blob);
	border-radius: 46% 54% 60% 40% / 52% 44% 56% 48%;
	filter: blur(2px);
}

.ahh-vec-dots {
	top: -10px;
	right: 6%;
	width: 84px;
	height: 84px;
	color: var(--ahh-vec-1);
}

.ahh-vec-ring {
	bottom: 6%;
	right: -14px;
	width: 116px;
	height: 116px;
	color: var(--ahh-vec-2);
	opacity: 0.55;
}

.ahh-vec-bars {
	bottom: 2px;
	left: 12%;
	width: 92px;
	height: 68px;
	color: var(--ahh-vec-1);
}

.ahh-vec-spark {
	color: var(--ahh-vec-2);
}

.ahh-vec-spark--a {
	top: 44%;
	left: -16px;
	width: 30px;
	height: 30px;
	color: var(--ahh-vec-1);
}

.ahh-vec-spark--b {
	top: 6%;
	left: 16%;
	width: 26px;
	height: 26px;
}

/* --- Drift animation. Each shape gets its own path so they don't move as a block. --- */
@keyframes ahh-float-y {
	0%, 100% { transform: translate3d(0, 0, 0); }
	50%      { transform: translate3d(0, -16px, 0); }
}

@keyframes ahh-float-xy {
	0%, 100% { transform: translate3d(0, 0, 0); }
	33%      { transform: translate3d(10px, -10px, 0); }
	66%      { transform: translate3d(-8px, 8px, 0); }
}

@keyframes ahh-float-spin {
	0%   { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

@keyframes ahh-float-pulse {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.06); }
}

.ahh-media.has-vectors .ahh-vec-dots  { animation: ahh-float-xy 9s ease-in-out infinite; }
.ahh-media.has-vectors .ahh-vec-bars  { animation: ahh-float-y 7s ease-in-out infinite; }
.ahh-media.has-vectors .ahh-vec-ring  { animation: ahh-float-spin 26s linear infinite; }
.ahh-media.has-vectors .ahh-vec-blob  { animation: ahh-float-pulse 12s ease-in-out infinite; }
.ahh-media.has-vectors .ahh-vec-spark--a { animation: ahh-float-y 6s ease-in-out infinite 0.8s; }
.ahh-media.has-vectors .ahh-vec-spark--b { animation: ahh-float-xy 11s ease-in-out infinite 0.4s; }

.ahh-media.ahh-float-slow .ahh-vec   { animation-duration: 18s; }
.ahh-media.ahh-float-fast .ahh-vec   { animation-duration: 5s; }
.ahh-media.ahh-float-fast .ahh-vec-ring { animation-duration: 14s; }
.ahh-media.ahh-float-off .ahh-vec    { animation: none; }

/* Parallax offsets are written to this variable by the front-end script. */
.ahh-media[data-ahh-parallax] .ahh-vec {
	transition: translate 0.35s ease-out;
}

@media (prefers-reduced-motion: reduce) {
	.ahh-media .ahh-vec {
		animation: none !important;
		translate: none !important;
		transition: none;
	}
}

/* -------------------- Responsive -------------------- */

@media (max-width: 1024px) {
	.ahh-inner {
		padding: 60px 30px;
	}

	.ahh-heading {
		font-size: 38px;
	}

	.ahh-grid {
		gap: 40px;
	}

	.ahh-media-col {
		flex-basis: 100%;
		max-width: 520px;
		margin-inline: auto;
	}
}

@media (max-width: 767px) {
	.ahh-inner {
		padding: 40px 18px;
	}

	.ahh-heading {
		font-size: 30px;
	}

	.ahh-description {
		font-size: 15px;
	}

	.ahh-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.ahh-btn {
		width: 100%;
	}

	.ahh-trust-row {
		flex-direction: column;
	}

	.ahh-media-col {
		max-width: 100%;
	}

	.ahh-media-frame--small,
	.ahh-vec-bars,
	.ahh-vec-spark--a {
		display: none;
	}

	.ahh-stat-chip {
		position: static;
		margin-top: 16px;
		width: 100%;
	}
}
