/**
 * FAQs page-only styles.
 * Loads only on /faqs/.
 */

.ahm-page-faq {
	--faq-surface: #f7faf8;
	--faq-soft-green: #edf5ed;
	--faq-border: #dce5de;
	--faq-navy: #0b1d3a;
	--faq-green: #356f3b;
	--faq-green-hover: #4c833c;
	background: #fff;
}

/* 01. Text-only hero */
.ahm-faq-hero {
	position: relative;
	overflow: hidden;
	padding: 0 0 68px;
	background:
		radial-gradient(circle at 88% 14%, rgba(76, 131, 60, .09), transparent 25%),
		linear-gradient(180deg, #fff 0%, #f7faf8 100%);
}

.ahm-faq-hero::after {
	position: absolute;
	right: -110px;
	bottom: -170px;
	width: 360px;
	height: 360px;
	border: 1px solid rgba(53, 111, 59, .1);
	border-radius: 50%;
	content: '';
}

.ahm-faq-breadcrumbs {
	position: relative;
	z-index: 1;
	padding-top: 28px;
}

.ahm-faq-hero-copy {
	position: relative;
	z-index: 1;
	max-width: 900px;
	margin: 0 auto;
	padding-top: 58px;
	text-align: center;
}

.ahm-faq-hero-copy h1 {
	max-width: 850px;
	margin: 0 auto;
	color: var(--color-primary);
	font-size: clamp(3.15rem, 4.7vw, 4.55rem);
	font-weight: 800;
	letter-spacing: -.052em;
	line-height: 1.03;
}

.ahm-faq-hero-intro {
	max-width: 790px;
	margin: 20px auto 0;
	color: var(--color-muted);
	font-size: clamp(1.05rem, 1.45vw, 1.22rem);
	line-height: 1.65;
}

.ahm-faq-hero-actions {
	display: flex;
	justify-content: center;
	margin-top: 26px;
	flex-wrap: wrap;
	gap: 12px;
}

/* 02. Topic navigation */
.ahm-faq-topic-nav {
	position: relative;
	z-index: 2;
	padding: 22px 0 24px;
	border-top: 1px solid var(--faq-border);
	border-bottom: 1px solid var(--faq-border);
	background: #fff;
}

.ahm-faq-topic-label {
	margin: 0 0 13px;
	color: var(--color-primary);
	font-size: .79rem;
	font-weight: 800;
	letter-spacing: .04em;
	text-align: center;
	text-transform: uppercase;
}

.ahm-faq-topic-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
}

.ahm-faq-topic-links a {
	display: inline-flex;
	min-height: 44px;
	padding: 10px 17px;
	align-items: center;
	border: 1px solid #d8e4d9;
	border-radius: 999px;
	background: #f1f7f1;
	color: var(--faq-green);
	font-size: .82rem;
	font-weight: 760;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.ahm-faq-topic-links a:hover,
.ahm-faq-topic-links a:focus-visible {
	border-color: #bfd1c1;
	background: #fff;
	color: var(--faq-green-hover);
}

/* 03-08. FAQ categories */
.ahm-faq-category {
	scroll-margin-top: 105px;
	padding: 78px 0;
	background: #fff;
}

.ahm-faq-category--surface {
	background: var(--faq-surface);
}

.ahm-faq-category-grid {
	display: grid;
	align-items: start;
	grid-template-columns: minmax(285px, .68fr) minmax(0, 1.32fr);
	gap: 66px;
}

.ahm-faq-category-heading {
	position: sticky;
	top: 118px;
}

.ahm-faq-category-number {
	display: block;
	margin-bottom: 18px;
	color: rgba(53, 111, 59, .25);
	font-family: var(--font-numeric);
	font-size: clamp(3.25rem, 4.5vw, 4.85rem);
	font-weight: 850;
	letter-spacing: -.06em;
	line-height: .8;
}

.ahm-faq-category-heading h2 {
	max-width: 470px;
	margin: 0;
	color: var(--color-primary);
	font-size: clamp(2.3rem, 3.4vw, 3.35rem);
	font-weight: 800;
	letter-spacing: -.045em;
	line-height: 1.08;
}

.ahm-faq-category-heading > p:not(.eyebrow) {
	max-width: 440px;
	margin: 22px 0 0;
	color: var(--color-muted);
	font-size: 1rem;
	line-height: 1.72;
}

.ahm-faq-list {
	display: grid;
	gap: 12px;
}

.ahm-faq-list details {
	overflow: hidden;
	border: 1px solid var(--faq-border);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(11, 29, 58, .035);
	transition: border-color .18s ease, box-shadow .18s ease;
}

.ahm-faq-list details[open] {
	border-color: #c8d8ca;
	box-shadow: 0 16px 34px rgba(11, 29, 58, .065);
}

.ahm-faq-list summary {
	position: relative;
	display: flex;
	min-height: 68px;
	padding: 19px 66px 19px 24px;
	align-items: center;
	color: var(--color-primary);
	font-size: 1.04rem;
	font-weight: 760;
	line-height: 1.42;
	cursor: pointer;
	list-style: none;
}

.ahm-faq-list summary::-webkit-details-marker {
	display: none;
}

.ahm-faq-list summary::after {
	position: absolute;
	top: 50%;
	right: 20px;
	display: flex;
	width: 32px;
	height: 32px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--faq-soft-green);
	color: var(--faq-green);
	font-size: 1.3rem;
	font-weight: 500;
	content: '+';
	transform: translateY(-50%);
}

