/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  scroll-padding-top: 72px; /* compensa a navbar fixa em âncoras */
}
body {
  font-family: 'Montserrat', sans-serif;
  color: #222;
  background: #fff;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =============================================
   VARIÁVEIS DE COR
============================================= */
:root {
  --blue:       rgb(21, 44, 120);
  --blue-dark:  rgb(14, 30, 85);
  --blue-light: rgb(30, 60, 160);
  --white:      #ffffff;
  --gray-light: #f4f6fb;
  --gray-mid:   #e2e6f0;
  --gray-text:  #555;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(21,44,120,.12);
}

/* =============================================
   UTILITÁRIOS
============================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: .5rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--gray-text);
  margin-bottom: 2.5rem;
  max-width: 560px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all .25s;
  border: none;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(21,44,120,.35); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--blue); }
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,211,102,.4); }

/* =============================================
   NAVEGAÇÃO
============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background .35s, box-shadow .35s;
  padding: 0;
}
#navbar.scrolled {
  background: var(--blue-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo img { height: 48px; width: auto; }
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--white);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .5px;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--white);
  transition: width .25s;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: #25D366;
  color: var(--white) !important;
  padding: .5rem 1.2rem;
  border-radius: 50px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: #1ebe5a !important; }
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--blue-dark);
  padding: 1.5rem 2rem;
  z-index: 999;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

/* =============================================
   HERO
============================================= */
#home {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* iOS Safari: exclui a barra de endereço */
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease, transform 8s ease;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(14,30,85,.82) 0%,
    rgba(21,44,120,.65) 60%,
    rgba(21,44,120,.2) 100%
  );
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-top: 72px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}
.hero-title span { color: #7ec8ff; }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.85);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero – transição de texto */
#hero-badge,
#hero-title,
#hero-subtitle {
  transition: opacity .4s ease, transform .4s ease;
}
#hero-badge.text-fade,
#hero-title.text-fade,
#hero-subtitle.text-fade {
  opacity: 0;
  transform: translateY(8px);
}

/* Hero – dots */
.hero-dots {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .6rem;
  z-index: 2;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: 2px solid rgba(255,255,255,.6);
  cursor: pointer;
  padding: 0;
  transition: background .3s, transform .3s;
  position: relative; /* para pseudo-elemento de toque */
}
/* área de toque mínima de 44×44px (WCAG) */
.hero-dot::after {
  content: '';
  position: absolute;
  inset: -17px;
}
.hero-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* Hero – setas */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: 2.2rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background .25s, transform .25s;
  padding: 0;
}
.hero-arrow:hover {
  background: rgba(255,255,255,.3);
  transform: translateY(-50%) scale(1.1);
}
.hero-prev { left: 1.5rem; }
.hero-next { right: 1.5rem; }
@media (max-width: 600px) {
  .hero-arrow { width: 38px; height: 38px; font-size: 1.6rem; }
  .hero-prev  { left: .75rem; }
  .hero-next  { right: .75rem; }
}

/* =============================================
   SOBRE NÓS
============================================= */
#sobre {
  padding: 96px 0;
  background: var(--white);
}
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.sobre-imgs {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: 1fr 1fr auto;
  gap: 12px;
  height: auto;
  margin-top: 2.5rem;
}
.sobre-img-main {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.sobre-img-accent {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease .2s, transform .8s ease .2s;
}
.sobre-img-third {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease .4s, transform .8s ease .4s;
}
.sobre-img-bottom {
  grid-column: 1 / 3;
  grid-row: 3;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease .55s, transform .8s ease .55s;
}
/* quando o bloco entra na viewport */
.sobre-imgs.visivel .sobre-img-main,
.sobre-imgs.visivel .sobre-img-accent,
.sobre-imgs.visivel .sobre-img-third,
.sobre-imgs.visivel .sobre-img-bottom {
  opacity: 1;
  transform: translateY(0);
}
.sobre-tag {
  display: inline-block;
  background: var(--gray-light);
  color: var(--blue);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.sobre-text p {
  color: var(--gray-text);
  line-height: 1.9;
  margin-bottom: 1.2rem;
  font-size: .95rem;
}
.diferenciais {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.diferencial {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: 1rem;
  background: var(--gray-light);
  border-radius: var(--radius);
}
.diferencial-icon {
  width: 40px; height: 40px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}
.diferencial-text strong { display: block; font-size: .9rem; color: var(--blue); margin-bottom: .2rem; }
.diferencial-text span { font-size: .8rem; color: var(--gray-text); }

/* Estatísticas na seção Sobre Nós */
.sobre-stats {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.sobre-stat {
  flex: 1;
  min-width: 100px;
  background: var(--blue);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  text-align: center;
  color: var(--white);
}
.sobre-stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}
.sobre-stat-label {
  font-size: .72rem;
  opacity: .85;
  margin-top: .3rem;
  line-height: 1.3;
}

/* =============================================
   GALERIA / PROJETOS
============================================= */
#projetos {
  padding: 96px 0;
  background: var(--gray-light);
}
.projetos-header {
  text-align: center;
  margin-bottom: 3rem;
}
.projetos-header .section-subtitle { margin: .5rem auto 0; }
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: .6rem 1.5rem;
  border-radius: 50px;
  border: 2px solid var(--blue);
  background: transparent;
  color: var(--blue);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: all .2s;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--blue);
  color: var(--white);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--gray-mid);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14,30,85,.8) 100%);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span {
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
}
.gallery-item[data-cat] { transition: opacity .3s, transform .3s; }
.gallery-item.hidden { display: none; }

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.9);
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0,0,0,.5);
}
.lb-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lb-close:hover { background: rgba(255,255,255,.3); }
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 50px; height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lb-nav:hover { background: rgba(255,255,255,.3); }
#lb-prev { left: 1.5rem; }
#lb-next { right: 1.5rem; }

