@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');

/* ===================== */
/* RESET */
/* ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  overflow-x: hidden;
}

body {
  transition: 0.4s;
  background: #F4F7FB;
  color: #1C1C1C;
}

/* ===================== */
/* TOOLTIP */
/* ===================== */
.toggle-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tooltip {
  position: absolute;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  display: none;
  z-index: 999999;
}

.toggle-container:hover .tooltip {
  display: block;
}

#toggle-mode {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#toggle-mode.carregado {
  opacity: 1;
  pointer-events: auto;
}

/* ===================== */
/* HEADER */
/* ===================== */
.topo {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 2px solid #e6b200;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 50%;
}

.logo-texto {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-texto .institucional {
  font-size: 0.7rem;
  font-weight: 600;
  color: #0F3057;
}

.logo-texto h1 {
  font-size: 1.2rem;
  margin: 0;
  color: #0F3057;
}

/* NAVBAR */
.navbar {
  margin-left: auto;
  display: flex;
  gap: 25px;
}

.navbar a {
  text-decoration: none;
  font-weight: 600;
  color: #0F3057;
  transition: 0.3s;
}

.navbar a:hover {
  color: #facc15;
}

/* MENU BUTTON */
.menu-btn {
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #0F3057;
}

/* MENU LATERAL */
#menu-lateral {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100%;
  padding-top: 90px;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
  z-index: 999;
  background: #facc15;
}

#menu-lateral a {
  text-decoration: none;
  padding: 15px 25px;
  font-weight: 600;
  color: #030712;
}

#menu-lateral a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #1e5e9b;
}

#menu-lateral.ativo {
  left: 0;
}

/* TOGGLE DARK MODE */
#toggle-mode {
  margin-left: 20px;
  padding: 8px 14px;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  background: #0F3057;
  color: white;
}

/* ===================== */
/* CONTEÚDO */
/* ===================== */
main {
  margin-top: 120px;
}

section {
  padding: 90px 10%;
}

section h1,
.texto h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #0F3057;
}

/* HERO */
#inicio {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 90px;
  padding: 80px;
}

#inicio p {
  margin-bottom: 18px;
  line-height: 1.3;
  text-align: justify;
}

#inicio p:last-child {
  font-style: italic;
  text-align: center;
}

/* SOBRE EXTRA */
.sobre-extra {
  margin-top: -80px;
  padding: 80px;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

.sobre-extra p {
  margin-bottom: 18px;
  line-height: 1.3;
  text-align: justify;
}

/* IMAGEM */
.imagem {
  position: relative;
}

.imagem img {
  width: 600px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.imagem::before {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 70% 30% 60% 40% / 40% 60% 50% 50%;
  top: -150px;
  left: -400px;
  opacity: 0.13;
  z-index: -1;
  background: radial-gradient(circle at 40% 40%, #ffc400, #FFD60A);
}

/* AULAS */
.aulas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.categoria {
  margin-top: 60px;
  margin-bottom: 25px;
  font-size: 22px;
  font-weight: 600;
  color: #e6b800;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  color: white;
  padding: 12px 18px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transition: 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.05);
}

.whatsapp-icon {
  font-size: 22px;
}

.whatsapp-text {
  font-weight: 600;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  background: #0F3057;
  color: #aaa;
}

/* ===================== */
/* MODO ESCURO */
/* ===================== */
body.dark-mode {
  background: #031735;
  color: #e2e8f0;
}

body.dark-mode .tooltip {
  background: #facc15;
  color: #000;
}

body.dark-mode .topo {
  background: #030712;
  border-bottom: 1px solid rgba(248, 215, 5, 0.866);
}

body.dark-mode .logo-texto h1 {
  color: white;
}

body.dark-mode .logo-texto .institucional {
  color: #facc15;
}

body.dark-mode .navbar a {
  color: #cbd5f5;
}

body.dark-mode .navbar a:hover {
  color: #facc15;
}

body.dark-mode .menu-btn {
  color: white;
}

body.dark-mode #menu-lateral {
  background: #120f03;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode #menu-lateral a {
  color: #e2e8f0;
}

body.dark-mode #menu-lateral a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #facc15;
}

body.dark-mode #toggle-mode {
  background: #facc15;
  color: #000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode section h1,
body.dark-mode .texto h1 {
  color: #facc15;
}

