/* =========================================================================
   American Development Foundation — site styles
   Hand-written, mobile-first. Palette derived from the logo:
   navy #1d3461 (primary), red #9e2436 (accent), warm off-white surfaces.
   ========================================================================= */

:root {
  --navy:        #1d3461;
  --navy-dark:   #142547;
  --navy-soft:   #2d4a7c;
  --red:         #9e2436;
  --red-dark:    #7f1c2b;
  --ink:         #1c2533;
  --body:        #404a5a;
  --muted:       #6b7689;
  --line:        #e2e6ee;
  --surface:     #ffffff;
  --surface-alt: #f5f7fb;
  --surface-2:   #eef1f8;
  --gold:        #c9a24b;
  --max:         1140px;
  --radius:      10px;
  --shadow:      0 10px 30px rgba(20, 37, 71, 0.08);
  --shadow-sm:   0 4px 14px rgba(20, 37, 71, 0.07);
  --font:        "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --serif:       Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
p  { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.8rem;
}

.lead { font-size: 1.2rem; color: var(--body); }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--navy-dark); color: #fff; transform: translateY(-1px); }
.btn--accent { background: var(--red); border-color: var(--red); }
.btn--accent:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 42px; width: auto; }
.brand .brand-text { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.main-nav { display: none; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  padding: 0.55rem 0;
}
.main-nav a:hover, .main-nav a.active { color: var(--red); }
.main-nav .nav-cta { margin-top: 0.4rem; }

/* mobile open state */
.site-header.open .main-nav {
  display: block;
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 24px 1.4rem;
}
.site-header.open .main-nav .nav-cta .btn { width: 100%; text-align: center; }

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  color: #fff;
  background: var(--navy-dark);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(20,37,71,0.92) 0%, rgba(20,37,71,0.72) 45%, rgba(20,37,71,0.45) 100%);
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: 5rem 0 5.5rem;
  max-width: 720px;
}
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,0.9); font-size: 1.25rem; }
.hero .btn--accent { margin-top: 0.6rem; }
.hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* page banner (interior pages) */
.page-banner {
  background: var(--navy);
  color: #fff;
  padding: 3.5rem 0 3rem;
  position: relative;
}
.page-banner h1 { color: #fff; margin-bottom: 0.3rem; }
.page-banner p { color: rgba(255,255,255,0.85); margin: 0; max-width: 640px; }

/* ---------------------------------------------------------------- sections */
section { padding: 4rem 0; }
.section--alt { background: var(--surface-alt); }
.section--tight { padding: 2.8rem 0; }
.section-head { max-width: 760px; margin: 0 auto 2.6rem; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

/* two-column feature */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* cards / grid */
.grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.card__date { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.card h3 { margin-bottom: 0.5rem; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--red); }
.card p { color: var(--body); font-size: 0.97rem; }
.card .more { margin-top: auto; font-weight: 600; color: var(--red); font-size: 0.95rem; }

/* value pillars */
.pillars { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.pillar .ic {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--navy);
  margin-bottom: 1rem;
}
.pillar .ic svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 1.2rem; }
.pillar p { margin: 0; font-size: 0.98rem; }

/* quote band */
.quote-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.quote-band blockquote {
  margin: 0 auto;
  max-width: 820px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.4;
  font-style: italic;
}
.quote-band cite {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--font);
  font-style: normal;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--gold);
}

/* article / prose */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2.2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose .article-hero {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 7;
  object-fit: cover;
}
.article-meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.6rem; }
.article-meta strong { color: var(--ink); }

/* glossary */
.glossary dl { margin: 0; }
.glossary dt {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.08rem;
  margin-top: 1.4rem;
}
.glossary dd { margin: 0.25rem 0 0; }

/* prev / next nav */
.post-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1.6rem;
}
.post-nav a { font-weight: 600; }
.post-nav .lbl { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

/* contact + signup */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.contact-card .label { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-card a.email { font-size: 1.25rem; font-weight: 700; color: var(--navy); word-break: break-word; }

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
  max-width: 520px;
}
.signup input[type="email"] {
  flex: 1 1 220px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 50px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
}
.signup input[type="email"]:focus { outline: 2px solid var(--navy-soft); border-color: var(--navy-soft); }

.muted-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; }

/* mission callout */
.mission {
  background: var(--surface-2);
  border-left: 5px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.8rem 2rem;
  margin: 0 auto;
  max-width: 820px;
}
.mission h3 { color: var(--navy); margin-bottom: 0.4rem; }
.mission p:last-child { margin-bottom: 0; }
.badge-501 {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------------ footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.78);
  padding: 3.5rem 0 1.8rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 0.9rem; }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-brand img { height: 54px; background: #fff; padding: 8px 12px; border-radius: 8px; }
.footer-brand p { margin-top: 1rem; max-width: 340px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* ------------------------------------------------------------- responsive */
@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse > :first-child { order: 2; }
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (min-width: 920px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .nav-toggle { display: none; }
  .main-nav { display: block; }
  .main-nav ul { display: flex; align-items: center; gap: 1.8rem; }
  .main-nav a { padding: 0; }
  .main-nav .nav-cta { margin-top: 0; }
  .brand img { height: 46px; }
}
