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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

/* ===== HEADER INSTITUCIONAL ===== */
.header-gov {
  background-color: #1a2d6b;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.header-gov .gov-text {
  color: #ffffff;
  text-align: center;
}

.header-gov .gov-text span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ===== TÍTULO DA ESCOLA ===== */
.escola-titulo {
  background-color: #ffffff;
  text-align: center;
  padding: 22px 20px 18px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.escola-logo {
  height: 70px;
  width: auto;
}

.escola-titulo h1 {
  font-size: 42px;
  font-weight: 900;
  color: #222;
  letter-spacing: 2px;
}

/* ===== BARRA DE NAVEGAÇÃO ===== */
.navbar {
  background-color: #f0b800;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  position: relative;
}

.navbar-links {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}

.navbar-links a {
  color: #1a2d6b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 0;
  display: block;
  opacity: 0.92;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.navbar-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.navbar-divider {
  width: 1px;
  height: 18px;
  background-color: rgba(26,45,107,0.3);
  display: inline-block;
}

/* Hambúrguer — oculto no desktop */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #1a2d6b;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== CONTEÚDO PRINCIPAL ===== */
.main-content {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ===== BLOCO DE BOAS-VINDAS ===== */
.welcome-block {
  background-color: #1a2d6b;
  color: white;
  padding: 30px 36px;
  border-radius: 4px;
  margin-bottom: 40px;
  text-align: center;
}

.welcome-block h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.welcome-block p {
  font-size: 15px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== TÍTULO DA SEÇÃO ===== */
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.section-title-underline {
  width: 50px;
  height: 4px;
  background-color: #f0b800;
  margin-bottom: 28px;
}

/* ===== GRADE DE CARDS DE SERVIÇOS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 50px;
}

.service-card {
  background-color: #1a2d6b;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
  border-radius: 3px;
  transition: background-color 0.2s, transform 0.15s;
  min-height: 90px;
}

.service-card:hover {
  background-color: #111d4a;
  transform: translateY(-2px);
}

.service-card .card-icon {
  font-size: 26px;
  display: block;
  margin-bottom: 8px;
}

/* ===== RODAPÉ ===== */
footer {
  background-color: #e0e0e0;
  padding: 32px 20px;
  text-align: center;
  color: #555;
  font-size: 13px;
  line-height: 1.8;
  margin-top: 20px;
}

footer strong {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}

footer .social-links {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

footer .social-links a {
  background-color: #888;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
  transition: background-color 0.2s;
}

footer .social-links a:hover {
  background-color: #1a2d6b;
}

/* ===== TABLET (≤ 768px) ===== */
@media (max-width: 768px) {
  .escola-titulo h1 {
    font-size: 28px;
    letter-spacing: 1px;
  }

  .escola-logo {
    height: 55px;
  }

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

  /* Hambúrguer visível */
  .navbar-toggle {
    display: block;
  }

  .navbar {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 0 16px;
    min-height: 52px;
  }

  /* Label da escola no navbar para referência */
  .navbar::before {
    content: 'Menu';
    color: #1a2d6b;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 0;
  }

  /* Menu oculto por padrão no mobile */
  .navbar-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 8px 0 16px;
  }

  .navbar-links.aberto {
    display: flex;
  }

  .navbar-links li {
    width: 100%;
  }

  .navbar-links a {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(26,45,107,0.15);
    width: 100%;
  }

  .navbar-divider {
    display: none;
  }

  .welcome-block {
    padding: 24px 20px;
  }

  .welcome-block h2 {
    font-size: 18px;
  }
}

/* ===== CELULAR (≤ 480px) ===== */
@media (max-width: 480px) {
  .header-gov {
    padding: 12px 16px;
  }

  .header-gov .gov-text span {
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  .escola-titulo {
    flex-direction: column;
    gap: 10px;
    padding: 16px 12px;
  }

  .escola-titulo h1 {
    font-size: 22px;
    letter-spacing: 0.5px;
    text-align: center;
  }

  .escola-logo {
    height: 60px;
  }

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

  .service-card {
    min-height: 70px;
    padding: 20px 16px;
  }

  .welcome-block h2 {
    font-size: 16px;
  }

  .welcome-block p {
    font-size: 14px;
  }

  .section-title {
    font-size: 18px;
  }

  .main-content {
    margin: 24px auto;
  }
}
