/* --- Variáveis e Configurações Globais --- */
:root {
  /* Paleta Premium */
  --navy-primary: #0a2342; /* Azul Marinho Profundo - Autoridade */
  --navy-dark: #051529; /* Versão mais escura para contrastes */
  --gold-accent: #c5a47e; /* Dourado Acetinado - Luxo */
  --gold-hover: #d4b693; /* Dourado mais claro para hover */
  --off-white-bg: #f9f6f2; /* Fundo Creme Suave - Conforto */
  --pure-white: #ffffff;
  --text-dark: #2a2a2a; /* Preto suave para textos */
  --text-light: #a0a0a0; /* Cinza para textos secundários */

  /* Sombras Premium */
  --shadow-sm: 0 2px 8px rgba(10, 35, 66, 0.08);
  --shadow-md: 0 10px 30px rgba(10, 35, 66, 0.12);
  --shadow-hover: 0 15px 40px rgba(10, 35, 66, 0.2);

  --section-spacing: 100px; /* Mais respiro entre seções */
  --border-radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif; /* Fonte Premium */
  scroll-behavior: smooth;
}

body {
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--off-white-bg);
}

/* --- Utilitários & Botões --- */
.section-padding {
  padding: var(--section-spacing) 20px;
}

.sub-title {
  color: var(--gold-accent);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 10px;
}

.sub-title.light {
  color: var(--gold-hover);
}

h2 {
  font-size: 2.5rem;
  color: var(--navy-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.btn-gold,
.btn-navy,
.btn-outline-light,
.btn-header {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold-accent);
  color: var(--pure-white);
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy-primary);
  color: var(--pure-white);
}
.btn-navy:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 2px solid var(--pure-white);
  color: var(--pure-white);
  background: transparent;
}
.btn-outline-light:hover {
  background: var(--pure-white);
  color: var(--navy-primary);
}

.premium-shadow {
  box-shadow: var(--shadow-md);
}
.mt-4 {
  margin-top: 1.5rem;
}
.full-width {
  width: 100%;
  text-align: center;
}

/* --- Navbar --- */
header {
  background: rgba(255, 255, 255, 0.98); /* Leve transparência */
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(197, 164, 126, 0.2); /* Linha sutil dourada */
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 20px;
  height: 80px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy-primary);
  display: flex;
  align-items: center;
}
.logo i {
  color: var(--gold-accent);
  margin-right: 10px;
  font-size: 1.8rem;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--navy-primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.3s;
  position: relative;
}

/* Efeito de hover no menu */
.nav-links a:not(.btn-header)::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--gold-accent);
  transition: width 0.3s;
}
.nav-links a:not(.btn-header):hover::after {
  width: 100%;
}
.nav-links a:not(.btn-header):hover {
  color: var(--gold-accent);
}

.btn-header {
  background: var(--navy-primary);
  color: var(--pure-white) !important;
  padding: 12px 24px;
  border-radius: 50px; /* Botão mais arredondado no header */
}
.btn-header:hover {
  background: var(--gold-accent);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--navy-primary);
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  /* REMOVIDO: background: url(...);  <- Não usamos mais imagem fixa aqui */
  background: var(--navy-dark); /* Cor de fundo de segurança */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--pure-white);
  padding: 0 20px;
  margin-top: 80px;
  position: relative;
  overflow: hidden; /* Garante que nada saia da tela */
}

/* NOVO: Estilos do Slideshow */
.hero-bg-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Fica atrás de tudo */
}

.hero-bg-slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0; /* Começa invisível */
  transition: opacity 1.5s ease-in-out; /* O efeito Fade dura 1.5s */
}

.hero-bg-slideshow .slide.active {
  opacity: 1; /* O slide ativo fica visível */
}

/* Ajuste de Camadas (Z-Index) */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 35, 66, 0.9),
    rgba(10, 35, 66, 0.75)
  );
  z-index: 1; /* Fica em cima das fotos, mas embaixo do texto */
}

.hero-content {
  position: relative;
  z-index: 2; /* Texto fica na frente de tudo */
  max-width: 800px;
}

/* --- Configuração das Imagens do Slideshow --- */

