/* =========================================================================
   BC Interfaith Food Drive  |  main.css
   Tokens, base, layout, components, responsive, print
   ========================================================================= */

/* Base reset. These live here (not only in style.css) because the theme
   enqueues main.css, while style.css is not loaded on the front end. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

:root {
	/* Brand colors (sampled from the logo) */
	--teal: #134E5A;
	--teal-dark: #0E3A44;
	--teal-tint: #E7EEF1;
	--amber: #F2B33F;
	--amber-dark: #E0A02C;
	--cream: #F3D5A4;
	--cream-soft: #FBF1DD;
	--dark: #1F2A2E;
	--muted: #54636A;
	--light: #FFFDF8;
	--white: #FFFFFF;
	--line: #E4DFD3;

	/* Typography */
	--font-display: 'Montserrat', sans-serif;
	--font-body: 'Open Sans', system-ui, -apple-system, sans-serif;

	/* Layout */
	--nav-h: 120px;
	--logo-h: 100px;
	--max-w: 1200px;
	--radius: 10px;
	--transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	--shadow: 0 10px 30px rgba(19, 78, 90, 0.10);
}

/* ----------------------------------------------------------------- base */
html, body {
	overflow-x: clip;
	max-width: 100%;
}

body {
	font-family: var(--font-body);
	color: var(--dark);
	background: var(--light);
	line-height: 1.6;
	font-size: 17px;
	overflow-wrap: break-word;
}

img, iframe, svg, video {
	max-width: 100%;
}
img { height: auto; display: block; }

/* Let grid and flex items shrink below their content width (prevents
   images and long text from forcing a section wider than the viewport). */
.split, .steps, .donate-grid, .footer-inner, .form-grid, .hero-buttons, .donate-actions, .ty-actions { min-width: 0; }
.split > *, .steps > *, .donate-grid > *, .footer-inner > *, .form-grid > *, .hero-content > * { min-width: 0; }
.split-img img, .split-map iframe { width: 100%; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	line-height: 1.15;
	color: var(--teal);
	margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.container {
	width: 100%;
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 24px;
}
.container.narrow { max-width: 820px; }
.center { text-align: center; }

.section {
	padding: 64px 0;
	scroll-margin-top: var(--nav-h);
}

.section-title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.section-title.light { color: var(--white); }
.section-lead {
	font-size: 1.12rem;
	color: var(--muted);
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px;
	width: auto; height: auto; clip: auto;
	background: var(--white); color: var(--teal);
	padding: 10px 16px; z-index: 999; border-radius: 6px;
}

/* --------------------------------------------------------------- buttons */
.btn {
	display: inline-block;
	font-family: var(--font-display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 0.95rem;
	padding: 14px 28px;
	border-radius: var(--radius);
	border: 2px solid transparent;
	transition: var(--transition);
	text-align: center;
}
.btn-primary {
	background: var(--amber);
	color: var(--teal-dark);
	border-color: var(--amber);
}
.btn-primary:hover {
	background: var(--amber-dark);
	border-color: var(--amber-dark);
	transform: translateY(-2px);
}
.btn-outline {
	background: transparent;
	color: var(--teal);
	border-color: var(--teal);
}
.btn-outline:hover {
	background: var(--teal);
	color: var(--white);
}
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--white);
	border-bottom: 1px solid var(--line);
	transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(19, 78, 90, 0.12); }
.header-inner {
	max-width: var(--max-w);
	margin: 0 auto;
	height: var(--nav-h);
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.site-logo img,
.site-logo .custom-logo {
	height: var(--logo-h);
	width: auto;
	max-width: none;
}
.primary-nav .nav-links {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 28px;
}
.primary-nav a {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.92rem;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: var(--teal);
	white-space: nowrap;
	transition: color var(--transition);
}
.primary-nav a:hover { color: var(--amber-dark); }
.nav-cta a {
	background: var(--amber);
	color: var(--teal-dark) !important;
	padding: 10px 18px;
	border-radius: var(--radius);
	white-space: nowrap;
}
.nav-cta a:hover { background: var(--amber-dark); }

.nav-hamburger {
	display: none;
	flex-direction: column;
	gap: 6px;
	background: rgba(19, 78, 90, 0.92);
	border: none;
	border-radius: 8px;
	padding: 10px;
	z-index: 201;
}
.nav-hamburger span {
	display: block;
	width: 26px;
	height: 2px;
	border-radius: 2px;
	background: var(--white);
	transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero */
.hero {
	position: relative;
	min-height: clamp(520px, 82svh, 760px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	overflow: hidden;
	color: var(--white);
	padding: 80px 24px 96px;
}
.hero-bg {
	position: absolute;
	inset: -10% 0 0 0;
	height: 120%;
	background-image: url('https://interfaithfooddrive.com/wp-content/uploads/2026/06/Supermarket-Isle-Horizontal.jpeg');
	background-size: cover;
	background-position: center;
	will-change: transform;
	z-index: 1;
}
.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(14, 58, 68, 0.78), rgba(14, 58, 68, 0.86));
	z-index: 2;
}
.hero-content {
	position: relative;
	z-index: 3;
	max-width: 860px;
}
.hero-eyebrow {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--amber);
	margin-bottom: 14px;
}
.hero-title {
	color: var(--white);
	font-size: clamp(2.3rem, 6vw, 4rem);
	font-weight: 800;
	text-transform: uppercase;
	margin-bottom: 18px;
}
.hero-sub {
	font-size: clamp(1.05rem, 2.2vw, 1.3rem);
	max-width: 680px;
	margin: 0 auto 30px;
	color: rgba(255, 255, 255, 0.92);
}
.hero-buttons {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}
.hero-buttons .btn-outline {
	color: var(--white);
	border-color: var(--white);
}
.hero-buttons .btn-outline:hover {
	background: var(--white);
	color: var(--teal);
}
.hero-strip {
	position: relative;
	z-index: 3;
	margin-top: 44px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	justify-content: center;
	align-items: center;
	font-size: 0.98rem;
	background: rgba(19, 78, 90, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.25);
	padding: 12px 22px;
	border-radius: 50px;
}
.hero-strip strong { color: var(--amber); font-family: var(--font-display); margin-right: 6px; }
.strip-dot { color: var(--amber); }

