/* Ixoraa Knowledge Foundation — static export stylesheet
   Hand-ported from the Tailwind v4 design tokens in src/styles.css */

:root {
  --radius: 0.45rem;
  --background: oklch(0.995 0.003 95);
  --foreground: oklch(0.19 0.035 258);
  --card: oklch(1 0 0);
  --primary: oklch(0.27 0.105 262);
  --primary-foreground: oklch(0.984 0.003 247.858);
  --secondary-foreground: oklch(0.62 0.19 45);
  --muted: oklch(0.965 0.008 250);
  --muted-foreground: oklch(0.47 0.025 258);
  --border: oklch(0.9 0.015 255);
  --highlight: oklch(0.79 0.17 73);
  --highlight-foreground: oklch(0.2 0.05 258);
  --font-sans: "Manrope", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
}

* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }

.container { margin: 0 auto; max-width: 72rem; padding: 0 1.25rem; }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
  background-color: color-mix(in oklch, var(--background) 95%, transparent);
  backdrop-filter: blur(8px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 5rem; }
.site-header img.logo { height: 3rem; width: auto; }
.main-nav { display: none; align-items: center; gap: 1.75rem; }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.main-nav a { font-size: 0.875rem; font-weight: 600; color: color-mix(in oklch, var(--foreground) 80%, transparent); transition: color 0.15s; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.donate-embed { display: inline-flex; align-items: center; }
.donate-embed form { display: inline-flex; margin: 0; }
.nav-toggle { display: inline-flex; lg\:hidden: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--border); padding: 1.25rem; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; border-bottom: 1px solid var(--border); padding: 0.75rem 0; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 9999px; font-size: 0.875rem; font-weight: 600; white-space: nowrap;
  padding: 0.55rem 1.35rem; border: none; cursor: pointer; transition: background-color 0.15s, color 0.15s;
}
.btn svg { width: 1rem; height: 1rem; }
.btn-lg { padding: 0.7rem 1.75rem; font-size: 0.95rem; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: 0.9; }
.btn-highlight { background: var(--highlight); color: var(--highlight-foreground); }
.btn-highlight:hover { opacity: 0.9; }
.btn-outline-onprimary { background: transparent; color: var(--primary-foreground); border: 1px solid color-mix(in oklch, var(--primary-foreground) 40%, transparent); }
.btn-outline-onprimary:hover { background: var(--primary-foreground); color: var(--primary); }

/* ---------- Hero / bg-hero dotted pattern ---------- */
.bg-hero {
  background-color: var(--primary);
  background-image: radial-gradient(circle at 1px 1px, oklch(1 0 0 / 0.09) 1px, transparent 0);
  background-size: 16px 16px;
  color: var(--primary-foreground);
}
.bg-primary { background-color: var(--primary); color: var(--primary-foreground); }
.bg-muted { background-color: var(--muted); }

.hero-grid { display: grid; gap: 3rem; align-items: center; padding: 4rem 0; min-height: 650px; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr .95fr; padding: 5rem 0; } }
.eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; color: var(--highlight); }
.hero-grid h1, .page-intro h1 { margin-top: 1.5rem; font-size: 3rem; font-weight: 600; line-height: 1.02; max-width: 48rem; }
@media (min-width: 768px) { .hero-grid h1, .page-intro h1 { font-size: 4.5rem; } }
.hero-lede { margin-top: 1.75rem; max-width: 36rem; font-size: 1.125rem; line-height: 2rem; color: color-mix(in oklch, var(--primary-foreground) 78%, transparent); }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-image-wrap { position: relative; }
.hero-image-wrap img { aspect-ratio: 5/4; width: 100%; border-radius: 0.45rem; object-fit: cover; }
.hero-badge {
  position: absolute; bottom: -1.25rem; left: 1.25rem; display: flex; align-items: center; gap: 0.75rem;
  border-radius: 0.45rem; background: var(--highlight); color: var(--highlight-foreground);
  padding: 1rem 1.25rem; box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.2); font-size: 0.875rem; font-weight: 700;
}
.hero-badge svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

