/* ============================================
   Nashville Neighbors United — style.css
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #C0392B;
  --navy: #1B2A4A;
  --black: #1a1a1a;
  --white: #FFFFFF;
  --off-white: #F8F8F8;
  --border: #E0E0E0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 56px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* --- Utility --- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Headings --- */
.section-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 24px;
}

/* ============================================
   1. Sticky Nav
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  height: 56px;
  border-bottom: 2px solid var(--red);
  transition: box-shadow 0.2s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-donate {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.nav-donate:hover {
  opacity: 0.85;
}

/* ============================================
   2. Hero
   ============================================ */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  background: url('nashville-skyline.webp') center / cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 74, 0.82);
}

.hero-inner {
  position: relative;
  max-width: 700px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-rule {
  width: 48px;
  height: 3px;
  background: var(--red);
  margin: 0 auto 20px;
}

.hero-tagline {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  border: 2px solid var(--red);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-outline {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 2px solid var(--white);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

/* ============================================
   3. Mission / Pillars
   ============================================ */
.mission {
  background: var(--off-white);
  padding: 80px 0;
}

.mission-text {
  margin: 0 0 48px;
  text-align: left;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  padding: 28px 24px;
}

.pillar-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

.pillar-desc {
  font-size: 0.9375rem;
  color: var(--black);
  line-height: 1.6;
}

/* ============================================
   4. Leadership
   ============================================ */
.leadership {
  background: var(--white);
  padding: 80px 0;
}

.leader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  margin-bottom: 48px;
}

.leader-card:last-child {
  margin-bottom: 0;
}

.leader-photo {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  overflow: hidden;
}

.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.leader-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.leader-bio {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--black);
  max-width: 560px;
}

/* ============================================
   5. In The News
   ============================================ */
.news {
  background: var(--off-white);
  padding: 80px 0;
}

.news-group {
  margin-bottom: 40px;
}

.news-group:last-child {
  margin-bottom: 0;
}

.news-group-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.news-item {
  display: block;
  padding: 12px 0 12px 12px;
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease;
}

.news-item:hover {
  border-left-color: var(--red);
}

.news-outlet {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
}

.news-title {
  font-size: 0.9375rem;
  color: var(--black);
}

.news-date {
  font-size: 0.8125rem;
  color: #888;
  margin-left: 8px;
}

/* ============================================
   6. Email Signup
   ============================================ */
.signup {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
}

.signup .section-title {
  color: var(--white);
}

.signup-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  margin-bottom: 32px;
}

.signup-widget {
  max-width: 500px;
  margin: 0 auto;
}

/* Substack widget overrides */
#custom-substack-embed iframe {
  max-width: 100% !important;
}

/* ============================================
   7. Donate CTA
   ============================================ */
.donate-cta {
  background: var(--white);
  padding: 80px 0;
  text-align: center;
}

.donate-cta .section-title {
  margin-bottom: 12px;
}

.donate-disclosure {
  font-size: 0.9375rem;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.6;
}

.btn-donate {
  display: inline-block;
  padding: 16px 48px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  border: 2px solid var(--red);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-donate:hover {
  opacity: 0.85;
}

/* ============================================
   8. Footer
   ============================================ */
.footer {
  background: var(--navy);
  padding: 32px 0;
  text-align: center;
}

.footer p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
}

.footer-name {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

/* ============================================
   Responsive — Tablet (768px)
   ============================================ */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .pillars {
    grid-template-columns: 1fr 1fr;
  }

  .leader-card {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }

  .news-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
  }

  .news-date {
    margin-left: 0;
  }
}

/* ============================================
   Responsive — Desktop (1024px)
   ============================================ */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.25rem;
  }

  .pillars {
    grid-template-columns: repeat(4, 1fr);
  }

  .leader-photo {
    width: 140px;
    height: 140px;
  }
}
