/*
Theme Name: Brightpath Education Foundation
Theme URI: https://example.org/
Author: Brightpath
Description: A welcoming, Elementor-compatible WordPress theme for education nonprofits and community learning programs.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: brightpath-education
*/

:root {
	--bp-ink: #18352e;
	--bp-ink-soft: #36534a;
	--bp-paper: #fbf8f0;
	--bp-paper-dark: #f1ede2;
	--bp-white: #fffefa;
	--bp-coral: #e77d61;
	--bp-coral-dark: #bd5c43;
	--bp-sun: #f1c66a;
	--bp-sage: #dce9db;
	--bp-line: rgba(24, 53, 46, .14);
	--bp-radius: 1.5rem;
	--bp-serif: Georgia, "Times New Roman", serif;
	--bp-sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
	--bp-shadow: 0 24px 70px rgba(32, 50, 40, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--bp-paper); color: var(--bp-ink); font-family: var(--bp-sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body, button, input, textarea { font-family: var(--bp-sans); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--bp-coral-dark); }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--bp-coral); outline-offset: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { z-index: 1000; top: .75rem; left: .75rem; padding: .75rem 1rem; background: var(--bp-white); color: var(--bp-ink); }
.wrap { width: min(100% - 3rem, 1240px); margin-inline: auto; }
.narrow { width: min(100% - 3rem, 760px); margin-inline: auto; }
.section-pad { padding-block: clamp(5rem, 9vw, 8rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1rem; color: var(--bp-coral-dark); font-size: .72rem; font-weight: 800; letter-spacing: .15em; line-height: 1.4; text-transform: uppercase; }
.eyebrow::before { width: 1.6rem; height: 1px; background: currentColor; content: ""; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--bp-ink); font-weight: 500; letter-spacing: -.045em; line-height: 1.08; }
h1, h2 { font-family: var(--bp-serif); }
h1 { max-width: 700px; margin-bottom: 1.35rem; font-size: clamp(3.1rem, 6.3vw, 6.4rem); }
h2 { margin-bottom: 1.2rem; font-size: clamp(2.5rem, 4.8vw, 4.4rem); }
h3 { margin-bottom: .7rem; font-size: 1.45rem; }
.lede { max-width: 560px; color: #52665e; font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.text-link { display: inline-flex; align-items: center; gap: .65rem; color: var(--bp-ink); font-size: .9rem; font-weight: 750; text-decoration: none; }
.text-link span { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid var(--bp-line); border-radius: 50%; transition: transform .2s ease, background .2s ease; }
.text-link:hover span { transform: translateX(3px); background: var(--bp-sun); }
.button { display: inline-flex; min-height: 3.3rem; align-items: center; justify-content: center; gap: .7rem; padding: .85rem 1.25rem; border: 1px solid transparent; border-radius: 999px; background: var(--bp-ink); color: var(--bp-white); font-size: .9rem; font-weight: 750; line-height: 1.2; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--bp-coral); color: #fff; }
.button svg { width: 1rem; height: 1rem; }
.button--light { background: var(--bp-paper); color: var(--bp-ink); }
.button--outline { border-color: var(--bp-line); background: transparent; color: var(--bp-ink); }
.button--outline:hover { border-color: var(--bp-ink); background: var(--bp-ink); }

/* Header */
.announcement { padding: .55rem 1rem; background: var(--bp-ink); color: #fff9ed; text-align: center; font-size: .76rem; letter-spacing: .015em; }
.announcement a { margin-left: .35rem; color: var(--bp-sun); font-weight: 750; text-decoration: none; }
.site-header { position: relative; z-index: 30; border-bottom: 1px solid rgba(24, 53, 46, .07); background: var(--bp-paper); }
.header-inner { display: flex; min-height: 5.6rem; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: .7rem; color: var(--bp-ink); text-decoration: none; }
.brand:hover { color: var(--bp-ink); }
.brand__mark { display: grid; width: 2.7rem; height: 2.7rem; place-items: center; border-radius: 50%; background: var(--bp-sun); }
.brand__mark svg { width: 1.6rem; height: 1.6rem; }
.brand__words { display: flex; flex-direction: column; color: var(--bp-ink); line-height: 1.05; text-decoration: none; }
.brand__name { font-family: var(--bp-serif); font-size: 1.2rem; letter-spacing: -.035em; }
.brand__descriptor { margin-top: .32rem; color: #718178; font-size: .57rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.custom-logo-link { display: inline-flex; }
.custom-logo { width: auto; max-height: 3.1rem; }
.primary-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.7vw, 2.5rem); }
.primary-nav ul { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: #42574e; font-size: .84rem; font-weight: 650; text-decoration: none; }
.primary-nav a:hover { color: var(--bp-coral-dark); }
.header-cta { min-height: 2.8rem; padding: .72rem 1rem; font-size: .82rem; }
.menu-toggle { display: none; width: 2.8rem; height: 2.8rem; align-items: center; justify-content: center; border: 1px solid var(--bp-line); border-radius: 50%; background: transparent; color: var(--bp-ink); }
.menu-toggle svg { width: 1.25rem; height: 1.25rem; }

/* Hero */
.hero { overflow: hidden; padding: clamp(3rem, 6vw, 5.8rem) 0 clamp(4rem, 7vw, 6.5rem); }
.hero-grid { display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.hero-copy { position: relative; z-index: 2; padding-block: 1.5rem; }
.hero h1 em { color: var(--bp-coral-dark); font-weight: 400; }
.hero-copy .lede { margin-bottom: 1.7rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.hero-note { display: flex; align-items: center; gap: .7rem; margin-top: 2.5rem; color: #66766e; font-size: .78rem; }
.avatar-stack { display: flex; padding-left: .1rem; }
.avatar-stack span { display: grid; width: 1.7rem; height: 1.7rem; margin-left: -.22rem; place-items: center; border: 2px solid var(--bp-paper); border-radius: 50%; background: var(--bp-sage); color: var(--bp-ink); font-family: var(--bp-serif); font-size: .62rem; }
.avatar-stack span:nth-child(2) { background: #f0cfba; }
.avatar-stack span:nth-child(3) { background: #d7dfb8; }
.hero-visual { position: relative; min-height: 510px; }
.hero-photo { position: absolute; inset: 0 2.4rem 1.7rem 0; overflow: hidden; border-radius: 48% 48% 2rem 2rem; background: var(--bp-sage); box-shadow: var(--bp-shadow); }
.hero-photo::after { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.25); border-radius: inherit; content: ""; pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.hero-sticker { position: absolute; top: 8%; right: -.2rem; display: grid; width: 6.2rem; height: 6.2rem; place-items: center; border: 7px solid var(--bp-paper); border-radius: 50%; background: var(--bp-sun); color: var(--bp-ink); text-align: center; transform: rotate(9deg); }
.hero-sticker span { max-width: 4rem; font-family: var(--bp-serif); font-size: .9rem; line-height: 1.05; }
.hero-caption { position: absolute; right: 0; bottom: 0; display: flex; width: min(17rem, 80%); align-items: center; gap: .8rem; padding: 1rem 1.1rem; border: 1px solid rgba(24,53,46,.07); border-radius: 1rem; background: var(--bp-white); box-shadow: 0 12px 35px rgba(32,50,40,.1); }
.caption-icon { display: grid; width: 2.7rem; height: 2.7rem; flex: 0 0 auto; place-items: center; border-radius: .85rem; background: var(--bp-sage); color: var(--bp-ink); }
.caption-icon svg { width: 1.4rem; height: 1.4rem; }
.hero-caption strong, .hero-caption small { display: block; }
.hero-caption strong { font-family: var(--bp-serif); font-size: 1rem; font-weight: 500; }
.hero-caption small { margin-top: .15rem; color: #77847d; font-size: .68rem; }

/* Story / approach */
.intro { position: relative; overflow: hidden; background: var(--bp-paper-dark); }
.intro::before { position: absolute; top: -8rem; right: -4rem; width: 25rem; height: 25rem; border: 1px solid rgba(24,53,46,.08); border-radius: 50%; content: ""; }
.intro::after { position: absolute; top: -5rem; right: -1rem; width: 19rem; height: 19rem; border: 1px solid rgba(24,53,46,.07); border-radius: 50%; content: ""; }
.intro-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: clamp(3rem, 9vw, 9rem); }
.intro-heading { position: sticky; top: 3rem; }
.intro-heading h2 { max-width: 490px; }
.intro-copy p { max-width: 630px; margin-bottom: 1.2rem; color: #596a62; font-size: 1.05rem; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.2rem; padding-top: 1.7rem; border-top: 1px solid var(--bp-line); }
.principle strong { display: block; margin-bottom: .3rem; color: var(--bp-ink); font-family: var(--bp-serif); font-size: 1.15rem; font-weight: 500; }
.principle span { color: #78857e; font-size: .77rem; }

/* Program cards */
.programs-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.programs-heading h2 { max-width: 620px; margin-bottom: 0; }
.programs-heading .lede { max-width: 340px; margin-bottom: .2rem; font-size: .98rem; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.program-card { position: relative; display: flex; min-height: 335px; flex-direction: column; align-items: flex-start; padding: clamp(1.4rem, 2.4vw, 2rem); border: 1px solid rgba(24,53,46,.08); border-radius: var(--bp-radius); background: var(--bp-white); transition: transform .25s ease, box-shadow .25s ease; }
.program-card:hover { transform: translateY(-5px); box-shadow: var(--bp-shadow); }
.program-card:nth-child(2) { background: #e8efe4; }
.program-card:nth-child(3) { background: #f6e8da; }
.program-icon { display: grid; width: 3.3rem; height: 3.3rem; margin-bottom: 2.4rem; place-items: center; border-radius: 1.1rem; background: var(--bp-sun); color: var(--bp-ink); }
.program-card:nth-child(2) .program-icon { background: #c2d6bd; }
.program-card:nth-child(3) .program-icon { background: #edb69f; }
.program-icon svg { width: 1.65rem; height: 1.65rem; }
.program-index { position: absolute; top: 1.6rem; right: 1.6rem; color: #809087; font-size: .7rem; font-weight: 750; letter-spacing: .08em; }
.program-card p { max-width: 330px; margin-bottom: 1.5rem; color: #64736b; font-size: .92rem; }
.program-card .text-link { margin-top: auto; }

/* Impact */
.impact { position: relative; overflow: hidden; background: var(--bp-ink); color: #f7f4e9; }
.impact::before { position: absolute; right: -10rem; bottom: -21rem; width: 39rem; height: 39rem; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; content: ""; }
.impact::after { position: absolute; right: -5rem; bottom: -16rem; width: 29rem; height: 29rem; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.impact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr .78fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.impact .eyebrow { color: var(--bp-sun); }
.impact h2 { max-width: 680px; margin-bottom: 1.2rem; color: var(--bp-paper); }
.impact-copy { max-width: 550px; color: #c2d0c7; font-size: 1.06rem; }
.impact-quote { position: relative; margin: 2rem 0 0; padding: 1.2rem 0 0 1.3rem; border-left: 2px solid var(--bp-coral); color: #f0dfc0; font-family: var(--bp-serif); font-size: 1.3rem; line-height: 1.45; }
.impact-quote cite { display: block; margin-top: .8rem; color: #a5b5aa; font-family: var(--bp-sans); font-size: .7rem; font-style: normal; letter-spacing: .1em; text-transform: uppercase; }
.impact-note { position: relative; min-height: 300px; padding: 2.2rem; border: 1px solid rgba(255,255,255,.16); border-radius: 50% 50% 1.4rem 1.4rem; background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.025)); }
.impact-note::before { position: absolute; inset: .7rem; border: 1px solid rgba(255,255,255,.09); border-radius: inherit; content: ""; }
.impact-note-inner { position: relative; display: flex; height: 100%; min-height: 255px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.impact-note svg { width: 2.4rem; height: 2.4rem; margin-bottom: 1.2rem; color: var(--bp-sun); }
.impact-note strong { max-width: 230px; color: var(--bp-paper); font-family: var(--bp-serif); font-size: clamp(1.65rem, 2.5vw, 2.1rem); font-weight: 400; line-height: 1.15; }
.impact-note span { margin-top: .7rem; color: #b9c8bd; font-size: .8rem; }

/* Get involved */
.involved { padding-block: clamp(4.5rem, 8vw, 7rem); }
.involved-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: clamp(2.2rem, 5.5vw, 5rem); border-radius: 2rem; background: var(--bp-sun); }
.involved-card::after { position: absolute; top: -7rem; right: 8rem; width: 22rem; height: 22rem; border: 1px solid rgba(24,53,46,.13); border-radius: 50%; content: ""; }
.involved-copy { position: relative; z-index: 1; max-width: 690px; }
.involved-copy .eyebrow { color: #765c22; }
.involved-copy h2 { max-width: 630px; margin-bottom: .8rem; font-size: clamp(2.3rem, 4vw, 3.7rem); }
.involved-copy p { max-width: 570px; margin: 0; color: #66572e; }
.involved-actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .7rem; }
.involved-actions .button { white-space: nowrap; }
.involved-actions .button--outline { border-color: rgba(24,53,46,.3); }

/* Footer */
.site-footer { padding: 3.5rem 0 1.4rem; background: #e9eee7; }
.footer-main { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand p { max-width: 320px; margin: 1.15rem 0 0; color: #64736b; font-size: .87rem; }
.footer-col h2 { margin-bottom: 1rem; font-family: var(--bp-sans); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.footer-col a, .footer-col p { color: #64736b; font-size: .86rem; text-decoration: none; }
.footer-col .footer-contact-note { margin-top: .75rem; font-size: .73rem; }
.footer-col a:hover { color: var(--bp-ink); text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; border-top: 1px solid var(--bp-line); color: #7a887f; font-size: .73rem; }
.footer-bottom p { margin: 0; }
.footer-credit { text-decoration: none; }

/* WordPress content and Elementor */
.content-page { min-height: 55vh; padding-block: clamp(3rem, 7vw, 6rem); }
.content-page__inner { max-width: 820px; margin-inline: auto; }
.content-page h1 { font-size: clamp(2.8rem, 5vw, 4.5rem); }
.entry-content > * { margin-block: 0 1.25rem; }
.entry-content img { border-radius: 1rem; }
.entry-content blockquote { margin: 2rem 0; padding-left: 1.3rem; border-left: 3px solid var(--bp-coral); color: #5b6b63; font-family: var(--bp-serif); font-size: 1.4rem; }
.elementor-page .content-page { width: min(100% - 3rem, 1240px); }
.elementor-page .content-page__inner { max-width: none; }
.elementor-page .entry-content { margin: 0; }
.elementor-page .entry-content > * { margin-block: 0; }
.elementor-page .elementor-section.elementor-section-boxed > .elementor-container { max-width: 1240px; }
.elementor-page .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor-editor-active .site-header { z-index: 100; }
.error-404 { min-height: 55vh; padding-block: 6rem; text-align: center; }
.error-404 h1 { margin-inline: auto; }
.post-list { display: grid; gap: 1.5rem; }
.post-card { padding: 1.6rem; border: 1px solid var(--bp-line); border-radius: 1.1rem; background: var(--bp-white); }
.post-card h2 { margin-bottom: .65rem; font-size: 2rem; }
.post-meta { color: #7a887f; font-size: .75rem; }
.nav-links { display: flex; gap: 1rem; margin-top: 2rem; }

@media (max-width: 900px) {
	.wrap { width: min(100% - 2.5rem, 760px); }
	.menu-toggle { display: inline-flex; }
	.header-inner { min-height: 5rem; }
	.header-controls { display: flex; align-items: center; gap: .7rem; }
	.primary-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; align-items: stretch; padding: 1rem 1.25rem 1.4rem; border-bottom: 1px solid var(--bp-line); background: var(--bp-paper); box-shadow: 0 18px 24px rgba(24,53,46,.07); }
	.primary-nav.is-open { display: flex; flex-direction: column; }
	.primary-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
	.primary-nav li { border-bottom: 1px solid var(--bp-line); }
	.primary-nav li a { display: block; padding: .9rem .2rem; }
	.primary-nav .header-cta { align-self: flex-start; margin-top: .7rem; }
	.hero-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
	.hero-visual { min-height: 410px; }
	.hero-photo {  }
	.program-grid { gap: .7rem; }
	.program-card { min-height: 360px; padding: 1.35rem; }
	.impact-grid { grid-template-columns: 1fr .7fr; gap: 2rem; }
}

@media (max-width: 680px) {
	.wrap, .narrow { width: min(100% - 2rem, 560px); }
	.announcement { font-size: .68rem; }
	.brand__name { font-size: 1.08rem; }
	.brand__descriptor { font-size: .53rem; }
	.header-cta { min-height: 2.6rem; padding: .65rem .85rem; font-size: .76rem; }
	.hero { padding-top: 2.3rem; }
	.hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
	.hero-copy { padding: 0; }
	h1 { font-size: clamp(3.1rem, 14vw, 5rem); }
	.hero-visual { min-height: min(115vw, 500px); }
	.hero-photo { inset: 0 1.5rem 1.25rem 0; border-radius: 48% 48% 1.5rem 1.5rem; }
	.hero-sticker { width: 5.3rem; height: 5.3rem; border-width: 5px; }
	.hero-sticker span { font-size: .78rem; }
	.hero-caption { width: min(16rem, 83%); padding: .8rem; }
	.intro-grid, .impact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
	.intro-heading { position: static; }
	.principles { grid-template-columns: 1fr; gap: .9rem; }
	.principle { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
	.principle strong { margin: 0; }
	.principle span { text-align: right; }
	.programs-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
	.program-grid { grid-template-columns: 1fr; }
	.program-card { min-height: auto; }
	.program-icon { margin-bottom: 1.5rem; }
	.program-card p { margin-bottom: 1.2rem; }
	.impact-note { width: min(100%, 360px); min-height: 280px; justify-self: center; }
	.involved-card { grid-template-columns: 1fr; gap: 1.8rem; padding: 2rem 1.4rem; }
	.involved-actions { align-items: stretch; }
	.involved-actions .button { width: 100%; }
	.footer-main { grid-template-columns: 1fr 1fr; gap: 2rem 1.2rem; }
	.footer-brand { grid-column: 1 / -1; }
	.footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
