/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Inter:wght@400;500&display=swap');

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

:root {
  --color-primary: #1E3F80;
  --color-secondary: #4A90E2;
  --color-accent: #F5A623;
  --bg-light: #FFFFFF;
  --text-dark: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base typography */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.5;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: var(--bg-light);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.logo img {
  height: 50px;
}

/* Off-canvas & Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-primary);
  z-index: 200;
}
.nav {
  position: fixed;
  top: 0; right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg-light);
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  transition: right .3s ease;
  z-index: 300;
  padding: 1rem;
  overflow-y: auto;
}
.nav.open {
  right: 0;
}
.menu-close {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  float: right;
  margin-bottom: 1rem;
}

/* Desktop nav reset */
@media (min-width: 769px) {
  .menu-toggle,
  .menu-close {
    display: none;
  }
  .nav {
    position: static;
    width: auto;
    height: auto;
    box-shadow: none;
    padding: 0;
    display: block;
    background: transparent;
  }
}

/* Nav list */
.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.nav a:hover {
  background: var(--color-secondary);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 4px;
}

/* Submenu “Serviços” */
.has-submenu {
  position: relative;
}
.has-submenu .submenu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--bg-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 4px;
  padding: .5rem 0;
  z-index: 150;
}
@media (min-width: 769px) {
  .has-submenu:hover > .submenu {
    display: block;
  }
  .submenu-icon {
    transition: transform .2s;
  }
  .has-submenu:hover .submenu-icon {
    transform: rotate(180deg);
  }
}
@media (max-width: 768px) {
  .has-submenu.open > .submenu {
    display: block;
  }
}

.hero-content {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero */
.hero {
  height: 100vh;
  background: url('../assets/images/hero.png') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 70px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1rem;
}
.hero-content h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  margin-bottom: 0.5rem;
}
.hero-content p {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  color: #fff;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

/* Services */
.services {
  padding: 4rem 0;
  background: #fff;
}
.services h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: var(--color-primary);
  text-align: center;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.service-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform .2s;
}
.service-item:hover {
  transform: translateY(-5px);
}
.service-item i {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: .75rem;
}
.service-item h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-top: .5rem;
}
.service-item p {
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
}
/* Remove underline from service links */
.services-grid a {
  text-decoration: none !important;
  color: inherit !important;
}
.services-grid a h3,
.services-grid a p {
  color: var(--color-primary) !important;
}

/* Testimonials */
.testimonials {
  position: relative;
  background: url('../assets/images/testimonials-banner.png') center/cover no-repeat;
  background-size: cover;
  padding: 6rem 0;
  overflow: hidden;
}
.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}
.testimonials h2 {
  position: relative;
  z-index: 2;
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  text-align: center;
  margin-bottom: 2rem;
}
.swiper-slide {
  background: rgba(255,255,255,0.9);
  color: #333;
  font-family: 'Inter', sans-serif;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Contact */
.contact {
  padding: 4rem 0;
}
.contact h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 2rem;
}
.contact-info {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  margin-bottom: 1.5rem;
}
.contact-info a {
  color: var(--color-secondary);
}
.map {
  margin-bottom: 2rem;
}
.contact form {
  display: grid;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}
.contact input,
.contact textarea {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: .9rem;
}
.contact button {
  background: var(--color-secondary);
  color: #fff;
  font-family: 'Inter', sans-serif;
  padding: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Certifications & Partners */
.certs-logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.certs-logos-grid .cert-item img {
  max-width: 300px;
  max-height: 79px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.certifications h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
  font-family: 'Inter', sans-serif;
}

.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: none;
  padding: 0;
  z-index: 9999;
  cursor: pointer;
  transition: transform .2s ease;
}

.whatsapp-btn i {
  font-size: 48px;   /* tamanho do ícone */
  color: #25D366;    /* cor oficial do WhatsApp */
}

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

.whatsapp-btn img,
.whatsapp-btn .fa-whatsapp {
  display: block;
  width: 48px;           /* ajuste ao tamanho desejado */
  height: 48px;
  object-fit: contain;
}

/* Efeito hover: leve zoom no ícone */
.whatsapp-btn:hover {
  transform: scale(1.1);
}


/* Remove underline no link do WhatsApp */
.whatsapp-btn {
  text-decoration: none !important; /* força sem underline */
  display: inline-block;            /* garante que o link seja tratado como bloco */
}

