/**
 * DWoSO homepage — front-page.php styles.
 *
 * Colors and fonts are pulled from the site's real global design tokens
 * (see /BRAND.md at the project root): Astra's global color palette
 * (--ast-global-color-0 … 8, already output on every page by the theme)
 * and its global fonts (Fira Sans Condensed for headings, Fira Sans for
 * body copy — both already applied site-wide, so headings below inherit
 * them automatically without being set here).
 *
 * Layout is plain CSS Grid / Flexbox. No page builder markup or classes.
 */

.dwoso-home {
	--navy: var(--ast-global-color-2, #0f172a);
	--purple: var(--ast-global-color-0, #563973);
	--purple-hover: var(--ast-global-color-1, #65408b);
	--text: var(--ast-global-color-3, #888686);
	--mint: var(--ast-global-color-4, #b3eed3);
	--offwhite: var(--ast-global-color-5, #fffefe);
	--ink: var(--ast-global-color-7, #140610);
	overflow-x: hidden;
}

.dwoso-home section {
	padding: 4.5rem 1.5rem;
}

.dwoso-home .dwoso-container {
	max-width: 1200px;
	margin: 0 auto;
}

/* Break a section out of Astra's 1200px .ast-container so it runs edge-to-edge.
   Plain negative-margin technique (no position/left/width fighting each other,
   which is what caused mobile overflow in an earlier version of this file). */
.dwoso-full-bleed {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.dwoso-eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.8rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

/* ---------- Hero ---------- */

.dwoso-hero {
	background-color: var(--navy);
	color: var(--offwhite);
	padding: 5.5rem 1.5rem;
}

.dwoso-hero .dwoso-container {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.dwoso-hero .dwoso-eyebrow {
	color: var(--mint);
}

.dwoso-hero h1 {
	color: var(--offwhite);
	font-size: clamp(2rem, 4vw, 3.1rem);
	line-height: 1.15;
	margin: 0 0 1.25rem;
}

.dwoso-hero p {
	color: #d7dbe4;
	font-size: 1.1rem;
	line-height: 1.7;
	max-width: 46ch;
	margin: 0 0 2rem;
}

.dwoso-hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.dwoso-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.75rem;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.dwoso-btn:hover,
.dwoso-btn:focus {
	transform: translateY(-2px);
}

.dwoso-btn-primary {
	background-color: var(--purple);
	color: #fff !important;
}

.dwoso-btn-primary:hover,
.dwoso-btn-primary:focus {
	background-color: var(--purple-hover);
	color: #fff !important;
}

.dwoso-btn-outline {
	background-color: transparent;
	color: var(--offwhite) !important;
	border: 2px solid rgba(255, 255, 255, 0.5);
}

.dwoso-btn-outline:hover,
.dwoso-btn-outline:focus {
	border-color: #fff;
	background-color: rgba(255, 255, 255, 0.08);
}

.dwoso-hero-photo img {
	width: 100%;
	height: 100%;
	max-height: 420px;
	object-fit: cover;
	border-radius: 10px;
	display: block;
}

/* ---------- Stats band ---------- */

.dwoso-stats {
	background-color: var(--purple);
	padding: 3.5rem 1.5rem;
}

.dwoso-stats .dwoso-container {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 2rem;
}

.dwoso-stat {
	text-align: center;
	color: #fff;
}

.dwoso-stat-icon {
	width: 44px;
	height: 44px;
	margin: 0 auto 0.9rem;
	color: var(--mint);
}

.dwoso-stat-icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
}

.dwoso-stat-number {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-weight: 700;
	line-height: 1;
	margin-bottom: 0.5rem;
}

.dwoso-stat-label {
	font-size: 0.92rem;
	color: #e7defb;
}

/* ---------- Section headers (Programs / Projects) ---------- */

.dwoso-section-header {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 3rem;
}

.dwoso-section-header .dwoso-eyebrow {
	color: var(--purple);
}

.dwoso-section-header h2 {
	margin: 0 0 0.75rem;
	color: var(--navy);
	font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.dwoso-section-header p {
	color: var(--text);
	margin: 0;
}

/* ---------- Programs grid ---------- */

.dwoso-programs {
	background-color: var(--offwhite);
}

.dwoso-programs-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
}

.dwoso-card {
	background-color: #fff;
	border: 1px solid #ece7f2;
	border-radius: 12px;
	padding: 2rem 1.75rem;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dwoso-card:hover {
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
	transform: translateY(-3px);
}

.dwoso-card-icon {
	width: 48px;
	height: 48px;
	margin-bottom: 1.25rem;
	color: var(--purple);
}

.dwoso-card-icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
}

.dwoso-card h3 {
	color: var(--navy);
	font-size: 1.2rem;
	margin: 0 0 0.6rem;
}

.dwoso-card p {
	color: var(--text);
	font-size: 0.96rem;
	line-height: 1.6;
	margin: 0 0 1.25rem;
	flex-grow: 1;
}

.dwoso-card-link {
	color: var(--purple);
	font-weight: 600;
	text-decoration: none;
	font-size: 0.92rem;
}

.dwoso-card-link:hover {
	color: var(--purple-hover);
	text-decoration: underline;
}

.dwoso-card--placeholder {
	border-style: dashed;
	background-color: #fbfaff;
}

.dwoso-card--placeholder h3,
.dwoso-card--placeholder .dwoso-card-icon {
	color: #b9b2c8;
}

/* ---------- Projects grid ---------- */

.dwoso-projects {
	background-color: #f7f4fb;
}

.dwoso-projects-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
}

.dwoso-project-card {
	background-color: #fff;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dwoso-project-card:hover {
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
	transform: translateY(-3px);
}

.dwoso-project-thumb {
	aspect-ratio: 16 / 10;
	background-color: var(--mint);
	overflow: hidden;
}

.dwoso-project-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dwoso-project-body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.dwoso-project-body h3 {
	color: var(--navy);
	font-size: 1.1rem;
	margin: 0 0 0.6rem;
}

.dwoso-project-body p {
	color: var(--text);
	font-size: 0.92rem;
	line-height: 1.6;
	margin: 0 0 1rem;
	flex-grow: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dwoso-project-more {
	color: var(--purple);
	font-weight: 600;
	font-size: 0.88rem;
}

.dwoso-projects-cta {
	text-align: center;
	margin-top: 2.5rem;
}

/* ---------- Partner strip ---------- */

.dwoso-partners {
	background-color: #f2f0f5;
	padding: 3rem 1.5rem;
}

.dwoso-partners .dwoso-section-header {
	margin-bottom: 2rem;
}

/* Auto-scrolling logo carousel: .dwoso-partners-track holds two identical
   .dwoso-partners-group copies of the same logo list back to back, then
   scrolls left by exactly one copy's width (translateX(-50%)) on an
   infinite loop — since both copies are pixel-identical, the seam between
   them is invisible and the strip appears to scroll forever. Works for any
   number of partners, and pauses on hover so a visitor can actually click
   a logo instead of chasing a moving target. */
.dwoso-partners-strip {
	overflow: hidden;
	width: 100%;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.dwoso-partners-track {
	display: flex;
	width: max-content;
	animation-name: dwoso-partners-marquee;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

.dwoso-partners-strip:hover .dwoso-partners-track,
.dwoso-partners-strip:focus-within .dwoso-partners-track {
	animation-play-state: paused;
}

.dwoso-partners-group {
	display: flex;
	align-items: center;
	gap: 3rem;
	padding-right: 3rem;
}

@keyframes dwoso-partners-marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.dwoso-partners-track {
		animation: none;
	}

	.dwoso-partners-strip {
		overflow-x: auto;
	}
}

.dwoso-partner-logo {
	font-family: 'Fira Sans Condensed', sans-serif;
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.02em;
	color: #9a9a9a;
	filter: grayscale(100%);
	opacity: 0.8;
	transition: opacity 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

.dwoso-partner-logo:hover {
	opacity: 1;
	color: var(--navy);
}

/* Uniform logo box: whatever size, aspect ratio, or color a logo is
   uploaded at, object-fit: contain scales it to fit the same box without
   ever cropping or stretching it. Grayscale + slightly faded by default;
   hover/focus reveals its real color and grows it just a smidge. */
.dwoso-partner-logo--image {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 150px;
	height: 64px;
	opacity: 1;
	filter: none;
}

.dwoso-partner-logo--image img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	filter: grayscale(100%);
	opacity: 0.7;
	transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.dwoso-partner-logo--image:hover img,
.dwoso-partner-logo--image:focus img {
	filter: grayscale(0%);
	opacity: 1;
	transform: scale(1.08);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.dwoso-hero .dwoso-container {
		grid-template-columns: 1fr;
	}
	.dwoso-hero-photo {
		order: -1;
	}
	.dwoso-stats .dwoso-container {
		grid-template-columns: repeat(3, 1fr);
		row-gap: 2.5rem;
	}
	.dwoso-programs-grid,
	.dwoso-projects-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.dwoso-home section {
		padding: 3rem 1.25rem;
	}
	.dwoso-stats .dwoso-container {
		grid-template-columns: repeat(2, 1fr);
	}
	.dwoso-programs-grid,
	.dwoso-projects-grid {
		grid-template-columns: 1fr;
	}
}
