/* =====================================================================
   Lanners Family Foundation — site stylesheet
   Self-contained, dependency-free CSS: no Bootstrap, no CDN fonts.
   Palette: deep navy + gold accent on warm neutrals. Classic/refined.
   ===================================================================== */

/* ---------- Self-hosted fonts ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fraunces-400.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/fraunces-500.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  --navy:        #16263d;
  --navy-deep:   #0f1c2e;
  --navy-soft:   #24405f;
  --gold:        #c19a4b;
  --gold-deep:   #a97f34;
  --cream:       #fdfbf7;
  --sand:        #f4eee2;
  --ink:         #222831;
  --muted:       #5a6472;
  --line:        rgba(22, 38, 61, 0.10);
  --shadow-sm:   0 2px 10px rgba(15, 28, 46, 0.06);
  --shadow-md:   0 12px 30px rgba(15, 28, 46, 0.10);
  --font-serif:  "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-h:    4.25rem;
  --container-w: 1140px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; background: none; border: 0; cursor: pointer; }
a img { border: none; }

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}
/* keep in-page anchor targets clear of the fixed header */
section[id] {
  scroll-margin-top: var(--header-h);
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--cream);
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 1 auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--navy);
  letter-spacing: -0.01em;
}
h1 { font-weight: 600; }
h2 { font-weight: 600; }
h3 { font-weight: 600; }

p { color: var(--ink); }

a {
  color: var(--navy-soft);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover, a:focus {
  color: var(--gold-deep);
  text-decoration: none;
}

.text-center { text-align: center; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}
.section--tint {
  background-color: var(--sand);
}

/* ---------- Section headings with gold underline accent ---------- */
.section-title {
  position: relative;
  padding-bottom: 0.85rem;
  margin-bottom: 1.75rem;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
}

/* ---------- Header / Navbar ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--navy);
  box-shadow: 0 2px 16px rgba(15, 28, 46, 0.18);
  /* Keep the header on its own compositing layer so iOS Safari doesn't let
     it lag/float during momentum scrolling and rubber-band overscroll */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.brand {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.brand:hover, .brand:focus {
  color: #fff;
}
.brand img {
  border-radius: 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  padding: 7px;
}
.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.nav__list a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  padding: 0.5rem 0.95rem;
  position: relative;
}
.nav__list a:hover,
.nav__list a:focus {
  color: #fff;
}
/* animated gold underline on hover / active */
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.28rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav__list a:hover::after,
.nav__list li.is-active a::after {
  transform: scaleX(1);
}
.nav__list li.is-active a {
  color: #fff;
}

/* ---------- Masthead / hero ---------- */
.masthead {
  margin-top: 3rem;
  min-height: 16rem;
  padding: 6rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* soft, muted "washed" veil — even coverage removes the bright-water
     glare so gold text + navy halo reads consistently across the band */
  background: linear-gradient(
      to bottom,
      rgba(20, 34, 52, 0.56) 0%,
      rgba(34, 58, 88, 0.44) 45%,
      rgba(48, 72, 104, 0.44) 72%,
      rgba(120, 130, 140, 0.42) 88%,
      var(--cream) 100%
    ),
    url("../images/bg-lake.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-content {
  max-width: 720px;
  padding: 0 1.5rem;
  text-align: center;
}
.hero-title {
  margin: 0;
  color: #eccb86;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2.7rem;
  line-height: 1.16;
  letter-spacing: 0.005em;
  /* tight dark halo keeps the gold crisp over the bright lake */
  text-shadow: 0 0 3px rgba(15, 28, 46, 0.9), 0 2px 6px rgba(15, 28, 46, 0.85),
    0 3px 24px rgba(15, 28, 46, 0.5);
}
.hero-rule {
  display: block;
  width: 64px;
  height: 3px;
  margin: 1.3rem auto;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(15, 28, 46, 0.35), 0 2px 10px rgba(15, 28, 46, 0.55);
}
.hero-est {
  margin: 0;
  color: #eccb86;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  /* gold with a tight navy halo, matching the title, on the muted veil */
  text-shadow: 0 0 2px rgba(15, 28, 46, 0.95), 0 1px 3px rgba(15, 28, 46, 0.9),
    0 2px 10px rgba(15, 28, 46, 0.6);
}

/* Lighter page-banner variant for the subpage photo bands */
.masthead--page {
  padding: 3rem 0;
  min-height: 10rem;
}
.hero-title--page {
  font-size: 2.25rem;
}
.hero-title--page + .hero-rule {
  margin-top: 1.1rem;
  margin-bottom: 0;
}

/* ---------- Mission / lead ---------- */
.lead {
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 400;
}
.mission-statement {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1.55;
  /* 56rem keeps the statement to a tidy three lines on normal desktop
     widths (it wraps naturally to more on smaller screens) */
  max-width: 56rem;
  margin: 0 auto;
}

/* ---------- About / mission layout ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.75rem;
  align-items: start;
  /* share the mission statement's width + centering so the photo aligns
     with it and the copy gets a comfortable (not stretched) measure */
  max-width: 56rem;
  margin: 3rem auto 0;
}
.about-portrait img {
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
}
.about-copy h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
}
.about-copy h3 + p {
  margin-bottom: 1.75rem;
}
.board-list li {
  padding: 0.32rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.board-list li:last-child {
  border-bottom: none;
}

/* ---------- Program cards ---------- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.program-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.program-card__logo {
  border-bottom: 1px solid var(--line);
  width: 100%;
  height: 170px;
  /* logos, not photos — contain so nothing gets cropped */
  object-fit: contain;
  padding: 1.25rem 1.4rem;
  background: #fff;
}
.program-card__body {
  padding: 1.35rem 1.4rem 1.6rem;
}
.program-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.program-card__desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 400;
}
.programs-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background-color: var(--navy);
  border: 1px solid var(--navy);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}
