/* Estilos Globais - Vila Joya Corretora de Seguros */

/* Importação de Fontes */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap");

/* Variáveis de Cores */
:root {
  --azul-escuro: #2b3a42; /* Farol - elementos principais */
  --azul-medio: #3f88c5; /* Oceano - botões e destaques */
  --azul-claro: #8ecae6; /* Céu - fundos e elementos secundários */
  --branco: #ffffff; /* Textos sobre fundos escuros */
  --areia: #f2e3d5; /* Fundos alternativos */
  --turquesa: #00b4d8; /* Call-to-action */
  --cinza-claro: #f5f5f5; /* Áreas de fundo alternativas */
  --sombra: rgba(0, 0, 0, 0.1); /* Sombras para elementos */
}

/* Reset e Estilos Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--azul-escuro);
  background-color: var(--branco);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--azul-escuro);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--azul-medio);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--turquesa);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--azul-medio);
  margin: 1rem auto 0;
}

/* Botões */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--azul-medio);
  color: var(--branco);
}

.btn-primary:hover {
  background-color: var(--turquesa);
  color: var(--branco);
}

.btn-hero {
  background-color: var(--branco);
  color: var(--azul-medio);
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.btn-hero i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.btn-hero:hover {
  background-color: var(--branco);
  color: var(--azul-medio);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-hero:hover i {
  transform: scale(1.1);
}

.btn-secondary {
  background-color: var(--branco);
  color: var(--azul-medio);
  border: 2px solid var(--azul-medio);
}

.btn-secondary:hover {
  background-color: var(--azul-claro);
  color: var(--azul-escuro);
}

.btn-cta {
  background-color: var(--turquesa);
  color: var(--branco);
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-cta:hover {
  background-color: var(--azul-medio);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
  background-color: var(--branco);
  box-shadow: 0 2px 10px var(--sombra);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 15px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 1.5rem;
}

.nav-link {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--azul-escuro);
  position: relative;
}

.nav-link:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--azul-medio);
  transition: width 0.3s ease;
}

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

.hamburger {
  display: none;
  cursor: pointer;
}

/* Banner Principal */
.hero {
  height: 700px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

/* Overlay para o botão no banner */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-button-container {
  margin-left: calc(5% - 3px);
  max-width: 300px;
}

/* Botão Simular Agora */
.btn-simulate {
  background-color: var(--branco);
  color: var(--azul-medio);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 2px solid var(--azul-medio);
  white-space: nowrap;
  min-width: 200px;
}

.btn-simulate:hover {
  background-color: var(--azul-medio);
  color: var(--branco);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.btn-simulate i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.btn-simulate:hover i {
  transform: scale(1.2);
}

/* Seção do Botão Mobile */
.mobile-button-section {
  display: none; /* Oculto por padrão no desktop */
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.5rem 0;
  background-color: #356285;
}

.mobile-button-container {
  text-align: center;
}

.btn-simulate-mobile {
  background-color: var(--branco);
  color: var(--azul-medio);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 2px solid var(--azul-medio);
  white-space: nowrap;
  min-width: 250px;
}

.btn-simulate-mobile:hover {
  background-color: var(--azul-medio);
  color: var(--branco);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.btn-simulate-mobile i {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.btn-simulate-mobile:hover i {
  transform: scale(1.2);
}

/* Responsividade do Banner */
@media (max-width: 768px) {
  .hero {
    height: 500px; /* Aumentar altura para ficar mais quadrado */
  }

  .hero-overlay {
    display: none; /* Esconder overlay no mobile */
  }

  /* Mostrar botão mobile */
  .mobile-button-section {
    display: block;
    padding: 1.2rem 0;
  }

  .btn-simulate-mobile {
    font-size: 1rem;
    padding: 0.9rem 2.2rem;
    min-width: 220px;
  }

  .btn-simulate-mobile i {
    font-size: 1.2rem;
  }

  .hero-button-container {
    margin-left: calc(3% - 3px);
    max-width: 250px;
  }

  .btn-simulate {
    font-size: 0.9rem;
    padding: 0.7rem 1.8rem;
    min-width: 180px;
  }

  .btn-simulate i {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 400px; /* Aumentar altura para mobile pequeno */
  }

  .mobile-button-section {
    padding: 1rem 0;
  }

  .btn-simulate-mobile {
    font-size: 0.9rem;
    padding: 0.8rem 2rem;
    min-width: 200px;
  }

  .btn-simulate-mobile i {
    font-size: 1.1rem;
  }

  .hero-button-container {
    margin-left: calc(2% - 3px);
    max-width: 200px;
  }

  .btn-simulate {
    font-size: 0.8rem;
    padding: 0.6rem 1.5rem;
    min-width: 160px;
  }

  .btn-simulate i {
    font-size: 0.9rem;
  }
}

.hero-content {
  max-width: 600px;
  z-index: 1;
  position: relative;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--branco);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: var(--branco);
  line-height: 1.6;
}

/* Seção de Produtos */
.products {
  background-color: var(--branco);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: var(--branco);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--sombra);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--sombra);
}

.product-image {
  height: 180px;
  background-color: var(--azul-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Manter ícones com estilo anterior */
.product-image i {
  max-height: 120px;
}

.product-content {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.product-description {
  margin-bottom: 1.5rem;
  color: #666;
}

/* Seção de Seguradoras Parceiras */
.partners {
  background-color: var(--cinza-claro);
}

.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.partner-card {
  background-color: var(--branco);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px var(--sombra);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--azul-claro);
}

.partner-logo {
  width: 150px;
  height: 100px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.partner-card:hover .partner-logo {
  background-color: var(--azul-claro);
  transform: scale(1.05);
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
  padding: 0.5rem;
}

.partner-card:hover .partner-logo img {
  filter: grayscale(0);
}

.partner-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--azul-escuro);
  margin-bottom: 0.5rem;
}

.partner-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0;
}

/* Seção Por que escolher */
.why-choose {
  background-color: var(--areia);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--branco);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px var(--sombra);
  text-align: center;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--azul-medio);
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Formulário de Contato */
.contact-form {
  background-color: var(--branco);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px var(--sombra);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: "Open Sans", sans-serif;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--azul-medio);
}

