/*
Theme Name: Opportunity First
Theme URI: https://opportunityfirst.org
Author: Opportunity First
Description: Custom theme for Opportunity First — Investing in Community. Building Generational Wealth. Layout inspired by the "Justice" multipurpose template; colors and type from the Opportunity First Brand Identity Kit.
Version: 1.0.4
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: opportunity-first
*/

/* ==========================================================================
   Tokens (Brand Identity Kit)
   ========================================================================== */
:root {
	--of-brown: #4E342E;      /* Empowerment Brown — primary */
	--of-tan: #A1887F;        /* Heritage Tan — secondary */
	--of-clay: #8D6E63;       /* Resilient Clay — accent */
	--of-gold: #D4AF37;       /* Unity Gold — success / luxury cues */
	--of-gold-dark: #B8962B;
	--of-black: #1C1C1C;      /* Strength Black — text */
	--of-cream: #F5F5DC;      /* Hope Cream — light backgrounds */
	--of-cream-soft: #FAF8EE;
	--of-deep: #2B201C;       /* dark section background */
	--of-deeper: #1F1714;
	--of-text: #4A4240;
	--of-muted: #7D726D;
	--of-line: #E6DFD3;
	--of-on-dark: #CFC4BC;

	--of-font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--of-font-body: "Lora", Georgia, "Times New Roman", serif;

	--of-container: 1200px;
	--of-header-h: 96px;
	--of-radius: 2px;
	--of-ease: cubic-bezier(.25, .8, .25, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: #fff;
	color: var(--of-text);
	font-family: var(--of-font-body);
	font-size: 17px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--of-brown); text-decoration: none; transition: color .25s var(--of-ease); }
a:hover, a:focus { color: var(--of-clay); }
:focus-visible { outline: 2px solid var(--of-gold); outline-offset: 3px; }
p { margin: 0 0 1.2em; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--of-font-head);
	color: var(--of-black);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
ul, ol { padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid var(--of-line); margin: 2.5em 0; }
blockquote {
	margin: 2em 0; padding: .5em 0 .5em 1.5em;
	border-left: 4px solid var(--of-gold);
	font-style: italic; font-size: 1.15em; color: var(--of-brown);
}
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 10px; left: 10px;
	background: var(--of-gold); color: var(--of-black); padding: 10px 18px;
}

