/* =============================================================
   Maids of Scottsdale — Homepage styles (front-page.php)
   Loaded only on the front page via functions.php enqueue.
   Mobile-first. Uses tokens from style.css.
   ============================================================= */


/* =============================================================
   Shared section header (eyebrow + title + lede)
   ============================================================= */
.section-header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto var(--space-2xl);
}

.section-eyebrow {
	display: inline-block;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: var(--fs-small);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-cta);
	background-color: var(--color-cream);
	padding: var(--space-xs) var(--space-md);
	border-radius: var(--radius-pill);
	margin-bottom: var(--space-md);
}

.section-title {
	color: var(--color-primary);
	margin-bottom: var(--space-md);
}

.section-lede {
	color: var(--color-text-muted);
	font-size: 1.0625rem;
	margin-bottom: 0;
}


/* =============================================================
   1. Hero
   ============================================================= */
.hero {
	position: relative;
	overflow: hidden;
	min-height: 560px;
	display: flex;
	align-items: center;
	color: var(--color-secondary);
	padding: var(--space-3xl) 0;
}

.hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-accent) 100%);
}

.hero__bg-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(8, 27, 51, 0.85) 0%, rgba(15, 42, 74, 0.65) 60%, rgba(91, 168, 214, 0.35) 100%);
}

.hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-2xl);
	align-items: center;
}

.hero__content {
	max-width: 640px;
}

/* Reusable "photo on glass" card used by the hero + why section */
.media-card {
	margin: 0;
	background-color: var(--color-secondary);
	padding: var(--space-sm);
	border-radius: var(--radius-lg, 18px);
	box-shadow: 0 24px 60px -20px rgba(8, 27, 51, 0.55);
	border-top: 4px solid var(--color-gold, #F4C24C);
	overflow: hidden;
}

.media-card img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: calc(var(--radius-lg, 18px) - 6px);
}

.hero__photo-card {
	max-width: 460px;
	width: 100%;
	justify-self: center;
}

.hero__eyebrow {
	display: inline-block;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: var(--fs-small);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-primary);
	background-color: var(--color-gold);
	padding: var(--space-xs) var(--space-md);
	border-radius: var(--radius-pill);
	margin-bottom: var(--space-lg);
}

.hero__title {
	color: var(--color-secondary);
	margin-bottom: var(--space-md);
}

.hero__lede {
	font-size: 1.125rem;
	color: rgba(255, 255, 255, 0.92);
	margin-bottom: var(--space-xl);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-md);
}


/* =============================================================
   2. Trust Bar — styles moved to style.css (shared template part)
   ============================================================= */


/* =============================================================
   3. Services Grid
   ============================================================= */
.services-grid {
	background-color: var(--color-bg);
	padding: var(--space-3xl) 0;
}

.service-card {
	position: relative; /* anchor for the stretched link below */
	background-color: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--space-xl);
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
	display: flex;
	flex-direction: column;
}

.service-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: var(--color-accent-light);
}

.service-card__icon {
	width: 56px;
	height: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-cream);
	color: var(--color-cta);
	border-radius: var(--radius-pill);
	margin-bottom: var(--space-md);
}

.service-card__icon svg {
	width: 28px;
	height: 28px;
}

.service-card__title {
	color: var(--color-primary);
	margin-bottom: var(--space-sm);
}

.service-card__desc {
	color: var(--color-text-muted);
	font-size: var(--fs-small);
	margin-bottom: var(--space-md);
	flex-grow: 1;
}

.service-card__link {
	font-family: var(--font-heading);
	font-weight: 600;
	color: var(--color-cta);
	font-size: var(--fs-small);
	letter-spacing: 0.02em;
}

/* Stretch the "Learn more" link to cover the whole card so the entire
   box is clickable, while the visible "Learn more →" text stays as the cue. */
.service-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.service-card__link:hover,
.service-card__link:focus-visible {
	color: var(--color-cta-dark);
}

/* Keyboard focus ring around the whole card when the link is focused. */
.service-card:focus-within {
	outline: 2px solid var(--color-cta);
	outline-offset: 2px;
}


