/*
Theme Name: IM Worth More Foundation Theme
Theme URI: https://imworthmorefoundation.store
Author: IM WORTH MORE FOUNDATION INC
Author URI: https://imworthmorefoundation.store
Description: Professional non-profit foundation theme tailored for Facebook Meta Business Manager verification. Includes hero, programs, impact, contact and legal compliance layouts for IM WORTH MORE FOUNDATION INC (EIN 87-2085177).
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: imworthmore
Tags: non-profit, charity, foundation, education, community, responsive
*/

:root {
  --brand: #0f5c4b;
  --brand-dark: #0a4238;
  --brand-light: #e6f2ee;
  --accent: #f0a12e;
  --ink: #172321;
  --muted: #5d6b68;
  --line: #e2e8e6;
  --bg: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 92, 75, 0.08);
  --wrap: 1140px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--alt { background: var(--brand-light); }
.section__intro { max-width: 720px; margin: 0 auto 40px; text-align: center; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--brand); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  border: 2px solid var(--brand);
  cursor: pointer;
  transition: .2s ease;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #2b1c00; }
.btn--accent:hover { background: #d98d1d; border-color: #d98d1d; }

/* Top bar */
.topbar { background: var(--brand-dark); color: #dff0eb; font-size: .88rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; padding: 10px 20px; }
.topbar a { color: #fff; }
.topbar__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand), #1c8a6f);
  color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .95rem;
}
.brand__name { font-weight: 800; font-size: 1.02rem; line-height: 1.2; color: var(--ink); }
.brand__tag { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.brand a { text-decoration: none; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: .9rem; cursor: pointer; }
.main-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--brand); }

/* Hero */
.hero {
  background: linear-gradient(150deg, var(--brand-dark) 0%, var(--brand) 55%, #1b8b70 100%);
  color: #fff; padding: 96px 0;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero p { max-width: 58ch; color: #dcefe9; font-size: 1.08rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 56px; }
.stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 20px; }
.stat__num { font-size: 1.7rem; font-weight: 800; }
.stat__label { font-size: .86rem; color: #d7ebe5; }

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0 0 1em; }
.card__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; font-weight: 800; margin-bottom: 16px; }

.about__lead { font-size: 1.08rem; color: var(--muted); }
.fact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.fact-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: .95rem; }
.fact-list strong { color: var(--ink); }

/* Forms */
.form { display: grid; gap: 16px; max-width: 640px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
textarea { min-height: 140px; resize: vertical; }
.form__note { font-size: .82rem; color: var(--muted); }

/* Contact detail blocks */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-block { border-left: 3px solid var(--brand); padding: 4px 0 4px 16px; margin-bottom: 22px; }
.contact-block span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* Content / legal pages */
.page-hero { background: var(--brand-light); padding: 56px 0; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: .2em; }
.page-hero p { color: var(--muted); margin: 0; }
.content { max-width: 820px; margin: 0 auto; padding: 56px 20px; }
.content h2 { margin-top: 2em; }
.content ul, .content ol { padding-left: 22px; }
.content li { margin-bottom: .5em; }
.legal-meta { background: var(--brand-light); border-radius: var(--radius); padding: 20px 24px; font-size: .92rem; }

/* Posts */
.post-list { display: grid; gap: 28px; max-width: 820px; margin: 0 auto; }
.post-card { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.post-meta { font-size: .84rem; color: var(--muted); margin-bottom: 8px; }
.pagination { display: flex; gap: 10px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Footer */
.site-footer { background: #0b1c19; color: #c9d8d4; padding: 64px 0 0; font-size: .94rem; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer a { color: #c9d8d4; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-legal-name { color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.footer-verify { margin-top: 20px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.04); line-height: 1.8; }
.footer-verify strong { color: #fff; }
.footer-bottom { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .86rem; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

@media (max-width: 900px) {
  .grid--3, .grid--2, .contact-grid, .footer-grid, .hero__stats, .form .row { grid-template-columns: 1fr; }
  .hero { padding: 64px 0; }
  .section { padding: 52px 0; }
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; padding: 14px 0 4px; }
  .site-header .wrap { flex-wrap: wrap; }
  .topbar .wrap { justify-content: center; text-align: center; }
}
