:root {
  --navy: #001848;
  --navy-2: #003060;
  --navy-deep: #00102e;
  --accent: #1070b0;
  --accent-2: #0b5685;
  --accent-light: #60b0e0;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --text: #15203a;
  --muted: #5d6679;
  --border: #e3e7ee;
  --wa: #25d366;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.02em; }
p { margin: 0; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Cabeçalho ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) {
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  opacity: .7;
  transition: opacity .2s;
}
.nav a:not(.btn):hover { opacity: 1; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--accent); }
.btn--small { padding: 10px 18px; font-size: .88rem; }
.btn--whatsapp { background: var(--wa); color: #fff; }
.btn--whatsapp:hover { background: #1ebe5b; }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--block { display: flex; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 680px;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 16, 46, .8);
}
.hero__content {
  position: relative;
  padding-top: 120px;
  padding-bottom: 120px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  max-width: 16ch;
}
.hero__sub {
  font-size: 1.15rem;
  opacity: .85;
  max-width: 48ch;
  margin-top: 28px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.hero__meta {
  margin-top: 72px;
  font-size: .85rem;
  letter-spacing: .04em;
  opacity: .6;
}

/* ---------- Seções ---------- */
.section { padding: 112px 0; }
.section--soft { background: var(--bg-soft); }
.section__title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  max-width: 22ch;
  margin-bottom: 64px;
}
.section__head { margin-bottom: 56px; }
.section__head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section__head--split .section__title { margin-bottom: 0; }

.divider {
  text-align: center;
  color: #aab3c2;
  letter-spacing: .4em;
  font-size: .9rem;
  padding: 8px 0;
}

.note {
  font-size: .8rem;
  color: var(--muted);
  opacity: .8;
  margin-top: 28px;
}

/* ---------- Benefícios ---------- */
.benefits {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
.benefit { border-top: 1px solid var(--border); padding-top: 28px; }
.benefit__num { font-size: .85rem; font-weight: 700; color: var(--accent); }
.benefit h3 { font-size: 1.25rem; color: var(--navy); margin: 14px 0 10px; }
.benefit p { color: var(--muted); max-width: 32ch; }

/* ---------- Serviços ---------- */
.services {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.service {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.service__num { font-size: .85rem; font-weight: 700; color: var(--accent); padding-top: 6px; }
.service h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); color: var(--navy); margin-bottom: 10px; }
.service p { color: var(--muted); max-width: 62ch; }

.audiences {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  margin-top: 88px;
}
.audience h3 { font-size: 1.5rem; color: var(--navy); margin-bottom: 12px; }
.audience p { color: var(--muted); max-width: 40ch; }
.audience__link {
  display: inline-block;
  margin-top: 22px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.audience__link:hover { color: var(--accent); }

/* ---------- Portfólio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--navy); }
.filter.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

.gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  grid-auto-flow: dense;
}
.project {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  background: var(--navy-2);
  color: #fff;
  text-align: left;
  font: inherit;
  transition: transform .4s ease;
}
.project:hover { transform: translateY(-3px); }
.project:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; }
.project--wide { grid-column: span 1; }
.project--big { aspect-ratio: 4 / 3; } /* no desktop ocupa 2x2 (ver regra de 1024px) */
.project__media,
.project__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.project:hover .project__img { transform: scale(1.04); }
.project__media {
  background:
    linear-gradient(135deg, var(--tone-a, #1070b0), var(--tone-b, #001848));
}
.project__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.project__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 16, 46, .88));
}
.project__cat {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent-light);
  margin-bottom: 6px;
}
.project__title { font-size: 1.1rem; font-weight: 700; }
.project__local { font-size: .85rem; opacity: .7; margin-top: 2px; }
.project__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 16, 46, .55);
}

/* ---------- Números ---------- */
.stats {
  display: grid;
  gap: 40px 32px;
  grid-template-columns: repeat(2, 1fr);
}
.stat { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--navy); padding-top: 20px; }
.stat__num { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; color: var(--navy); line-height: 1; }
.stat__label { color: var(--muted); font-size: .95rem; }

/* ---------- Processo ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
.step { border-top: 1px solid var(--border); padding-top: 28px; }
.step__num { font-size: .85rem; font-weight: 700; color: var(--accent); }
.step h3 { font-size: 1.3rem; color: var(--navy); margin: 14px 0 10px; }
.step p { color: var(--muted); }

/* ---------- Contato ---------- */
.contact {
  display: grid;
  gap: 56px;
  grid-template-columns: 1fr;
}
.contact__info .section__title { margin-bottom: 20px; }
.contact__lead { color: var(--muted); max-width: 42ch; margin-bottom: 40px; }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}
.contact-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.contact-list li:last-child { border-bottom: 1px solid var(--border); }
.contact-list span { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-list a, .contact-list strong { color: var(--navy); font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--accent); }

