/* =========================================================
   Anjos no Caminho — folha de estilo principal
   ========================================================= */

:root {
  --navy-deep: #0a0b3d;
  --navy: #12145c;
  --navy-light: #1d2080;
  --gold: #f7c600;
  --gold-dark: #d9a700;
  --bg-light: #f4f5f9;
  --white: #ffffff;
  --text: #262738;
  --text-light: #666a80;
  --border: #e4e5ef;

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(10, 11, 61, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--navy);
}

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

section {
  padding: 72px 0;
}

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

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-head .underline {
  width: 60px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0 auto;
}

.section-head.left {
  text-align: left;
}

.section-head.left .underline {
  margin: 0;
}

.eyebrow {
  display: inline-block;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-gold:hover {
  background: var(--gold-dark);
  box-shadow: 0 8px 20px rgba(247, 198, 0, 0.35);
}

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

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

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

.btn-navy:hover {
  background: var(--navy-light);
  box-shadow: 0 8px 20px rgba(18, 20, 92, 0.3);
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy-deep);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 52px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
}

/* ---------- Hero (home) ---------- */
.hero {
  background:
    linear-gradient(120deg, rgba(10, 11, 61, 0.92) 10%, rgba(18, 20, 92, 0.8) 55%, rgba(90, 70, 10, 0.55) 100%),
    url('../images/banner_inicio.webp');
  background-size: cover;
  background-position: center 65%;
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(247, 198, 0, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 620px;
}

.hero h1 {
  color: var(--white);
  font-size: 2.75rem;
  margin-bottom: 18px;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 30px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Foto placeholder (fotos reais entram depois) ---------- */
.photo-placeholder {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-light) 100%);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.photo-placeholder svg {
  width: 34px;
  height: 34px;
  opacity: 0.85;
}

.photo-placeholder span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.photo-placeholder.tall {
  aspect-ratio: 3 / 4;
}

.photo-placeholder.wide {
  aspect-ratio: 16 / 9;
}

.photo-placeholder.square {
  aspect-ratio: 1 / 1;
}

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--bg-light);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
  color: var(--navy);
}

.stat-item strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--navy);
  font-size: 1.05rem;
}

.stat-item span {
  color: var(--text-light);
  font-size: 0.88rem;
}

/* ---------- Grids de fotos/momentos ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.center-btn {
  display: flex;
  justify-content: center;
}

/* ---------- Faixa de doação ---------- */
.donate-banner {
  background: var(--navy);
  color: var(--white);
}

.donate-banner .container {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 34px;
  padding-bottom: 34px;
}

.donate-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(247, 198, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.donate-icon svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.donate-text {
  flex: 1;
  min-width: 240px;
}

.donate-text p:first-child {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.donate-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 600;
}

/* ---------- Foto da página Nossa História ---------- */
.history-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- CTA história (home) ---------- */
.history-cta {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(0deg, rgba(10, 11, 61, 0.88) 0%, rgba(10, 11, 61, 0.35) 55%, rgba(10, 11, 61, 0.55) 100%),
    url('../images/fundo_quemsomos.jpg');
  background-size: cover;
  background-position: center 25%;
}

.history-cta-content {
  padding: 40px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
  flex-wrap: wrap;
}

.history-cta-content h3 {
  color: var(--white);
  font-size: 1.6rem;
  max-width: 380px;
}

/* ---------- Cards de eventos ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.event-card .photo-placeholder {
  border-radius: 0;
  aspect-ratio: 16 / 10;
}

.event-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.event-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.event-date svg {
  width: 14px;
  height: 14px;
}

.event-body h3 {
  font-size: 1.1rem;
}

.event-body p {
  color: var(--text-light);
  font-size: 0.92rem;
  flex: 1;
}

.event-more {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.event-more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}

.event-more.open svg {
  transform: rotate(90deg);
}

.event-detail {
  display: none;
  color: var(--text-light);
  font-size: 0.88rem;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  margin-top: 4px;
}

.event-detail.open {
  display: block;
}

/* ---------- Cards de oração ---------- */
.prayer-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: left;
}

.prayer-icon {
  display: inline-block;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
}

.prayer-icon svg {
  width: 100%;
  height: 100%;
  color: var(--gold-dark);
}

.prayer-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.prayer-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.prayer-full {
  display: none;
  white-space: pre-line;
  color: var(--text);
  font-size: 0.92rem;
  border-top: 1px dashed var(--border);
  margin-top: 10px;
  padding-top: 10px;
}

