/* ==========================================================================
   1. VARIÁVEIS E REGRAS GERAIS
   ========================================================================== */
:root {
  --blue: #00338D;
  --navy: #0D2240;
  --gold: #EBB700;
  --gold-hover: #ffd447;
  --white: #ffffff;
  --ink: #17243A;
  --muted: #647187;
  --pale: #F4F7FC;
  --line: #E1E7F0;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background-color: var(--white);
}

a {
  color: inherit;
}

.wrap {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.topline {
  height: 5px;
  background: var(--gold);
}

/* ==========================================================================
   2. BOTÕES E COMPONENTES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: background-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
}

.kicker {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.lead {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
  max-width: 700px;
}

/* Marca / Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.fallback-mark {
  width: 55px;
  height: 55px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  display: none;
  place-items: center;
  color: var(--blue);
  font-weight: 900;
  font-size: 10px;
  text-align: center;
  line-height: 1.1;
  flex-shrink: 0;
}

.brand strong {
  display: block;
  color: var(--blue);
  font-size: 14px;
  letter-spacing: 0.035em;
  line-height: 1.25;
}

.brand span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: 4px;
}

/* ==========================================================================
   3. CABEÇALHO & NAV
   ========================================================================== */
header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(225, 231, 240, 0.9);
}


.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

nav {
  display: flex;
  align-items: center;
  gap: 23px;
}

nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  color: #34435b;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--blue);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--navy);
}

/* ==========================================================================
   4. HERO & BARRA DE DESTAQUES
   ========================================================================== */
.hero {
  background: linear-gradient(90deg, rgba(5, 24, 55, 0.96) 0%, rgba(5, 24, 55, 0.88) 60%, rgba(5, 24, 55, 0.70) 100%),
              url('assets/hero-voluntariado.png') center / cover,
              var(--navy);
  color: var(--white);
  min-height: 580px;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  max-width: 650px;
}

/* Emblema comemorativo na direita */
.hero-badge {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-badge img {
  width: 100%;
  max-width: 340px; /* Ajuste aqui a largura máxima desejada para a logo comemorativa */
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.4));
}

.eyebrow {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--gold);
}

h1 {
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 22px 0;
  font-weight: 850;
}

h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero p {
  font-size: 18px;
  color: #e5ebf4;
  max-width: 580px;
  margin: 0 0 29px;
}

/* ==========================================================================
   5. SEÇÕES INTERNAS
   ========================================================================== */
section {
  padding: 82px 0;
}

.section-head {
  max-width: 730px;
  margin-bottom: 34px;
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 12px 0 16px;
  color: var(--navy);
}

/* Sobre */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: center;
}

.photo-panel {
  min-height: 420px;
  background: linear-gradient(0deg, rgba(13, 34, 64, 0.12), rgba(13, 34, 64, 0.02)),
              url('assets/acao-comunitaria.png') center / cover,
              var(--pale);
  position: relative;
}

.photo-panel::after {
  content: "";
  position: absolute;
  inset: 17px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  pointer-events: none;
}

.note {
  background: var(--gold);
  padding: 22px 25px;
  max-width: 290px;
  position: absolute;
  bottom: -20px;
  right: -18px;
  color: var(--navy);
  z-index: 1;
}

.note strong {
  font-size: 17px;
  line-height: 1.3;
  display: block;
}

.note span {
  font-size: 12px;
  display: block;
  margin-top: 7px;
}

.about-copy p {
  color: var(--muted);
}

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  margin-top: 26px;
}

.value {
  border-top: 2px solid var(--gold);
  padding-top: 12px;
}

.value strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
}

.value span {
  color: var(--muted);
  font-size: 12px;
}

/* História */
.history {
  background: var(--pale);
}

.history-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: start;
}

.date-card {
  background: var(--blue);
  color: var(--white);
  padding: 30px;
}

.date-card .kicker {
  color: var(--white);
}

.date-card .year {
  font-size: 52px;
  line-height: 1;
  color: var(--gold);
  font-weight: 850;
  letter-spacing: -0.04em;
}

.date-card strong {
  display: block;
  margin-top: 14px;
  font-size: 16px;
}