/* ------------------------------------------------------------- the need */
.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}
.split-img img {
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	width: 100%;
	object-fit: cover;
}
.section-need { background: var(--cream-soft); }

/* ------------------------------------------------------------- the goal */
.section-goal {
	background: var(--teal);
	color: var(--white);
}
.goal-lead {
	color: rgba(255, 255, 255, 0.92);
	font-size: 1.1rem;
	max-width: 760px;
	margin: 0 auto 32px;
}
.goal-meter {
	height: 34px;
	width: 100%;
	max-width: 640px;
	margin: 0 auto;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50px;
	overflow: hidden;
}
.goal-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--amber), var(--amber-dark));
	border-radius: 50px;
	transition: width 1s ease;
}
.goal-numbers {
	margin-top: 16px;
	font-size: 1.25rem;
	font-family: var(--font-display);
}
.goal-numbers strong { color: var(--amber); font-size: 1.5rem; }

/* ---------------------------------------------------------- how it works */
.steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-top: 40px;
}
.step {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 32px 24px;
	box-shadow: var(--shadow);
	transition: transform var(--transition);
}
.step:hover { transform: translateY(-4px); }
.step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px; height: 52px;
	border-radius: 50%;
	background: var(--teal);
	color: var(--white);
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.3rem;
	margin-bottom: 16px;
}
.step h3 { text-transform: uppercase; font-size: 1.1rem; letter-spacing: 0.5px; }
.step p { color: var(--muted); margin: 0; }

/* ------------------------------------------------------- what to donate */
.donate-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 40px;
}
.donate-card {
	background: var(--white);
	border-top: 5px solid var(--amber);
	border-radius: var(--radius);
	padding: 30px 28px;
	box-shadow: var(--shadow);
}
.donate-card h3 {
	text-transform: uppercase;
	font-size: 1.15rem;
	letter-spacing: 0.5px;
	margin-bottom: 16px;
}
.donate-card ul { list-style: none; }
.donate-card li {
	padding: 7px 0 7px 26px;
	position: relative;
	border-bottom: 1px dashed var(--line);
	color: var(--dark);
}
.donate-card li:last-child { border-bottom: none; }
.donate-card li::before {
	content: '';
	position: absolute;
	left: 0; top: 14px;
	width: 12px; height: 12px;
	border-radius: 50%;
	background: var(--cream);
	border: 2px solid var(--amber);
}
.card-note {
	margin-top: 14px;
	font-style: italic;
	color: var(--muted);
	font-size: 0.95rem;
}
.donate-tip {
	margin-top: 32px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	background: var(--teal-tint);
	border-left: 5px solid var(--teal);
	border-radius: var(--radius);
	padding: 20px 26px;
}
.donate-tip p { margin: 0; }
.donate-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------- drop off */
.section-dropoff { background: var(--cream-soft); }
.dropoff-when { font-size: 1.3rem; }
.dropoff-when strong { color: var(--teal); }
.dropoff-where { font-size: 1.1rem; font-weight: 600; }
.dropoff-open {
	background: var(--white);
	border-radius: var(--radius);
	padding: 16px 20px;
	border-left: 5px solid var(--amber);
	color: var(--dark);
}
.split-map iframe {
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	display: block;
}

/* --------------------------------------------------------------- signup */
.section-signup { background: var(--white); }
.signup-form { margin-top: 28px; text-align: left; }
.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin-bottom: 18px;
}
.field { margin-bottom: 18px; }
.field label,
.field-label {
	display: block;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 6px;
	color: var(--teal);
}
.field .req { color: var(--amber-dark); }
.field input,
.field select,
.field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--line);
	border-radius: 8px;
	font-family: var(--font-body);
	font-size: 1rem;
	background: var(--light);
	transition: border-color var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--teal);
}
.field .radio {
	font-family: var(--font-body);
	font-weight: 400;
	color: var(--dark);
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 8px;
}
.field .radio input { width: auto; }
.hp-field { position: absolute; left: -9999px; }

