/* ======== RESET / GERAL ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #fff;
  color: #333;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* ======== TOPO ======== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 10px 40px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand-logo img {
  height: 55px;
  width: auto;
  object-fit: contain;
}

/* ======== MENU ======== */
.main-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
  padding: 5px 10px;
  border-radius: 4px;
  transition: color 0.3s, background 0.3s;
}

.main-nav a:hover {
  color: #0077cc;
}

.main-nav a.active {
  background-color: rgba(0, 119, 204, 0.15);
  color: #0077cc;
}

/* ======== BOTÕES ======== */
.actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn {
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 15px;
  border: none;
  transition: background-color 0.3s, color 0.3s;
}

.btn-ghost {
  background: transparent;
  color: #0077cc;
  border: 1px solid #0077cc;
}

.btn-ghost:hover {
  background: #0077cc;
  color: #fff;
}

.btn-login {
  background: #0077cc;
  color: #fff;
}

.btn-login:hover {
  background: #005fa3;
}

/* ======== REDES SOCIAIS ======== */
.social-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 25px;
}

.social-top span {
  font-size: 0.9rem;
  color: #0077cc;
  font-weight: 600;
}

.social-icons-top {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-icons-top a {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 119, 204, 0.08);
  transition: all 0.3s ease;
}

.social-icons-top a:hover {
  background-color: rgba(0, 119, 204, 0.25);
  transform: translateY(-2px);
}

.social-icons-top img {
  width: 18px;
  height: 18px;
}

/* ======== CONTEÚDO HISTÓRIA ======== */
.historia-container {
  padding: 60px 10%;
  text-align: justify;
}

.historia-container h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5rem;
  color: #003366;
}

.historia-imagem {
  display: block;
  margin: 0 auto 40px auto;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.historia-texto p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1.1rem;
}

.historia-texto strong {
  color: #004aad;
}

/* ======== RODAPÉ ======== */
footer {
  position: relative;
  background-color: #002b5c;
  color: #fff;
  padding: 30px 15px;
  overflow: hidden;
}

.footer-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo-bg {
  position: absolute;
  left: 10px;
  bottom: 10px;
  height: 120px;
  opacity: 0.15;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.footer-right {
  position: relative;
  z-index: 2;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #bcd8ff;
}

.footer-info {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  color: #dce9ff;
}

.whatsapp-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #25d366;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-radius: 30px;
  padding: 6px 12px;
  transition: all 0.3s ease;
}

.whatsapp-link:hover {
  background-color: #1ebe5d;
  transform: translateY(-2px);
}

.whatsapp-icon {
  width: 20px;
  height: 20px;
}

.footer-copy {
  font-size: 13px;
  opacity: 0.8;
}

/* ======== RESPONSIVIDADE ======== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #003366;
}

.menu-toggle {
  position: fixed;
  left: 5%;
  top: 5%;
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px;
    gap: 20px;
    transition: right 0.3s ease-in-out;
    z-index: 999;
  }

  .main-nav.open {
    right: 0;
  }

  .menu-toggle {
    display: block;
  }

  .actions {
    display: none;
  }

  .social-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
  }

  .footer-logo-bg {
    height: 80px;
  }
}

@media (max-width: 480px) {
  .historia-container h1 {
    font-size: 1.8rem;
  }

  .historia-texto p {
    font-size: 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .footer-contact {
    flex-direction: column;
  }

  .footer-logo-bg {
    height: 70px;
    left: 5px;
  }
}
