/* Alliance Home Page.
   Colors/fonts/buttons all come from tokens.css (--au-* vars, .au-btn).
   "Our Products" cards reuse alliance-core's .full-prod-card (products.css)
   instead of duplicating that styling. CTA band reuses .pdp-cta-band
   (products.css) inside an .alliance-products wrapper, same as every
   other page. This file only holds what's genuinely new: hero, stats
   band, process steps, featured project card, about mini-stats, FAQ,
   and the image rotator. */

.home-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
}

/* ===== Image rotator (hero + featured project) ===== */
.img-rotator {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	aspect-ratio: 4 / 3;
}
.img-rotator .rotator-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .6s ease;
}
.img-rotator .rotator-img.is-active {
	opacity: 1;
}

/* ===== 1. Hero ===== */
.home-hero {
	background: var(--au-cream);
	position: relative;
	overflow: hidden;
	padding: 64px 0;
}
.home-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	opacity: .06;
	z-index: 0;
	background-image:
		linear-gradient(#282828 1px, transparent 1px),
		linear-gradient(90deg, #282828 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse at 0% 0%, transparent 30%, black 70%);
	        mask-image: radial-gradient(ellipse at 0% 0%, transparent 30%, black 70%);
}
.home-hero .home-wrap {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}
.home-hero h1 {
	font-family: var(--au-font-heading);
	font-weight: 700;
	font-size: clamp(28px, 3.4vw, 38px);
	line-height: 1.2;
	color: var(--au-charcoal);
	margin-bottom: 18px;
}
.home-hero .lead-bold {
	font-weight: 700;
	color: var(--au-charcoal);
}
.home-hero p {
	font-family: var(--au-font-body);
	font-size: 15.5px;
	color: var(--au-text-mid);
	margin-bottom: 18px;
	max-width: 480px;
}
.home-hero .email-line {
	font-family: var(--au-font-body);
	font-size: 14.5px;
	color: var(--au-text-mid);
	margin-bottom: 24px;
}
.home-hero .email-line a { color: var(--au-link-color); }
.home-hero .email-line a:hover { color: var(--au-link-hover); }
.home-hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== 2. Stats band (dark, inverted from the About-page stat row) ===== */
.home-stats { background: var(--au-charcoal); }
.home-stats-row {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}
.home-stat-item { padding: 28px 28px; border-left: 1px solid rgba(255, 255, 255, .15); }
.home-stat-item:first-child { border-left: none; padding-left: 0; }
.home-stat-num {
	font-family: var(--au-font-heading);
	font-weight: 700;
	font-size: 26px;
	color: var(--au-white);
	margin-bottom: 4px;
}
.home-stat-lbl {
	font-family: var(--au-font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .6);
}

/* ===== 3. Our Products (header row only — cards reuse .full-prod-card) ===== */
.home-products { background: var(--au-cream); padding: 64px 0; }
.home-section-head-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 32px;
}
.home-section-head-row h2 {
	font-family: var(--au-font-heading);
	font-weight: 700;
	font-size: clamp(24px, 2.8vw, 30px);
	color: var(--au-charcoal);
	margin: 0;
	line-height: 1;
}

/* Mobile-only CTA under the 3rd product card (grid is single-column at this width) */
.home-products-mobile-cta { display: none; }

/* ===== 4. How we work ===== */
.home-process { background: var(--au-white); padding: 64px 0; text-align: center; }
.home-process .home-section-intro { margin-bottom: 44px; }
.home-process h2 {
	font-family: var(--au-font-heading);
	font-weight: 700;
	font-size: clamp(24px, 2.8vw, 30px);
	color: var(--au-charcoal);
}
.home-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: left; }
.home-step .step-idx {
	font-family: var(--au-font-body);
	font-size: 12px;
	font-weight: 600;
	color: var(--au-text-muted);
	margin-bottom: 10px;
}
.home-step .step-idx::before { content: '\2022\0020'; }
.home-step h3 {
	font-family: var(--au-font-heading);
	font-size: 18px;
	font-weight: 600;
	color: var(--au-charcoal);
	margin-bottom: 8px;
}
.home-step p { font-family: var(--au-font-body); font-size: 14px; color: var(--au-text-mid); line-height: 1.65; }

/* ===== 5. Featured project ===== */
.home-featured { background: var(--au-white); padding: 0 0 64px; }
.featured-card {
	border: 1px solid var(--au-border);
	border-radius: 10px;
	overflow: hidden;
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	text-decoration: none;
	color: inherit;
	transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.featured-card:hover {
	box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
	border-color: var(--au-border-strong, #C0BBB3);
	transform: translateY(-3px);
}
.featured-card .img-rotator { border-radius: 0; aspect-ratio: auto; min-height: 100%; }
.featured-card .content {
	padding: 55px 44px;
	background: var(--au-charcoal);
}
.featured-card h2 {
	font-family: var(--au-font-heading);
	font-weight: 700;
	font-size: clamp(22px, 2.6vw, 28px);
	color: var(--au-white);
	margin-bottom: 16px;
}
.featured-card p { font-family: var(--au-font-body); font-size: 14.5px; color: var(--au-white); margin-bottom: 14px; }
.featured-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .15);
}
.fstat-num {
	font-family: var(--au-font-heading);
	font-weight: 700;
	font-size: 18px;
	color: var(--au-success-green, #3c7a46);
	margin-bottom: 2px;
}
.fstat-lbl {
	font-family: var(--au-font-body);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--au-white);
}

