/* =========================
   VARIÁVEIS DE COR & RESET
========================= */
:root {
  --blue-dark: #021744;
  --blue-primary: #1453a0;
  --blue-accent: #0875df;
  --blue-light: #e8f1f5;
  --yellow-primary: #f5a623;
  --white: #ffffff;
  --amarelo: #ffd400;
  --azul-muito-escuro: #021744;
}

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;
}

* {
  box-sizing: border-box;
}

main {
  flex: 1;
  margin-top: 2rem;
}

/* =========================
   1. NAVBAR DE PONTA A PONTA (mais expansiva e responsiva)
========================= */
.navbar {
  background: var(--white);
  padding: 14px clamp(18px, 4vw, 56px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 16px rgba(11, 25, 47, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  min-height: 84px;
  z-index: 1000;
  border-bottom: 3px solid var(--yellow-primary);
}

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

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
}

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

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

.brand-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-accent);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.nav-direita {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(14px, 1.8vw, 24px);
  margin: 0;
  flex-wrap: nowrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.3s;
  position: relative;
  padding-bottom: 4px;
}

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

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

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

.nav-links a.active {
  color: var(--blue-primary);
}

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

/* =========================
   SUBMENU (DROPDOWN) NO HOVER
========================= */
.nav-item {
  position: relative;
}

.nav-item > a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-caret {
  font-size: 9px;
  transition: transform .2s ease;
  color: var(--blue-accent);
}

.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret {
  transform: rotate(180deg);
}

/* "ponte" invisível para o mouse não perder o hover ao descer até o dropdown */
.nav-item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 16px;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translate(-50%, 8px);
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(2, 23, 68, .16);
  padding: 10px;
  min-width: 215px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 1500;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 700;
  color: var(--blue-dark);
  white-space: nowrap;
}

.nav-dropdown a i {
  width: 16px;
  text-align: center;
  color: var(--blue-primary);
  font-size: .8rem;
}

.nav-dropdown a:hover {
  background: var(--blue-light);
  color: var(--blue-accent);
}

.nav-dropdown a.active {
  background: var(--blue-primary);
  color: var(--white);
}

.nav-dropdown a.active i {
  color: var(--white);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.nav-contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--blue-primary);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 9px 16px;
  border-radius: 30px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s, transform .2s;
}

.nav-contact-btn:hover {
  background: var(--yellow-primary);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

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

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

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

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

/* =========================
   ESTILOS DO MENU MOBILE (GAVETA LATERAL)
========================= */
body.menu-aberto {
  overflow: hidden;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 30px 20px 30px;
    box-shadow: -8px 0 30px rgba(0,0,0,0.18);
    transition: right 0.35s ease-in-out;
    z-index: 1999;
    display: none; /* Oculto por padrão no desktop */
    gap: 10px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    align-self: flex-end;
    background: var(--blue-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    color: var(--blue-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px 18px;
    border-bottom: 1px solid var(--blue-light);
    margin-bottom: 10px;
}

.mobile-menu-header img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.mobile-menu-header div {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.mobile-menu-header strong {
    font-size: 0.85rem;
    color: var(--blue-primary);
}

.mobile-menu-header span {
    font-size: 0.72rem;
    color: var(--blue-accent);
    font-weight: 600;
}

.mobile-menu-section {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--blue-accent);
    padding: 10px 8px 2px;
    opacity: .75;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--blue-dark);
    padding: 13px 15px;
    border-radius: 10px;
    text-align: left;
    background: var(--blue-light);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.mobile-menu a i {
    width: 18px;
    text-align: center;
    color: var(--blue-primary);
}

.mobile-menu a.active {
    background: var(--blue-primary);
    color: var(--white);
}

.mobile-menu a.active i {
    color: var(--white);
}

.mobile-menu a:hover {
    background: var(--yellow-primary);
    color: var(--blue-dark);
}

.mobile-menu a:hover i {
    color: var(--blue-dark);
}

.mobile-menu-restrito {
    margin-top: 6px;
    border: 1px dashed var(--blue-accent);
    background: transparent !important;
}

/* Regras de visibilidade responsiva */
@media (max-width: 1180px) {
    .nav-links {
        display: none !important; /* Esconde os links do desktop em telas menores */
    }
    .desktop-login {
        display: none !important; /* Contato e login viram itens do menu mobile */
    }
    .mobile-menu {
        display: flex; /* Exibe o menu mobile estruturado */
    }
    .hamburger {
        display: flex !important;
    }
    .navbar {
        padding: 12px 20px;
    }
}

@media (min-width: 1181px) {
    .mobile-menu {
        display: none !important; /* Garante que o menu mobile sumirá em telas grandes */
    }
}

@media (max-width: 480px) {
    .brand-title { font-size: 0.92rem; }
    .brand-subtitle { font-size: 0.7rem; }
    .brand-logo { width: 44px; height: 44px; }
}

/* =========================
   2. BANNER PRINCIPAL (HERO)
========================= */
.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;
}

/* =========================
   4. CARDS ESPECÍFICOS (EQUIPE / SOBRE)
========================= */
.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);
}