.ahm-faq-list details[open] summary::after {
	content: '−';
}

.ahm-faq-list details p {
	margin: 0;
	padding: 0 66px 22px 24px;
	color: var(--color-muted);
	font-size: .96rem;
	line-height: 1.74;
}

/* 09. Project brief */
.ahm-faq-brief {
	padding: 80px 0;
	background: var(--faq-surface);
}

.ahm-faq-brief-card {
	display: grid;
	padding: 48px 52px;
	align-items: center;
	border: 1px solid #cfddcf;
	border-radius: 16px;
	background: linear-gradient(135deg, #fff 0%, #edf5ed 100%);
	box-shadow: 0 18px 45px rgba(11, 29, 58, .06);
	grid-template-columns: minmax(0, .85fr) minmax(440px, 1.15fr);
	gap: 68px;
}

.ahm-faq-brief-copy h2 {
	max-width: 520px;
	margin: 0;
	color: var(--color-primary);
	font-size: clamp(2.25rem, 3.2vw, 3.2rem);
	font-weight: 800;
	letter-spacing: -.045em;
	line-height: 1.08;
}

.ahm-faq-brief-copy > p:not(.eyebrow) {
	max-width: 590px;
	margin: 20px 0 0;
	color: var(--color-muted);
	font-size: .98rem;
	line-height: 1.7;
}

.ahm-faq-brief-list {
	display: grid;
	margin: 0;
	padding: 0;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 28px;
	list-style: none;
}

.ahm-faq-brief-list li {
	position: relative;
	padding: 15px 16px 15px 45px;
	border: 1px solid rgba(53, 111, 59, .13);
	border-radius: 10px;
	background: rgba(255, 255, 255, .78);
	color: var(--color-primary);
	font-size: .88rem;
	font-weight: 700;
	line-height: 1.4;
}

.ahm-faq-brief-list li::before {
	position: absolute;
	top: 50%;
	left: 16px;
	display: flex;
	width: 20px;
	height: 20px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--faq-green);
	color: #fff;
	font-size: .7rem;
	content: '✓';
	transform: translateY(-50%);
}

/* 10. Final CTA */
.ahm-faq-cta {
	padding: 0 0 82px;
	background: var(--faq-surface);
}

