/* =========================================================
   DSAI-RC — FRONT PAGE
   Layout only; every colour, size and control comes from
   assets/css/brand.css. Scoped to body.home.
   ========================================================= */

/* ---------------------------------------------------------
   BAND RHYTHM
   The template stacks seven full-bleed bands. They alternate
   white / paper all the way down, share one padding scale, and
   join edge to edge — the block gap between them is killed in
   brand.css, otherwise it shows as a white seam.
   Only background-color is set here: the background-image slot
   belongs to the left rule.
   --------------------------------------------------------- */

body.home .dsairc-band-solutions,
body.home .dsairc-why-choose {
	background-color: var(--ev-paper) !important;
}

body.home .dsairc-about-section,
body.home .dsairc-section-projects,
body.home .dsairc-partners,
body.home .dsairc-section-news {
	background-color: #ffffff !important;
}

body.home .dsairc-home > .wp-block-group.alignfull:not(.dsairc-hero) {
	padding: 80px var(--ev-gutter) !important;
}

/* The footer rides up over the last band — give it room to land on. */
body.home .dsairc-home > .wp-block-group.alignfull:not(.dsairc-hero):last-child {
	padding-bottom: 152px !important;
}


/* ---------------------------------------------------------
   HERO — full-bleed photo, gradient landing on #161616,
   72px centred title. The band below rides up over its foot,
   so the copy keeps clear of the overlap.
   --------------------------------------------------------- */

body.home .dsairc-hero {
	display: flex;
	align-items: flex-end;
	min-height: min(1123px, 92vh);
	margin: 0;
	border-radius: 0;
	background: var(--ev-ink);
}

/* Pinned to the viewport, not to the section — the bands below scroll up
   over it instead of dragging it along. z-index -1 keeps it behind the
   hero's own content while staying inside the hero's stacking context, so
   the white body background never covers it. */
body.home .dsairc-hero-media {
	position: fixed;
	top: 0;
	left: 0;
	z-index: -1;
	width: 100%;
	height: 100vh;
	max-width: none;
	margin: 0;
}

body.home .dsairc-hero-media img {
	width: 100%;
	height: 100%;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
}

body.home .dsairc-hero::after {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	z-index: -1;
	width: 100%;
	height: 100vh;
	background: linear-gradient(180deg, rgba(22, 22, 22, 0) 60%, var(--ev-ink) 99%);
	pointer-events: none;
}

body.home .dsairc-hero-inner {
	width: 100%;
	max-width: none;
	align-items: flex-end;
	padding: 200px var(--ev-gutter) 160px;
}

body.home .dsairc-hero-content {
	width: 100%;
	max-width: 900px;
	text-align: left;
}

body.home .dsairc-hero-title {
	font-size: clamp(36px, 4.2vw, 72px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	text-shadow: none;
}

body.home .dsairc-hero-title {
	color: #ffffff;
}

/* "Research Center" is the coloured half of the masthead. */
body.home .dsairc-hero-title-accent {
	color: var(--ev-blue);
}

/* The blurb is four lines now, not one — it reads as body copy under the
   masthead rather than as a second headline. */
body.home .dsairc-hero-description {
	max-width: 760px;
	margin-top: 24px;
	color: #ffffff;
	font-size: clamp(16px, 1.35vw, 22px);
	font-weight: 400;
	line-height: 1.5;
}

/* The badge belongs to the retired look; the university line is now the
   fourth line of the masthead, so it loses its leading rule and sits
   tight under the title. */
body.home .dsairc-hero-badge,
body.home .dsairc-hero-university-rule {
	display: none;
}

body.home .dsairc-hero-university {
	display: block;
	margin: 12px 0 0;
	color: #ffffff;
	font-size: clamp(18px, 1.7vw, 26px);
	font-weight: 600;
	line-height: 1.2;
}

body.home .dsairc-hero-actions {
	justify-content: flex-start;
	margin-top: 32px;
}


/* ---------------------------------------------------------
   STATS — four counters as bordered cards, matching the FAQ
   card language the rest of the site uses.
   --------------------------------------------------------- */

body.home .dsairc-band-solutions {
	margin: 0;
	border-radius: 0;
}

body.home .dsairc-stats-head {
	max-width: 778px;
	margin-inline: 0;
	text-align: left;
}

body.home .dsairc-stats-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 0;
}

body.home .dsairc-stat-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	box-sizing: border-box;
	padding: 28px 24px;
	border: 1px solid var(--ev-line);
	border-radius: 15px;
	background: #ffffff;
	box-shadow: none;
	text-align: left;
	transition: background 0.2s ease, border-color 0.2s ease;
}

body.home .dsairc-stat-item:hover {
	border-color: var(--ev-steel);
	background: var(--ev-paper);
}

body.home .dsairc-stat-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 40px;
	height: 40px;
	margin-bottom: 8px;
	border: 3px solid var(--ev-lime);
	border-radius: 50%;
	background: transparent;
	color: var(--ev-navy);
}

body.home .dsairc-stat-number {
	color: var(--ev-blue);
	font-size: 48px;
	font-weight: 700;
	line-height: 1;
}

body.home .dsairc-stat-label {
	color: var(--ev-navy);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
	text-transform: none;
}


/* ---------------------------------------------------------
   SLAB BANDS — Who We Are and Why Choose Us
   The shape lives in brand.css; these two only need room for
   the panel that overlaps their right side.
   --------------------------------------------------------- */

body.home .dsairc-slab-band {
	min-height: 620px;
}

@media (max-width: 1500px) {
	body.home .dsairc-slab-band {
		min-height: 0;
	}
}


/* ---------------------------------------------------------
   PROJECTS — a tall photo card beside two short ones
   --------------------------------------------------------- */

body.home .dsairc-section-projects {
	margin: 0;
	border-radius: 0;
}

body.home .dsairc-projects-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
	align-items: start;
}

body.home .dsairc-projects-side {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* Full width of the side column, stacked — a half-width card here
   read as noticeably narrower than the featured one next to it. */
body.home .dsairc-projects-row {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

body.home .dsairc-projects-note {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1100px) {
	body.home .dsairc-stats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.home .dsairc-band-body {
		grid-template-columns: minmax(0, 1fr);
	}

	body.home .dsairc-projects-split {
		grid-template-columns: minmax(0, 1fr);
	}

	body.home .dsairc-pcard.is-featured {
		min-height: 360px;
	}
}

@media (max-width: 900px) {
	body.home .dsairc-hero-inner {
		padding-top: 140px;
	}
}

@media (max-width: 700px) {
	body.home .dsairc-stats-grid,
	body.home .dsairc-tile-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
