/* Hero */
.hero {
	position: relative;
	overflow: hidden;
}

.hero__track {
	position: relative;
}

.hero__slide {
	position: relative;
	min-height: 620px;
	display: flex;
	align-items: center;
}

.hero__slide[hidden] {
	display: none;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to left, rgba(16, 27, 61, .55), rgba(16, 27, 61, 0) 60%);
}

.hero__content {
	position: relative;
	z-index: 1;
	max-width: 560px;
	color: #fff;
}

.hero__eyebrow {
	display: inline-block;
	background: var(--color-coral);
	color: #fff;
	font-weight: 700;
	font-size: .8rem;
	padding: 4px 14px;
	border-radius: var(--radius-pill);
	margin-bottom: var(--space-sm);
}

.hero__title {
	font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.75rem);
	font-weight: 800;
	margin: 0 0 var(--space-sm);
}

.hero__text {
	font-size: 1.05rem;
	margin: 0 0 var(--space-lg);
}

.hero__dots {
	position: absolute;
	bottom: var(--space-lg);
	right: 50%;
	transform: translateX(50%);
	z-index: 2;
	display: flex;
	gap: var(--space-xs);
}

.hero__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: transparent;
	padding: 0;
	cursor: pointer;
}

.hero__dot.is-active {
	background: #fff;
}

@media (max-width: 639px) {
	.hero__slide {
		min-height: 680px;
		/* Content is a single visual unit, optically centered as a
		   whole within the hero (inherits align-items: center from
		   the base rule above) rather than anchored to the bottom,
		   which was pushing it into the lower third with a lot of
		   unused headroom above it on tall mobile viewports. */
	}
	.hero__content {
		max-width: none;
		text-align: center;
		margin-inline: auto;
	}
	.hero__media::after {
		/* Desktop's side-fade gradient assumes a right-aligned,
		   half-width text box; now that content is centered and
		   full-width on mobile, a flat overlay keeps it legible
		   wherever it lands vertically instead of only near one edge. */
		background: rgba(16, 27, 61, .55);
	}
}

/* Trust strip */
.trust-strip-wrap {
	position: relative;
	z-index: 2;
	margin-top: -44px;
}

.trust-strip {
	background: #fff;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-floating);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-md);
	padding: var(--space-lg);
	max-width: 1120px;
	margin-inline: auto;
}

.trust-strip__item {
	text-align: center;
}

.trust-strip__icon {
	margin-inline: auto;
	margin-bottom: var(--space-xs);
}

.trust-strip__title {
	font-size: .95rem;
	margin: 0 0 4px;
}

.trust-strip__text {
	font-size: .8rem;
	color: var(--color-muted);
	margin: 0;
}

@media (max-width: 1023px) {
	.trust-strip {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 639px) {
	.trust-strip {
		grid-template-columns: 1fr 1fr;
		border-radius: var(--radius-md);
	}
}

/* Section headings shared by home sections */
.section-eyebrow {
	color: var(--color-green);
	font-weight: 700;
	text-transform: uppercase;
	font-size: .8rem;
	letter-spacing: .04em;
	margin: 0 0 var(--space-xs);
}

.section-title {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	margin: 0 0 var(--space-lg);
	font-weight: 700;
}

.section-title--center {
	text-align: center;
}

/* Services */
.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--card-gap);
}

.service-card {
	display: block;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	overflow: hidden;
}

/* aspect-ratio lives on the wrapper, not the <img>: inside a CSS grid
   track (.services-grid) a percentage-width img with its own
   aspect-ratio can't resolve during the grid's row-sizing pass and
   silently falls back to the img's raw height attribute, rendering
   near-square instead of landscape (same bug fixed on
   .post-hero__media-frame and .blog-card__media). */
.service-card__media {
	aspect-ratio: 16 / 9;
}

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

.service-card__body {
	padding: var(--space-lg);
}

.service-card__icon {
	margin-bottom: var(--space-sm);
}

.service-card__title {
	margin: 0 0 var(--space-xs);
	font-weight: 700;
}

.service-card__body p {
	color: var(--color-muted);
	margin: 0 0 var(--space-md);
}

@media (max-width: 1023px) {
	.services-grid {
		grid-template-columns: 1fr;
	}
}

/* Process */
.process-steps {
	display: flex;
	justify-content: space-between;
	gap: var(--space-lg);
	list-style: none;
	margin: 0;
	padding: 0;
}

.process-steps__item {
	flex: 1;
	text-align: center;
}

.process-steps__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--color-orange);
	color: #fff;
	font-weight: 700;
	margin-bottom: var(--space-sm);
}

@media (max-width: 639px) {
	.process-steps {
		flex-direction: column;
	}
}

/* Articles */
.articles-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--card-gap);
}

.article-card {
	display: block;
	text-decoration: none;
	color: inherit;
}

/* Same wrapper-vs-<img> aspect-ratio fix as .service-card__media above. */
.article-card__media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius-md);
}

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

.article-card__tag {
	display: inline-block;
	background: var(--color-surface);
	color: var(--color-green);
	font-size: .75rem;
	font-weight: 700;
	padding: 2px 10px;
	border-radius: var(--radius-pill);
	margin: var(--space-sm) 0 var(--space-xs);
}

.article-card__body h3 {
	font-size: 1.05rem;
	margin: 0 0 var(--space-xs);
}

.article-card__link {
	color: var(--color-coral);
	font-weight: 600;
	font-size: .9rem;
}

@media (max-width: 1023px) {
	.articles-grid {
		grid-template-columns: 1fr;
	}
}

/* CTA banner */
.cta-banner {
	background: var(--color-coral);
	color: #fff;
	border-radius: var(--radius-lg);
	padding: var(--space-xl) var(--space-lg);
	text-align: center;
}

.cta-banner__title {
	margin: 0 0 var(--space-xs);
	font-weight: 700;
}

.cta-banner p {
	margin: 0 0 var(--space-lg);
	opacity: .9;
}
