/* =================================
   GLOBAL STYLES & VARIABLES
   ================================= */
:root {
  /* Nova Paleta de Cores */
  --primary-color: #005aaa; /* Azul principal da logo */
  --primary-hover-color: #004b8d;
  --accent-color: #86efac; /* Verde suave para detalhes */

  --text-dark: #111827; /* Preto suave */
  --text-light: #6b7280; /* Cinza para parágrafos */
  --bg-light: #f9fafb; /* Cinza bem claro para fundos */
  --bg-white: #ffffff;
  --border-color: #d1d5db;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --border-radius: 0.5rem; /* 8px */
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif; /* Nova Tipografia */
  background-color: var(--bg-white);
  color: var(--text-light);
  line-height: 1.7;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.hidden {
  display: none !important;
}

/* =================================
   HEADER & NAVIGATION
   ================================= */
.header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 4rem;
  width: auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-desktop a {
  font-weight: 500;
  color: var(--text-light);
}

.nav-desktop a:not(.btn):hover {
  color: var(--primary-color);
}

.nav-desktop .btn-primary {
  color: var(--bg-white);
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
}

.nav-mobile {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
  background-color: var(--bg-white);
}

.nav-mobile.open {
  max-height: 500px;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-mobile-links a {
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
  text-align: center;
}

.nav-mobile-links a:not(.btn):hover {
  background-color: var(--bg-light);
}

@media (min-width: 1024px) {
  .header-container {
    height: 6rem;
  }
  .logo-img {
    height: 5rem;
  }
  .nav-desktop {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
}

/* =================================
   BUTTONS
   ================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--primary-hover-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--bg-white);
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: #eef2ff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

@media (min-width: 640px) {
  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
  }
}

/* =================================
   HERO SECTION
   ================================= */
.hero {
  position: relative;
  min-height: 90vh; /* Aumentado para melhor visualização em mobile */
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--bg-white);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(17, 24, 39, 0.6);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.5rem; /* Ajuste fino para mobile */
  font-weight: 800;
  color: var(--bg-white);
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero .text-primary {
  color: var(--bg-white);
}

.hero p {
  font-size: 1.125rem;
  max-width: 40rem;
  margin: 1.5rem auto 0;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero .btn-secondary {
  background-color: transparent;
  color: var(--bg-white);
  border-color: var(--bg-white);
  box-shadow: none;
}

.hero .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.25rem;
  }
  .hero p {
    font-size: 1.25rem;
  }
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

/* =================================
   SECTIONS & CARDS
   ================================= */
.section {
  padding: 4rem 0;
}
.bg-light {
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3rem; /* Margem inferior reduzida */
}

.subtitle {
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 0.5rem;
}

.section-header p {
  margin-top: 1rem;
  font-size: 1.1rem; /* Ajuste fino */
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 3.5rem; /* Reduzido para mobile */
  height: 3.5rem;
  border-radius: 9999px;
  background-color: #e0f2fe;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon .service-icon-img {
  width: 1.75rem; /* Reduzido para mobile */
  height: 1.75rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Advantages */
.advantages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
}

.advantage-card {
  background-color: transparent;
  padding: 1.5rem;
}

.advantage-icon-img {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
}

.advantage-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
  .section-header h2 {
    font-size: 2.25rem;
  }
  .service-icon {
    width: 4rem;
    height: 4rem;
  }
  .service-icon .service-icon-img {
    width: 2rem;
    height: 2rem;
  }
  .service-card h3 {
    font-size: 1.5rem;
  }
  .services-grid {
    gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
  }
  .advantages-grid {
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =================================
   CLIENTS CAROUSEL
   ================================= */
.clients-carousel-container {
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.clients-carousel-track {
  display: flex;
  width: calc(250px * 20);
  animation: scroll 60s linear infinite;
}

.clients-carousel-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 10));
  }
}

.client-logo {
  width: 250px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo img {
  max-width: 150px;
  transition: transform 0.3s ease;
}

.client-logo a:hover img {
  transform: scale(1.1);
}

/* =================================
   CONTACT FORM
   ================================= */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  background-color: var(--bg-white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  max-width: 56rem;
  margin: 0 auto;
  overflow: hidden;
}

.form-group {
  position: relative;
  padding-top: 1.5rem;
  margin-bottom: 1rem;
}

.form-field {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--border-color);
  outline: 0;
  font-size: 1rem;
  color: var(--text-dark);
  padding: 7px 0;
  background: transparent;
  transition: border-color 0.2s;
}

.form-field::placeholder {
  color: transparent;
}

.form-label {
  position: absolute;
  top: 2.2rem;
  left: 0;
  font-size: 1rem;
  color: var(--text-light);
  pointer-events: none;
  transition: all 0.2s ease-out;
}

.form-field:focus {
  border-bottom-color: var(--primary-color);
}

.form-field:focus + .form-label,
.form-field:not(:placeholder-shown) + .form-label {
  top: 0;
  font-size: 0.875rem;
  color: var(--primary-color);
}

.form-group select.form-field {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  cursor: pointer;
}

.form-field:valid + .form-label {
  top: 0;
  font-size: 0.875rem;
  color: var(--primary-color);
}

.contact-info {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
}
.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.9);
}
.contact-info-item:hover {
  color: var(--bg-white);
}
.contact-info-item h4 {
  font-weight: 600;
  color: var(--bg-white);
}

@media (min-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 3fr 2fr;
    padding: 2.5rem;
  }
}

/* =================================
   MAPA
   ================================= */
.map-container {
  margin-top: 3.5rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* =================================
   FOOTER
   ================================= */
.footer {
  background-color: var(--text-dark);
  color: #cbd5e1;
}
.footer-container {
  padding-top: 1.5rem; /* Ajuste no padding */
  padding-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem; /* Aumentado para melhor espaçamento */
}
.footer .logo-img-footer {
  height: 4.5rem; /* Logo do rodapé menor */
  width: auto;
}
.footer p {
  font-size: 0.875rem;
}

.footer-text {
  text-align: center;
}

.developer-credit {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 0.5rem; /* Aumentado para melhor espaçamento */
}

.developer-credit a {
  color: #e2e8f0;
  text-decoration: underline;
  text-decoration-color: rgba(226, 232, 240, 0.5);
  transition: all 0.3s ease;
}

.developer-credit a:hover {
  color: var(--bg-white);
  text-decoration-color: var(--bg-white);
}

@media (min-width: 640px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
  .footer-text {
    text-align: right;
  }
}