/* Se você quiser ainda mais garantia, desative no <img> também */
.whatsapp-btn img {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav ul {
    display: block;
  }
  .nav a {
    display: flex;
    align-items: center;
    gap: .5rem;
  }
  .nav ul li {
    margin: .5rem 0;
  }
  .has-submenu.open > .submenu {
    display: block;
  }
}
/* 1. Mostrar o botão de fechar no mobile */
@media (max-width: 768px) {
  .menu-close {
    display: block;
  }
}


/* escondido por padrão */
.has-submenu .submenu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--bg-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 4px;
  padding: .5rem 0;
  z-index: 150;
}
@media (max-width: 768px) {
  /* mostra o “X” de fechar */
  .menu-close {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    cursor: pointer;
  }
}
.service-detail {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.detail-text {
  flex: 1 1 300px;
}
.detail-image {
  flex: 1 1 300px;
  text-align: center;
}
.detail-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
/* Service Detail: texto + imagem lado a lado */
.service-detail {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;           /* empilha no mobile */
  margin-bottom: 4rem;
}

/* texto ocupa metade do espaço mínimo */
.detail-text {
  flex: 1 1 300px;
}

/* imagem ocupa até metade, mas no máximo 400px */
.detail-image {
  flex: 0 1 400px;
}
.detail-image img {
  width: 100%;
  max-width: 400px;          /* Não fique maior que isso */
  height: auto;
  display: block;
  border-radius: 8px;
}
/* Mobile: mostra o botão de fechar e posiciona por cima */
@media (max-width: 768px) {
  .menu-close {
    display: block;            /* garante visibilidade */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 400;              /* acima de tudo */
    cursor: pointer;
  }

  /* Quando aberto, o nav ocupa toda a largura */
  .nav {
    right: -100%;
  }
  .nav.open {
    right: 0;
  }
}
/* ===== Service Detail “O que inclui” ===== */
.service-detail {
  /* Garante o mesmo padding/margem das outras seções, se quiser */
  padding: 4rem 0;
  background: #fff;
}

/* Título “O que inclui” */
.service-detail h2 {
  font-family: 'Poppins', sans-serif;        /* mesma família */
  font-size: 2rem;                           /* mesmo tamanho dos h2 */
  color: var(--color-primary);               /* mesma cor primária */
  text-align: center;                        /* centralizado como os outros */
  margin-bottom: 2rem;                       /* espaçamento igual */
}

/* Texto e itens da lista */
.service-detail p,
.service-detail ul li {
  font-family: 'Inter', sans-serif;          /* mesma família do corpo */
  font-size: 1rem;                           /* ajuste de tamanho */
  color: var(--text-dark);                   /* mesma cor de texto */
  line-height: 1.6;                          /* legibilidade */
}

/* Lista com marcadores padronizados */
.service-detail ul {
  list-style: disc inside;
  max-width: 600px;
  margin: 0 auto 2rem;                      /* centraliza e espaça */
  padding-left: 0;                           /* retirou recuo extra */
}
/* Avatar circular nos depoimentos */
.testimonial-author {
  text-align: center;
  margin-bottom: 1rem;
}
.testimonial-author img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-accent);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* === Certificações & Parceiros: Grid responsivo e hover interativo === */
.certs-logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* centraliza na horizontal */
  align-items: center;      /* centraliza na vertical */
  gap: 2rem;                /* espaço uniforme entre os itens */
  padding: 2rem 0;
}

.certs-logos-grid .cert-item {
  flex: 1 1 150px;          /* cada item ocupa pelo menos 150px */
  max-width: 300px;         /* não ultrapassa 300px */
  text-align: center;
  transition: transform .3s ease, filter .3s ease;
}

.certs-logos-grid .cert-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: inline-block;
}

/* Hover: zoom leve + brilho */
.certs-logos-grid .cert-item:hover {
  transform: scale(1.05);
  filter: brightness(1.1) drop-shadow(0 4px 10px rgba(0,0,0,0.15));
  cursor: pointer;
}

/* Ajustes para telas muito pequenas */
@media (max-width: 480px) {
  .certs-logos-grid {
    gap: 1rem;
  }
  .certs-logos-grid .cert-item {
    flex: 1 1 120px;
    max-width: 200px;
  }
}