.container { width: 100%; max-width: var(--of-container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }
.text-center { text-align: center; }
.section { padding: 100px 0; position: relative; }
.section--tight { padding: 70px 0; }
.section--light { background: var(--of-cream-soft); }
.section--dark { background: var(--of-deep); color: var(--of-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark a:not(.btn) { color: var(--of-gold); }

/* Parallax backgrounds (fixed attachment on desktop only) */
.parallax {
	background-size: cover; background-position: center; background-repeat: no-repeat;
}
@media (min-width: 1025px) and (hover: hover) {
	.parallax { background-attachment: fixed; }
}
.overlay { position: relative; isolation: isolate; }
.overlay::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(31, 23, 20, .86);
}
.overlay--gold::before { background: rgba(184, 150, 43, .9); }

/* ==========================================================================
   Section headings (Justice-style: title, gold bar, lead)
   ========================================================================== */
.eyebrow {
	display: inline-block;
	font-family: var(--of-font-body); font-style: italic;
	color: var(--of-clay); font-size: 1.05rem; margin-bottom: .4em;
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--of-gold); }
.section-header { margin-bottom: 18px; }
.divider {
	display: block; width: 70px; height: 4px; background: var(--of-gold);
	border: 0; margin: 0 0 28px;
}
.text-center .divider, .divider--center { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.12rem; color: var(--of-muted); max-width: 720px; }
.text-center .lead { margin-left: auto; margin-right: auto; }
.section--dark .lead { color: var(--of-on-dark); }
.section-intro { margin-bottom: 60px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn, .wp-block-button__link, button.btn, input[type="submit"],
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font-family: var(--of-font-head); font-weight: 700;
	font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
	padding: 18px 38px; border-radius: var(--of-radius);
	background: var(--of-gold); color: var(--of-black);
	border: 2px solid var(--of-gold); cursor: pointer; line-height: 1.2;
	transition: background .3s var(--of-ease), color .3s var(--of-ease), border-color .3s var(--of-ease);
}
.btn:hover, .btn:focus, .wp-block-button__link:hover, input[type="submit"]:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
	background: var(--of-brown); border-color: var(--of-brown); color: #fff;
}
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline:hover, .btn--outline:focus { background: var(--of-gold); border-color: var(--of-gold); color: var(--of-black); }
.btn--outline-dark { background: transparent; color: var(--of-brown); border-color: var(--of-brown); }
.btn--outline-dark:hover { background: var(--of-brown); color: #fff; }
.btn--dark { background: var(--of-black); border-color: var(--of-black); color: #fff; }
.btn--dark:hover, .btn--dark:focus { background: #fff; border-color: #fff; color: var(--of-black); }
.btn--sm { padding: 12px 24px; font-size: .72rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.text-center .btn-row { justify-content: center; }

/* ==========================================================================
   Header (transparent over hero, solid when scrolled / inner pages)
   ========================================================================== */
.site-header {
	position: absolute; top: 0; left: 0; right: 0; z-index: 100;
	height: var(--of-header-h);
	border-bottom: 1px solid rgba(255,255,255,.12);
	transition: background .35s var(--of-ease), height .35s var(--of-ease), box-shadow .35s var(--of-ease);
}
.admin-bar .site-header { top: 32px; }
.site-header.is-stuck {
	position: fixed; height: 76px;
	background: rgba(31, 23, 20, .97);
	box-shadow: 0 6px 24px rgba(0,0,0,.25);
	border-bottom-color: transparent;
}
.site-header .container {
	height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
	max-width: 1320px;
}
.brand { display: flex; align-items: center; gap: 14px; color: #fff; flex-shrink: 0; }
.brand:hover, .brand:focus { color: #fff; }
.brand__mark { width: 62px; height: auto; transition: width .35s var(--of-ease); }
.is-stuck .brand__mark { width: 52px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
	font-family: var(--of-font-head); font-weight: 800; font-size: 1.2rem;
	letter-spacing: .08em; text-transform: uppercase;
}
.brand__tag {
	font-family: var(--of-font-body); font-style: italic; font-size: .82rem;
	color: var(--of-gold); margin-top: 4px; letter-spacing: .01em;
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav .menu { display: flex; align-items: center; gap: 4px; }
.main-nav .menu > li { position: relative; }
.main-nav .menu > li > a {
	display: block; padding: 12px 14px; color: #fff;
	font-family: var(--of-font-head); font-weight: 600; font-size: .78rem;
	letter-spacing: .14em; text-transform: uppercase; position: relative;
}
.main-nav .menu > li > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
	background: var(--of-gold); transform: scaleX(0); transform-origin: left;
	transition: transform .3s var(--of-ease);
}
.main-nav .menu > li > a:hover::after,
.main-nav .menu > li.current-menu-item > a::after,
.main-nav .menu > li.current_page_item > a::after,
.main-nav .menu > li.current-menu-ancestor > a::after { transform: scaleX(1); }
.main-nav .menu > li > a:hover { color: var(--of-gold); }
/* Dropdowns */
.main-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 230px;
	background: var(--of-deeper); padding: 12px 0; border-top: 3px solid var(--of-gold);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: all .25s var(--of-ease); box-shadow: 0 14px 30px rgba(0,0,0,.3);
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a {
	display: block; padding: 9px 24px; color: var(--of-on-dark);
	font-family: var(--of-font-head); font-size: .8rem; font-weight: 500;
}
.main-nav .sub-menu a:hover { color: var(--of-gold); background: rgba(255,255,255,.04); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-cart { color: #fff; position: relative; display: inline-flex; padding: 8px; }
.header-cart:hover { color: var(--of-gold); }
.header-cart svg { width: 22px; height: 22px; }
.header-cart__count {
	position: absolute; top: 0; right: -4px; min-width: 18px; height: 18px; border-radius: 9px;
	background: var(--of-gold); color: var(--of-black); font: 700 10px/18px var(--of-font-head); text-align: center;
}
.menu-toggle {
	display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: #fff;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
	display: block; width: 26px; height: 2px; background: currentColor; position: relative;
	transition: transform .3s var(--of-ease), background .3s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -8px; }
.menu-toggle span::after { top: 8px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1100px) {
	.menu-toggle { display: block; }
	.main-nav {
		position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw);
		background: var(--of-deeper); flex-direction: column; align-items: stretch;
		padding: 100px 28px 40px; gap: 24px; overflow-y: auto;
		transform: translateX(100%); transition: transform .4s var(--of-ease);
		z-index: 99;
	}
	.menu-open .main-nav { transform: none; box-shadow: -20px 0 50px rgba(0,0,0,.4); }
	.main-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.main-nav .menu > li > a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
	.main-nav .menu > li > a::after { display: none; }
	.main-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
		border: 0; background: transparent; padding: 0 0 8px 12px;
	}
	.menu-toggle { position: relative; z-index: 101; }
	.main-nav .btn { width: 100%; }
}
@media (max-width: 600px) {
	:root { --of-header-h: 80px; }
	.brand__mark { width: 46px; }
	.brand__name { font-size: 1rem; }
	.brand__tag { font-size: .74rem; }
	.admin-bar .site-header { top: 46px; }
}

/* ==========================================================================
   Hero slider (home)
   ========================================================================== */
.hero {
	position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 960px;
	background: var(--of-deeper); color: #fff; overflow: hidden;
}
.hero__slide {
	position: absolute; inset: 0; display: flex; align-items: center;
	opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 1.2s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg {
	position: absolute; inset: 0; background-size: cover; background-position: center;
	transform: scale(1.08); transition: transform 7s ease-out;
}
.hero__slide.is-active .hero__bg { transform: scale(1); }
.hero__slide::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(31,23,20,.55) 0%, rgba(31,23,20,.62) 55%, rgba(31,23,20,.85) 100%);
}
.hero__content {
	position: relative; z-index: 2; text-align: center; max-width: 900px;
	margin: 0 auto; padding: calc(var(--of-header-h) + 40px) 24px 120px;
}
.hero__content > * { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.hero__slide.is-active .hero__content > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__content > *:nth-child(2) { transition-delay: .25s; }
.hero__slide.is-active .hero__content > *:nth-child(3) { transition-delay: .45s; }
.hero__slide.is-active .hero__content > *:nth-child(4) { transition-delay: .65s; }
.hero__slide.is-active .hero__content > *:nth-child(5) { transition-delay: .85s; }
.hero h1, .hero h2 {
	color: #fff; font-size: clamp(2.1rem, 5.4vw, 4rem); font-weight: 800;
	text-transform: uppercase; letter-spacing: .02em; margin-bottom: 22px;
}
.hero .divider { width: 90px; margin: 0 auto 26px; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.88); max-width: 700px; margin: 0 auto 36px; }
.hero .btn-row { justify-content: center; }
.hero__dots {
	position: absolute; z-index: 3; bottom: 44px; left: 0; right: 0;
	display: flex; justify-content: center; gap: 12px;
}
.hero__dots button {
	width: 12px; height: 12px; border-radius: 50%; padding: 0; cursor: pointer;
	border: 2px solid #fff; background: transparent; transition: background .3s, transform .3s;
}
.hero__dots button.is-active { background: var(--of-gold); border-color: var(--of-gold); transform: scale(1.15); }
.hero__arrow {
	position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
	width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.35); background: transparent;
	color: #fff; cursor: pointer; display: grid; place-items: center; transition: all .3s;
}
.hero__arrow:hover { background: var(--of-gold); border-color: var(--of-gold); color: var(--of-black); }
.hero__arrow--prev { left: 28px; }
.hero__arrow--next { right: 28px; }
.hero__arrow svg { width: 20px; height: 20px; }
@media (max-width: 768px) { .hero__arrow { display: none; } }

/* ==========================================================================
   Split "welcome" section (text half + image half)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.split__text { display: flex; align-items: center; padding: 100px 60px 100px max(24px, calc((100vw - var(--of-container)) / 2 + 24px)); }
.split__text-inner { max-width: 560px; }
.split--reverse .split__text { order: 2; padding: 100px max(24px, calc((100vw - var(--of-container)) / 2 + 24px)) 100px 60px; }
.split__media { position: relative; overflow: hidden; }
.split__media--founder {
	background:
		radial-gradient(circle at 50% 38%, rgba(212,175,55,.28), transparent 60%),
		linear-gradient(160deg, var(--of-tan) 0%, var(--of-clay) 55%, var(--of-brown) 100%);
	display: flex; align-items: flex-end; justify-content: center;
}
.split__media--founder::before {
	content: ""; position: absolute; inset: 0; opacity: .07;
	background-image: url("assets/img/pattern.svg"); background-size: 120px;
}
.split__media--founder img { position: relative; max-height: 600px; width: auto; }
.split__media--photo img { width: 100%; height: 100%; object-fit: cover; }
.signoff { display: flex; align-items: center; gap: 22px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--of-line); }
.signoff__name { font-family: var(--of-font-head); font-weight: 700; color: var(--of-black); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; margin: 0; }
.signoff__role { color: var(--of-clay); font-style: italic; margin: 0; }
.section--dark .signoff { border-top-color: rgba(255,255,255,.12); }
.section--dark .signoff__name { color: #fff; }
.section--dark .signoff__role { color: var(--of-gold); }
@media (max-width: 900px) {
	.split { grid-template-columns: 1fr; }
	.split__text, .split--reverse .split__text { order: 0; padding: 80px 24px; }
	.split__media { min-height: 420px; }
	.split__media--founder img { max-height: 460px; }
}

/* ==========================================================================
   Feature teasers (icon grid)
   ========================================================================== */
.grid { display: grid; gap: 40px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.teaser { display: flex; gap: 24px; align-items: flex-start; }
.teaser--center { flex-direction: column; align-items: center; text-align: center; }
.teaser__icon {
	flex-shrink: 0; width: 76px; height: 76px; border-radius: 50%;
	display: grid; place-items: center; color: var(--of-gold);
	border: 2px solid rgba(212,175,55,.55); transition: all .35s var(--of-ease);
}
.teaser__icon svg { width: 34px; height: 34px; }
.teaser:hover .teaser__icon { background: var(--of-gold); color: var(--of-black); border-color: var(--of-gold); }
.teaser h3 {
	font-size: 1.02rem; text-transform: uppercase; letter-spacing: .1em; margin: 6px 0 12px;
}
.teaser p { margin: 0; font-size: .98rem; }
.section--dark .teaser p { color: var(--of-on-dark); }
.section:not(.section--dark) .teaser__icon { color: var(--of-brown); border-color: var(--of-tan); }
.section:not(.section--dark) .teaser:hover .teaser__icon { background: var(--of-brown); color: var(--of-gold); border-color: var(--of-brown); }

/* Values ("why choose us" layout: 2 | image | 2) */
.values { display: grid; grid-template-columns: 1fr minmax(240px, 360px) 1fr; gap: 50px; align-items: center; }
.values__col { display: grid; gap: 56px; }
.values__col--left .teaser { flex-direction: row-reverse; text-align: right; }
.values__center img { margin: 0 auto; }
@media (max-width: 960px) {
	.values { grid-template-columns: 1fr; }
	.values__center { order: -1; max-width: 260px; margin: 0 auto; }
	.values__col--left .teaser { flex-direction: row; text-align: left; }
}

/* Image cards (programs / news) */
.card { background: #fff; position: relative; display: flex; flex-direction: column; height: 100%; box-shadow: 0 2px 0 var(--of-line); transition: box-shadow .35s var(--of-ease), transform .35s var(--of-ease); }
.card:hover { box-shadow: 0 22px 40px rgba(43,32,28,.12); transform: translateY(-4px); }
.card__media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--of-tan); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--of-ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 30px 30px 34px; border: 1px solid var(--of-line); border-top: 0; flex: 1; display: flex; flex-direction: column; }
.card__meta { font-family: var(--of-font-head); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--of-clay); margin-bottom: 10px; }
.card__title { font-size: 1.2rem; margin-bottom: 12px; }
.card__title a { color: var(--of-black); }
.card__title a:hover { color: var(--of-clay); }
.card__body p { font-size: .97rem; }
.card__more { margin-top: auto; font-family: var(--of-font-head); font-weight: 700; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--of-brown); }
.card__more::after { content: " \2192"; }
.card__num {
	position: absolute; top: 18px; left: 18px; z-index: 1; background: var(--of-gold); color: var(--of-black);
	font: 800 .9rem/1 var(--of-font-head); padding: 10px 12px; letter-spacing: .06em;
}

/* CTA band */
.cta-band { padding: 110px 0; text-align: center; color: #fff; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.9rem); text-transform: uppercase; letter-spacing: .02em; }
.cta-band .divider { background: #fff; }
.cta-band.overlay--gold h2, .cta-band.overlay--gold p { color: var(--of-black); }
.cta-band.overlay--gold .divider { background: var(--of-black); }
.cta-band p { font-size: 1.15rem; max-width: 720px; margin: 0 auto 36px; }

/* Pillars / impact */
.pillar { padding: 46px 36px; background: #fff; border-top: 4px solid var(--of-gold); height: 100%; box-shadow: 0 10px 30px rgba(43,32,28,.06); }
.pillar__label { font-family: var(--of-font-head); font-weight: 800; color: var(--of-brown); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.pillar p { margin: 0; font-size: .98rem; }
.section--dark .pillar { background: rgba(255,255,255,.04); box-shadow: none; }
.section--dark .pillar__label { color: #fff; }

/* Quote band */
.quote-band { text-align: center; }
.quote-band blockquote { border: 0; padding: 0; margin: 0 auto; max-width: 860px; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.5; color: #fff; }
.quote-band cite { display: block; margin-top: 24px; font-style: normal; font: 700 .8rem/1 var(--of-font-head); letter-spacing: .18em; text-transform: uppercase; color: var(--of-gold); }
.quote-mark { font: 800 5rem/1 var(--of-font-head); color: var(--of-gold); display: block; height: 50px; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-family: var(--of-font-head); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], input[type="password"], input[type="url"], select, textarea {
	width: 100%; padding: 15px 18px; font: inherit; font-size: 1rem; color: var(--of-black);
	background: #fff; border: 1px solid var(--of-line); border-radius: var(--of-radius);
	transition: border-color .25s, box-shadow .25s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--of-gold); box-shadow: 0 0 0 3px rgba(212,175,55,.25); }
textarea { min-height: 150px; resize: vertical; }
.section--dark label { color: #fff; }
.section--dark input[type="text"], .section--dark input[type="email"], .section--dark input[type="tel"], .section--dark select, .section--dark textarea {
	background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff;
}
.section--dark ::placeholder { color: rgba(255,255,255,.55); }
.hp-field { position: absolute !important; left: -9999px !important; }
.form-notice { padding: 16px 20px; margin-bottom: 24px; border-left: 4px solid var(--of-gold); background: rgba(212,175,55,.12); color: inherit; }
.form-notice--error { border-left-color: #b3261e; background: rgba(179,38,30,.1); }

/* ==========================================================================
   Inner page banner + content
   ========================================================================== */
.page-banner {
	position: relative; isolation: isolate; color: #fff; text-align: center;
	padding: calc(var(--of-header-h) + 90px) 0 90px;
	background-color: var(--of-deep); background-size: cover; background-position: center;
}
.page-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(31,23,20,.82), rgba(31,23,20,.9)); }
.page-banner h1 { color: #fff; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 18px; font-size: clamp(2rem, 4.6vw, 3.2rem); }
.page-banner .divider { margin: 0 auto 20px; }
.breadcrumbs { font-family: var(--of-font-head); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--of-on-dark); }
.breadcrumbs a { color: var(--of-gold); }
.breadcrumbs span[aria-hidden] { margin: 0 10px; opacity: .6; }

.entry-content { font-size: 1.05rem; }
.entry-content > * + h2 { margin-top: 1.6em; }
.entry-content > * + h3 { margin-top: 1.4em; }
.entry-content h2 { position: relative; padding-bottom: 18px; }
.entry-content h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 3px; background: var(--of-gold); }
.entry-content .has-text-align-center::after, .entry-content h2.has-text-align-center::after { left: 50%; transform: translateX(-50%); }
.entry-content ul li::marker { color: var(--of-gold); }
.entry-content a:not(.btn):not(.wp-block-button__link) { text-decoration: underline; text-decoration-color: var(--of-gold); text-underline-offset: 3px; }
.entry-content .alignwide { margin-left: calc(-1 * min(120px, (100vw - 860px) / 2)); margin-right: calc(-1 * min(120px, (100vw - 860px) / 2)); }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.entry-content .wp-block-image img { border-radius: var(--of-radius); }
.entry-content .wp-block-columns { gap: 40px; margin: 2em 0; }

/* Content utility blocks usable inside pages */
.of-box { background: var(--of-cream-soft); border-top: 4px solid var(--of-gold); padding: 34px 36px; margin: 2em 0; }
.of-box > :last-child { margin-bottom: 0; }
.of-box h3 { text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; }
.of-steps { counter-reset: step; list-style: none; padding: 0; }
.of-steps li { counter-increment: step; position: relative; padding-left: 64px; margin-bottom: 26px; }
.of-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; font: 800 1.6rem/1 var(--of-font-head); color: var(--of-gold); }

/* Support (WooCommerce contribution amounts) */
.support-card { background: #fff; padding: 40px 36px; box-shadow: 0 20px 50px rgba(43,32,28,.12); border-top: 4px solid var(--of-gold); }
.support-card h3 { text-transform: uppercase; letter-spacing: .1em; font-size: 1.05rem; margin-bottom: 22px; }
.support-amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.support-amount {
	display: grid; place-items: center; padding: 22px 10px; border: 2px solid var(--of-tan);
	font: 800 1.35rem/1 var(--of-font-head); color: var(--of-brown); transition: all .25s var(--of-ease);
}
.support-amount:hover, .support-amount:focus { background: var(--of-gold); border-color: var(--of-gold); color: var(--of-black); }
.support-note { margin: 22px 0 0; font-size: .9rem; color: var(--of-muted); }
.support-placeholder { text-align: center; padding: 30px 10px; }
.support-placeholder svg { width: 54px; height: 54px; color: var(--of-gold); margin: 0 auto 16px; }
/* ==========================================================================
   Posts / News
   ========================================================================== */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
@media (max-width: 1000px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .posts-grid { grid-template-columns: 1fr; } }
.pagination { margin-top: 60px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 10px; border: 1px solid var(--of-line); font-family: var(--of-font-head); font-weight: 600; color: var(--of-black); }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--of-gold); border-color: var(--of-gold); color: var(--of-black); }
.single-meta { font-family: var(--of-font-head); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--of-on-dark); }
.single-thumb { margin-bottom: 40px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--of-line); font-family: var(--of-font-head); font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--of-deeper); color: var(--of-on-dark); font-size: .97rem; }
.footer-cta { background: var(--of-gold); color: var(--of-black); padding: 46px 0; }
.footer-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-cta h2 { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.8rem); text-transform: uppercase; color: var(--of-black); }
.footer-cta p { margin: 4px 0 0; font-style: italic; }
.footer-main { padding: 80px 0 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 50px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { margin-bottom: 22px; }
.footer-title { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 24px; padding-bottom: 14px; position: relative; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--of-gold); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--of-on-dark); }
.footer-links a::before { content: "\203A"; color: var(--of-gold); margin-right: 10px; }
.footer-links a:hover { color: var(--of-gold); }
.site-footer a { color: var(--of-on-dark); }
.site-footer a:hover { color: var(--of-gold); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--of-gold); flex-shrink: 0; margin-top: 5px; }
.copyright { background: var(--of-brown); color: rgba(255,255,255,.82); padding: 18px 0; font-size: .85rem; }
.copyright .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.copyright a { color: var(--of-gold) !important; }
.back-to-top {
	position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 46px; height: 46px;
	background: var(--of-gold); color: var(--of-black); border: 0; cursor: pointer;
	display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: all .3s var(--of-ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--of-brown); color: #fff; }
.back-to-top svg { width: 18px; height: 18px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--of-ease), transform .8s var(--of-ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; }
	html { scroll-behavior: auto; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   WooCommerce
   ========================================================================== */
.woocommerce-page .site-main, .woocommerce .site-main { padding: 80px 0 100px; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 34px; margin: 0 0 40px !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; text-align: center; background: #fff; padding-bottom: 26px; border: 1px solid var(--of-line); transition: box-shadow .3s, transform .3s; }
.woocommerce ul.products li.product:hover { box-shadow: 0 20px 40px rgba(43,32,28,.12); transform: translateY(-4px); }
.woocommerce ul.products li.product a img { margin: 0 0 18px !important; background: var(--of-cream-soft); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--of-font-head); font-size: 1rem !important; color: var(--of-black); padding: 0 16px !important; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--of-brown) !important; font-family: var(--of-font-head); font-weight: 700; }
.woocommerce ul.products li.product .button { margin-top: 12px; }
@media (max-width: 900px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .woocommerce ul.products { grid-template-columns: 1fr; } }
.woocommerce span.onsale { background: var(--of-gold); color: var(--of-black); font-family: var(--of-font-head); }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info { border-top-color: var(--of-gold); }
.woocommerce .woocommerce-message::before, .woocommerce .woocommerce-info::before { color: var(--of-gold); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: #fff; }
.woocommerce div.product .product_title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.shop-mission { display: flex; gap: 24px; align-items: center; background: var(--of-cream-soft); border-left: 4px solid var(--of-gold); padding: 24px 28px; margin-bottom: 40px; }
.shop-mission p { margin: 0; }
.shop-mission strong { font-family: var(--of-font-head); color: var(--of-brown); }
.of-give-more { background: var(--of-cream-soft); border-left: 4px solid var(--of-gold); padding: 18px 22px; margin: 0 0 28px; }
.of-give-more p { margin: 0; }

/* Block editor alignment helpers */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--of-muted); text-align: center; margin-top: 8px; }

