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

:root {
  --azul: #0B4DA2;
  --azul-escuro: #083A7A;
  --verde: #25D366;
  --verde-hover: #1eb457;
  --branco: #FFFFFF;
  --cinza-bg: #F4F6F8;
  --cinza-texto: #333333;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(8, 58, 122, 0.10);
  --shadow-hover: 0 10px 28px rgba(8, 58, 122, 0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--cinza-texto);
  line-height: 1.6;
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
}

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

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; }

/* ============ BOTÕES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .ico { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

.btn--whats { background: var(--verde); color: #fff; box-shadow: 0 4px 14px rgba(37,211,102,.4); }
.btn--whats:hover { background: var(--verde-hover); }

.btn--phone { background: var(--azul); color: #fff; }
.btn--phone:hover { background: var(--azul-escuro); }

.btn--outline { background: transparent; color: #fff; border-color: #fff; }
.btn--outline:hover { background: #fff; color: var(--azul-escuro); }

.btn--lg { padding: 16px 28px; font-size: 1.1rem; border-radius: 14px; }

/* ============ BARRA SUPERIOR ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.logo__main { color: var(--azul); font-weight: 800; font-size: 1.5rem; }
.logo__main--light { color: #fff; }
.logo__sub { color: var(--cinza-texto); font-size: .62rem; letter-spacing: 2.5px; font-weight: 600; margin-top: 2px; }

.topbar__actions { display: flex; gap: 10px; align-items: center; }
.topbar__actions .btn { padding: 10px 16px; font-size: .9rem; }

/* ============ HERO ============ */
.hero {
  position: relative;
  color: #fff;
  background: url("img/hero.jpg") center/cover no-repeat, var(--azul-escuro);
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(8,58,122,.92) 0%, rgba(11,77,162,.82) 60%, rgba(8,58,122,.7) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 720px; }

.badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); font-weight: 800; margin-bottom: 16px; }
.hero__subtitle { font-size: clamp(1.05rem, 2.5vw, 1.3rem); font-weight: 400; margin-bottom: 24px; opacity: .95; }

.hero__bullets { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 32px; }
.hero__bullets li { font-weight: 500; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.check { color: var(--verde); font-weight: 800; font-size: 1.1rem; }

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

/* ============ TÍTULOS DE SEÇÃO ============ */
.section-title { text-align: center; font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--azul-escuro); margin-bottom: 10px; }
.section-title--light { color: #fff; }
.section-subtitle { text-align: center; max-width: 640px; margin: 0 auto 40px; color: #555; font-size: 1.05rem; }

/* ============ SERVIÇOS ============ */
.services { padding: 70px 0; background: var(--cinza-bg); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card__icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--azul), var(--azul-escuro));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.card__icon svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.card h3 { font-size: 1.1rem; color: var(--azul-escuro); margin-bottom: 10px; }
.card p { font-size: .95rem; color: #555; margin-bottom: 20px; flex-grow: 1; }
.card__cta { color: var(--verde-hover); font-weight: 600; text-decoration: none; font-size: .95rem; }
.card__cta:hover { text-decoration: underline; }

/* ============ POR QUE ESCOLHER ============ */
.why { padding: 70px 0; background: linear-gradient(135deg, var(--azul), var(--azul-escuro)); color: #fff; }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why__item { text-align: center; padding: 10px; }
.why__ico { font-size: 2.4rem; display: block; margin-bottom: 12px; }
.why__item h3 { font-size: 1.15rem; margin-bottom: 6px; }
.why__item p { font-size: .95rem; opacity: .9; }

/* ============ GALERIA ============ */
.gallery { padding: 70px 0; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery__grid img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3;
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .25s ease;
}
.gallery__grid img:hover { transform: scale(1.03); }

/* ============ CTA FINAL ============ */
.final-cta { background: linear-gradient(120deg, var(--azul-escuro), var(--azul)); color: #fff; padding: 60px 0; text-align: center; }
.final-cta h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 8px; }
.final-cta p { font-size: 1.15rem; opacity: .95; margin-bottom: 28px; }
.final-cta__actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone-link { color: #fff; text-decoration: none; font-size: 1.05rem; }
.phone-link strong { font-size: 1.2rem; }
.phone-link:hover { text-decoration: underline; }

/* ============ RODAPÉ ============ */
.footer { background: var(--azul-escuro); color: #fff; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; padding: 46px 20px; }
.footer__brand { max-width: 480px; }
.footer__brand p { opacity: .8; font-size: .95rem; margin-top: 8px; }
.footer__contact p { font-weight: 600; margin-bottom: 4px; }
.footer__contact a { display: block; color: #fff; text-decoration: none; font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.footer__contact a:hover { text-decoration: underline; }
.footer__area { font-weight: 400 !important; opacity: .8; font-size: .9rem; margin-top: 10px; }
.footer__copy { background: rgba(0,0,0,.2); text-align: center; padding: 16px 0; font-size: .85rem; opacity: .85; }

/* ============ BOTÃO FLUTUANTE ============ */
.whats-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--verde);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.55);
  animation: pulse 2.5s infinite;
  transition: transform .2s ease;
}
.whats-float:hover { transform: scale(1.08); }
.whats-float svg { width: 34px; height: 34px; fill: #fff; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ============ RESPONSIVO ============ */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .topbar__actions .btn--phone span { display: none; }
  .topbar__actions .btn--phone { padding: 10px 12px; }
  .logo__main { font-size: 1.25rem; }
  .hero { min-height: auto; padding: 48px 0; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { flex-direction: column; }
}

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