/* === Reset geral: remove margens/preenchimentos padrão do navegador === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Compensa o cabeçalho fixo ao rolar até as seções */
section[id] {
  scroll-margin-top: 95px;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #0f172a;
  background: #f4f6f8;
  overflow-x: hidden;
}

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

:focus-visible {
  /* Contorno azul para quem navega pelo teclado (acessibilidade) */
  outline: 2px solid #0284c7;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header / Nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #edf0f3;
}

.nav-wrap {
  max-width: 1240px;
  margin: auto;
  padding: 24px 16px;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-link img {
  display: block;
  width: 210px;
  height: 64px;
  object-fit: contain;
}

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

.nav a {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #0f172a;
  transition: 0.2s;
}

.nav a:hover {
  color: #0284c7;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 8px;
  cursor: pointer;
}

/* As barras do ícone hambúrguer do menu mobile */
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #0f172a;
  margin: 5px auto;
  transition: 0.2s;
}

/* ---------- Layout ---------- */
.section-light {
  background: #f4f6f8;
}

.container {
  width: min(1056px, calc(100% - 48px));
  margin: auto;
}

.narrow {
  max-width: 1056px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  min-height: 520px;
}

.eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  color: #1e293b;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 68px;
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -0.045em;
  margin-bottom: 34px;
}

.hero-copy p {
  font-size: 17px;
  line-height: 1.75;
  max-width: 520px;
}

.hero-image {
  height: 420px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Services ---------- */
.services {
  padding: 24px 0;
}

.section-intro {
  max-width: 800px;
  margin-bottom: 16px;
}

.section-intro h2,
.about h2,
.contact h2 {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}

.section-intro p,
.about > div > p,
.contact > div > p {
  font-size: 17px;
  line-height: 1.75;
  max-width: 760px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  background: #e1e4e7;
  border-radius: 16px;
  padding: 20px 22px;
  min-height: 175px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.card-number {
  font-size: 16px;
  letter-spacing: 0.14em;
  color: #0284c7;
  margin-bottom: 10px;
  font-weight: 700;
}

.service-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 17px;
  line-height: 1.65;
  color: #111827;
  font-weight: 500;
}

/* ---------- Portfolio ---------- */
.portfolio {
  padding: 110px 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  height: 300px;
  overflow: hidden;
  border-radius: 14px;
  background: #dfe3e7;
}

.gallery-item.large {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

/* Ao passar o mouse na imagem da galeria, ela dá um leve zoom */
.gallery-item:hover img {
  transform: scale(1.04);
}

/* ---------- About ---------- */
.about {
  padding: 110px 0;
  background: #f4f6f8;
  color: #0f172a;
}

.clients h3 {
  font-size: 30px;
  margin-bottom: 20px;
  text-align: center;
}

.clients-logos {
  display: flex;
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: deslizarLogos 30s linear infinite;
}

.clients-logos .clients-track img {
  max-width: 140px;
  height: auto;
  opacity: 0.9;
  flex-shrink: 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* Ao passar o mouse, não para o deslize: a logo escurece a mais e dá um leve zoom */
.clients-logos:hover .clients-track img {
  opacity: 1;
}

@keyframes deslizarLogos {
  0% { transform: translateX(0); }
  8% { transform: translateX(0); }
  92% { transform: translateX(-50%); }
  100% { transform: translateX(-50%); }
}

/* ---------- Contact ---------- */
.contact {
  padding: 110px 0;
  background: #0f172a;
  color: #f4f6f8;
}

.contact .eyebrow {
  color: #c6cfdb;
}

.contact h2 {
  max-width: 850px;
}

.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 36px 0 56px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  background: #0284c7;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
}

.button:hover {
  background: #f4f6f8;
  color: #0f172a;
}

/* Botão de contato dentro do menu: mantém o estilo de botão */
.nav a.nav-contact-btn {
  color: #f4f6f8;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 14px;
  padding: 10px 18px;
}

.nav a.nav-contact-btn:hover {
  color: #0f172a;
}

.phone {
  font-size: 15px;
  text-underline-offset: 5px;
}

/* Links de redes sociais (Instagram / Facebook) ao lado do telefone */
.social {
  font-size: 15px;
  color: #c6cfdb;
  text-decoration: none;
  transition: 0.2s;
}

.social:hover {
  color: #0284c7;
}

.contact-details {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  border-top: 1px solid #c6cfdb;
  padding-top: 32px;
}

.contact-details h3 {
  font-size: 14px;
  margin-bottom: 12px;
}

.contact-details p,
.contact-details a {
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

/* ---------- Reveal (animação ao rolar) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsivo: telas pequenas (celular/tablet) ---------- */
@media (max-width: 920px) {
  .nav-wrap {
    min-height: 78px;
    padding: 20px 16px;
  }

  .logo-link img {
    width: 130px;
    height: 40px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px 28px;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    border-bottom: 1px solid #edf0f3;
  }

  .nav.open {
    display: flex;
  }

  .hero {
    padding: 55px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
  }

  .hero-copy {
    text-align: center;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-copy p {
    margin: auto;
  }

  .hero-image {
    height: 360px;
  }

  .services,
  .portfolio,
  .about,
  .contact {
    padding: 75px 0;
  }

  .section-intro {
    margin-bottom: 38px;
  }

  .section-intro h2,
  .about h2,
  .contact h2 {
    font-size: 36px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

    /* Galeria em 2 colunas em telas médias */
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item,
  .gallery-item.large {
    grid-column: span 1;
    height: 240px;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: 28px;
  }

}

/* Ajustes extras para celulares muito pequenos */
@media (max-width: 560px) {
  .container {
    width: min(100% - 32px, 1056px);
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-image {
    height: 280px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 280px;
  }

  .service-card {
    min-height: auto;
  }

  .contact-actions {
    align-items: flex-start;
    flex-direction: column;
  }

}

/* ---------- Acessibilidade: movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }

  /* Carrossel de clientes segue animado, mas mais lento */
  .clients-track {
    animation-duration: 30s !important;
  }
}
