/* ELBA — East Lincoln Betterment Association — shared stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --slate: #2B4C5C;
  --slate-dark: #1D3540;
  --cream: #F7F3EC;
  --terracotta: #B4552F;
  --terracotta-dark: #944527;
  --gold: #C89B3C;
  --charcoal: #2B2B2B;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-width: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

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

.route-divider {
  height: 1px;
  background-image: radial-gradient(circle, var(--slate) 1.5px, transparent 1.5px);
  background-size: 14px 1px;
  background-repeat: repeat-x;
  opacity: 0.35;
  margin: 0;
}

/* ---- Header / Nav ---- */
header.site-header {
  background: var(--slate);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--cream);
}
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

nav.primary-nav { display: flex; gap: 26px; }
nav.primary-nav a {
  text-decoration: none;
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
}
nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] {
  opacity: 1;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  nav.primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--slate-dark);
    padding: 12px 24px 20px;
    gap: 16px;
    display: none;
  }
  nav.primary-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---- Hero ---- */
.hero { padding: 72px 24px 56px; text-align: center; }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 18px;
  color: var(--slate);
}
.hero p.lede {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 32px;
  color: #4a4a4a;
}

.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
}
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-secondary {
  background: transparent;
  color: var(--slate);
  border: 1.5px solid var(--slate);
}
.btn-secondary:hover { background: var(--slate); color: var(--cream); }

/* ---- Sections ---- */
section.block { padding: 64px 24px; }
section.block.alt { background: var(--white); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--slate);
  margin: 0;
}

.page-header { padding: 48px 24px 0; text-align: center; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--slate);
  margin: 0 0 24px;
}
.page-header .lede { max-width: 640px; margin: 0 auto 28px; color: #4a4a4a; }

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.card {
  background: var(--white);
  border: 1px solid #dfe2e0;
  border-radius: 6px;
  padding: 28px 24px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--slate);
  margin: 0 0 10px;
}
.card p { margin: 0; color: #4a4a4a; font-size: 0.95rem; }
.card a { color: var(--terracotta); font-weight: 600; }

/* ---- Real photos ---- */
.photo {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.landscape-photo { height: 320px; margin-top: 24px; }

.logo {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  margin: 0 auto;
}
.card .photo { height: 190px; margin-bottom: 14px; }
.leader-card .photo { height: auto; aspect-ratio: 3 / 4; border-radius: 0; }
.press-card .photo { height: 160px; margin-bottom: 12px; }

/* ---- Leadership ---- */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.leader-card { background: var(--white); border: 1px solid #dfe2e0; border-radius: 6px; overflow: hidden; }
.leader-card .leader-body { padding: 20px; }
.leader-card h3 {
  font-family: var(--font-display);
  color: var(--slate);
  margin: 0 0 4px;
  font-size: 1.1rem;
}
.leader-card .leader-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}
.leader-card p { color: #4a4a4a; font-size: 0.9rem; margin: 0; }

/* ---- Donation / membership cards ---- */
.pay-card {
  max-width: 560px;
  margin: 0 auto 40px;
  background: var(--white);
  border: 1px solid #dfe2e0;
  border-radius: 6px;
  padding: 32px;
  text-align: center;
}
.pay-card .amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--slate);
  margin: 0 0 4px;
}
.pay-card .amount-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #7a8a89;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.pay-card p.desc { color: #4a4a4a; font-size: 0.95rem; text-align: left; margin-bottom: 20px; }
.pay-card .mail-note { font-size: 0.82rem; color: #7a7a7a; margin-top: 18px; }
/* PayPal's widgets cap their own width and hug the left edge; give them a fixed-width, centered box to fill */
.pay-card .paypal-slot { width: 100%; max-width: 320px; margin: 0 auto 20px; }

/* ---- Forms ---- */
.form-shell {
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid #dfe2e0;
  border-radius: 6px;
  padding: 36px;
}
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.form-field label .req { color: var(--terracotta); }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #c7cdcb;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--cream);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.recaptcha-note { font-size: 0.78rem; color: #8a8a8a; margin-top: 8px; }
.recaptcha-note a { color: var(--slate); }

/* ---- Press / resource lists ---- */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.press-card { text-decoration: none; display: block; }
.press-card h3 { font-family: var(--font-display); color: var(--slate); font-size: 1.05rem; margin: 0; }
.press-card .source {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--terracotta);
  margin-bottom: 6px;
  display: block;
}

.resource-list {
  max-width: 700px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.resource-list li {
  background: var(--white);
  border: 1px solid #dfe2e0;
  border-radius: 6px;
  padding: 18px 22px;
  margin-bottom: 14px;
}
.resource-list a { color: var(--slate); font-weight: 600; text-decoration: none; }
.resource-list a:hover { text-decoration: underline; }

/* ---- Footer ---- */
footer.site-footer {
  background: var(--slate-dark);
  color: var(--cream);
  padding: 40px 24px;
  text-align: center;
  font-size: 0.9rem;
}
footer.site-footer a { text-decoration: underline; text-decoration-color: var(--gold); }
footer .foot-meta { margin-top: 10px; opacity: 0.65; font-family: var(--font-mono); font-size: 0.75rem; }