/* Padrão (PC/Tablet - Imagens Deitadas) */
.slide-1 {
  background-image: url("img/bg1.jpg");
}
.slide-2 {
  background-image: url("img/bg2.jpg");
}
.slide-3 {
  background-image: url("img/bg3.jpg");
}

/* Versão Mobile (Celulares - Imagens em Pé) */
@media (max-width: 768px) {
  .slide-1 {
    background-image: url("img/bg1-mobile.jpg");
  }
  .slide-2 {
    background-image: url("img/bg2-mobile.jpg");
  }
  .slide-3 {
    background-image: url("img/bg3-mobile.jpg");
  }

  /* Ajuste fino para garantir que a imagem cubra tudo sem bugar */
  .hero-bg-slideshow .slide {
    background-attachment: scroll; /* Evita bugs de scroll no iPhone */
    background-position: center top; /* Foca no rosto (parte de cima) */
  }
}

/* --- Features (Cards Sobrepostos) --- */
.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 0 20px 80px 20px;
  max-width: 1200px;
  margin: -100px auto 0; /* Sobreposição maior */
  position: relative;
  z-index: 10;
}

.feature-card {
  background: var(--pure-white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  text-align: left; /* Alinhamento à esquerda é mais elegante */
  flex: 1;
  min-width: 280px;
  transition: 0.4s ease;
  border-top: 4px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-top: 4px solid var(--gold-accent);
}

.icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: rgba(197, 164, 126, 0.15); /* Fundo dourado claro */
  border-radius: 50%;
  margin-bottom: 25px;
}

.feature-card i {
  font-size: 2rem;
  color: var(--gold-accent);
}

.feature-card h3 {
  color: var(--navy-primary);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* --- Sobre Nós --- */
.about-container {
  display: flex;
  align-items: center;
  gap: 80px; /* Mais espaço entre imagem e texto */
  max-width: 1200px;
  margin: 0 auto;
}

.about-img {
  flex: 1;
  position: relative;
}

/* Efeito de borda deslocada na imagem */
.about-img::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--gold-accent);
  border-radius: var(--border-radius);
  z-index: 0;
}

.about-img img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 25px;
  color: var(--text-dark);
}

.check-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--navy-primary);
}

.check-list i {
  color: var(--gold-accent);
  margin-right: 15px;
  font-size: 1.1rem;
}

/* --- Serviços --- */
.services {
  background: var(--pure-white); /* Fundo branco para contraste */
  text-align: center;
}

.section-title {
  max-width: 700px;
  margin: 0 auto 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--off-white-bg);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  transition: 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

/* Efeito hover sofisticado: fundo escuro e ícone dourado */
.service-card:hover {
  background: var(--navy-primary);
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-card:hover h3,
.service-card:hover p {
  color: var(--pure-white);
}

.service-card i {
  font-size: 3rem;
  color: var(--navy-primary);
  margin-bottom: 25px;
  transition: 0.4s;
}
.service-card:hover i {
  color: var(--gold-accent);
  transform: scale(1.1);
}

.service-card h3 {
  color: var(--navy-primary);
  margin-bottom: 15px;
  font-size: 1.3rem;
  transition: 0.4s;
}

/* --- Contato Premium --- */
.contact {
  background: var(--navy-primary); /* Fundo Azul Marinho */
  color: var(--pure-white);
  position: relative;
  overflow: hidden;
}

/* Elemento decorativo de fundo */
.contact::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(197, 164, 126, 0.1) 0%,
    rgba(10, 35, 66, 0) 70%
  );
  border-radius: 50%;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.contact-info {
  flex: 1;
}
.contact-info h2 {
  color: var(--pure-white);
}
.contact-info p {
  opacity: 0.8;
  margin-bottom: 40px;
  max-width: 400px;
}

.info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  display: flex;
  align-items: center;
}

.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(197, 164, 126, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.icon-box i {
  color: var(--gold-accent);
  font-size: 1.5rem;
}

.info-item h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 600;
}
.info-item span {
  opacity: 0.8;
  font-size: 0.95rem;
}

.contact-form {
  flex: 1;
  max-width: 450px;
  background: var(--pure-white);
  padding: 40px;
  border-radius: 12px; /* Borda um pouco mais arredondada */
  color: var(--text-dark);
}