.date-card p {
  color: #d9e4f6;
  font-size: 13px;
}

.history-copy p {
  color: var(--muted);
}

.history-copy a {
  color: var(--blue);
  font-weight: 750;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 27px 24px;
  min-height: 225px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(13, 34, 64, 0.08);
}

.card .number {
  font-size: 11px;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.card h3 {
  font-size: 20px;
  line-height: 1.2;
  margin: 18px 0 10px;
  color: var(--navy);
}

.card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.disclaimer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 17px;
}

/* Citação */
.quote {
  background: var(--navy);
  color: var(--white);
  padding: 68px 0;
}

.quote-inner {
  display: grid;
  grid-template-columns: 0.3fr 1.7fr;
  gap: 28px;
  align-items: center;
}

.quote-mark {
  font-size: 100px;
  line-height: 0.7;
  color: var(--gold);
  font-family: Georgia, serif;
}

blockquote {
  font-size: clamp(25px, 3.4vw, 41px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 700;
}

.quote small {
  display: block;
  color: #c8d4e8;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 20px;
}

/* Participe & Contato */
.join-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 44px;
  align-items: center;
}

.join-panel {
  background: var(--blue);
  padding: 32px;
  color: var(--white);
}

.join-panel h3 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.join-panel p {
  font-size: 14px;
  color: #dfe8f7;
  margin: 0 0 20px;
}

.contact {
  background: var(--pale);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.contact h3 {
  margin: 7px 0 8px;
  color: var(--navy);
  font-size: 24px;
}

.contact p {
  font-size: 14px;
  color: var(--muted);
  margin: 5px 0;
}

.contact a {
  color: var(--blue);
  font-weight: 800;
}

.small-note {
  font-size: 11px !important;
  color: #778398 !important;
}

/* ==========================================================================
   6. RODAPÉ
   ========================================================================== */
footer {
  background: #07182f;
  color: var(--white);
  padding: 40px 0 22px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 35px;
  padding-bottom: 28px;
}

footer .brand strong {
  color: var(--white);
}

footer .brand span {
  color: #b8c7de;
}

footer p {
  color: #b8c7de;
  font-size: 12px;
  max-width: 370px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #d7e2f3;
  text-decoration: none;
  font-size: 12px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 17px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #a9bad3;
  font-size: 11px;
}

/* ==========================================================================
   7. RESPONSIVIDADE (CELULARES E TABLETS)
   ========================================================================== */
@media (max-width: 850px) {
  nav {
    gap: 12px;
  }
  
  nav a {
    font-size: 12px;
  }
  
  .nav > .btn {
    display: none;
  }
  
  .about-grid,
  .history-grid,
  .join-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  
  .photo-panel {
    min-height: 350px;
    margin-right: 18px;
  }
  
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero {
    min-height: 530px;
  }
  
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 30px);
  }
  
  .nav {
    min-height: 70px;
  }
  
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    gap: 15px;
  }

  nav.is-open {
    display: flex;
  }
  
  .brand img,
  .fallback-mark {
    width: 47px;
    height: 47px;
  }
  
  .brand strong {
    font-size: 12px;
  }
  
  .brand span {
    font-size: 9px;
  }
  
  .hero {
    min-height: 560px;
    background-position: 58% center;
  }
  
  .hero-content {
    padding: 68px 0;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .proof-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .proof-item {
    padding: 13px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .proof-item:last-child {
    border: 0;
  }
  
  .proof-icon {
    width: 35px;
    height: 35px;
  }
  
  section {
    padding: 60px 0;
  }
  
  .cards {
    grid-template-columns: 1fr;
  }
  
  .card {
    min-height: 0;
  }
  
  .quote-inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .quote-mark {
    font-size: 68px;
  }
  
  .note {
    right: -10px;
    bottom: -18px;
    padding: 17px;
    max-width: 240px;
  }
  
  .values {
    gap: 14px;
  }
  
  .footer-top,
  .copyright {
    flex-direction: column;
  }
  
  .footer-links {
    gap: 14px;
  }
}

@media (max-width: 850px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 30px;
  }

  .hero-badge img {
    max-width: 240px;
  }
}