/* =========================
   VARIÁVEIS DE COR & RESET
========================= */
:root {
  --blue-dark: #071a35;
  --blue-primary: #1453a0;
  --blue-accent: #0875df;
  --blue-light: #e8f1f5;
  --yellow-primary: #f5a623;
  --yellow-hover: #d3cc1d;
  --white: #ffffff;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background-color: var(--blue-light);
  color: var(--blue-dark);
  font-family: 'Montserrat', sans-serif;
  padding-top: 75px; 
}

* {
  box-sizing: border-box;
}

main {
  flex: 1;
}

/* =========================
   1. NAVBAR DE PONTA A PONTA
========================= */
.navbar {
  background: var(--white);
  padding: 10px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(11, 25, 47, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 75px;
  z-index: 1000;
  border-bottom: 3px solid var(--yellow-primary);
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-primary);
  line-height: 1.2;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-accent);
  letter-spacing: 0.5px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--blue-accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--yellow-primary);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background-color: var(--blue-dark);
  border-radius: 3px;
  transition: all 0.3s;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-direita {
  display: flex;
  align-items: center;
  gap: 30px; 
}

.login-icon {
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s, transform 0.2s;
  text-decoration: none;
}

.login-icon:hover {
  color: var(--blue-accent);
  transform: scale(1.1);
}

/* =========================
   2. BANNER PRINCIPAL (HERO) - CORRIGIDO 100% LARGURA
========================= */
.hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 550px;
  overflow: hidden;
  background: var(--blue-dark);
  display: flex;
  align-items: center;
  padding: 40px 5% 40px 8%; 
  margin: 0 !important;
  bottom: 5rem;
}

.foto-escola {
  position: absolute;
  right: 0;
  top: 0;
  width: 70%;
  height: 100%;
  background-image: url("../img/escola.jpg");
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.foto-escola::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--blue-dark) 0%,
    rgba(7, 26, 53, 0.95) 25%,
    rgba(7, 26, 53, 0.60) 60%,
    rgba(7, 26, 53, 0.10) 100%
  );
}

.aluno {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 380px;
  height: 90%;
  object-fit: contain;
  object-position: bottom right;
  z-index: 3;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 100%);
}

.conteudo {
  position: relative;
  z-index: 5;
  max-width: 650px;
}

.titulo {
  color: var(--white);
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 800;
  margin-top: 0;
}

.destaque {
  display: inline-block;
  background: var(--yellow-primary);
  color: var(--blue-dark);
  padding: 2px 14px;
  border-radius: 6px;
}

.descricao {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 20px;
}

.botao {
  display: inline-block;
  margin-top: 30px;
  padding: 16px 36px;
  background: var(--yellow-primary);
  color: var(--blue-dark);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 6px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(248, 240, 43, 0.3);
}

.botao:hover {
  transform: translateY(-3px);
  background: var(--white);
  color: var(--blue-primary);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* =========================
   3. SEÇÃO DE CARDS
========================= */
.cards-container {
  max-width: 1200px;
  margin: -50px auto 60px auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px; 
}

.card {
  background: var(--blue-primary);
  border-radius: 12px;
  overflow: hidden;
  color: var(--white);
  box-shadow: 0 10px 25px rgba(7, 26, 53, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(7, 26, 53, 0.35);
}

.card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-bottom: 3px solid var(--yellow-primary);
}

.card-content {
  padding: 24px;
  position: relative;
}

.card-icon-badge {
  position: absolute;
  top: -25px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--yellow-primary);
  color: var(--blue-dark);
  border: 3px solid var(--blue-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-link {
  color: var(--yellow-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-block;
  transition: opacity 0.2s;
}

.card-link:hover {
  text-decoration: underline;
}

/* =========================
   4. CARDS ESPECÍFICOS (EQUIPE / SOBRE)
========================= */
.team-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.team-card {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  flex: 1 1 250px;
  max-width: 300px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 4px solid var(--yellow-primary);
}

/* =========================
   5. RODAPÉ (FOOTER)
========================= */
.footer {
  background-image: url('../img/rodape.png');
  background-color: var(--blue-dark);
  color: var(--white);
  padding: 30px 5% 10px 5%;
  border-top: 5px solid var(--yellow-primary);
  margin-top: 20px;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h4 {
  color: var(--yellow-primary);
  font-size: 1.2rem;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.footer-section p, 
.footer-section a {
  color: var(--blue-light);
  text-decoration: none;
  line-height: 1.8;
  display: block;
  margin-bottom: 8px;
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================
   RESPONSIVIDADE
========================= */
@media (min-width: 1600px) {
  .cards-container { 
    max-width: 1400px; 
    margin-left: auto; 
    margin-right: auto; 
  }
}

@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 500px; padding: 40px 5%; }
}

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links {
    position: absolute; top: 75px; left: -100%; flex-direction: column;
    background-color: var(--white); width: 100%; text-align: center;
    padding: 20px 0; box-shadow: 0 10px 15px rgba(0,0,0,0.1); transition: left 0.4s ease;
  }
  .nav-links.active { left: 0; }
  .nav-links li { margin: 15px 0; }
  
  .hero {
    min-height: auto;
    padding: 40px 5% 50px 5%;
    justify-content: center;
    text-align: center;
  }
  .conteudo { margin: 0 auto; max-width: 100%; }
  .aluno { opacity: 0.15; width: 100%; right: 0; object-position: center bottom; }
  .cards-container { margin-top: 30px; }
  .footer-content { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .titulo { font-size: 1.8rem; }
  .descricao { font-size: 0.95rem; line-height: 1.4; }
  .botao { width: 60%; padding: 14px; font-size: 0.9rem; margin-top: 20px; }
  
  .cards-grid { grid-template-columns: 1fr; gap: 15px; }
  .card-img { height: 160px; }
  .card-content { padding: 18px; }
  .card-title { font-size: 1.1rem; }
  
  .brand-title { font-size: 0.8rem; }
  .brand-subtitle { font-size: 0.66rem; }
  .nav-direita { gap: 15px; }

  .hero-content h1, 
  .title, 
  .article-title, 
  .hero-schedule h1, 
  .book-title { font-size: 2rem !important; line-height: 1.2 !important; }
  
  .book { width: 95vw !important; height: auto !important; min-height: 500px; }
  .page-content { padding: 20px !important; }
  .nav-button { width: 45px !important; height: 45px !important; font-size: 24px !important; }
  .page h2 { font-size: 1.5rem !important; }
  
  .team-card { flex: 0 0 100% !important; padding: 15px !important; }
  .hero-sobre { min-height: auto !important; }
  
  .article-img { height: 220px !important; }
  .article-body { padding: 20px 15px !important; }
  .article-text { font-size: 0.95rem !important; }
  
  .mural-container { padding: 20px !important; }
  .hero { padding: 30px 15px !important; }
  .year-sidebar h2 { font-size: 2.2rem !important; }
  .year-nav { flex-direction: column; align-items: center; gap: 10px; margin-left: 0; }
  .nav-label { margin-right: 0; margin-bottom: 10px; }
  .photo-card img { width: 140px !important; height: 90px !important; }
  
  .hero-news, .hero-sobre, .hero-modalidades { padding: 30px 5% !important; }
  
  .feat-info { padding: 20px !important; }
  .feat-info h2 { font-size: 1.8rem !important; }
  .feat-stats { position: relative !important; flex-direction: row !important; flex-wrap: wrap; padding: 15px !important; }
}