.form-notice {
	padding: 16px 20px;
	border-radius: var(--radius);
	margin-bottom: 24px;
	font-weight: 600;
}
.form-success { background: #E6F4EA; color: #1E6B3A; border-left: 5px solid #2E9E5B; }
.form-error { background: #FDECEA; color: #A23A2E; border-left: 5px solid #D24A3A; }

/* ---------------------------------------------------------------- about */
.section-about {
	background: var(--teal-dark);
	color: var(--white);
}
.about-text { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; }
.dropoff-logo { margin: 0 0 6px; }
.dropoff-logo img {
	max-height: 84px;
	max-width: 100%;
	width: auto;
	height: auto;
}
.section-about .btn-primary { margin-top: 12px; }

/* ----------------------------------------------------------- thank you */
.section-thankyou { background: var(--cream-soft); text-align: center; }
.thankyou-lead { font-size: 1.15rem; color: var(--muted); max-width: 600px; margin: 0 auto; }
.ty-steps {
	max-width: 640px;
	margin: 30px auto 0;
	text-align: left;
	counter-reset: ty;
	list-style: none;
}
.ty-steps li {
	position: relative;
	padding: 16px 18px 16px 64px;
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	margin-bottom: 14px;
}
.ty-steps li::before {
	counter-increment: ty;
	content: counter(ty);
	position: absolute;
	left: 16px; top: 50%;
	transform: translateY(-50%);
	width: 34px; height: 34px;
	border-radius: 50%;
	background: var(--teal);
	color: var(--white);
	font-family: var(--font-display);
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ty-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* --------------------------------------------------------------- footer */
.site-footer {
	background: var(--dark);
	color: rgba(255, 255, 255, 0.82);
}
.footer-inner {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 56px 24px 32px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
}
.footer-logo {
	width: 220px;
	max-width: 100%;
	background: var(--white);
	padding: 14px 18px;
	border-radius: var(--radius);
}
.footer-tag { margin-top: 14px; }
.footer-col h3 {
	color: var(--amber);
	text-transform: uppercase;
	font-size: 1rem;
	letter-spacing: 0.5px;
}
.site-footer a { color: var(--white); border-bottom: 1px solid transparent; }
.site-footer a:hover { border-bottom-color: var(--amber); }
.footer-social { display: flex; gap: 18px; margin-top: 10px; }
.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 20px 24px;
	text-align: center;
	font-size: 0.85rem;
}
.footer-bottom p { margin: 4px 0; }

/* ------------------------------------------------------------ responsive */
@media (min-width: 1024px) {
	.split-map iframe { height: 380px; }
}

/* Use the hamburger menu until the inline nav has room. The large logo plus
   the full menu and the CTA button need about 1100px to sit without crowding,
   so below that we show the clean overlay menu instead of squeezing them. */
@media (max-width: 1100px) {
	.nav-hamburger { display: flex; }
	.primary-nav {
		position: fixed;
		inset: 0;
		background: var(--teal);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity var(--transition), visibility var(--transition);
		display: flex;
		align-items: center;
		justify-content: center;
		z-index: 200;
	}
	.primary-nav.mobile-open { opacity: 1; visibility: visible; pointer-events: auto; }
	.primary-nav .nav-links {
		flex-direction: column;
		gap: 26px;
		text-align: center;
	}
	.primary-nav a { color: var(--white); font-size: 1.2rem; }
	.nav-cta a { font-size: 1.05rem; padding: 12px 26px; }
}

@media (max-width: 900px) {
	.steps { grid-template-columns: repeat(2, 1fr); }
	.donate-grid { grid-template-columns: 1fr; }
	.footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
	:root { --nav-h: 88px; --logo-h: 64px; }
	.section { padding: 48px 0; }

	.split { grid-template-columns: 1fr; gap: 28px; }
	.split-img { order: -1; }

	/* Disable hero parallax on mobile per performance standard */
	.hero-bg {
		inset: 0;
		height: 100%;
		transform: none !important;
		will-change: auto;
	}
}

@media (max-width: 480px) {
	:root { --nav-h: 74px; --logo-h: 52px; }
}

@media (max-width: 560px) {
	body { font-size: 16px; }
	.form-grid { grid-template-columns: 1fr; }
	.footer-inner { grid-template-columns: 1fr; }
	.donate-tip { flex-direction: column; align-items: flex-start; }
	.hero-buttons { flex-direction: column; width: 100%; }
	.hero-buttons .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
	.hero-bg { transform: none !important; }
}

/* ------------------------------------------------------------------ print */
@media print {
	.site-header, .site-footer, .hero, .section-need, .section-goal,
	.section-how, .section-dropoff, .section-signup, .section-about,
	.donate-tip .btn-print { display: none !important; }

	.section-donate { padding: 0; }
	.donate-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
	.donate-card { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
	.section-title { color: #000; }
	body { background: #fff; color: #000; font-size: 12px; }
}
