/* New Hope Schools Society — public site
   Visual direction from the 8 Oct 2026 refresh concept:
   deep navy headings, bright blue links, lime accent (from the official tree mark).
   Mobile-first, accessible, no tracking. */

:root {
  --navy: #102a43;
  --navy-ink: #0b1e31;
  --lime: #c3ce38;
  --lime-dark: #9aa61f;
  --blue: #0d5f96;
  --blue-hover: #0a4c78;
  --brown: #653915;
  --cream: #f7f4ea;
  --cream-2: #efe9d8;
  --white: #ffffff;
  --text: #22201f;
  --muted: #4a453f;
  --line: #d9d3c3;
  --focus: #0d5f96;
  --error: #8b1e1e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 28px rgba(16, 42, 67, 0.08);
  --max: 70rem;
  --header-h: 4.25rem;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--blue);
  text-underline-offset: 0.15em;
}
a:hover { color: var(--blue-hover); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}
.skip:focus {
  top: 0.75rem;
  outline-color: var(--lime);
}

.wrap {
  width: min(100% - 1.75rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 234, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
}

.logo-link {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  order: 1;
}
.logo-link img {
  height: 2.65rem;
  width: auto;
}
.logo-link:focus-visible { border-radius: 6px; }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  order: 2;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
}
.lang a,
.lang span {
  padding: 0.35rem 0.6rem;
  text-decoration: none;
  color: var(--muted);
}
.lang [aria-current="true"] {
  background: var(--navy);
  color: var(--white);
}
.lang a:hover { color: var(--navy); background: var(--cream-2); }
.lang [aria-current="true"]:hover { color: var(--white); background: var(--navy); }

/* Nav */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0 1rem;
  flex-basis: 100%;
  order: 3;
}
.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  padding: 0.65rem 0.25rem;
  border-bottom: 1px solid var(--line);
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--blue); }

body.nav-open .site-nav { display: flex; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .header-inner { flex-wrap: nowrap; }
  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem 1.1rem;
    padding: 0;
    margin-left: auto;
    flex-basis: auto;
    order: 2;
  }
  .header-actions { order: 3; }
  .site-nav a {
    border: 0;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  .site-nav { gap: 0.15rem 0.9rem; }
  .header-actions { margin-left: 1rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn-donate,
.btn-primary {
  background: var(--lime);
  color: var(--navy-ink);
  border-color: var(--lime);
}
.btn-donate:hover,
.btn-primary:hover {
  background: #d2dc4a;
  color: var(--navy-ink);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-ink);
  color: var(--white);
}
.header-actions .btn-donate {
  padding-inline: 0.85rem;
  font-size: 0.875rem;
}

/* Hero */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 2.75rem 0 3.25rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 206, 56, 0.22) 0%, transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 0.85rem;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 18ch;
  color: var(--white);
}
.hero .lede {
  margin: 0 0 1.75rem;
  max-width: 42rem;
  font-size: 1.0625rem;
  color: #e8e4d6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
section {
  padding: 3.25rem 0;
}
.section-alt { background: var(--white); }
.section-navy {
  background: var(--navy);
  color: var(--white);
}
.section-navy h2,
.section-navy h3 { color: var(--white); }
.section-navy p,
.section-navy li { color: #e8e4d6; }

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.02em;
}
h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.3;
}
.intro {
  max-width: 44rem;
  margin: 0 0 2rem;
  color: var(--muted);
}
.section-navy .intro { color: #e8e4d6; }

/* Cards / solutions */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .cards.cards-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}
.section-alt .card { background: var(--cream); }
.card .icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.card .icon svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Places */
.places {
  display: grid;
  gap: 1rem;
  align-items: start;
}
@media (min-width: 720px) {
  .places { grid-template-columns: 1.2fr 1fr; }
}
.place-feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  border-left: 6px solid var(--lime);
  box-shadow: var(--shadow);
  align-self: start;
}
.place-feature p { margin: 0.5rem 0 0; color: var(--muted); }
.place-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.place-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}
.place-list strong { display: block; color: var(--navy); }

/* Partners */
.partner {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .partner { grid-template-columns: 2fr 1fr; align-items: start; }
}
.note {
  font-size: 0.95rem;
  color: var(--muted);
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
}
.section-navy .note {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: #e8e4d6;
}
.attr {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 1rem;
}
.section-navy .attr { color: #d5d0c2; }

/* Donate */
.donate-panel {
  background: var(--white);
  color: var(--text);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem 1.35rem;
  box-shadow: var(--shadow);
  max-width: 40rem;
}
.donate-panel h2 { color: var(--navy); }
.donate-panel p { color: var(--muted); }
.donate-panel .btn { margin-top: 0.5rem; }
.receipt {
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  background: var(--cream);
  border-left: 4px solid var(--lime);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-size: 0.95rem;
}
.ext-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.75rem; }

/* Contact */
.contact-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
.contact-item {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem;
  border: 1px solid var(--line);
}
.contact-item span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.contact-item a {
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.contact-item a:hover { color: var(--blue); text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--navy-ink);
  color: #d5d0c2;
  padding: 2rem 0 1.75rem;
  font-size: 0.9rem;
}
.site-footer a { color: var(--lime); }
.site-footer a:hover { color: #e4ec6a; }
.footer-inner {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}
.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}
.footer-brand img {
  width: 3.25rem;
  height: 3.25rem;
  background: var(--cream);
  border-radius: 50%;
  padding: 0.3rem;
}
.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
}
.legal { margin: 0.35rem 0 0; max-width: 40rem; }
.bn { white-space: nowrap; }
h2#honduras { margin-top: 1.75rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
}
.footer-nav a { text-decoration: none; font-weight: 500; }
.footer-nav a:hover { text-decoration: underline; }

/* Utilities */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


@media (max-width: 859px) {
  .logo-link img { height: 2.35rem; }
  .header-actions { flex: 0 0 auto; }
  .header-actions .btn-donate { padding-inline: 0.7rem; font-size: 0.8125rem; }
  .lang a, .lang span { padding: 0.3rem 0.5rem; }
}