.contact-form h3 {
  color: var(--navy-primary);
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.5rem;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-accent);
}

.contact-form input,
.contact-form select {
  width: 100%;
  padding: 15px 15px 15px 45px; /* Espaço para o ícone */
  border: 2px solid #eee;
  border-radius: var(--border-radius);
  outline: none;
  font-size: 0.95rem;
  transition: 0.3s;
  background: var(--off-white-bg);
  color: var(--text-dark);
}

.contact-form input:focus,
.contact-form select:focus {
  border-color: var(--gold-accent);
  background: var(--pure-white);
}

/* --- Footer --- */
footer {
  background: var(--navy-dark);
  color: var(--pure-white);
  padding: 60px 20px 20px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
}
.footer-logo i {
  color: var(--gold-accent);
  margin-right: 10px;
}
.footer-logo p {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.7;
  margin-top: 5px;
  letter-spacing: 1px;
}

.social-btn {
  display: inline-flex;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--pure-white);
  margin: 0 8px;
  text-decoration: none;
  transition: 0.3s;
}
.social-btn:hover {
  background: var(--gold-accent);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* --- WhatsApp Float Premium --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366; /* Mantive o verde oficial do Whats, mas pode usar o dourado */
  /* background: var(--gold-accent); Opção Dourada */
  color: white;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  z-index: 1001;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(15deg);
}

/* Tooltip do WhatsApp */
.tooltip-text {
  visibility: hidden;
  position: absolute;
  right: 75px;
  background-color: var(--navy-primary);
  color: #fff;
  text-align: center;
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}
.whatsapp-float:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* --- Responsividade (Ajustes Finos e Correções Mobile) --- */

/* Ajustes para Tablets e Notebooks menores */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  .about-container {
    flex-direction: column;
    gap: 50px;
  }
  .about-img::before {
    display: none;
  } /* Remove efeito de borda deslocada para simplificar */
  .contact-container {
    flex-direction: column;
  }
  .contact-form {
    max-width: 100%;
  }
}

/* Ajustes Principais para Celulares */
@media (max-width: 768px) {
  /* --- Navbar Mobile --- */
  .navbar {
    height: 70px;
    padding: 0 20px;
  }
  .logo {
    font-size: 1.4rem;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--pure-white);
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); /* Menu escondido */
    transition: 0.4s ease-in-out;
  }
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); /* Menu visível */
  }
  .nav-links li {
    margin: 15px 0;
  }
  .btn-header {
    margin-top: 10px;
  }

  /* --- CORREÇÃO DO BANNER (HERO) --- */
  .hero {
    margin-top: 70px;
    /* Mudança importante: removemos 100vh e usamos padding */
    height: auto;
    min-height: 500px; /* Altura mínima razoável */
    padding: 120px 20px 80px; /* Mais espaço interno para o texto respirar */
  }
  .hero-content {
    max-width: 100%;
  }
  .hero h1 {
    font-size: 1.9rem; /* Fonte bem menor para não quebrar */
    line-height: 1.3;
  }
  .hero p {
    font-size: 1rem;
    padding: 0 10px;
  }
  /* Botões full-width no mobile */
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .hero-buttons .btn-gold,
  .hero-buttons .btn-outline-light {
    margin-right: 0;
    width: 100%; /* Botão ocupa a largura toda */
    text-align: center;
  }

  /* --- CORREÇÃO DOS CARDS (FEATURES) --- */
  .features {
    /* REMOVIDO o margin-top negativo. Agora os cards ficam abaixo do banner */
    margin-top: 0;
    padding-top: 40px;
    padding-bottom: 40px;
    gap: 20px;
    background: var(--off-white-bg); /* Garante o fundo correto */
  }
  .feature-card {
    /* Remove o efeito de subir no hover em celulares */
    transform: none !important;
    border-top: 4px solid var(--gold-accent); /* Borda dourada fixa */
  }

  /* --- Outros Ajustes Gerais --- */
  .section-padding {
    padding: 50px 20px;
  }
  h2 {
    font-size: 1.8rem;
  } /* Títulos de seção menores */
  .footer-bottom {
    padding-bottom: 80px;
  } /* Espaço para o botão do WhatsApp não cobrir o texto */
}