/* ===== 6. Trusted by (heading only — logos are the shortcode, full-width) ===== */
.home-clients { background: var(--au-white); padding: 64px 0 0; text-align: center; }
.home-clients h3 {
	font-family: var(--au-font-heading);
	font-weight: 600;
	font-size: 18px;
	color: var(--au-charcoal);
	margin-bottom: 36px;
}
.home-clients-shortcode-wrap { padding-bottom: 64px; }

/* ===== 7. About Alliance ===== */
.home-about { background: var(--au-white); padding: 0 0 64px; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.home-about h2 {
	font-family: var(--au-font-heading);
	font-weight: 700;
	font-size: clamp(24px, 2.8vw, 30px);
	color: var(--au-charcoal);
	margin-bottom: 16px;
}
.home-about p { font-family: var(--au-font-body); font-size: 15px; color: var(--au-text-mid); margin-bottom: 14px; }
.home-about a.inline-link { color: var(--au-link-color); font-weight: 500; }
.home-about a.inline-link:hover { color: var(--au-link-hover); }
.home-about .au-btn { margin-top: 8px; }
.about-visual img { border-radius: 8px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 20px; }
.about-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: center; }
.about-mini-stats .num { font-family: var(--au-font-heading); font-weight: 700; font-size: 22px; color: var(--au-charcoal); }
.about-mini-stats .lbl {
	font-family: var(--au-font-body);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--au-text-muted);
}

/* ===== 8. FAQ ===== */
.home-faq { background: var(--au-cream); padding: 64px 0; }
.faq-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: start; }
.faq-intro .home-eyebrow { display: block; margin-bottom: 14px; }
.faq-intro h2 {
	font-family: var(--au-font-heading);
	font-weight: 700;
	font-size: clamp(27px, 3.2vw, 37px);
	color: var(--au-charcoal);
	margin-bottom: 16px;
}
.faq-intro p {
	font-family: var(--au-font-body);
	font-size: 15px;
	color: var(--au-text-mid);
	line-height: 1.6;
	max-width: 300px;
	margin-bottom: 24px;
}
.faq-contact-email {
	font-family: var(--au-font-body);
	font-size: 15px;
	font-weight: 600;
	color: var(--au-gold);
}
.faq-contact-email:hover { color: var(--au-tan-light); }

.faq-list { text-align: left; }
.faq-item { border-bottom: 1px solid var(--au-border); }
.faq-item:first-child { border-top: 1px solid var(--au-border); }
.faq-item summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 19px 2px;
	font-family: var(--au-font-heading);
	font-weight: 600;
	font-size: 16px;
	color: var(--au-charcoal);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; font-weight: 300; color: var(--au-gold); line-height: 1; flex-shrink: 0; }
.faq-item[open] summary::after { content: '\00d7'; }
.faq-item .ans {
	padding: 0 2px 22px;
	font-family: var(--au-font-body);
	font-size: 14.5px;
	color: var(--au-text-mid);
	line-height: 1.7;
	max-width: 600px;
}

/* ===== Eyebrow (shared by hero/process/about/faq) ===== */
.home-eyebrow {
	font-family: var(--au-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--au-gold);
	display: block;
	margin-bottom: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
	.home-hero .home-wrap { grid-template-columns: 1fr; gap: 32px; }
	.home-steps { grid-template-columns: 1fr; gap: 32px; }
	.featured-card { grid-template-columns: 1fr; }
	.featured-card .img-rotator { aspect-ratio: 4 / 3; }
	.about-grid { grid-template-columns: 1fr; }
	.about-grid .about-visual { order: -1; }
	.faq-grid { grid-template-columns: 1fr; gap: 32px; }
	.faq-intro p { max-width: none; }
}

@media (max-width: 700px) {
	.home-wrap, .home-stats-row { padding: 0 20px; }
	.home-stats-row { grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
	.home-stat-item { border: none !important; padding: 16px 0 !important; position: relative; }
	/* Divider lines drawn as overlays (not per-item borders) so the
	   horizontal rule bridges the 24px column gap as one continuous
	   line instead of two short segments with a visible break. */
	.home-stat-item:nth-child(3)::before,
	.home-stat-item:nth-child(4)::before {
		content: '';
		position: absolute;
		top: -10px;
		left: -12px;
		right: -12px;
		height: 1px;
		background: rgba(255, 255, 255, .15);
	}
	.home-stat-item:nth-child(even)::after {
		content: '';
		position: absolute;
		top: 0;
		bottom: 0;
		left: -12px;
		width: 1px;
		background: rgba(255, 255, 255, .15);
	}
	.home-stat-item:not(:nth-child(even)) { padding-left: 0 !important; }
	.home-stat-item:nth-child(even) { padding-left: 24px !important; }
	.featured-card .content { padding: 38px 24px; }
	.featured-stats { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
	.home-section-head-row { flex-direction: column; align-items: flex-start; }
	.home-section-head-row .au-btn { display: none; }
}

/* Matches the .full-prod-grid single-column breakpoint in products.css */
@media (max-width: 600px) {
	.home-products-mobile-cta {
		display: block;
		text-align: center;
		margin-top: 20px;
	}
}