.prayer-full.open {
  display: block;
}

.prayer-toggle {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.88rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.prayer-toggle svg {
  width: 14px;
  height: 14px;
}

/* ---------- Modal de oração ---------- */
.prayer-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 61, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 24px 16px;
}

.prayer-modal.open {
  display: flex;
}

.prayer-modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  width: min(640px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 36px 32px 32px;
  border-top: 5px solid var(--gold);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.prayer-modal-box h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  padding-right: 32px;
}

.prayer-modal-text {
  white-space: pre-line;
  color: var(--text);
  line-height: 1.8;
  font-size: 1rem;
}

.prayer-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
}

.prayer-modal-close:hover {
  color: var(--gold-dark);
}

@media (max-width: 520px) {
  .prayer-modal-box { padding: 32px 20px 24px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-about img {
  height: 48px;
  margin-bottom: 14px;
}

.footer-about p {
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.social-icons a:hover {
  background: var(--gold);
}

.social-icons svg {
  width: 16px;
  height: 16px;
  color: var(--white);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold);
}

.pix-box {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.pix-qr {
  width: 96px;
  height: 96px;
  background: var(--white);
  border-radius: 6px;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pix-qr svg {
  width: 60px;
  height: 60px;
  color: var(--navy-deep);
}

.pix-key {
  font-size: 0.78rem;
  overflow-wrap: break-word;
  color: rgba(255, 255, 255, 0.65);
}

.pix-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

.pix-number {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--gold);
  margin-top: 2px;
}

.footer-contact a:hover,
.footer-bottom a:hover {
  color: var(--gold);
}

.footer-bottom a {
  text-decoration: underline;
}

.contact-info-list a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Banner interno (páginas internas) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto;
}

.breadcrumb {
  display: inline-flex;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.breadcrumb a:hover {
  color: var(--gold);
}

/* ---------- Placeholder de nota para o cliente ---------- */
.edit-note {
  background: #fff8e1;
  border: 1px dashed var(--gold-dark);
  color: #6b5200;
  font-size: 0.82rem;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.edit-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Filtros (página Fotos) ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.filter-btn {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--gold);
}

.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.photo-item {
  cursor: pointer;
}

/* ---------- Fotos reais (grade de momentos) ---------- */
.photo-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--bg-light);
  position: relative;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.photo-thumb:hover img {
  transform: scale(1.06);
}

.month-grid .photo-thumb:nth-child(n + 5) {
  display: none;
}

/* ---------- Lightbox / galeria com navegação ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 61, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 70px 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox-box {
  position: relative;
  width: min(900px, 92vw);
  min-height: 200px;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.lightbox-box img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lightbox-box img.loaded {
  opacity: 1;
}

.lightbox-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--gold);
  animation: lightbox-spin 0.8s linear infinite;
}

.lightbox-box.loaded .lightbox-spinner {
  display: none;
}

@keyframes lightbox-spin {
  to { transform: rotate(360deg); }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--white);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lightbox-nav:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

.lightbox-nav svg {
  width: 22px;
  height: 22px;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

@media (max-width: 600px) {
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* ---------- Formulário de contato ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--gold);
  background: var(--white);
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 10px;
}

.contact-info-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.contact-info-list .icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-list .icon-badge svg {
  width: 20px;
  height: 20px;
  color: var(--navy);
}

.contact-info-list strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
}

.contact-info-list span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.map-placeholder {
  margin-top: 30px;
  border-radius: var(--radius);
  background: var(--bg-light);
  border: 1px dashed var(--border);
  aspect-ratio: 16/8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-light);
  text-align: center;
  padding: 20px;
}

.map-placeholder svg {
  width: 30px;
  height: 30px;
  color: var(--navy);
}

/* ---------- História (linha do tempo) ---------- */
.history-text p {
  margin-bottom: 16px;
  color: var(--text-light);
}

.timeline {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.timeline-item {
  display: flex;
  gap: 20px;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(247, 198, 0, 0.2);
}

.timeline-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.timeline-item p {
  color: var(--text-light);
  font-size: 0.92rem;
}

/* ---------- Responsivo ---------- */
@media (max-width: 992px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.3rem; }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 20px;
    transform: translateY(-140%);
    transition: transform 0.2s ease;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .main-nav a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-toggle {
    display: flex;
  }

  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .history-cta-content { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  section { padding: 52px 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .donate-banner .container { flex-direction: column; align-items: flex-start; }
}
