/*
Theme Name:  SEED Zimbabwe
Theme URI:   https://seedzimbabwe.org
Description: Custom theme for the SEED (Reflection, Service, Peacebuilding) program by Mennonite Central Committee Zimbabwe. Human-centred, storytelling-first design.
Author:      Prince Mugonda & Frederick Dandure
Author URI:  https://quantutech.co.zw
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seed-zimbabwe
Tags:        custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
	--gold:        #C8922A;
	--gold-light:  #F5E6C8;
	--gold-pale:   #FBF5E8;
	--teal:        #1A7A6E;
	--teal-mid:    #2B9D8F;
	--teal-light:  #E0F0EE;
	--dark:        #1E1E1E;
	--gray:        #5A5A5A;
	--gray-light:  #F4F2EE;
	--white:       #FFFFFF;
	--border:      rgba(0, 0, 0, 0.08);

	--font-heading: 'Playfair Display', Georgia, serif;
	--font-body:    'DM Sans', system-ui, sans-serif;

	--radius-sm:  6px;
	--radius-md:  10px;
	--radius-lg:  14px;

	--container:  1100px;
	--gap:        2rem;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--dark);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: 1.25;
	color: var(--dark);
}

h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: clamp(18px, 2.5vw, 22px); }
h4 { font-size: 17px; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: var(--gold);
	display: block;
	margin-bottom: 12px;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gap);
}

.section {
	padding-block: 72px;
}

.section--tinted {
	background: var(--gray-light);
}

.section--dark {
	background: var(--teal);
	color: var(--white);
}

.section--gold {
	background: var(--gold-pale);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	border: none;
	transition: background 0.2s, transform 0.15s;
	text-decoration: none;
	line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary   { background: var(--gold);  color: var(--white); }
.btn--primary:hover { background: #b07d22; }

.btn--secondary { background: var(--white); color: var(--dark); border: 1px solid var(--border); }
.btn--secondary:hover { background: var(--gray-light); }

.btn--teal      { background: var(--teal);  color: var(--white); }
.btn--teal:hover { background: #135f55; }

.btn--lg { padding: 14px 32px; font-size: 16px; }

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.card--gold-top   { border-top: 3px solid var(--gold); }
.card--teal-left  { border-left: 3px solid var(--teal); border-radius: var(--radius-md); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 24px; }

.form-label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: var(--dark);
	margin-bottom: 8px;
}

.form-hint {
	display: block;
	font-size: 11px;
	color: var(--gray);
	margin-top: 5px;
}

.form-control {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--dark);
	background: var(--white);
	transition: border-color 0.2s, box-shadow 0.2s;
	outline: none;
}

.form-control:focus {
	border-color: var(--teal);
	box-shadow: 0 0 0 3px rgba(26, 122, 110, 0.12);
}

textarea.form-control {
	resize: vertical;
	min-height: 80px;
}

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 200;
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border);
	height: 64px;
	display: flex;
	align-items: center;
	transition: box-shadow 0.2s;
}

/* Push page content down so it doesn't hide under the fixed header */
body {
	padding-top: 64px;
}

/* Add shadow when page is scrolled */
.site-header.is-scrolled {
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.header-inner {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gap);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-logo {
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 600;
	color: var(--dark);
	text-decoration: none;
	white-space: nowrap;
}
.site-logo span { color: var(--gold); }
.site-logo:hover { text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 4px; }

.site-nav a {
	font-size: 13px;
	font-weight: 400;
	color: var(--gray);
	padding: 7px 13px;
	border-radius: var(--radius-sm);
	transition: color 0.2s, background 0.2s;
	text-decoration: none;
	white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.current-menu-item { color: var(--dark); background: var(--gray-light); }

.site-nav .btn--primary {
	color: var(--white);
	padding: 8px 16px;
}

/* Mobile nav toggle */
.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	flex-direction: column;
	gap: 5px;
}
.nav-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--dark);
	border-radius: 2px;
	transition: transform 0.3s;
}

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
	background: var(--gold-pale);
	padding: 56px 0 48px;
	border-bottom: 1px solid var(--border);
}

.page-header .eyebrow { margin-bottom: 10px; }
.page-header h1 { margin-bottom: 12px; }
.page-header .lead {
	font-size: 17px;
	color: var(--gray);
	max-width: 580px;
}