/* ---------- Sections / headings ---------- */
.section { padding: 5rem 0; }
@media (min-width: 1024px) { .section { padding: 7rem 0; } }
.section-heading { max-width: 42rem; }
.section-heading .eyebrow-dark { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--secondary-foreground); }
.section-heading h2 { margin-top: 0.75rem; font-size: 2.25rem; font-weight: 600; line-height: 1.15; }
@media (min-width: 768px) { .section-heading h2 { font-size: 3rem; } }
.section-heading .copy { margin-top: 1.25rem; font-size: 1rem; line-height: 1.75rem; color: var(--muted-foreground); }

.page-intro { padding: 5rem 0; }
@media (min-width: 1024px) { .page-intro { padding: 7rem 0; } }
.page-intro .intro-copy { margin-top: 1.75rem; max-width: 42rem; font-size: 1.125rem; line-height: 2rem; color: color-mix(in oklch, var(--primary-foreground) 75%, transparent); }

/* ---------- Three-up feature grid (index) ---------- */
.feature-grid { margin-top: 3rem; display: grid; gap: 1px; overflow: hidden; border-radius: 0.45rem; background: var(--border); }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-grid .cell { background: var(--card); padding: 2rem; }
@media (min-width: 1024px) { .feature-grid .cell { padding: 2.5rem; } }
.feature-grid .num { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--secondary-foreground); }
.feature-grid h3 { margin-top: 3rem; font-size: 1.75rem; font-weight: 600; line-height: 1.2; }
.feature-grid p { margin-top: 1.25rem; font-size: 0.875rem; line-height: 1.5rem; color: var(--muted-foreground); }

/* ---------- Program grid ---------- */
.program-grid { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .program-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .program-grid { grid-template-columns: repeat(4, 1fr); } }
.program-card { display: flex; min-height: 450px; flex-direction: column; overflow: hidden; border-radius: 0.45rem; border: 1px solid var(--border); background: var(--card); }
.program-card img { aspect-ratio: 4/3; width: 100%; object-fit: cover; transition: transform 0.5s; }
.program-card:hover img { transform: scale(1.025); }
.program-card .body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.program-card .tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--secondary-foreground); }
.program-card h3 { margin-top: 1rem; font-size: 1.5rem; font-weight: 600; line-height: 1.25; }
.program-card p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.5rem; color: var(--muted-foreground); }
.program-card .learn-more { margin-top: auto; display: inline-flex; align-items: center; gap: 0.5rem; padding-top: 1.5rem; font-size: 0.875rem; font-weight: 700; color: var(--primary); }
.program-card .learn-more svg { width: 1rem; height: 1rem; }

/* ---------- Community / stats ---------- */
.community-grid { display: grid; gap: 2.5rem; align-items: center; overflow: hidden; }
@media (min-width: 1024px) { .community-grid { grid-template-columns: repeat(2, 1fr); } }
.community-grid img { min-height: 20rem; width: 100%; border-radius: 0.45rem; object-fit: cover; object-position: center; }
.community-text h2 { margin-top: 1.25rem; font-size: 2.25rem; font-weight: 600; line-height: 1.2; }
@media (min-width: 768px) { .community-text h2 { font-size: 3.5rem; } }
.community-text p { margin-top: 1.5rem; max-width: 36rem; line-height: 1.75rem; color: color-mix(in oklch, var(--primary-foreground) 70%, transparent); }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; padding: 4rem 0; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-grid .value { font-family: var(--font-display); font-size: 2.25rem; font-weight: 600; color: var(--primary); }
@media (min-width: 768px) { .stat-grid .value { font-size: 3rem; } }
.stat-grid .label { margin-top: 0.5rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-foreground); }

.stat-tiles { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border-radius: 0.45rem; background: var(--border); }
.stat-tiles .tile { background: var(--muted); padding: 1.5rem; }
.stat-tiles .tile .value { font-family: var(--font-display); font-size: 2.25rem; font-weight: 600; color: var(--primary); }
.stat-tiles .tile .label { margin-top: 0.5rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-foreground); }