/* =========================================================
   RODAPÉ ALINHADO E FIEL AO DESIGN ORIGINAL
========================================================= */
.site-footer {
    background: var(--blue-dark);
    color: #fff;
    margin-top: 0;
    border-top: 5px solid var(--amarelo);
}   

.site-footer a {
    text-decoration: none;
    color: #fff;
}

.footer-main-grid {
    width: min(1200px, calc(100% - 60px));
    margin: auto;
    padding: 45px 0 35px 0;
    display: grid;
    grid-template-columns: 1.3fr 1.1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
}

.footer-brand strong {
    display: block;
    font-size: 14px;
    line-height: 1.2;
    color: #fff;
    font-weight: 900;
}

.footer-brand span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-top: 3px;
}

.footer-description {
    font-size: 11px;
    margin-top: 15px;
    line-height: 1.5;
}

.footer-title {
    color: #fff;
    font-size: 11px;
    margin-bottom: 15px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Divisão dos links rápidos em duas colunas internas */
.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-col a {
    font-size: 11px;
    transition: color 0.2s;
}

.footer-links-col a:hover {
    color: var(--amarelo);
}

.footer-links-col a::before {
    content: "›";
    margin-right: 6px;
}

.contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 11px;
    align-items: flex-start;
    line-height: 1.4;
}

.contact-icon {
    font-size: 11px;
    margin-top: 2px;
    width: 15px;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 15px 0;
    background: var(--azul-muito-escuro);
}

.footer-bottom-content {
    width: min(1200px, calc(100% - 60px));
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
}

.footer-bottom-content strong {
    color: var(--amarelo);
}

.footer-legal a {
    color: inherit;
    text-decoration: underline;
}

.footer-legal a:hover {
    color: var(--amarelo);
}

/* =========================
   RESPONSIVIDADE
========================= */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 500px; padding: 40px 5%; }
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 40px 5% 50px 5%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .cards-grid { grid-template-columns: 1fr; gap: 15px; }
  
  .brand-title { font-size: 0.8rem; }
  .brand-subtitle { font-size: 0.66rem; }
  .nav-direita { gap: 15px; }

  .hero-content h1,
  .article-title,
  .hero-schedule h1 { font-size: 2rem !important; line-height: 1.2 !important; }
  
  .team-card { flex: 0 0 100% !important; padding: 15px !important; }
  .hero-sobre { min-height: auto !important; }
  
  .article-body { padding: 20px 15px !important; }
  .article-text { font-size: 0.95rem !important; }
  
  .hero { padding: 30px 15px !important; }
  
  .hero-news, .hero-sobre, .hero-modalidades { padding: 30px 5% !important; }
  
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .footer-bottom-content {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}