@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* =========================================
   VARIÁVEIS GLOBAIS (DESIGN SYSTEM)
   ========================================= */
:root {
  /* Cores Principais */
  --color-primary: #062644;    /* Azul escuro */
  --color-secondary: #035c87;  /* Azul menos escuro */
  --color-accent: #009bdb;     /* Azul tecnológico */
  
  /* Fundos e Textos */
  --color-white: #ffffff;
  --color-surface: #f8fafc;    /* Cinza muito claro */
  --color-text-main: #062644;
  --color-text-muted: #035c87;
  
  /* Tipografia */
  --font-family: 'Montserrat', sans-serif;
  
  /* Sombras e Bordas */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px -4px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px -4px rgba(0, 155, 219, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  /* Transições */
  --transition: 0.3s ease-in-out;
}

/* =========================================
   RESET E CONFIGURAÇÕES BÁSICAS
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-white);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--color-accent);
  transition: color var(--transition);
}

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

ul {
  list-style: none;
}

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

/* =========================================
   SISTEMA DE GRID (CONTAINER)
   ========================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

.bg-surface {
  background-color: var(--color-surface);
}

/* =========================================
   TIPOGRAFIA E TÍTULOS
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.section-tag {
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.text-muted {
  color: var(--color-text-muted);
}

/* =========================================
   BOTÕES (COMPONENTES)
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Efeito ao Clicar / Tocar no Computador e no Celular */
.btn:active {
  transform: scale(0.96) translateY(1px);
  filter: brightness(0.92);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-primary:active {
  background-color: #021a30;
  transform: scale(0.96) translateY(1px);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background-color: #0089c2;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent:active {
  background-color: #0077a8;
  transform: scale(0.96) translateY(1px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:active {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: scale(0.96) translateY(1px);
}

.btn-outline-white {
  background-color: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.btn-outline-white:active {
  background-color: rgba(255, 255, 255, 0.35);
  transform: scale(0.96) translateY(1px);
}

.btn-lg {
  height: 56px;
  padding: 0 32px;
  font-size: 1.125rem;
}

.btn-md {
  height: 48px;
  padding: 0 24px;
  font-size: 1rem;
}

/* Centralização de botões em dispositivos móveis e tablets */
.btn-center-mobile {
  display: block;
}

@media (max-width: 992px) {
  .btn-center-mobile {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .mySwiper .swiper-button-prev,
  .mySwiper .swiper-button-next {
    display: none !important;
  }
}

/* =========================================
   HEADER E NAVEGAÇÃO
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  padding: 16px 0;
  z-index: 1000;
  transition: all var(--transition);
}

.header.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-primary);
  font-size: 1.85rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -0.5px;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon img {
  height: 54px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: 6px 0;
}

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

/* Botão Menu Hambúrguer Moderno & Animado */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1001;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover {
  background-color: rgba(6, 38, 68, 0.05);
}

.mobile-menu-btn:active {
  transform: scale(0.92);
}

.hamburger-box {
  width: 26px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 3px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.3s ease;
}

/* Quando ativo, transforma as 3 linhas em um X elegante */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Fundo Escuro ao Abrir Menu Mobile (Backdrop Overlay) */
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 38, 68, 0.45);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Gaveta Lateral do Menu Mobile */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--color-white);
  padding: 85px 24px 30px;
  box-shadow: -6px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

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

.mobile-nav a:not(.btn) {
  color: var(--color-primary);
  font-size: 1.125rem;
  font-weight: 600;
  padding: 12px 4px;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav a:not(.btn):hover,
.mobile-nav a:not(.btn):active {
  color: var(--color-accent);
  padding-left: 8px;
}

.mobile-nav .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  color: var(--color-white) !important;
  background-color: var(--color-primary) !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.5px !important;
  border: none !important;
  border-bottom: none !important;
  border-radius: var(--radius-sm) !important;
  padding: 0 20px !important;
  height: 48px !important;
  margin-top: 14px !important;
  text-decoration: none !important;
}

.mobile-nav .btn:hover {
  background-color: var(--color-secondary) !important;
  color: var(--color-white) !important;
}

.mobile-nav .btn:active {
  background-color: #021a30 !important;
  color: var(--color-white) !important;
  transform: scale(0.96) translateY(1px) !important;
}

/* =========================================
   CARDS
   ========================================= */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid #f1f5f9;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card-icon {
  background-color: var(--color-surface);
  color: var(--color-accent);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 24px;
  margin-bottom: 24px;
  transition: background-color var(--transition);
}

.card:hover .card-icon {
  background-color: rgba(0, 155, 219, 0.1);
}

.featuresSwiper .card {
  text-align: center;
}

.featuresSwiper .card-icon {
  margin-inline: auto;
}

/* =========================================
   FORMULÁRIOS
   ========================================= */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.875rem;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid #cbd5e1;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--color-text-main);
  transition: all var(--transition);
}

select.form-control {
  background-color: #ffffff;
  cursor: pointer;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 155, 219, 0.2);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-control::placeholder {
  color: #94a3b8;
  opacity: 0.85;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
}

.checkbox-group input {
  margin-top: 4px;
}

.checkbox-group label {
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* =========================================
   WHATSAPP FLUTUANTE
   ========================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25D366;
  color: white;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 9990;
  transition: all var(--transition);
  animation: pulseGreen 2.5s infinite;
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-float svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.5);
  color: white;
}

.whatsapp-float:active {
  transform: scale(0.92);
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* =========================================
   FOOTER E REDES SOCIAIS
   ========================================= */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 1.125rem;
  color: var(--color-white);
}

.footer-col .logo {
  color: var(--color-white);
}

.footer-col p.text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

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

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.social-btn {
  background-color: rgba(255, 255, 255, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 22px;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.social-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-3px) scale(1.08);
}

.social-btn:active {
  transform: scale(0.92);
  filter: brightness(0.9);
}

.social-btn.text-btn {
  width: auto;
  height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  font-size: 0.95rem;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   MEDIA QUERIES (RESPONSIVIDADE MÓVEL E TABLET)
   ========================================= */
@media (max-width: 992px) {
  .nav-links, .header-cta {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header {
    padding: 12px 0;
  }

  .header.scrolled {
    padding: 8px 0;
  }

  .logo {
    font-size: 1.35rem;
    gap: 8px;
  }

  .logo-icon img {
    height: 42px;
  }

  .container {
    padding: 0 18px;
  }

  section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-col .logo img {
    height: 60px !important;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 18px;
    right: 18px;
    font-size: 30px;
  }

  .whatsapp-float svg {
    width: 30px;
    height: 30px;
  }

  .form-control {
    font-size: 16px; /* Evita auto-zoom incômodo no iOS */
    padding: 12px 14px;
  }

  .btn-lg {
    height: 50px;
    padding: 0 24px;
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .logo {
    font-size: 1.15rem;
    gap: 6px;
  }

  .logo-icon img {
    height: 36px;
  }

  .container {
    padding: 0 14px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .cookie-buttons {
    flex-direction: column;
  }
}

/* =========================================
   COOKIE BANNER (LGPD)
   ========================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.5s ease-in-out;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content p {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.cookie-content a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  width: 100%;
}

.cookie-buttons .btn {
  flex: 1;
  text-align: center;
  padding: 10px;
}

@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 40px;
  }
  .cookie-content {
    max-width: 70%;
  }
  .cookie-buttons {
    width: auto;
  }
}

/* =========================================
   ANIMAÇÃO HIGHLIGHT (HERO)
   ========================================= */
.highlight-bar {
  padding-bottom: 4px;
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-size: 0% 4px;
  background-position: left bottom;
  background-repeat: no-repeat;
}

.swiper-slide-active .highlight-bar {
  animation: drawHighlight 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes drawHighlight {
  to {
    background-size: 100% 4px;
  }
}

/* =========================================
   EFEITO ZOOM EM FOTOS (DESKTOP E MOBILE)
   ========================================= */
.img-zoom-pulse-container,
.split-image,
.team-photo,
.carousel-img-card,
.profile-card {
  overflow: hidden;
}

.img-zoom-pulse-container img,
.split-image img,
.team-photo img,
.feedback-img,
.profile-image,
.carousel-img-card img,
.img-zoomable {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  will-change: transform;
}

/* Zoom ao passar o mouse (Desktop) */
@media (hover: hover) and (pointer: fine) {
  .img-zoom-pulse-container:hover img,
  .split-image:hover img,
  .team-card:hover .team-photo img,
  .feedback-img:hover,
  .profile-card:hover .profile-image,
  .carousel-img-card:hover img,
  .img-zoomable:hover {
    transform: scale(1.06);
  }
}

/* Zoom suave ao clicar/tocar (Dispositivos Móveis e Tablets) */
.img-zoom-pulse-container:active img,
.split-image:active img,
.team-card:active .team-photo img,
.feedback-img:active,
.profile-card:active .profile-image,
.carousel-img-card:active img,
.img-zoomable:active {
  transform: scale(1.05);
}

.img-zoom-pulse-container.pulsing img {
  animation: pulseZoom 2.2s infinite alternate ease-in-out;
}

@keyframes pulseZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.04); }
}

/* Micro-efeito de onda ao clicar nos botões */
.btn-ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: btnRippleAnim 0.6s linear;
  pointer-events: none;
}

@keyframes btnRippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