body.dark-mode p {
  color: #cbd5e1;
}

body.dark-mode .imagem img {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

body.dark-mode .imagem::before {
  background: radial-gradient(circle at 40% 40%, #1e5e9b);
  opacity: 0.15;
}

body.dark-mode section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

body.dark-mode .card {
  background: #111827;
}

body.dark-mode .card h3 {
  color: #facc15;
}

body.dark-mode .card p {
  color: #e2e8f0;
}

body.dark-mode footer {
  background: #020617;
  color: #e6eaf1;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===================== */
/* FORÇAR FONTE DO HEADER EM PÁGINAS QUE SOBRESCREVEM */
/* ===================== */
#header .logo-texto h1,
#header #main-title {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
  letter-spacing: normal !important;
}

#header .logo-texto .institucional {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
}

/* ===================== */
/* RESPONSIVO */
/* ===================== */

/* TABLET */
@media (max-width: 768px) {
  .topo {
    padding: 12px 16px;
    gap: 10px;
  }

  .navbar {
    display: none;
  }

  /* MENU HAMBURGUER – agora na esquerda */
  .menu-btn {
    display: block;
    order: -1;           /* coloca o menu antes do logo */
    font-size: 24px;
    line-height: 1;
  }

  /* CONTAINER DO BOTÃO MODO ESCURO – empurrado para a direita */
  .toggle-container {
    margin-left: auto;   /* joga o container para o lado direito */
  }

  /* BOTÃO DARK MODE */
  #toggle-mode {
    font-size: 18px;
    padding: 6px 10px;
    border-radius: 16px;
    line-height: 1;
    margin-left: 0;      /* remove margem herdada, o container já cuida */
  }

  /* LOGO */
  .logo-img {
    width: 36px;
    height: 36px;
  }

  .logo-texto h1 {
    font-size: 1.2rem;
  }

  .logo-texto .institucional {
    font-size: 0.6rem;
  }

  main {
    margin-top: 90px;
  }

  section {
    padding: 60px 20px;
  }

  #inicio {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
  }

  #inicio .texto {
    width: 100%;
    max-width: 700px;
  }

  #inicio p {
    text-align: left;
    line-height: 1.7;
    word-break: break-word;
  }

  #inicio p:last-child {
    text-align: center;
  }

  .sobre-extra {
    padding: 40px 20px;
    margin-top: 0;
  }

  .imagem {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
  }

  .imagem img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
  }

  .imagem::before {
    width: 500px;
    height: 500px;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
  }

  section h1,
  .texto h1 {
    font-size: 1.8rem;
  }
}

/* MOBILE */
@media (max-width: 480px) {
  .topo {
    padding: 10px 12px;
    gap: 8px;
  }

  /* MENU HAMBURGUER – esquerda */
  .menu-btn {
    font-size: 22px;
    line-height: 1;
    order: -1;
  }

  /* CONTAINER DO BOTÃO MODO ESCURO – direita */
  .toggle-container {
    margin-left: auto;
  }

  /* BOTÃO DARK MODE */
  #toggle-mode {
    font-size: 16px;
    padding: 5px 8px;
    border-radius: 14px;
    line-height: 1;
    margin-left: 0;
  }

  /* LOGO */
  .logo {
    gap: 6px;
  }

  .logo-img {
    width: 30px;
    height: 30px;
  }

  .logo-texto h1 {
    font-size: 0.9rem;
  }

  .logo-texto .institucional {
    font-size: 0.55rem;
  }

  #inicio {
    padding: 30px 15px;
    gap: 30px;
  }

  section {
    padding: 50px 15px;
  }

  .sobre-extra {
    padding: 30px 15px;
  }

  .imagem img {
    max-width: 100%;
    border-radius: 10px;
  }

  .imagem::before {
    width: 320px;
    height: 320px;
    top: -50px;
  }

  section h1,
  .texto h1 {
    font-size: 1.5rem;
  }

  .whatsapp-text {
    display: none;
  }

  .whatsapp-float {
    padding: 12px;
    border-radius: 50%;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-icon {
    margin: 0;
    font-size: 20px;
  }

  #menu-lateral {
    width: 230px;
    left: -230px;
  }
}

/* DESKTOP */
@media (min-width: 769px) {
  .menu-btn {
    display: none;
  }
}