/* ============================================= */
/* 1. VARIÁVEIS GLOBAIS E ESTILOS DE BASE        */
/* ============================================= */
:root {
  /* Paleta de Cores */
  --clr-primary: #0056b3; /* Um azul mais forte para ações */
  --clr-accent: #25d366; /* Verde do WhatsApp */
  --clr-text-dark: #3a3a3a;
  --clr-text-light: #f8f9fa;
  --clr-bg-light: #ffffff;
  --clr-bg-medium: #f8f9fa;
  --clr-bg-dark: #3a3a3a;
  --clr-border: #e5e7eb;

  /* Tipografia */
  --font-body: "Roboto Condensed", sans-serif;

  /* Estilos Consistentes */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition-fast: 0.2s ease-in-out;
  --transition-medium: 0.3s ease-in-out;

  /* Layout */
  --container-width: 1200px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--clr-text-dark);
  background-color: var(--clr-bg-light);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--clr-primary);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

/* ============================================= */
/* 2. HEADER E NAVEGAÇÃO                         */
/* ============================================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 5%;
  border-bottom: 2px solid var(--clr-border);
  background-color: var(--clr-bg-medium);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.logo {
  height: 12vh; /* Altura fixa para consistência */
}

.menu ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

.menu a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--clr-text-dark);
  transition: color var(--transition-fast);
}

.menu a:hover {
  color: var(--clr-primary);
}

#menu-hamburguer {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1500;
}

/* ============================================= */
/* 3. SEÇÕES PRINCIPAIS (Início, Sobre, etc.)    */
/* ============================================= */
main section {
  padding: 80px 5%;
}

#inicio {
  padding-top: 40px;
  padding-bottom: 40px;
}

.apresentation {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-medium);
  width: 90%;
  margin: 0 auto;
}

.apresentation:hover {
  transform: scale(1.03);
}

#servicos {
  background-color: var(--clr-bg-medium);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--clr-text-dark);
  max-width: 600px;
  margin: 0 auto 50px auto;
}

.servicos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.servico-card {
  background-color: var(--clr-bg-light);
  border: 1px solid var(--clr-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-medium),
    box-shadow var(--transition-medium);
  padding: 5px;
}

.servico-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.servico-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 15px;
}

.servico-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.servico-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.servico-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 400;
  flex-grow: 1;
  margin-bottom: 20px;
}

.btn-servico {
  display: inline-block;
  background-color: var(--clr-primary);
  color: var(--clr-text-light);
  padding: 12px 20px;
  font-weight: 700;
  border-radius: var(--border-radius);
  margin-top: auto;
  transition: background-color var(--transition-fast);
}

.btn-servico:hover {
  background-color: #004182; /* Variação do azul primário */
}

#sobre {
  display: flex;
  gap: 60px;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
}

#sobre img {
  flex: 1;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  max-width: 500px;
}

#sobre .sobre-content {
  flex: 1.2;
}

#sobre-title {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.sobre-p {
  font-size: 1.1rem;
  font-weight: 400;
  text-align: justify;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.destaques {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.destaques li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 500;
}

.destaques i {
  color: var(--clr-primary);
  font-size: 1.5rem;
}
/* ============================================= */
/* 4. ESTILOS DA SEÇÃO PORTFÓLIO (CARROSSEL)        */
/* ============================================= */
#portfolio {
  padding: 80px 0; /* Padding vertical, sem padding lateral */
  background-color: var(--clr-bg-medium);
  margin: 50px 0;
}

.mySwiper {
  width: 90%; /* O carrossel ocupa 90% da largura da tela */
  max-width: var(
    --container-width
  ); /* Mas não passa da largura máxima do site */
  padding-top: 20px;
  padding-bottom: 50px; /* Espaço para a paginação */
}

.swiper-slide {
  background-position: center;
  background-size: cover;
  width: 320px; /* Largura de cada slide */
  height: 500px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative; /* Necessário para a legenda */
}

.swiper-slide img {
  display: block;
  width: 100%;
  max-height: 500px;
  height: auto; /* Altura fixa para todos os slides */
  object-fit: contain; /* Garante que a imagem cubra sem distorcer */
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--clr-text-light);
  padding: 10px;
  text-align: center;
  font-weight: 500;
  box-sizing: border-box;
}

/* Estilizando as setas e bolinhas do Swiper */
.swiper-pagination-bullet-active {
  background-color: var(--clr-primary) !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--clr-primary) !important;
  background-color: rgba(255, 255, 255, 0.7);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.5rem !important;
  font-weight: 900;
}

/* ============================================= */
/* 5. CTA E FORMULÁRIO                           */
/* ============================================= */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 3rem;
  background-color: var(--clr-bg-dark);
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
}