/* =============================================================
   4. Why Choose Us
   ============================================================= */
.why {
	background-color: var(--color-cream);
	padding: var(--space-3xl) 0;
}

.why__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-2xl);
	align-items: center;
}

.why__cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-lg);
}

.why__photo {
	max-width: 520px;
	width: 100%;
	justify-self: center;
}

.why-card {
	text-align: center;
	padding: var(--space-lg);
}

.why-card__icon {
	width: 72px;
	height: 72px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-secondary);
	color: var(--color-primary);
	border: 3px solid var(--color-gold);
	border-radius: var(--radius-pill);
	margin-bottom: var(--space-md);
}

.why-card__icon svg {
	width: 32px;
	height: 32px;
}

.why-card__title {
	color: var(--color-primary);
	margin-bottom: var(--space-sm);
}

.why-card__desc {
	color: var(--color-text);
	margin: 0;
}


/* =============================================================
   5. Service Areas Snapshot
   (.areas / .areas__pills / .city-pill live in style.css so the
   service-areas archive can reuse them.)
   ============================================================= */


/* =============================================================
   Service Area Map
   ============================================================= */
.service-area-map {
	padding: var(--space-3xl) 0;
	background-color: var(--color-bg);
}

.service-area-map__figure {
	margin: 0 auto;
	max-width: 720px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	border: 1px solid var(--color-border);
}

.service-area-map__figure img {
	display: block;
	width: 100%;
	height: auto;
}


/* =============================================================
   6. Testimonials Strip — styles moved to style.css (shared template part)
   ============================================================= */


/* =============================================================
   7. Final CTA Banner — styles moved to style.css (shared template part)
   ============================================================= */


/* =============================================================
   Tablet ( >= 768px )
   ============================================================= */
@media (min-width: 768px) {
	.hero {
		min-height: 640px;
	}

	.hero__lede {
		font-size: 1.25rem;
	}

	.why__cards {
		grid-template-columns: repeat(3, 1fr);
	}

	.services-grid__cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.services-grid__cards {
		grid-template-columns: repeat(6, 1fr);
	}

	.services-grid__cards > :nth-child(1),
	.services-grid__cards > :nth-child(2),
	.services-grid__cards > :nth-child(3) {
		grid-column: span 2;
	}

	.services-grid__cards > :nth-child(4) {
		grid-column: 2 / span 2;
	}

	.services-grid__cards > :nth-child(5) {
		grid-column: 4 / span 2;
	}
}


/* =============================================================
   Mid ( >= 900px ) — two-column hero + why layout
   ============================================================= */
@media (min-width: 900px) {
	.hero__inner {
		grid-template-columns: 1.1fr 0.9fr;
		gap: var(--space-3xl);
	}

	.hero__photo-card {
		justify-self: end;
		max-width: 480px;
		transform: rotate(-1.25deg);
		transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
	}

	.hero__photo-card:hover {
		transform: rotate(0deg) translateY(-4px);
	}

	.why__layout {
		grid-template-columns: 1.25fr 1fr;
		gap: var(--space-3xl);
	}

	.why__header {
		text-align: left;
		margin-left: 0;
	}

	.why__cards {
		grid-template-columns: 1fr;
		gap: var(--space-md);
	}

	.why-card {
		text-align: left;
		display: grid;
		grid-template-columns: auto 1fr;
		gap: var(--space-md) var(--space-lg);
		align-items: start;
		padding: var(--space-md) 0;
	}

	.why-card__icon {
		grid-row: span 2;
		margin-bottom: 0;
	}

	.why-card__title {
		margin-bottom: var(--space-xs);
	}

	.why__photo {
		justify-self: end;
		max-width: 520px;
		transform: rotate(1deg);
		transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
	}

	.why__photo:hover {
		transform: rotate(0deg) translateY(-4px);
	}
}


/* =============================================================
   Desktop ( >= 1024px )
   ============================================================= */
@media (min-width: 1024px) {
	.hero {
		min-height: 720px;
	}

	.hero__content {
		max-width: 680px;
	}

}
