/* ZIMFundi Schools theme */
:root {
	--zfs-display: "Fraunces", Georgia, serif;
	--body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1220px;
	--gutter: clamp(16px, 4vw, 32px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--zfs-ink); background: var(--zfs-bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--zfs-green); text-underline-offset: 3px; }
a:hover { color: var(--zfs-green-2); }
h1, h2, h3 { font-family: var(--zfs-display); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
.muted { color: var(--zfs-muted); }
.small { font-size: .88rem; }
.screen-reader-text, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; background: #fff; padding: 8px 14px; z-index: 1000; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--zfs-ochre); margin: 0 0 .4rem; }
.eyebrow--light { color: var(--zfs-gold); }
.zfs-btn--lg { padding: .95em 1.6em; font-size: 1.02rem; }
.zfs-btn--whatsapp { background: #1f9d55; color: #fff; }
.zfs-btn--whatsapp:hover { background: #17834a; color: #fff; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }
.link-quiet { font-weight: 600; text-decoration: none; color: var(--zfs-ink); }

/* Header */
.site-header { background: rgba(250, 248, 242, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--zfs-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--zfs-ink); }
.brand__mark { color: var(--zfs-green); display: grid; place-items: center; width: 40px; height: 40px; background: var(--zfs-soft); border-radius: 12px; }
.brand__text, .brand--footer { font-family: var(--zfs-display); font-size: 1.3rem; line-height: 1; }
.brand__text strong, .brand--footer strong { font-weight: 700; }
.brand__text em, .brand--footer em { font-style: italic; font-weight: 500; color: var(--zfs-ochre); }
.brand__logo { max-height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav .menu { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.site-nav .menu a { text-decoration: none; color: var(--zfs-ink); font-weight: 600; font-size: .96rem; }
.site-nav .menu a:hover, .site-nav .current-menu-item > a { color: var(--zfs-green); }
.site-nav__cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--zfs-ink); content: ""; transition: transform .2s; }
.nav-toggle span:first-child { top: 21px; }
.nav-toggle span:first-child::before { left: 0; top: -7px; }
.nav-toggle span:first-child::after { left: 0; top: 7px; }
.nav-open .nav-toggle span:first-child { background: transparent; }
.nav-open .nav-toggle span:first-child::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:first-child::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--zfs-bg); border-bottom: 1px solid var(--zfs-line); flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; gap: 14px; }
	.nav-open .site-nav { display: flex; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { display: block; padding: 10px 0; border-bottom: 1px solid var(--zfs-line); }
	.site-nav__cta { flex-direction: column; align-items: stretch; }
}

/* Hero */
.hero { position: relative; color: #fff; padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 80px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background:
	radial-gradient(1100px 500px at 85% -10%, rgba(224, 168, 38, .28), transparent 60%),
	radial-gradient(800px 400px at -10% 110%, rgba(194, 84, 26, .25), transparent 60%),
	linear-gradient(160deg, #1d6a47 0%, #17573a 45%, #0d3624 100%); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); }
.hero__inner { position: relative; }
.hero__title { color: #fff; max-width: 14ch; font-size: clamp(2.4rem, 6vw, 4.2rem); }
.hero__lede { font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 60ch; color: rgba(255,255,255,.88); margin: 0 0 28px; }
.hero .zfs-search { color: var(--zfs-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: .42em .95em; border-radius: 999px; font-size: .9rem; font-weight: 600; text-decoration: none; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.22); transition: background .15s; }
.chip:hover { background: rgba(255,255,255,.22); color: #fff; }
.chips--districts .chip { background: #fff; color: var(--zfs-ink); border-color: var(--zfs-line); }
.chips--districts .chip:hover { border-color: var(--zfs-green); color: var(--zfs-green); }
.chips--districts .chip.is-active { background: var(--zfs-green); border-color: var(--zfs-green); color: #fff; }
.chip small { opacity: .7; font-weight: 500; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--zfs-line); border-radius: var(--zfs-radius); overflow: hidden; margin-top: -28px; position: relative; box-shadow: var(--zfs-shadow); padding: 0; }
.stats > div { background: #fff; padding: 20px 22px; display: grid; gap: 2px; }
.stats strong { font-family: var(--zfs-display); font-size: 1.9rem; line-height: 1.1; color: var(--zfs-green); }
.stats span { color: var(--zfs-muted); font-size: .9rem; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; margin-left: var(--gutter); margin-right: var(--gutter); } }

/* Sections */
.section { padding: clamp(44px, 6vw, 76px) 0; }
.section.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.section--tint { background: #f1eee4; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.section__head h2 { margin-bottom: .2em; }
.section__head p { margin: 0; }
.map-legend { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--zfs-muted); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-left: 8px; }
.dot--green { background: var(--zfs-green); }
.dot--gold { background: var(--zfs-gold); }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; border-top: 2px solid var(--zfs-ink); padding-top: 28px; }
.how p { color: var(--zfs-muted); margin: 0; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }
.cta-band { background: var(--zfs-ink); color: #fff; padding: clamp(40px, 6vw, 64px) 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.78); margin: 0; max-width: 58ch; }

/* Directory */
.dir-head { padding: 28px 0 20px; background: #f1eee4; border-bottom: 1px solid var(--zfs-line); }
.dir-head h1 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: .86rem; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--zfs-muted); }
.crumbs a { color: var(--zfs-muted); text-decoration: none; }
.crumbs a:hover { color: var(--zfs-green); }
.filters { margin-top: 18px; }
.filters summary { cursor: pointer; font-weight: 700; padding: 8px 0; list-style: none; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::before { content: "⚙ "; color: var(--zfs-green); }
.dir-body { padding-top: 20px; padding-bottom: 60px; }
.dir-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.dir-count { margin: 0; }
.view-toggle { display: none; background: #fff; border: 1px solid var(--zfs-line); border-radius: 999px; padding: 3px; }
.view-toggle button { border: 0; background: transparent; padding: .45em 1.1em; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; color: var(--zfs-muted); }
.view-toggle button[aria-pressed=true] { background: var(--zfs-green); color: #fff; }
.dir-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 42%); gap: 24px; align-items: start; }
.dir-results .zfs-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.dir-map__sticky { position: sticky; top: 86px; height: calc(100vh - 110px); min-height: 420px; }
.admin-bar .dir-map__sticky { top: 118px; }
.zfs-map-count { position: absolute; left: 12px; bottom: 12px; background: #fff; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; box-shadow: var(--zfs-shadow); z-index: 500; }
.zfs-map-count:empty { display: none; }
@media (max-width: 1000px) {
	.view-toggle { display: inline-flex; }
	.dir-layout { grid-template-columns: 1fr; }
	.dir-map { display: none; }
	.zfs-show-map .dir-map { display: block; }
	.zfs-show-map .dir-results { display: none; }
	.dir-map__sticky { position: relative; top: 0 !important; height: 70vh; }
}
.empty { background: #fff; border-radius: var(--zfs-radius); padding: 36px; text-align: center; border: 1px dashed var(--zfs-line); }
.pager { margin: 32px 0 0; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; margin: 0 3px 6px 0; text-decoration: none; font-weight: 600; background: #fff; border: 1px solid var(--zfs-line); color: var(--zfs-ink); }
.pager .page-numbers.current { background: var(--zfs-green); color: #fff; border-color: var(--zfs-green); }
.pager .dots { border: 0; background: transparent; }

/* School page */
.school-hero { position: relative; background: linear-gradient(160deg, #1d6a47, #0d3624); color: #fff; padding: 26px 0 32px; overflow: hidden; }
.school-hero.has-cover { padding-top: clamp(140px, 22vw, 260px); }
.school-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.school-hero.has-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13,30,22,.05) 0%, rgba(13,30,22,.82) 78%); }
.school-hero__inner { position: relative; z-index: 1; }
.school-hero .crumbs a, .school-hero .crumbs li::before { color: rgba(255,255,255,.75); }
.school-hero__row { display: flex; align-items: center; gap: 20px; }
.school-hero__logo { width: 92px; height: 92px; border-radius: 50%; background: #fff; object-fit: contain; border: 4px solid #fff; flex: none; box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.school-hero__logo--initials { display: grid; place-items: center; font-family: var(--zfs-display); font-size: 2rem; font-weight: 600; color: var(--zfs-green); }
.school-hero__title { color: #fff; font-size: clamp(1.8rem, 4.2vw, 2.9rem); margin-bottom: .15em; }
.school-hero__meta { margin: 0; color: rgba(255,255,255,.88); }
.school-hero__meta .sep { margin: 0 6px; opacity: .6; }
.school-hero__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.badge { font-size: .8rem; font-weight: 700; padding: .3em .8em; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; }
.badge--verified { background: var(--zfs-gold); color: #2a1d00; }
.badge--unclaimed { background: rgba(0,0,0,.35); }
@media (max-width: 600px) { .school-hero__row { flex-direction: column; align-items: flex-start; } .school-hero__logo { width: 72px; height: 72px; } }
.school-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding-top: 32px; padding-bottom: 64px; }
@media (max-width: 960px) { .school-layout { grid-template-columns: 1fr; } .school-side { order: -1; } }
.block { background: #fff; border-radius: var(--zfs-radius); padding: clamp(18px, 3vw, 28px); margin-bottom: 20px; box-shadow: var(--zfs-shadow); }
.block h2 { font-size: 1.35rem; }
.lead { font-size: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--zfs-line); }
.facts > div { padding: 12px 0; border-bottom: 1px solid var(--zfs-line); padding-right: 12px; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--zfs-muted); font-weight: 700; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 18px; }
.ticks li::before { content: "✓"; color: var(--zfs-green); font-weight: 800; margin-right: 8px; }
.zfs-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.zfs-gallery a { display: block; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.zfs-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.zfs-gallery a:hover img { transform: scale(1.04); }
.distance-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.distance-card { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border-radius: 12px; background: var(--zfs-soft); }
.distance-card__label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--zfs-muted); }
.distance-card strong { font-family: var(--zfs-display); font-size: 1.7rem; line-height: 1.1; color: var(--zfs-green-2); }
.distance-card .zfs-btn { justify-self: start; padding: .5em 1em; font-size: .88rem; }
.distance-card .muted { font-size: .86rem; }
.map-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.zfs-grid--compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.side-card { background: #fff; border-radius: var(--zfs-radius); padding: 22px; margin-bottom: 16px; box-shadow: var(--zfs-shadow); }
.side-card h2 { font-size: 1.15rem; }
.side-card--claim { background: linear-gradient(160deg, #fff7ec, #fdeedd); border: 1px solid #f3d3b4; }
.contact-actions { display: grid; gap: 8px; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.school-side { position: relative; }
@media (min-width: 961px) { .school-side > :last-child { position: sticky; top: 90px; } }

/* Pages */
.page-head { padding: 44px 0 10px; }
.page-body { padding-bottom: 64px; }
.post-row { padding: 18px 0; border-bottom: 1px solid var(--zfs-line); }

/* Footer */
.site-footer { background: #10201a; color: rgba(255,255,255,.78); padding: 56px 0 24px; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--zfs-gold); }
.site-footer h3 { color: #fff; font-family: var(--body); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.brand--footer { color: #fff; margin: 0 0 12px; }
.footer-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.site-footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; font-size: .84rem; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

@media print {
	.site-header, .site-footer, .school-side, .zfs-school-map, .map-actions { display: none !important; }
	.school-layout { grid-template-columns: 1fr; }
}