/* =============================================
   LOCALIZAÇÃO
============================================= */
#localizacao {
  padding: 96px 0;
  background: var(--white);
}
.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
}
.loc-info .section-subtitle { margin-bottom: 2rem; }
.loc-details { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 2rem; }
.loc-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--gray-light);
}
.loc-detail-icon {
  width: 44px; height: 44px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.loc-detail strong { display: block; font-size: .95rem; color: var(--blue); margin-bottom: .2rem; }
.loc-detail span { font-size: .88rem; color: var(--gray-text); line-height: 1.5; }
.map-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 420px;
}
.map-wrapper iframe { width: 100%; height: 100%; border: 0; }

/* =============================================
   CONTATO
============================================= */
#contato {
  padding: 96px 0;
  background: var(--blue);
}
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}
.contato-info .section-title { color: var(--white); }
.contato-info .section-subtitle { color: rgba(255,255,255,.75); }
.contato-items { display: flex; flex-direction: column; gap: 1.2rem; }
.contato-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,.9);
}
.contato-item-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contato-item strong { display: block; font-size: .9rem; }
.contato-item span { font-size: .85rem; opacity: .8; }

/* Formulário */
.contact-form {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 1.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: .85rem 1rem;
  border: 2px solid var(--gray-mid);
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  color: #222;
  transition: border .2s;
  outline: none;
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; justify-content: center; font-size: 1rem; padding: 1rem; border-radius: var(--radius); }
.form-success {
  display: none;
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  margin-top: 1rem;
}

/* =============================================
   FAQ
============================================= */
#faq {
  padding: 96px 0;
  background: var(--white);
}
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.faq-item {
  border: 1px solid var(--gray-mid);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .25s;
}
.faq-item:focus-within,
.faq-item.open {
  box-shadow: 0 4px 20px rgba(21,44,120,.1);
  border-color: var(--blue);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--blue);
  text-align: left;
  transition: background .2s;
}
.faq-question:hover { background: var(--gray-light); }
.faq-icon {
  flex-shrink: 0;
  transition: transform .3s ease;
  color: var(--blue);
  font-size: .85rem;
}
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s;
  padding: 0 1.5rem;
}
.faq-answer p {
  color: var(--gray-text);
  font-size: .9rem;
  line-height: 1.8;
  padding-bottom: 1.2rem;
}

@media (max-width: 768px) {
  .faq-question { font-size: .88rem; padding: 1rem 1.2rem; }
}
@media (max-width: 480px) {
  .faq-question { font-size: .85rem; padding: .9rem 1rem; }
}

/* =============================================
   FOOTER
============================================= */
footer {
  background: var(--blue-dark);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo img { height: 40px; }
.footer-copy {
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  text-align: center;
}
.footer-social { display: flex; gap: .75rem; }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .95rem;
  transition: background .2s;
}
.footer-social a:hover { background: rgba(255,255,255,.25); }