/* ---------- Purpose cards (about) ---------- */
.purpose-grid { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .purpose-grid { grid-template-columns: repeat(3, 1fr); } }
.purpose-grid .card { border-top: 4px solid var(--highlight); background: var(--card); padding: 1.75rem; }
.purpose-grid .card .num { font-size: 0.875rem; font-weight: 700; color: var(--secondary-foreground); }
.purpose-grid .card p.line { margin-top: 2rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.3; }

.two-col { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .two-col { grid-template-columns: repeat(2, 1fr); } }
.two-col img { aspect-ratio: 5/4; width: 100%; border-radius: 0.45rem; object-fit: cover; }
.prose-block p { margin-top: 1.25rem; line-height: 1.75rem; color: var(--muted-foreground); }
.prose-block p:first-child { margin-top: 1.75rem; }

/* ---------- Partners page ---------- */
.reason-grid { margin-top: 3rem; display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .reason-grid { grid-template-columns: repeat(3, 1fr); } }
.reason-grid .card { border-radius: 0.45rem; border: 1px solid var(--border); padding: 2rem; }
.reason-grid .card svg { width: 1.75rem; height: 1.75rem; color: var(--secondary-foreground); }
.reason-grid .card h3 { margin-top: 2.5rem; font-size: 1.5rem; font-weight: 600; }
.reason-grid .card p { margin-top: 1rem; line-height: 1.75rem; color: var(--muted-foreground); }

.cta-banner {
  margin-top: 4rem; display: flex; flex-direction: column; align-items: start; justify-content: space-between; gap: 2rem;
  border-radius: 0.45rem; background: var(--highlight); color: var(--highlight-foreground); padding: 2rem;
}
@media (min-width: 768px) { .cta-banner { flex-direction: row; align-items: center; padding: 3rem; } }
.cta-banner .eyebrow-inv { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; }
.cta-banner p.headline { margin-top: 0.75rem; max-width: 42rem; font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; }
.cta-banner .btn { background: var(--primary); color: var(--primary-foreground); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 1px; overflow: hidden; border-radius: 0.45rem; background: var(--border); }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-grid .panel { padding: 2rem; }
@media (min-width: 1024px) { .contact-grid .panel { padding: 3rem; } }
.contact-grid .panel.card { background: var(--card); }
.contact-grid .panel.muted { background: var(--muted); }
.contact-grid svg.icon { width: 1.75rem; height: 1.75rem; color: var(--secondary-foreground); }
.contact-grid h2 { margin-top: 2.5rem; font-size: 1.875rem; font-weight: 600; }
.contact-grid p { margin-top: 1rem; max-width: 28rem; line-height: 1.75rem; color: var(--muted-foreground); }
.contact-grid .tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--secondary-foreground); }
.link-arrow { margin-top: 2rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 700; color: var(--primary); }
.link-arrow svg { width: 1rem; height: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: var(--primary-foreground); }
.footer-grid { display: grid; gap: 3rem; padding: 3.5rem 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.35fr 1fr 1fr; } }
.footer-grid img.logo { height: 3.5rem; width: auto; border-radius: 0.25rem; background: var(--background); padding: 0.25rem 0.5rem; }
.footer-grid p.blurb { margin-top: 1.25rem; max-width: 28rem; font-size: 0.875rem; line-height: 1.5rem; color: color-mix(in oklch, var(--primary-foreground) 75%, transparent); }
.footer-col .head { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--highlight); }
.footer-col .links { margin-top: 1rem; display: grid; gap: 0.75rem; font-size: 0.875rem; }
.footer-col .connect-link { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; }
.footer-col .connect-link svg { width: 1rem; height: 1rem; }
.footer-col .copyright { margin-top: 2rem; font-size: 0.75rem; color: color-mix(in oklch, var(--primary-foreground) 60%, transparent); }
