/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --azul:       #0A2D64;
  --azul-med:   #1246A8;
  --azul-claro: #E8F0FB;
  --verde:      #25D366;
  --verde-dark: #1aab52;
  --amarelo:    #FFC300;
  --cinza-bg:   #f7f9fc;
  --cinza-txt:  #4a5568;
  --branco:     #ffffff;
  --sombra:     0 4px 24px rgba(10,45,100,.10);
  --sombra-lg:  0 12px 40px rgba(10,45,100,.16);
  --radius:     16px;
  --radius-sm:  8px;
  --trans:      all .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  color: #2d3748;
  background: var(--branco);
  overflow-x: hidden;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

img { display: block; max-width: 100%; }

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

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--branco);
  box-shadow: 0 2px 16px rgba(10,45,100,.08);
  transition: var(--trans);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon svg { width: 38px; height: 38px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-size: 18px; font-weight: 900; color: var(--azul); letter-spacing: 1px; }
.logo-sub  { font-size: 11px; font-weight: 600; color: var(--azul-med); letter-spacing: 2px; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--azul);
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: var(--trans);
}
.nav-links a:hover { border-color: var(--amarelo); color: var(--azul-med); }

.btn-wa-header {
  display: flex; align-items: center; gap: 8px;
  background: var(--verde); color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 10px 20px; border-radius: 50px;
  transition: var(--trans); white-space: nowrap;
}
.btn-wa-header svg { width: 18px; height: 18px; }
.btn-wa-header:hover { background: var(--verde-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,211,102,.35); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--azul); border-radius: 2px; transition: var(--trans); }

.mobile-menu {
  display: none; flex-direction: column;
  background: var(--branco); padding: 16px 24px 24px;
  border-top: 1px solid #e2e8f0;
}
.mobile-menu a { padding: 12px 0; font-size: 15px; font-weight: 600; color: var(--azul); border-bottom: 1px solid #f0f4f8; }
.mobile-menu a:last-child { border: none; }
.btn-wa-mobile {
  margin-top: 12px; background: var(--verde); color: #fff !important;
  text-align: center; border-radius: 50px; padding: 14px !important;
  font-size: 15px !important; border: none !important;
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--azul) 0%, #1246A8 60%, #1a5fc8 100%);
  padding: 140px 0 0; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,195,0,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px; padding-bottom: 60px;
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,195,0,.15); border: 1px solid rgba(255,195,0,.4);
  color: var(--amarelo); font-size: 12px; font-weight: 700;
  padding: 6px 14px; border-radius: 50px; margin-bottom: 20px;
  letter-spacing: .5px;
}

.hero-content h1 {
  font-size: clamp(32px, 4vw, 52px); font-weight: 900;
  color: #fff; line-height: 1.15; margin-bottom: 20px;
}
.hero-content h1 .highlight { color: var(--amarelo); }

.hero-sub {
  font-size: 17px; color: rgba(255,255,255,.85);
  line-height: 1.7; margin-bottom: 32px;
}
.hero-sub strong { color: #fff; }

.hero-stats {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 36px;
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 26px; font-weight: 900; color: var(--amarelo); }
.stat span { font-size: 12px; color: rgba(255,255,255,.7); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.2); }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--verde); color: #fff;
  font-size: 15px; font-weight: 700;
  padding: 16px 28px; border-radius: 50px;
  transition: var(--trans); box-shadow: 0 4px 20px rgba(37,211,102,.4);
}
.btn-primary:hover { background: var(--verde-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,.5); }

.btn-secondary {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.12); color: #fff;
  border: 2px solid rgba(255,255,255,.3);
  font-size: 15px; font-weight: 700;
  padding: 14px 28px; border-radius: 50px;
  transition: var(--trans);
}
.btn-secondary:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.6); }

.hero-image { position: relative; display: flex; justify-content: center; }
.hero-img-wrapper {
  position: relative; width: 100%; max-width: 460px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.hero-img-wrapper img {
  width: 100%; height: 520px; object-fit: cover; object-position: top;
  border-radius: var(--radius) var(--radius) 0 0;
}
.hero-badge-float {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #fff; color: var(--azul);
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  padding: 10px 20px; border-radius: 50px;
  box-shadow: var(--sombra-lg); white-space: nowrap;
}
.hero-badge-float svg { color: var(--verde); }

.hero-wave { line-height: 0; }
.hero-wave svg { width: 100%; display: block; }

/* ═══════════════════════════════════════════
   TRUST BAR
═══════════════════════════════════════════ */
.trust-bar { background: var(--cinza-bg); padding: 28px 0; border-bottom: 1px solid #e2e8f0; }
.trust-inner {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 32px;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--azul);
}
.trust-item svg { width: 22px; height: 22px; color: var(--verde); flex-shrink: 0; }

/* ═══════════════════════════════════════════
   SERVIÇOS
═══════════════════════════════════════════ */
.servicos { padding: 100px 0; background: var(--branco); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  background: var(--azul-claro); color: var(--azul-med);
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  padding: 6px 16px; border-radius: 50px; margin-bottom: 14px;
  text-transform: uppercase;
}
.section-header h2 {
  font-size: clamp(26px, 3vw, 40px); font-weight: 800;
  color: var(--azul); margin-bottom: 12px; line-height: 1.2;
}
.section-header p { font-size: 17px; color: var(--cinza-txt); max-width: 560px; margin: 0 auto; }

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

.servico-card {
  background: var(--branco); border: 1px solid #e2e8f0;
  border-radius: var(--radius); padding: 36px 28px;
  transition: var(--trans); position: relative;
  display: flex; flex-direction: column;
}
.servico-card:hover { transform: translateY(-6px); box-shadow: var(--sombra-lg); border-color: transparent; }
.servico-card.destaque {
  border-color: var(--azul-med);
  box-shadow: 0 0 0 3px rgba(18,70,168,.1);
}

.servico-badge-card {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--amarelo); color: var(--azul);
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  padding: 5px 16px; border-radius: 50px; white-space: nowrap;
  text-transform: uppercase;
}

