/* ==========================================================================
   ACPD - Layout Fiel Réplica AACC-MS (Foco em Cores Verde e Azul)
   ========================================================================== */

:root {
  /* Theme Colors: Focused on Green and Blue */
  --primary-blue: #0e4483;
  --primary-blue-hover: #0a3364;
  --light-blue: #0284c7;
  --sky-blue-bg: #e0f2fe;
  
  --primary-green: #059669;
  --primary-green-hover: #047857;
  --light-green: #10b981;
  --mint-green-bg: #d1fae5;

  --accent-pink-cta: #0284c7;
  --accent-pink-hover: #0369a1;

  --text-dark: #333333;
  --text-gray: #666666;
  --text-light: #888888;
  --bg-light: #ffffff;
  --bg-section-gray: #f8fafc;
  --border-light: #e2e8f0;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

/* Accessibility Modes */
body.high-contrast {
  --bg-light: #000000 !important;
  --bg-section-gray: #121212 !important;
  --text-dark: #ffff00 !important;
  --text-gray: #ffffff !important;
  --primary-blue: #00e5ff !important;
  --primary-green: #00ff66 !important;
  --border-light: #ffff00 !important;
}

body.dyslexic-font {
  font-family: 'OpenDyslexic', 'Inter', sans-serif !important;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.5;
}

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Acessibilidade Bar Top */
.top-accessibility-bar {
  background: var(--primary-blue);
  color: #ffffff;
  padding: 0.35rem 0;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-acc-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.acc-btn-group {
  display: flex;
  gap: 0.4rem;
}

.acc-chip {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: none;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: background 0.2s;
}

.acc-chip:hover {
  background: rgba(255,255,255,0.3);
}

/* 1. Header Top (Logo + 3 Action Buttons) */
.header-top-bar {
  padding: 1.2rem 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo-img {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.brand-title-group {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-blue);
  letter-spacing: -0.5px;
  line-height: 1;
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-green);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.brand-fullname {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-gray);
  margin-top: 0.15rem;
}

.header-actions-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.btn-parceira {
  background: #ffffff;
  border: 2px solid var(--light-blue);
  color: var(--light-blue);
}

.btn-parceira:hover {
  background: var(--sky-blue-bg);
}

.btn-voluntario {
  background: #ffffff;
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
}

.btn-voluntario:hover {
  background: var(--mint-green-bg);
}

.btn-doar {
  background: var(--primary-green);
  border: 2px solid var(--primary-green);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(5,150,105,0.25);
}

.btn-doar:hover {
  background: var(--primary-green-hover);
  border-color: var(--primary-green-hover);
  transform: translateY(-1px);
}

/* 2. Menu de Navegação Horizontal */
.main-nav-bar {
  background: #ffffff;
  border-bottom: 2px solid #edf2f7;
  position: sticky;
  top: 0;
  z-index: 99;
}

.nav-links-list {
  display: flex;
  list-style: none;
  justify-content: flex-start;
  gap: 1.8rem;
  padding: 0.8rem 0;
}

.nav-item-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-item-link:hover, .nav-item-link.active {
  color: var(--primary-green);
}

.nav-item-link.active::after {
  content: '';
  position: absolute;
  bottom: -0.8rem;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-green);
}

/* 3. Hero Banner Estilo AACC-MS (Amar a Vida) */
.aacc-hero-banner {
  background: linear-gradient(135deg, #e0f2fe 0%, #d1fae5 100%);
  position: relative;
  padding: 2.5rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.aacc-hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
}

.hero-art-content {
  position: relative;
  z-index: 2;
}

.hero-slogan-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--primary-blue);
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

.hero-slogan-title span {
  color: var(--primary-green);
  display: block;
}

.hero-slogan-sub {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.hero-social-handles {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.hero-child-photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(14,68,131,0.15);
  border: 5px solid #ffffff;
}

.hero-child-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* 4. Banner Intermediário "Empresa Amiga" */
.empresa-amiga-strip {
  background: linear-gradient(90deg, #0e4483 0%, #059669 100%);
  color: #ffffff;
  padding: 1.2rem 0;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(5,150,105,0.2);
}

.empresa-amiga-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.empresa-amiga-text h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #ffffff;
  font-weight: 800;
  text-transform: uppercase;
}

.empresa-amiga-text p {
  font-size: 0.9rem;
  color: #e0f2fe;
}

.empresa-amiga-badge {
  background: #ffffff;
  color: var(--primary-blue);
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 5. Últimas Notícias (Réplica AACC Layout) */
.news-section {
  padding: 3rem 0;
}

.section-header-aacc {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.8rem;
}

.section-title-aacc {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary-blue);
  font-weight: 800;
}

.section-sub-aacc {
  font-size: 0.9rem;
  color: var(--text-light);
}

.btn-ver-todas {
  background: #edf2f7;
  color: var(--text-gray);
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-ver-todas:hover {
  background: #e2e8f0;
}

.news-grid-aacc {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

/* Notícia Destaque Grande */
.news-main-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-main-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.news-main-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.news-main-body {
  padding: 1.4rem;
}

.news-main-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.news-main-excerpt {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.news-date {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* Notícias Secundárias (Coluna Direita) */
.news-side-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.news-side-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}

.news-side-item:last-child {
  border-bottom: none;
}

.news-side-thumb {
  width: 100px;
  height: 75px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.news-side-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

/* 6. Galeria de Fotos (4 em linha) */
.gallery-section {
  padding: 2.5rem 0;
  background: var(--bg-section-gray);
}

.gallery-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-card-item {
  border-radius: 8px;
  overflow: hidden;
  height: 160px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: relative;
}

.gallery-card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card-item:hover img {
  transform: scale(1.06);
}

.gallery-tag-overlay {
  position: absolute;
  bottom: 0;
  inset-x: 0;
  background: linear-gradient(to top, rgba(14,68,131,0.85), transparent);
  color: #ffffff;
  padding: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

/* 7. Seção "Números 2025" (Grid de Blocos Coloridos AACC) */
.stats-section-aacc {
  padding: 3.5rem 0;
}

.stats-grid-6 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.stat-box-aacc {
  border-radius: 10px;
  padding: 1.8rem 1rem;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease;
}

.stat-box-aacc:hover {
  transform: translateY(-4px);
}

.stat-box-blue {
  background: var(--primary-blue);
}

.stat-box-green {
  background: var(--primary-green);
}

.stat-box-light-blue {
  background: var(--light-blue);
}

.stat-number-aacc {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label-aacc {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 8. Banners Finais de Ação Side-by-Side */
.dual-banners-section {
  padding: 2.5rem 0;
}

.dual-banners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.action-banner-card {
  border-radius: 12px;
  padding: 2rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.banner-blue-card {
  background: linear-gradient(135deg, #0e4483 0%, #0284c7 100%);
}

.banner-green-card {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.banner-card-text h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.banner-card-text p {
  font-size: 0.9rem;
  color: #e0f2fe;
}

.banner-action-btn {
  background: #ffffff;
  color: var(--primary-blue);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

/* Google Map Full-Width (100% de largura da página) */
.google-map-fullwidth {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.google-map-fullwidth iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
}

/* Modal doação */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content-card {
  background: #ffffff;
  border-radius: 14px;
  max-width: 480px;
  width: 90%;
  padding: 2rem;
  position: relative;
  text-align: center;
}

.modal-close-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

/* 9. Social Links & Footer Institucional AACC */
.social-links-strip {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.social-links-inner {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-blue);
}

.footer-aacc {
  background: #f1f5f9;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-gray);
  border-top: 1px solid var(--border-light);
}

.footer-phone {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 0.3rem;
}

.footer-address {
  margin-bottom: 0.8rem;
}

.footer-legal-links {
  margin-bottom: 0.5rem;
}

.footer-legal-links a {
  color: var(--light-blue);
  margin: 0 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .header-top-inner, .aacc-hero-container, .empresa-amiga-inner, .news-grid-aacc, .dual-banners-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .header-actions-group {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .stats-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .google-map-fullwidth iframe {
    height: 320px;
  }
}