.ahm-faq-cta-card {
	display: grid;
	padding: 52px 56px;
	align-items: center;
	border-radius: 16px;
	background: linear-gradient(110deg, #0b1d3a 0%, #1b3b4a 100%);
	box-shadow: 0 24px 54px rgba(11, 29, 58, .14);
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 54px;
}

.ahm-faq-cta-card .eyebrow {
	color: #8ed37f;
}

.ahm-faq-cta-card h2 {
	max-width: 850px;
	margin: 0;
	color: #fff;
	font-size: clamp(2.35rem, 3.7vw, 3.6rem);
	font-weight: 800;
	letter-spacing: -.045em;
	line-height: 1.08;
}

.ahm-faq-cta-card p {
	max-width: 800px;
	margin: 20px 0 0;
	color: rgba(255, 255, 255, .72);
	font-size: .98rem;
	line-height: 1.7;
}

.ahm-faq-cta-actions {
	display: grid;
	min-width: 300px;
	gap: 10px;
}

.ahm-faq-cta-actions .button {
	width: 100%;
	justify-content: center;
}

.ahm-faq-cta-actions .button--outline {
	border-color: rgba(255, 255, 255, .38);
	background: transparent;
	color: #fff;
}

.ahm-faq-cta-actions .button--outline:hover,
.ahm-faq-cta-actions .button--outline:focus-visible {
	border-color: rgba(255, 255, 255, .72);
	background: rgba(255, 255, 255, .08);
	color: #fff;
}

@media (max-width: 1080px) {
	.ahm-faq-category-grid {
		grid-template-columns: minmax(250px, .58fr) minmax(0, 1.42fr);
		gap: 48px;
	}

	.ahm-faq-brief-card {
		grid-template-columns: 1fr;
		gap: 38px;
	}
}

@media (max-width: 900px) {
	.ahm-faq-hero {
		padding-bottom: 56px;
	}

	.ahm-faq-hero-copy {
		padding-top: 48px;
	}

	.ahm-faq-category {
		padding: 64px 0;
	}

	.ahm-faq-category-grid,
	.ahm-faq-cta-card {
		grid-template-columns: 1fr;
	}

	.ahm-faq-category-grid {
		gap: 34px;
	}

	.ahm-faq-category-heading {
		position: static;
	}

	.ahm-faq-category-heading h2,
	.ahm-faq-category-heading > p:not(.eyebrow) {
		max-width: 720px;
	}

	.ahm-faq-category-number {
		margin-bottom: 14px;
		font-size: 3.8rem;
	}

	.ahm-faq-cta-card {
		gap: 34px;
	}

	.ahm-faq-cta-actions {
		min-width: 0;
	}
}

@media (max-width: 640px) {
	.ahm-faq-hero {
		padding-bottom: 44px;
	}

	.ahm-faq-breadcrumbs {
		padding-top: 18px;
	}

	.ahm-faq-hero-copy {
		padding-top: 38px;
	}

	.ahm-faq-hero-copy h1 {
		font-size: clamp(2.55rem, 12vw, 3.7rem);
	}

	.ahm-faq-hero-intro {
		font-size: .98rem;
	}

	.ahm-faq-hero-actions,
	.ahm-faq-hero-actions .button {
		width: 100%;
	}

	.ahm-faq-hero-actions .button {
		justify-content: center;
	}

	.ahm-faq-topic-nav {
		padding: 20px 0 22px;
	}

	.ahm-faq-topic-links {
		display: grid;
		grid-template-columns: 1fr;
	}

	.ahm-faq-topic-links a {
		justify-content: center;
		text-align: center;
	}

	.ahm-faq-category {
		padding: 52px 0;
		scroll-margin-top: 84px;
	}

	.ahm-faq-category-heading h2 {
		font-size: clamp(2.05rem, 10vw, 2.75rem);
	}

	.ahm-faq-category-heading > p:not(.eyebrow) {
		font-size: .94rem;
	}

	.ahm-faq-list summary {
		min-height: 64px;
		padding: 17px 56px 17px 20px;
		font-size: .96rem;
	}

	.ahm-faq-list summary::after {
		right: 16px;
		width: 30px;
		height: 30px;
	}

	.ahm-faq-list details p {
		padding: 0 20px 22px;
		font-size: .91rem;
	}

	.ahm-faq-brief {
		padding: 58px 0;
	}

	.ahm-faq-brief-card,
	.ahm-faq-cta-card {
		padding: 34px 24px;
	}

	.ahm-faq-brief-list {
		grid-template-columns: 1fr;
	}

	.ahm-faq-cta {
		padding-bottom: 58px;
	}

	.ahm-faq-cta-card h2 {
		font-size: clamp(2.05rem, 10vw, 2.75rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ahm-page-faq *,
	.ahm-page-faq *::before,
	.ahm-page-faq *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