/* ============================================================
   HERO (front page)
   ============================================================ */
.hero {
	background: var(--gold-pale);
	border-bottom: 1px solid var(--border);
	padding-block: 80px 72px;
}

.hero-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}

.hero-title { margin-bottom: 20px; }
.hero-title em { font-style: italic; color: var(--teal); }

.hero-lead {
	font-size: 17px;
	color: var(--gray);
	margin-bottom: 32px;
	line-height: 1.75;
}

.hero-visual {
	background: linear-gradient(135deg, var(--teal-light) 0%, var(--gold-light) 100%);
	border-radius: var(--radius-lg);
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: center;
}

.hero-stat {
	background: var(--white);
	border-radius: var(--radius-md);
	padding: 18px 28px;
	text-align: center;
	width: 200px;
	border: 1px solid var(--border);
}

.hero-stat__num {
	font-family: var(--font-heading);
	font-size: 36px;
	font-weight: 600;
	color: var(--gold);
	display: block;
	line-height: 1;
}

.hero-stat__label {
	font-size: 12px;
	color: var(--gray);
	display: block;
	margin-top: 4px;
}

.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hero-tag {
	background: var(--teal-light);
	color: var(--teal);
	font-size: 11px;
	font-weight: 500;
	padding: 4px 12px;
	border-radius: 20px;
}

/* ============================================================
   PILLARS / FEATURE CARDS
   ============================================================ */
.pillar-card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 32px 24px;
	border-top: 3px solid var(--gold);
}

.pillar-card__icon {
	width: 40px;
	height: 40px;
	background: var(--gold-light);
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	font-size: 18px;
}

.pillar-card h3 { margin-bottom: 10px; }
.pillar-card p { font-size: 14px; color: var(--gray); }

/* ============================================================
   STORY CARDS
   ============================================================ */
.story-card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s;
}
.story-card:hover { transform: translateY(-3px); }

.story-card__thumb {
	height: 180px;
	overflow: hidden;
	background: var(--gray-light);
	position: relative;
}

.story-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}
.story-card:hover .story-card__thumb img { transform: scale(1.04); }

.story-card__thumb-placeholder {
	height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-heading);
	font-size: 48px;
	font-weight: 600;
	color: var(--white);
}

.story-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }

.story-card__tag {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--teal);
	margin-bottom: 8px;
}

.story-card h3 { font-size: 18px; margin-bottom: 8px; }
.story-card p { font-size: 13px; color: var(--gray); flex: 1; }