.btn:hover,
.btn:focus,
.btn:active {
  background-color: var(--gold-deep);
  border-color: var(--gold-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- Grant info: "How to Apply" steps ---------- */
.intro-text {
  max-width: 42rem;
  margin: 0 auto 2.75rem;
  color: var(--ink);
}
.steps {
  max-width: 46rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.step__num {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
}
.step__body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.step__body p {
  margin-bottom: 1rem;
}
.step__note {
  color: var(--navy);
  font-weight: 400;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.contact-grid p {
  margin: 0;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--navy-deep);
  padding: 1.4rem 0;
}
.site-footer p {
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-transform: uppercase;
  text-align: center;
}

/* ---------- Content list pages (programs / financials / members) ---------- */
.page-main {
  background-color: var(--sand);
}

.grantee-list {
  columns: 2;
  column-gap: 3rem;
  max-width: 52rem;
  margin: 0 auto;
  list-style: disc;
  list-style-position: inside;
}
.grantee-list li {
  break-inside: avoid;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.grantee-list li::marker {
  color: var(--gold);
}

.plain-list {
  max-width: 30rem;
  margin: 0 auto;
  list-style: disc;
  padding-left: 1.2rem;
}
.plain-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.plain-list li::marker {
  color: var(--gold);
}
.plain-list a {
  color: var(--navy-soft);
  text-underline-offset: 3px;
}
.plain-list a:hover {
  color: var(--gold-deep);
  text-decoration: underline;
}

.footnote {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 3rem;
}

/* Members page: grouped document lists */
.doc-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.doc-group-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin: 1.75rem 0 0.75rem;
}
.doc-group-title:first-child {
  margin-top: 0;
}
.doc-list {
  list-style: disc;
  padding-left: 1.2rem;
  margin-bottom: 0;
}
.doc-list > li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.doc-list > li::marker {
  color: var(--gold);
}
.doc-list a {
  color: var(--navy-soft);
  text-underline-offset: 3px;
}
.doc-list a:hover {
  color: var(--gold-deep);
  text-decoration: underline;
}
.doc-browse-all {
  text-align: center;
  margin-top: 2.5rem;
}

/* ---------- Small-screen polish ---------- */
@media (max-width: 991px) {
  .nav-toggle {
    display: flex;
  }
  .nav {
    display: none;
    width: 100%;
  }
  .nav.is-open {
    display: block;
  }
  .site-header__inner {
    flex-wrap: wrap;
  }
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0.5rem 0 1rem;
  }
  .nav__list a {
    width: 100%;
    padding: 0.65rem 0.25rem;
  }
  .nav__list a::after {
    display: none;
  }
}

@media (max-width: 767px) {
  .section { padding: 3rem 0; }
  .masthead { padding: 4.5rem 0; min-height: 12rem; }
  .masthead--page { padding: 2.5rem 0; min-height: 8rem; }
  .hero-title { font-size: 1.9rem; }
  .hero-est { letter-spacing: 0.22em; }
  .mission-statement { font-size: 1.2rem; }
  .lead { font-size: 1.15rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 260px; margin: 0 auto; }
  .program-grid { grid-template-columns: 1fr; }
  .contact-grid { gap: 1rem 3rem; }
  .grantee-list { columns: 1; }
  .doc-columns { grid-template-columns: 1fr; gap: 0; }
  .step { gap: 1rem; }
}

/* Small phones: shrink the wordmark so the brand + menu button stay on one
   line (the header wraps at <=991px so the open nav can drop to its own row,
   which also let the toggle wrap below a too-wide wordmark) */
@media (max-width: 500px) {
  .brand {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    gap: 0.45rem;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
}

/* Smallest phones (~320px): shrink a touch more so the wordmark's natural
   one-line width still leaves room for the menu button on the same row */
@media (max-width: 360px) {
  .brand {
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    gap: 0.4rem;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
}
