/* ============================================================
   Cardinals Love for the Homeless — Main Stylesheet
   ============================================================ */

:root {
  --red:        #B91C1C;
  --red-dark:   #991B1B;
  --red-light:  #FEE2E2;
  --amber:      #92400E;
  --bg:         #FDF8F3;
  --bg-alt:     #F5EDE3;
  --text:       #1C1917;
  --text-muted: #57534E;
  --border:     #E7DDD4;
  --white:      #FFFFFF;
  --max-width:  960px;
  --gap:        2rem;
}

/* ── Reset & Base ─────────────────────────────────────────── */

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, 'Segoe UI', Helvetica Neue, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

a {
  color: var(--red);
  text-decoration: underline;
}

a:hover {
  color: var(--red-dark);
}

/* ── Typography ───────────────────────────────────────────── */

h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout Helpers ───────────────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

/* ── Header ───────────────────────────────────────────────── */

.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--red);
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.header-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

.header-text {
  flex: 1;
}

.header-text h1 {
  font-size: 1.6rem;
  color: var(--red);
  margin-bottom: 0.1rem;
}

.header-tagline {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--amber);
  font-size: 0.95rem;
  margin: 0;
}

/* ── Navigation ───────────────────────────────────────────── */

.site-nav {
  background: var(--red);
}

.nav-inner {
  display: flex;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-links a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--red-dark);
  color: var(--white);
}

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.6rem;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.2s;
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  background: var(--text);
  color: var(--white);
  min-height: 340px;
  display: flex;
  align-items: center;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-img-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.hero-content blockquote {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
  max-width: 640px;
  border-left: 4px solid var(--red);
  padding-left: 1.25rem;
}

.hero-content blockquote cite {
  display: block;
  font-size: 1rem;
  font-style: normal;
  margin-top: 0.75rem;
  opacity: 0.85;
}

/* ── Callout Block ────────────────────────────────────────── */

.callout {
  background: var(--red);
  color: var(--white);
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.callout p {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  max-width: 680px;
  margin: 0 auto 1.5rem;
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--red-light);
  color: var(--red-dark);
  border-color: var(--red-light);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

/* ── About Section ────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-photo {
  width: 100%;
  border-radius: 4px;
  border: 3px solid var(--border);
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

/* ── Services List ────────────────────────────────────────── */

.services-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
}

.services-list li {
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.services-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* ── Sponsorship Tiers ────────────────────────────────────── */

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

.tier-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.tier-card.featured {
  border-color: var(--red);
}

.tier-name {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tier-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.tier-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.tier-impact {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

/* ── Donate Buttons ───────────────────────────────────────── */

.donate-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 420px;
  margin: 0 auto;
}

.donate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.1rem 2rem;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  transition: opacity 0.15s;
}

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

.donate-btn-venmo {
  background: #3D95CE;
  color: var(--white);
}

.donate-btn-cashapp {
  background: #00D64F;
  color: var(--white);
}

.donate-btn-handle {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 400;
}

/* ── Give Items ───────────────────────────────────────────── */

.needs-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
}

.needs-list li {
  padding: 0.6rem 0.75rem 0.6rem 1.25rem;
  background: var(--white);
  border-left: 3px solid var(--red);
  border-radius: 0 4px 4px 0;
  position: relative;
  font-size: 0.97rem;
}

.needs-list li strong {
  display: block;
  color: var(--text);
}

.needs-list li em {
  font-size: 0.87rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ── Contact / Info Box ───────────────────────────────────── */

.info-box {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem 2rem;
  max-width: 480px;
}

.info-box h3 {
  color: var(--red);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.info-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  font-size: 0.97rem;
}

.info-label {
  font-weight: 700;
  min-width: 80px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-top: 0.1rem;
}

.info-value a {
  color: var(--text);
  text-decoration: none;
}

.info-value a:hover {
  color: var(--red);
  text-decoration: underline;
}

/* ── Map ──────────────────────────────────────────────────── */

.map-wrapper {
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid var(--border);
  margin-top: 1.5rem;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: none;
}

/* ── Tax Note ─────────────────────────────────────────────── */

.tax-note {
  background: var(--bg-alt);
  border-left: 4px solid var(--amber);
  padding: 1rem 1.25rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 1.5rem 0;
}

/* ── Footer ───────────────────────────────────────────────── */

.site-footer {
  background: var(--text);
  color: #D6D3D1;
  padding: 2.5rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-style: italic;
  color: #A8A29E;
  font-size: 0.87rem;
}

.footer-contact a {
  color: #D6D3D1;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-contact p {
  margin-bottom: 0.3rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #44403C;
  text-align: center;
  font-size: 0.82rem;
  color: #78716C;
}

/* ── Page Hero (inner pages) ──────────────────────────────── */

.page-hero {
  background: var(--red);
  color: var(--white);
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.page-hero p {
  opacity: 0.88;
  font-size: 1.05rem;
  margin: 0;
}

/* ── Utility ──────────────────────────────────────────────── */

.text-center { text-align: center; }
.text-red    { color: var(--red); }
.text-amber  { color: var(--amber); }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 720px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-bottom: 0.5rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.7rem 1.25rem;
  }

  .nav-inner {
    flex-wrap: wrap;
  }

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

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

  .services-list {
    grid-template-columns: 1fr;
  }

  .needs-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-content blockquote {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .tiers-grid {
    grid-template-columns: 1fr;
  }

  .header-logo {
    width: 52px;
    height: 52px;
  }

  .header-text h1 {
    font-size: 1.25rem;
  }

  .donate-btn {
    font-size: 1rem;
    padding: 1rem 1.25rem;
  }
}