.lead-form {
  display: grid;
  gap: 18px;
  align-content: start;
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 32px;
}
.lead-form__row { display: grid; gap: 18px; }
.lead-form label {
  display: grid;
  gap: 8px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  font: inherit;
  font-weight: 500;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
  background: #fff;
  color: var(--text);
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}
.lead-form input.invalid,
.lead-form select.invalid { border-color: #c0392b; }
.lead-form__hp { display: none; } /* campo armadilha (honeypot) */
.form-status { font-size: .9rem; min-height: 1.2em; font-weight: 600; }
.form-status.ok { color: #1e7e34; }
.form-status.err { color: #c0392b; }

/* ---------- Avaliações do Google ---------- */
.google-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 32px;
  font-size: .95rem;
  color: var(--muted);
}
.google-rating strong { color: var(--navy); }
.google-rating__stars { color: #f5b400; letter-spacing: .1em; }
.google-rating a { color: var(--accent); font-weight: 700; }

/* ---------- Rodapé ---------- */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .65);
  font-size: .9rem;
  padding-top: 80px;
}
.footer a { color: inherit; text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer h4 {
  margin: 0 0 18px;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #fff;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__top {
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer__logo {
  height: 52px;
  width: auto;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  margin-bottom: 20px;
}
.footer__brand p { margin: 0 0 22px; max-width: 36ch; line-height: 1.6; }
.footer .social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer .social a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
}
.footer .social a:hover { border-color: #fff; }
.footer__address { font-style: normal; line-height: 1.7; margin-bottom: 16px; }
.footer__contact { margin-bottom: 16px; }
.footer__contact li { overflow-wrap: anywhere; }
.footer__map { color: var(--accent-light) !important; font-weight: 700; }
.footer__legal {
  padding-top: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer__legal dl {
  margin: 0;
  display: grid;
  gap: 16px 32px;
  grid-template-columns: 1fr;
}
.footer__legal dl > div { display: grid; gap: 2px; }
.footer__legal dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; opacity: .55; }
.footer__legal dd { margin: 0; color: #fff; font-weight: 600; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 28px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: .82rem;
}
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__disclaimer { font-size: .72rem; opacity: .4; margin: 0 auto; padding-bottom: 24px; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wa);
  color: #fff;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
}

/* ---------- Cookies ---------- */
.cookie {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 520px;
  z-index: 50;
  background: var(--navy-deep);
  color: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: .9rem;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: var(--accent-light); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(0, 8, 24, .85); }
.lightbox__figure { margin: 0; }
.lightbox__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--navy-2);
}
.lightbox__media img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__media .project__media { position: absolute; }
.lightbox__caption { padding: 18px 24px 22px; font-size: .95rem; }
.lightbox__caption strong { display: block; font-size: 1.1rem; }
.lightbox__caption span { opacity: .7; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, .3); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav { top: 40%; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* ---------- Revelar ao rolar (só com JS) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (min-width: 760px) {
  .hero__shade { background: linear-gradient(90deg, rgba(0, 16, 46, .92) 0%, rgba(0, 16, 46, .7) 55%, rgba(0, 16, 46, .35) 100%); }
  .benefits { grid-template-columns: repeat(2, 1fr); gap: 56px 48px; }
  .audiences { grid-template-columns: 1fr 1fr; gap: 56px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 56px 48px; }
  .contact { grid-template-columns: 1fr 1fr; align-items: start; }
  .lead-form__row { grid-template-columns: 1fr 1fr; }
  .lead-form { padding: 40px; }
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .footer__legal dl { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
  .benefits { grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .project--big { grid-column: span 2; grid-row: span 2; }
  .project--wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
  .footer__legal dl { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .section { padding: 80px 0; }
  .hero { min-height: auto; }
  .hero__content { padding-top: 88px; padding-bottom: 88px; }
  .hero__meta { margin-top: 48px; }
  .section__title { margin-bottom: 44px; }
  .service { grid-template-columns: 48px 1fr; }
  .brand img { height: 36px; }

  /* Contato e formulário no celular */
  .contact { gap: 40px; grid-template-columns: minmax(0, 1fr); }
  .contact > * { min-width: 0; }
  .lead-form { padding: 22px 18px; gap: 16px; min-width: 0; width: 100%; }
  .lead-form__row { gap: 16px; }
  .lead-form label { gap: 6px; }
  .lead-form input,
  .lead-form select,
  .lead-form textarea {
    min-height: 48px;
    padding: 12px 14px;
    font-size: 16px; /* evita o zoom automático do iPhone ao tocar */
  }
  .lead-form input,
  .lead-form select,
  .lead-form textarea { min-width: 0; max-width: 100%; }
  .lead-form textarea { min-height: 112px; }
  .lead-form .btn--block { min-height: 52px; font-size: 1rem; }
  .form-status { min-height: 0; }
  .whatsapp-float { right: 16px; bottom: 16px; padding: 12px 16px; font-size: .92rem; transition: opacity .2s ease; }
  body.is-contact-visible .whatsapp-float { opacity: 0; pointer-events: none; }
}

@media (max-width: 420px) {
  .hero__cta .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