/* =============================================
   WHATSAPP FLUTUANTE
============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 62px; height: 62px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 32px rgba(37,211,102,.65);
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37,211,102,.3);
  animation: pulse-wpp 2s infinite;
}
@keyframes pulse-wpp {
  0%   { transform: scale(1); opacity: 1; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* =============================================
   RESPONSIVIDADE
============================================= */

/* ── Tablet largo (≤ 1024px) ── */
@media (max-width: 1024px) {
  #sobre, #projetos, #localizacao, #contato, #faq { padding: 72px 0; }

  /* Nav: reduz gap para caber todos os links */
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: .82rem; }
  .nav-cta { padding: .45rem 1rem; }

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

  .sobre-grid,
  .loc-grid,
  .contato-grid { grid-template-columns: 1fr; gap: 3rem; }

  /* texto primeiro, imagens depois */
  .sobre-text { order: 1; }
  .sobre-imgs  { order: 2; margin-top: 0; }
  .sobre-img-main   { min-height: 240px; }
  .sobre-img-accent,
  .sobre-img-third  { height: 150px; }
  .sobre-img-bottom { height: 160px; }
}

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablet / Mobile (≤ 768px) ── */
@media (max-width: 768px) {
  #sobre, #projetos, #localizacao, #contato, #faq { padding: 60px 0; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .section-subtitle { max-width: 100%; }

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

  .sobre-stats { gap: 0.75rem; }
  .sobre-stat  { padding: 0.9rem 1rem; }

  .filter-btn { font-size: .82rem; padding: .5rem 1.1rem; }

  .contato-grid { gap: 2rem; }
  .contact-form { padding: 2rem; }

  .form-row { grid-template-columns: 1fr; }

  /* Previne zoom automático em inputs no iOS Safari */
  .form-group input,
  .form-group textarea,
  .form-group select { font-size: 1rem; }

  .map-wrapper { height: 300px; }

  /* Overlay mais opaco para melhor leitura no mobile */
  .hero-overlay {
    background: linear-gradient(
      160deg,
      rgba(14,30,85,.90) 0%,
      rgba(21,44,120,.75) 60%,
      rgba(21,44,120,.30) 100%
    );
  }

  .hero-dots { bottom: 4rem; }

  .footer-inner { justify-content: center; text-align: center; }
  .footer-copy  { font-size: .78rem; }
}

/* ── Lightbox em telas médias/pequenas (≤ 640px) ── */
@media (max-width: 640px) {
  #lightbox img {
    max-width: 94vw;
    max-height: 72vh;
  }
  .lb-nav {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  #lb-prev { left: .4rem; }
  #lb-next { right: .4rem; }
  .lb-close {
    top: .75rem;
    right: .75rem;
    width: 38px;
    height: 38px;
  }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {
  #sobre, #projetos, #localizacao, #contato, #faq { padding: 48px 0; }

  .container { padding: 0 16px; }

  /* Hero */
  .hero-content { padding-left: 4px; padding-right: 4px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; width: 100%; }
  .hero-dots { bottom: 3rem; }

  /* Galeria: 2 colunas */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Sobre — imagens menores */
  .sobre-img-main   { min-height: 180px; }
  .sobre-img-accent,
  .sobre-img-third  { height: 115px; }
  .sobre-img-bottom { height: 120px; }
  .sobre-imgs       { gap: 8px; }

  /* Diferenciais — 1 coluna no mobile */
  .diferenciais { grid-template-columns: 1fr; }

  /* Stats menores */
  .sobre-stat-number { font-size: 1.55rem; }
  .sobre-stat        { padding: .75rem .8rem; }
  .sobre-stats       { gap: .5rem; }

  /* Localização */
  .loc-grid    { gap: 2rem; }
  .map-wrapper { height: 250px; }

  /* Formulário */
  .contact-form { padding: 1.5rem; border-radius: 12px; }
  .contact-form h3 { font-size: 1.1rem; margin-bottom: 1.2rem; }

  /* Footer */
  .footer-inner    { flex-direction: column; gap: 1rem; }
  .footer-logo img { height: 32px; }

  /* Filtros mais compactos */
  .filter-btn { font-size: .8rem; padding: .45rem 1rem; }
}

/* ── Mobile muito pequeno (≤ 360px) ── */
@media (max-width: 360px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .filter-tabs  { gap: .4rem; }
  .filter-btn   { font-size: .75rem; padding: .4rem .75rem; }
  .sobre-stats  { flex-direction: column; }
  .sobre-stat   { width: 100%; }
  .hero-title   { font-size: clamp(1.9rem, 8vw, 2.4rem); }
}