/* WhatsApp Flutuante */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: var(--branco);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Footer */
.footer {
  background-color: var(--azul-escuro);
  color: var(--branco);
  padding: 4rem 0 2rem;
}

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

.footer-logo img {
  height: 80px;
  margin-bottom: 1rem;
}

.footer-title {
  color: var(--branco);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: 0.8rem;
}

.footer-link a {
  color: var(--azul-claro);
}

.footer-link a:hover {
  color: var(--branco);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--branco);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--azul-medio);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Chatbot */
.chatbot-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  background-color: var(--branco);
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: 99;
  display: none;
}

.chatbot-header {
  background-color: var(--azul-medio);
  color: var(--branco);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-title {
  margin: 0;
  font-size: 1.1rem;
}

.chatbot-close {
  background: none;
  border: none;
  color: var(--branco);
  font-size: 1.2rem;
  cursor: pointer;
}

.chatbot-messages {
  height: 300px;
  padding: 15px;
  overflow-y: auto;
}

.chatbot-input {
  display: flex;
  border-top: 1px solid #eee;
  padding: 10px;
}

.chatbot-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
}

.chatbot-input button {
  background-color: var(--azul-medio);
  color: var(--branco);
  border: none;
  padding: 10px 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

/* Media Queries */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0.8rem 15px;
  }

  .logo img {
    height: 50px;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    flex-direction: column;
    background-color: var(--branco);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 15px var(--sombra);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 1.5rem 0;
  }

  .hamburger {
    display: block;
  }

  .hero {
    padding: 7rem 0 4rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .chatbot-container {
    width: 300px;
  }

  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .partner-card {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .btn-cta {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .product-grid,
  .features-grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .partner-card {
    padding: 1.5rem;
  }

  .partner-logo {
    width: 130px;
    height: 85px;
  }

  .footer {
    padding: 3rem 0 1.5rem;
  }

  .chatbot-container {
    width: calc(100% - 40px);
    right: 20px;
  }
}

/* Animação para destacar botão WhatsApp */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
}

.whatsapp-float {
  /* Existing styles... */
  animation: pulse 2s infinite;
}

/* Footer logo monocromático branco */
.footer-logo img {
  filter: brightness(0) invert(1) grayscale(1);
}