.servico-icon {
  width: 60px; height: 60px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.servico-icon.elétrica { background: rgba(255,195,0,.12); color: #d4a000; }
.servico-icon.hidraulica { background: rgba(18,70,168,.1); color: var(--azul-med); }
.servico-icon.instalacoes { background: rgba(37,211,102,.1); color: var(--verde-dark); }
.servico-icon svg { width: 28px; height: 28px; }

.servico-card h3 { font-size: 22px; font-weight: 800; color: var(--azul); margin-bottom: 10px; }
.servico-card > p { font-size: 14px; color: var(--cinza-txt); line-height: 1.6; margin-bottom: 20px; }
.servico-card ul { list-style: none; margin-bottom: 28px; flex: 1; }
.servico-card ul li {
  font-size: 13.5px; color: #4a5568; padding: 7px 0;
  border-bottom: 1px solid #f0f4f8;
  display: flex; align-items: center; gap: 8px;
}
.servico-card ul li::before { content: '✓'; color: var(--verde); font-weight: 800; font-size: 13px; flex-shrink: 0; }

.btn-card {
  display: block; text-align: center;
  background: var(--azul-claro); color: var(--azul-med);
  font-size: 14px; font-weight: 700;
  padding: 13px; border-radius: 50px;
  transition: var(--trans);
}
.btn-card:hover { background: var(--azul-med); color: #fff; }
.btn-card.destaque { background: var(--azul); color: #fff; }
.btn-card.destaque:hover { background: var(--azul-med); }

/* ═══════════════════════════════════════════
   SOBRE / DIFERENCIAIS
═══════════════════════════════════════════ */
.sobre { padding: 100px 0; background: var(--cinza-bg); }
.sobre-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}

.sobre-images { position: relative; height: 520px; }
.sobre-img-main {
  position: absolute; top: 0; left: 0;
  width: 75%; height: 420px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--sombra-lg);
}
.sobre-img-main img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sobre-img-sec {
  position: absolute; bottom: 0; right: 0;
  width: 55%; height: 260px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--sombra-lg);
  border: 4px solid var(--branco);
}
.sobre-img-sec img { width: 100%; height: 100%; object-fit: cover; }

.sobre-content h2 {
  font-size: clamp(24px, 2.8vw, 36px); font-weight: 800;
  color: var(--azul); margin-bottom: 16px; line-height: 1.2;
}
.sobre-content > p {
  font-size: 16px; color: var(--cinza-txt); line-height: 1.8;
  margin-bottom: 36px;
}

.diferenciais-list { display: flex; flex-direction: column; gap: 24px; margin-bottom: 36px; }
.diferencial-item { display: flex; gap: 16px; align-items: flex-start; }
.diferencial-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: var(--azul); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.diferencial-icon svg { width: 22px; height: 22px; color: #fff; }
.diferencial-item strong { display: block; font-size: 15px; font-weight: 700; color: var(--azul); margin-bottom: 4px; }
.diferencial-item p { font-size: 13.5px; color: var(--cinza-txt); line-height: 1.6; }

/* ═══════════════════════════════════════════
   COMO FUNCIONA
═══════════════════════════════════════════ */
.como-funciona { padding: 100px 0; background: var(--branco); }
.passos-grid {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}
.passo {
  background: var(--cinza-bg); border-radius: var(--radius);
  padding: 36px 28px; text-align: center;
  flex: 1; min-width: 220px; max-width: 280px;
  border: 1px solid #e2e8f0; transition: var(--trans);
}
.passo:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.passo-num {
  font-size: 48px; font-weight: 900; color: var(--azul-claro);
  line-height: 1; margin-bottom: 12px;
}
.passo-icon {
  width: 52px; height: 52px; margin: 0 auto 16px;
  background: var(--azul); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.passo-icon svg { width: 24px; height: 24px; color: #fff; }
.passo h4 { font-size: 16px; font-weight: 800; color: var(--azul); margin-bottom: 8px; }
.passo p { font-size: 13.5px; color: var(--cinza-txt); line-height: 1.6; }
.passo-arrow { font-size: 28px; color: #c8d6f0; font-weight: 300; }

/* ═══════════════════════════════════════════
   DEPOIMENTOS
═══════════════════════════════════════════ */
.depoimentos { padding: 100px 0; background: var(--cinza-bg); }
.depoimentos-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.depoimento-card {
  background: var(--branco); border-radius: var(--radius);
  padding: 32px; border: 1px solid #e2e8f0;
  transition: var(--trans);
}
.depoimento-card:hover { box-shadow: var(--sombra); transform: translateY(-3px); }
.stars { color: var(--amarelo); font-size: 18px; margin-bottom: 14px; letter-spacing: 2px; }
.depoimento-card p { font-size: 14.5px; color: var(--cinza-txt); line-height: 1.8; margin-bottom: 20px; font-style: italic; }
.depoimento-autor { display: flex; align-items: center; gap: 12px; }
.autor-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--azul); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; flex-shrink: 0;
}
.depoimento-autor strong { display: block; font-size: 14px; font-weight: 700; color: var(--azul); }
.depoimento-autor span { font-size: 12px; color: #718096; }

/* ═══════════════════════════════════════════
   CTA FINAL
═══════════════════════════════════════════ */
.cta-final {
  background: linear-gradient(135deg, var(--azul) 0%, #1246A8 100%);
  padding: 100px 0; position: relative; overflow: hidden;
}
.cta-final::before {
  content: ''; position: absolute; bottom: -20%; left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,195,0,.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  display: grid; grid-template-columns: 1fr 420px;
  gap: 60px; align-items: center;
}
.cta-content h2 {
  font-size: clamp(26px, 3vw, 42px); font-weight: 900;
  color: #fff; margin-bottom: 16px; line-height: 1.2;
}
.cta-content p { font-size: 17px; color: rgba(255,255,255,.8); margin-bottom: 24px; line-height: 1.7; }
.cta-garantia {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.9);
  font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 50px;
  margin-bottom: 32px;
}
.btn-cta-final {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--verde); color: #fff;
  font-size: 17px; font-weight: 800;
  padding: 18px 36px; border-radius: 50px;
  transition: var(--trans); box-shadow: 0 6px 24px rgba(37,211,102,.4);
}
.btn-cta-final:hover { background: var(--verde-dark); transform: translateY(-3px); box-shadow: 0 10px 32px rgba(37,211,102,.5); }
.cta-image { border-radius: var(--radius); overflow: hidden; height: 380px; }
.cta-image img { width: 100%; height: 100%; object-fit: cover; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer { background: #07193a; padding: 64px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px; padding-bottom: 48px;
}
.footer-brand p { font-size: 14px; color: #8ba8d4; line-height: 1.7; margin-top: 16px; max-width: 280px; }
.footer-links, .footer-contato { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4, .footer-contato h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links a { font-size: 14px; color: #8ba8d4; transition: var(--trans); }
.footer-links a:hover { color: var(--amarelo); }
.footer-contato p { font-size: 14px; color: #8ba8d4; }
.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #8ba8d4;
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
}
.footer-social a:hover { background: var(--azul-med); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px; text-align: center;
}
.footer-bottom p { font-size: 13px; color: #4a6a9a; }

/* ═══════════════════════════════════════════
   BOTÃO FLUTUANTE WHATSAPP
═══════════════════════════════════════════ */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--verde); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  transition: var(--trans);
}
.wa-float:hover { transform: scale(1.1); background: var(--verde-dark); }
.wa-tooltip {
  position: absolute; right: 70px;
  background: #333; color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 6px;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: var(--trans);
}
.wa-float:hover .wa-tooltip { opacity: 1; }

/* ═══════════════════════════════════════════
   ANIMAÇÕES
═══════════════════════════════════════════ */
[data-aos] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
[data-aos="fade-right"] { transform: translateX(-24px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }
[data-aos="fade-left"] { transform: translateX(24px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }

/* ═══════════════════════════════════════════
   RESPONSIVO
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links, .btn-wa-header { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.open { display: flex; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-image { order: -1; }
  .hero-img-wrapper { max-width: 320px; margin: 0 auto; }
  .hero-img-wrapper img { height: 380px; }
  .hero-stats { justify-content: center; }
  .hero-ctas { justify-content: center; }

  .servicos-grid { grid-template-columns: 1fr; }
  .sobre-inner { grid-template-columns: 1fr; }
  .sobre-images { height: 320px; }
  .sobre-img-main { width: 80%; height: 280px; }
  .sobre-img-sec { width: 50%; height: 180px; }

  .depoimentos-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; text-align: center; }
  .cta-image { display: none; }
  .btn-cta-final { justify-content: center; }
  .cta-garantia { justify-content: center; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .passos-grid { flex-direction: column; align-items: center; }
  .passo-arrow { transform: rotate(90deg); }
  .trust-inner { gap: 20px; }
}

@media (max-width: 480px) {
  .hero { padding-top: 100px; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .stat-divider { width: 60px; height: 1px; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; }
}

/* ── Logo Avatar (foto do Joel) ─────────────────── */
.logo-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2.5px solid #0A2D64;
  display: block;
}

.footer .logo-avatar {
  border-color: #aac4f0;
}