.story-card__link {
	display: inline-block;
	margin-top: 16px;
	font-size: 13px;
	font-weight: 500;
	color: var(--gold);
	text-decoration: none;
}
.story-card__link:hover { color: #b07d22; }

/* ============================================================
   PARTNER LIST
   ============================================================ */
.partner-item {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 22px 26px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	border-left: 3px solid var(--teal);
}

.partner-item__badge {
	width: 38px;
	height: 38px;
	min-width: 38px;
	background: var(--teal-light);
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: var(--teal);
}

.partner-item h4 { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.partner-item p { font-size: 13px; color: var(--gray); margin-bottom: 0; }
.partner-item__sub { font-size: 12px; color: var(--teal); margin-top: 4px; display: block; }

/* ============================================================
   APPROACH / STEPS LIST
   ============================================================ */
.steps-list { display: flex; flex-direction: column; gap: 0; }

.step-item {
	display: flex;
	gap: 24px;
	position: relative;
	padding-bottom: 40px;
}
.step-item:last-child { padding-bottom: 0; }

.step-item__line { display: flex; flex-direction: column; align-items: center; }

.step-item__num {
	width: 44px;
	height: 44px;
	min-width: 44px;
	background: var(--gold);
	color: var(--white);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 600;
}

.step-item__connector {
	width: 1px;
	flex: 1;
	background: var(--border);
	margin-top: 8px;
}
.step-item:last-child .step-item__connector { display: none; }

.step-item__content { padding-top: 8px; }
.step-item__content h3 { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.step-item__content p { font-size: 14px; color: var(--gray); }

/* ============================================================
   WHAT MAKES SEED DIFFERENT
   ============================================================ */
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.diff-item {
	display: flex;
	gap: 14px;
	padding: 18px 20px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	align-items: flex-start;
}

.diff-item__check {
	width: 24px;
	height: 24px;
	min-width: 24px;
	background: var(--teal-light);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	color: var(--teal);
	font-weight: 600;
}

.diff-item p { font-size: 14px; margin-bottom: 0; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
	background: var(--teal);
	padding: 72px var(--gap);
	text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { font-size: 17px; color: rgba(255, 255, 255, 0.75); margin-bottom: 32px; }

/* ============================================================
   SINGLE STORY
   ============================================================ */
.story-header {
	background: var(--teal);
	color: var(--white);
	padding: 64px 0;
}

.story-header h1 { color: var(--white); margin-bottom: 12px; }
.story-header .lead { font-size: 17px; color: rgba(255, 255, 255, 0.75); }
.story-header .eyebrow { color: rgba(255, 255, 255, 0.6); }

.story-content { max-width: 780px; margin-inline: auto; }

.story-section { margin-bottom: 48px; }

.story-section__title {
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 600;
	color: var(--dark);
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--gold-light);
}

.story-featured-image {
	border-radius: var(--radius-lg);
	overflow: hidden;
	margin-bottom: 48px;
}

.story-featured-image img {
	width: 100%;
	height: 380px;
	object-fit: cover;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-info-card {
	background: var(--gold-pale);
	border-radius: var(--radius-lg);
	padding: 32px;
}

.contact-info-card h3 { margin-bottom: 24px; }

.contact-detail {
	display: flex;
	gap: 14px;
	margin-bottom: 20px;
}

.contact-detail__text h4 { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.contact-detail__text p { font-size: 13px; color: var(--gray); margin-bottom: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
	background-color: var(--footer-bg-color, #1E1E1E);
	color: var(--footer-text-color, #FFFFFF);
	padding: 56px var(--gap) 32px;
}

.footer-grid {
	max-width: var(--container);
	margin-inline: auto;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand__logo {
	font-family: var(--font-heading);
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 12px;
	color: var(--footer-text-color, #FFFFFF);
}
.footer-brand__logo span { color: var(--footer-accent-color, #C8922A); }
.footer-brand p {
	font-size: 13px;
	color: var(--footer-text-color, #FFFFFF);
	opacity: 0.6;
	line-height: 1.7;
	margin-bottom: 0;
}

.footer-col h4 {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--footer-text-color, #FFFFFF);
	opacity: 0.45;
	margin-bottom: 16px;
}

.footer-col a {
	display: block;
	font-size: 13px;
	color: var(--footer-text-color, #FFFFFF);
	opacity: 0.7;
	text-decoration: none;
	margin-bottom: 10px;
	transition: opacity 0.2s;
}
.footer-col a:hover { opacity: 1; }

.footer-bottom {
	max-width: var(--container);
	margin: 24px auto 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 12px;
	color: var(--footer-text-color, #FFFFFF);
	opacity: 0.4;
}

.footer-badge {
	background: rgba(255, 255, 255, 0.08);
	border-radius: var(--radius-sm);
	padding: 5px 12px;
	font-size: 11px;
	color: var(--footer-text-color, #FFFFFF);
	opacity: 0.55;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
	.hero-inner,
	.grid-2,
	.grid-3,
	.contact-grid-2 { grid-template-columns: 1fr; }

	.hero-visual { display: none; }

	.site-nav {
		display: none;
		position: absolute;
		top: 64px;
		left: 0;
		right: 0;
		background: var(--white);
		border-bottom: 1px solid var(--border);
		flex-direction: column;
		align-items: stretch;
		padding: 12px 16px 20px;
		gap: 2px;
	}

	.site-nav.is-open { display: flex; }
	.site-nav a { text-align: left; padding: 10px 12px; }

	.nav-toggle { display: flex; }

	.form-row-2 { grid-template-columns: 1fr; }
	.diff-grid   { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }

	.section { padding-block: 48px; }
}

@media (max-width: 480px) {
	h1 { font-size: 28px; }
	h2 { font-size: 24px; }
	.btn--lg { padding: 12px 24px; font-size: 15px; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

:focus-visible {
	outline: 2px solid var(--teal);
	outline-offset: 3px;
}

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.alignnone { margin: 0; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.alignleft  { float: left;  margin: 0 1.5rem 1rem 0; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--gray); margin-top: 6px; }

.sticky { /* WP sticky post */ }
.bypostauthor { /* WP author highlight */ }