.cta-text h2,
.cta-text a {
  color: var(--clr-text-light);
}

.cta-text .entre-contato {
  font-size: 2rem;
  font-style: italic;
  margin: 0;
  line-height: 1.3;
}

.button-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.5rem;
  border: 2px solid var(--clr-text-light);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: background-color var(--transition-fast),
    color var(--transition-fast);
}

.button-whatsapp:hover {
  background-color: var(--clr-text-light);
  color: var(--clr-bg-dark);
}

.cta-divider h2 {
  color: var(--clr-text-light);
  font-size: 1.5rem;
}

.form-section label {
  font-weight: 600;
  color: var(--clr-text-light);
  margin-bottom: 0.5rem;
  display: block;
}

.form-section input,
.form-section textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--clr-border);
  border-radius: 6px;
  background-color: #e3e3e3;
  color: var(--clr-text-dark);
  font-family: var(--font-body);
}

.form-section form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-section button {
  align-self: flex-end;
  padding: 0.8rem 1.5rem;
  border: none;
  background-color: var(--clr-bg-medium);
  color: var(--clr-text-dark);
  font-weight: bold;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.form-section button:hover {
  background-color: var(--clr-text-light);
}

/* ============================================= */
/* 6. SEÇÃO DE CONTATO E FOOTER                  */
/* ============================================= */
#contato {
  max-width: var(--container-width);
  margin: 0 auto;
}

.contato-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.info-bloco {
  border: 1px solid var(--clr-border);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.info-bloco .icon-wrapper {
  font-size: 2rem;
  background-color: var(--clr-text-dark);
  color: var(--clr-text-light);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.info-bloco h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.info-bloco p,
.info-bloco address {
  line-height: 1.6;
}

.info-bloco address a {
  color: var(--clr-text-dark);
  transition: color var(--transition-fast);
}
.info-bloco address a:hover {
  color: var(--clr-primary);
}

.redes-sociais {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  font-size: 2rem;
  margin-top: 1rem;
}

.redes-sociais a {
  color: var(--clr-text-dark);
  transition: color var(--transition-fast), transform var(--transition-fast);
}
.redes-sociais a:hover {
  color: var(--clr-primary);
  transform: translateY(-3px);
}

.whatsapp-flutuante {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background-color: var(--clr-accent);
  color: var(--clr-text-light);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-medium);
}
.whatsapp-flutuante i {
  font-size: 2.5rem;
  color: inherit;
}
.whatsapp-flutuante:hover {
  transform: scale(1.1) rotate(10deg);
}

.footer {
  padding: 2rem 5%;
  background-color: var(--clr-border);
  text-align: center;
}

.footer-nav ul {
  display: flex;
  justify-content: center;
  gap: 32px;
  list-style: none;
  margin-bottom: 1rem;
}
.footer-nav a {
  font-weight: 500;
}
.footer-nav a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--clr-text-dark);
}

/* ============================================= */
/* 6. DESIGN RESPONSIVO                          */
/* ============================================= */

/* BREAKPOINT PARA TABLETS E TELAS MÉDIAS (até 992px) */
/* -------------------------------------------------- */
@media (max-width: 992px) {
  /* Layouts de Grade e Flex */
  .servicos-container,
  .contato-container {
    /* Muda para 2 colunas */
    grid-template-columns: repeat(2, 1fr);
  }

  #sobre {
    flex-direction: column;
    text-align: center;
  }

  #sobre .section-title {
    text-align: center;
  }

  .cta {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .form-section button {
    align-self: center;
  }
}

/* BREAKPOINT PARA CELULARES (até 768px) */
/* --------------------------------------- */
@media (max-width: 768px) {
  /* Estilos Gerais */
  main section {
    padding: 60px 5%;
  }

  .section-title,
  #sobre-title {
    font-size: 2rem;
  }

  /* Header e Menu Mobile */
  .header .menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1200;
  }

  .header .menu.active {
    display: flex;
  }

  .header .menu.active ul {
    flex-direction: column;
    gap: 2rem;
  }

  .header .menu.active a {
    font-size: 2rem;
  }

  #menu-hamburguer {
    display: block;
  }

  .logo {
    height: 50px;
  }

  /* Layouts de Grade e Flex para Celular */
  .servicos-container,
  .contato-container {
    /* Muda para 1 coluna */
    grid-template-columns: 1fr;
  }

  #sobre img {
    width: 80%;
    max-width: 350px;
    margin: 0 auto 2rem auto;
  }

  .cta {
    width: 90%;
    padding: 2rem;
  }

  /* Botão Flutuante */
  .whatsapp-flutuante {
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-flutuante i {
    font-size: 2rem;
  }

  /* Rodapé */
  .footer {
    height: auto;
    padding: 2rem 5%;
  }

  .footer-nav ul {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
}
