/* Variáveis CSS */
:root {
  /* Cores */
  --primary-dark: #0A1B4D;
  --primary-light: #4DA8E5;
  --accent-color: #2AB870;
  --text-dark: #333;
  --text-light: #777;
  --text-white: #FFFFFF;
  --bg-light: #F8F9FA;
  --bg-dark: #0A1B4D;
  --border-color: #DEE2E6;
  
  /* Fontes */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Montserrat', sans-serif;
  
  /* Espaçamentos */
  --section-padding: 80px 0;
  --container-width: 1200px;
  
  /* Sombras */
  --shadow-sm: 0 2px 15px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
  
  /* Bordas */
  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 15px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
  overflow-x: hidden;
}


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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* Botões */
.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent-color);
  color: var(--text-white);
  border-radius: 30px;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--accent-color);
}

.cta-button:hover {
  background-color: transparent;
  color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Cabeçalho */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  background-color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 15px 0;
  background-color: rgba(10, 27, 77, 0.95);
  backdrop-filter: blur(5px);
}

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

.logo img {
  height: 100px;
  transition: all 0.3s ease;
}

.header.scrolled .logo img {
  height: 75px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  position: relative;
  color: var(--text-white);
  font-weight: 500;
  padding: 5px 0;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-white);
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Seção Hero */
.hero {
  position: relative;
  height: 100vh;
  background: linear-gradient(rgba(10, 27, 77, 0.5), rgba(10, 27, 77, 0.2)), url('/images/hero-bg.jpg') no-repeat center center;
  background-size: cover;
  color: var(--text-white);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(10, 27, 77, 0.9), rgba(74, 168, 229, 0.2));
  z-index: 1;
}

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

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-white);
}

.word-highlight {
  color:var(--accent-color);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-bottom-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.hero-bottom-shape svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.hero-bottom-shape .shape-fill {
  fill: var(--bg-light);
}

/* Cabeçalho de Seção */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  display: block;
  font-size: 1.5rem;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.divider {
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 0 auto 20px;
  position: relative;
}

.divider::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--accent-color);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Seção Serviços */
.services {
  padding: var(--section-padding);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background-color: var(--text-white);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-light);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.service-line {
  width: 0;
  height: 3px;
  background-color: var(--accent-color);
  margin: 0 auto;
  transition: all 0.5s ease;
}

.service-card:hover .service-line {
  width: 50px;
}

/* Seção Portfólio */
.portfolio {
  padding: var(--section-padding);
  background-color: #f5f7fa;
}

.portfolio-carousel {
  padding: 20px 0 60px;
  overflow: hidden;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 350px;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-info {
  text-align: center;
  color: var(--text-white);
  padding: 20px;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-info {
  transform: translateY(0);
}

.portfolio-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.portfolio-info p {
  margin-bottom: 15px;
  opacity: 0.8;
}

.portfolio-link {
  color: var(--text-white);
  border: 1px solid var(--text-white);
  border-radius: 30px;
  padding: 8px 20px;
  display: inline-block;
  transition: all 0.3s ease;
}

.portfolio-link:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Estilos do Swiper */
.swiper-button-next, 
.swiper-button-prev {
  color: var(--primary-dark) !important;
  transition: all 0.3s ease;
}

.swiper-button-next:hover, 
.swiper-button-prev:hover {
  color: var(--accent-color) !important;
}

.swiper-pagination-bullet-active {
  background-color: var(--accent-color) !important;
}

/* Seção Contato */
.contact {
  padding: var(--section-padding);
  padding-bottom: 10px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 50px;
  align-items: var(--container-width);
}

.contact-form-wrapper {
  background-color: var(--text-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-form {
  display: grid;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(74, 168, 229, 0.2);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230A1B4D' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 16px;
}

.contact-info-wrapper {
  display: grid;
  gap: 30px;
}

.contact-info-card {
  background-color: var(--primary-dark);
  color: var(--text-white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info-card h3 i {
  color: var(--accent-color);
}

.contact-info-card p {
  opacity: 0.9;
  line-height: 1.7;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
  margin: 40px;
}

.social-links a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background-color: var(--primary-light);
  color: var(--text-white);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.form-message {
  padding: 15px;
  margin-top: 20px;
  border-radius: var(--radius-sm);
  display: none;
}

.form-message.success {
  display: block;
  background-color: rgba(42, 184, 112, 0.1);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

.form-message.error {
  display: block;
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid #dc3545;
}

/* Botão WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: var(--text-white);
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: var(--shadow-md);
  z-index: 100;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

/* Rodapé */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links h3::after,
.footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  opacity: 0.8;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-contact i {
  color: var(--accent-color);
  width: 16px;
  text-align: center;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Estilos para páginas legais */
.legal-page {
  padding: var(--section-padding);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.legal-section {
  margin-bottom: 30px;
}

.legal-section h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border-color);
}

.legal-section p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.legal-list {
  margin-left: 20px;
  margin-bottom: 15px;
}

.legal-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 15px;
}

.legal-list li::before {
  content: "•";
  color: var(--accent-color);
  position: absolute;
  left: 0;
}

.legal-update {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .legal-section h2 {
      font-size: 1.3rem;
  }
  
  .legal-page {
      padding-top: 100px;
  }
}


/* Responsividade */
@media (max-width: 1024px) {
  .contact-container {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
      display: flex;
  }
  
  .nav-links {
      position: fixed;
      top: 0;
      right: -100%;
      width: 80%;
      max-width: 300px;
      height: 100vh;
      background-color: var(--primary-dark);
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 30px;
      transition: all 0.3s ease;
      z-index: 1000;
  }
  
  .nav-links.active {
      right: 0;
  }
  
    .hero {
        padding-top: 100px; /* Adiciona espaço para o header fixo */
        height: auto;
        min-height: 100vh; /* Mantém a altura total da viewport */
    }

    .hero-content {
        padding: 40px 0; /* Adiciona espaçamento interno */
    }

    .hero h1 {
        font-size: 2rem; /* Reduz um pouco o tamanho para mobile */
        margin-top: 20px; /* Espaço extra no topo */
    }
  
  .hero p {
      font-size: 1.1rem;
  }
  
  .section-title {
      font-size: 2rem;
  }
  
  .portfolio-item {
      height: 300px;
  }
  
  .whatsapp-float {
      width: 50px;
      height: 50px;
      font-size: 25px;
  }
}

@media (max-width: 600px) {
  .footer-content {
      grid-template-columns: 1fr;
      gap: 30px;
  }
  
  .footer-links, 
  .footer-contact {
      margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  :root {
      --section-padding: 60px 0;
  }
  
  .hero h1 {
      font-size: 2rem;
  }
  
  .section-title {
      font-size: 1.75rem;
  }
  
  .service-card {
      padding: 10px;
  }
  
  .contact-form-wrapper {
      padding: 10px;
  }
  
  .footer-content {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 370px) {
  /* Ajustes para a seção de contato em telas muito pequenas */
  .contact-container {
      grid-template-columns: 1fr;
      gap: 20px;
      margin-top: 30px;
  }

  .contact-info-wrapper {
      gap: 15px;
      padding: 15px;
  }

  .contact-info-card {
      padding: 20px 15px;
      margin: 0 -15px; /* Compensa o padding do container */
  }

  .social-links {
      gap: 20px;
      margin: 20px 0;
  }
}