/* Social links */
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(212,175,55,.45); color: var(--of-gold) !important; transition: all .3s; }
.social-links a:hover { background: var(--of-gold); color: var(--of-black) !important; }
.social-links svg { width: 18px; height: 18px; }
.section:not(.section--dark) .social-links a { color: var(--of-brown) !important; border-color: var(--of-tan); }

/* Footer brand sizing */
.site-footer .brand__mark { width: 48px; }
.site-footer .brand__name { font-size: .98rem; white-space: nowrap; }
.site-footer .brand__tag { font-size: .78rem; }

.shop-mission svg { width: 40px; height: 40px; flex-shrink: 0; color: var(--of-gold); }
.section--light .of-box { background: #fff; }
.of-box.wp-block-group { padding: 34px 36px; }

@media (max-width: 600px) {
	.site-header .container { gap: 10px; padding: 0 16px; }
	.brand { gap: 10px; min-width: 0; }
	.brand__mark { width: 40px; }
	.brand__name { font-size: .86rem; letter-spacing: .05em; white-space: nowrap; }
	.brand__tag { font-size: .7rem; white-space: nowrap; }
	.header-actions { gap: 4px; }
	.container { padding: 0 16px; }
}

@media (max-width: 1100px) {
	.main-nav { visibility: hidden; transition: transform .4s var(--of-ease), visibility 0s linear .4s; }
	.menu-open .main-nav { visibility: visible; transition: transform .4s var(--of-ease); }
}

/* Founder photo inside About content (class lands on the wrapper div) */
.entry-content .of-founder-photo figure {
	float: right; width: 300px; max-width: 45%; margin: .4em 0 1.5em 2em;
	background: linear-gradient(160deg, var(--of-tan), var(--of-clay) 60%, var(--of-brown));
	border-bottom: 4px solid var(--of-gold);
}
.entry-content .of-founder-photo img { border-radius: 0; width: 100% !important; }
.entry-content .of-founder-photo figcaption { background: #fff; margin: 0; padding: 10px; font-family: var(--of-font-head); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--of-brown); }
@media (max-width: 600px) { .entry-content .of-founder-photo figure { float: none; max-width: 100%; margin: 1.5em auto; } }