/* ══════════════════════════════════════════════════════════
   style.css — folha de estilos global do template
══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:           #1B2A6B;
  --yellow:         #F5C200;
  --white:          #FFFFFF;
  --overlay-navy:   rgba(27, 42, 107, 0.65);
  --overlay-yellow: rgba(245, 194, 0, 0.70);
  --overlay-white:  rgba(255, 255, 255, 0.75);
  --radius-card:    16px;
  --radius-btn:     50px;
  --font:           'Poppins', sans-serif;
  --shadow-card:    0 4px 20px rgba(0,0,0,0.10);
  --max-w:          1200px;

  /* ── sistema de espaçamento fixo ── */
  --sp-section:        72px;
  --sp-title-to-text:  24px;
  --sp-text-to-action: 40px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
}

/* ── UTILITIES ── */
.container   { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 36px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s, opacity 0.18s;
  letter-spacing: 0.04em;
}
.btn:hover       { transform: translateY(-2px); opacity: 0.92; }
.btn-primary     { background: var(--yellow); color: var(--navy); }
.btn-outline     { background: transparent; color: var(--yellow); border: 2px solid var(--yellow); }
.btn-dark        { background: var(--navy); color: var(--yellow); }

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}
nav { display: flex; align-items: center; gap: 4px; }
nav a {
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  transition: color 0.15s;
}
nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 12px; right: 12px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
}
nav a:hover { color: var(--yellow); }
.header-cta { margin-left: 16px; }

/* hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px; transition: all 0.25s;
}
.nav-mobile { display: none; }

/* ── HERO ── */
.hero {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1a2744;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0d1a3a 0%, #1B2A6B 50%, #2a3d8a 100%);
  background-size: cover;
  background-position: center;
}
.hero-featured-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: var(--overlay-navy);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--sp-section) 24px;
  max-width: 860px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: var(--sp-title-to-text);
}
.hero p {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.88);
  margin-bottom: var(--sp-text-to-action);
  font-weight: 400;
  line-height: 1.6;
}

/* ── IMAGE PLACEHOLDER ── */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #c8cfe8 0%, #a0aacc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.6;
  letter-spacing: 0.04em;
}
.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* ── SECTION BASE ── */
section { width: 100%; }

.section-white  { background: var(--white); }
.section-yellow { background: var(--yellow); }
.section-navy   { background: var(--navy); }

/* padding uniforme em todas as seções */
.section-pad { padding: var(--sp-section) 0; }

/* ── TYPOGRAPHY SYSTEM ── */
.section-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: var(--sp-title-to-text);
}
.section-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto var(--sp-text-to-action);
}

/* ── COLOR MODIFIERS ── */
.on-navy .section-title  { color: var(--yellow); }
.on-navy .section-sub    { color: rgba(255,255,255,0.85); }
.on-navy p               { color: rgba(255,255,255,0.85); }
.on-yellow .section-title { color: var(--navy); }
.on-yellow .section-sub   { color: var(--navy); }

/* ── FAQ SECTIONS ── */
.faq-section {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.faq-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0d1a3a 0%, #1B2A6B 100%);
  background-size: cover;
  background-position: center;
}
.faq-overlay-navy   { position: absolute; inset: 0; background: var(--overlay-navy); }
.faq-overlay-yellow { position: absolute; inset: 0; background: var(--overlay-yellow); }
.faq-overlay-white  { position: absolute; inset: 0; background: var(--overlay-white); }

.faq-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: var(--sp-section) 24px;
  max-width: 760px;
}
.faq-content .section-title { margin-bottom: var(--sp-title-to-text); }
.faq-content p { font-size: 16px; line-height: 1.7; margin: 0; }

.faq-navy   .faq-content .section-title { color: var(--yellow); }
.faq-navy   .faq-content p              { color: var(--white); }
.faq-yellow .faq-content .section-title { color: var(--navy); }
.faq-yellow .faq-content p              { color: var(--navy); }
.faq-white  .faq-content .section-title { color: var(--navy); }
.faq-white  .faq-content p              { color: var(--navy); }

/* ── CTA SECTIONS ── */
.cta-section {
  padding: var(--sp-section) 24px;
  text-align: center;
}
.cta-section .section-title { margin-bottom: var(--sp-title-to-text); }
.cta-section p {
  font-size: 16px;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto var(--sp-text-to-action);
}

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 0;
  margin-bottom: 0;
}
/* Centraliza o último card quando ele fica sozinho em uma linha */
.cards-grid > .card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 12px);
}
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.card-label {
  padding: 18px 16px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  margin: 0;
  line-height: 1.3;
}
.cards-cta { text-align: center; margin-top: var(--sp-text-to-action); }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  padding: var(--sp-section) 24px 40px;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 28px;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.footer-contact-item {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
  line-height: 1.5;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-link-heading {
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--yellow); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.10);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  transition: transform 0.2s;
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { display: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }

  .nav-mobile.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    padding: 16px 24px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 99;
    gap: 4px;
  }
  .nav-mobile a {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(27,42,107,0.08);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .nav-mobile .btn { margin-top: 12px; width: 100%; text-align: center; }

  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-content { padding: 48px 16px; }
  .hero     { height: auto; min-height: 420px; }
  .hero-sm  { height: auto; min-height: 220px; }
}

/* ── CONTATO BLOCO (páginas de serviço) ── */
.contato-bloco {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: var(--sp-title-to-text);
}
.contato-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  background: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s, box-shadow 0.18s;
}
.contato-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}
.contato-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--navy);
}

/* ── FAQ LISTA (páginas de serviço) ── */
.faq-lista {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.faq-item { text-align: center; }
.faq-pergunta {
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--sp-title-to-text);
  line-height: 1.3;
}
.faq-resposta {
  font-size: 16px;
  line-height: 1.8;
  color: var(--navy);
  opacity: 0.85;
}

@media (max-width: 768px) {
  .contato-bloco { flex-direction: column; align-items: center; gap: 16px; }
  .contato-link  { width: 100%; justify-content: center; }
}

/* ── BAIRROS LISTA (páginas de região) ── */
.bairros-lista {
  font-size: 15px;
  line-height: 1.9;
  color: var(--navy);
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.85;
}

/* ── HERO PEQUENO (contatos) ── */
.hero-sm { height: 280px; }
.hero-sm .hero-content { padding: 56px 24px; }
.hero-sm h1 { font-size: clamp(24px, 4vw, 40px); }

/* ── CONTATOS GRID ── */
.contatos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.contato-card {
  background: var(--white);
  border: 0.5px solid rgba(27,42,107,0.12);
  border-radius: var(--radius-card);
  padding: 36px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contato-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.contato-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(27,42,107,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.contato-card-icon svg {
  width: 26px;
  height: 26px;
  color: var(--navy);
}
.contato-card-icon--whatsapp {
  background: rgba(37,211,102,0.12);
}
.contato-card-icon--whatsapp svg {
  color: #25D366;
}
.contato-card-titulo {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  opacity: 0.5;
  margin-bottom: 10px;
}
.contato-card-valor {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.15s;
}
a.contato-card-valor:hover { color: var(--yellow); }
.contato-card-valor--text {
  font-weight: 400;
  font-size: 15px;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .contatos-grid { grid-template-columns: 1fr; }
}
