/* ==========================================================================
   Medeiros Oliveira Advocacia — Landing Page
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

/* ---------- Variáveis ---------- */
:root {
  --maroon: #7D1D07;
  --maroon-dark: #5E1505;
  --maroon-light: #9C3416;
  --black: #000000;
  --ink: #111111;
  --ink-soft: #2A2A2A;
  --bg: #F8F5F2;
  --bg-card: #FFFFFF;
  --white: #FFFFFF;
  --line: rgba(17, 17, 17, 0.09);
  --line-light: rgba(248, 245, 242, 0.16);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 26px;

  --shadow-sm: 0 2px 10px rgba(17, 17, 17, 0.05);
  --shadow-md: 0 16px 40px rgba(17, 17, 17, 0.09);
  --shadow-maroon: 0 14px 30px rgba(125, 29, 7, 0.22);

  --container: 1160px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
}

h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { color: var(--ink-soft); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 14px;
  position: relative;
  padding-left: 24px;
}
.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 1.5px;
  background: var(--maroon);
}
.section-tag--light { color: #E8C9BE; }
.section-tag--light::before { background: #E8C9BE; }

section h2 { margin-bottom: 18px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  text-align: center;
}
.btn--primary {
  background: var(--maroon);
  color: var(--white);
  box-shadow: var(--shadow-maroon);
}
.btn--primary:hover {
  background: var(--maroon-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(125, 29, 7, 0.3);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--maroon);
  color: var(--maroon);
  transform: translateY(-2px);
}
.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--line-light);
}
.btn--outline-light:hover {
  background: var(--white);
  color: var(--ink);
  transform: translateY(-2px);
}
.btn--lg { padding: 16px 34px; font-size: 1rem; }
.btn--block { width: 100%; margin-top: 28px; }

.icon { width: 22px; height: 22px; flex-shrink: 0; }
.btn .icon--whatsapp { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* O blur fica num pseudo-elemento, não no .header em si: filter/backdrop-filter
   num ancestral cria um novo containing block para descendentes com
   position: fixed, o que quebrava o painel do menu mobile (header__nav). */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s var(--ease);
}
.header.is-scrolled::before {
  background: rgba(248, 245, 242, 0.96);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.header__logo { display: flex; align-items: center; }
.header__logo img { height: 40px; width: auto; }

.header__nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
}
.header__nav ul a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.25s var(--ease);
}
.header__nav ul a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1.5px;
  background: var(--maroon);
  transition: width 0.25s var(--ease);
}
.header__nav ul a:hover { color: var(--ink); }
.header__nav ul a:hover::after { width: 100%; }

.header__cta-mobile { display: none; }

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.header__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.header__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle.is-active span:nth-child(2) { opacity: 0; }
.header__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ----------
   Fundo em foto cheia (1920px), com o homem enquadrado à direita.
   Arquivos esperados: assets/img/bgdesktop.webp e assets/img/bgmobile.webp.
   Sem máscara/overlay sobre a foto — a legibilidade do texto fica
   por conta do enquadramento da própria imagem. */
.hero {
  padding: 168px 0 100px;
  position: relative;
  background-color: var(--bg);
  background-image: url('../img/bgdesktop.webp');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero__lead {
  font-size: 1.08rem;
  max-width: 52ch;
  margin-bottom: 20px;
}
.hero__puv {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--maroon);
  margin-bottom: 32px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.hero__micro {
  font-size: 0.85rem;
  color: var(--ink-soft);
  opacity: 0.8;
  max-width: 48ch;
  line-height: 1.7;
}

.hero__visual {
  position: relative;
  min-height: 420px;
}
.hero__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 20px;
  box-shadow: var(--shadow-sm);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink);
}
.hero__badge .icon { width: 18px; height: 18px; color: var(--maroon); }
.hero__badge--top {
  top: 3%;
  right: 3%;
  animation: hero-float 4.5s ease-in-out infinite;
}
.hero__badge--bottom {
  top: 112%;
  left: 2%;
  animation: hero-float 5.2s ease-in-out infinite;
  animation-delay: 0.6s;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes hero-float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__badge--top, .hero__badge--bottom { animation: none; }
}

/* ---------- Problema ---------- */
.problem { padding: 110px 0; background: var(--white); position: relative; overflow: hidden; }
.problem__icon-deco {
  position: absolute;
  top: 150px;
  right: -80px;
  height: 480px;
  width: auto;
  opacity: 0.07;
  transform: rotate(-6deg);
  pointer-events: none;
  user-select: none;
}
.problem__title {
  max-width: 900px;
  margin-bottom: 36px;
}
.problem__text {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
}
.problem__text p { font-size: 1.02rem; }

.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.situation-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.situation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(125, 29, 7, 0.25);
}
.situation-card .icon { color: var(--maroon); width: 26px; height: 26px; }
.situation-card p { color: var(--ink); font-size: 0.94rem; font-weight: 500; }

/* ---------- Áreas de atuação ---------- */
.areas { padding: 110px 0; background: var(--bg); }
.areas .section-tag, .areas h2 { text-align: center; display: block; }
.areas h2 { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.areas .section-tag { text-align: center; padding-left: 0; margin-bottom: 14px; }
.areas .section-tag::before { display: none; }

.areas__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.area-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.area-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.area-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(155deg, var(--maroon), var(--maroon-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-maroon);
}
.area-card__icon svg { width: 28px; height: 28px; color: var(--white); }

.area-card h3 { margin-bottom: 12px; }
.area-card > p { margin-bottom: 22px; }

.area-card__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}
.area-card__list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.area-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--maroon);
  opacity: 0.6;
}

/* ---------- PUV (seção escura) ---------- */
.puv {
  background: linear-gradient(160deg, var(--black) 0%, #1a0a05 100%);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.puv::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(125, 29, 7, 0.35), transparent 70%);
  top: -200px;
  left: -150px;
}
.puv__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}
.puv__visual { min-height: 380px; }
.puv__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.puv__content { display: flex; flex-direction: column; justify-content: center; }
.puv h2 { color: var(--white); max-width: 18ch; margin-bottom: 24px; }
.puv__text { display: flex; flex-direction: column; gap: 16px; }
.puv__text p { color: rgba(248, 245, 242, 0.72); font-size: 1.02rem; max-width: 52ch; }

/* ---------- Situações ---------- */
.situations { padding: 110px 0; background: var(--white); }
.situations h2 { max-width: 640px; margin-bottom: 48px; }

.situations__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 32px;
  margin-bottom: 48px;
}
.situations__grid li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.situations__grid .icon {
  color: var(--maroon);
  width: 19px;
  height: 19px;
  margin-top: 2px;
}
.situations__cta { text-align: center; }

/* ---------- Processo ---------- */
.process { padding: 110px 0; background: var(--bg); }
.process h2 { max-width: 560px; margin-bottom: 60px; }

.process__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.process__timeline li {
  position: relative;
  padding-top: 24px;
  border-top: 1.5px solid var(--line);
}
.process__timeline li::before {
  content: '';
  position: absolute;
  top: -1.5px;
  left: 0;
  width: 40px;
  height: 1.5px;
  background: var(--maroon);
}
.process__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--maroon);
  opacity: 0.85;
  margin-bottom: 14px;
}
.process__timeline h3 { margin-bottom: 10px; }
.process__timeline p { font-size: 0.93rem; }

/* ---------- Diferenciais ---------- */
.differentials { padding: 110px 0; background: var(--white); }
.differentials h2 { max-width: 620px; margin-bottom: 52px; }

.differentials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.differential-card {
  padding: 32px 8px 0 0;
}
.differential-card .icon {
  color: var(--maroon);
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
}
.differential-card h3 { margin-bottom: 10px; }
.differential-card p { font-size: 0.93rem; }

/* ---------- Sobre ---------- */
.about { padding: 110px 0; background: var(--bg); }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
}
.about__content { display: flex; flex-direction: column; justify-content: center; }
.about__content .section-tag { margin-bottom: 16px; }
.about__content h2 { margin-bottom: 24px; }
.about__content p { margin-bottom: 16px; font-size: 1rem; }

.about__visual { min-height: 340px; }
.about__frame {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- CTA intermediário ---------- */
.cta-mid {
  background: linear-gradient(155deg, var(--maroon-dark), var(--maroon));
  padding: 96px 0;
}
.cta-mid__inner {
  max-width: 700px;
  text-align: center;
  margin: 0 auto;
}
.cta-mid h2 { color: var(--white); margin-bottom: 20px; }
.cta-mid p { color: rgba(248, 245, 242, 0.85); font-size: 1.02rem; margin-bottom: 8px; }
.cta-mid .btn { margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq { padding: 110px 0; background: var(--white); }
.faq h2 { margin-bottom: 48px; }

.faq__list { max-width: 780px; }
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
}
.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  background: var(--maroon);
  top: 50%;
  left: 50%;
  transition: transform 0.3s var(--ease);
}
.faq__icon::before { width: 14px; height: 1.6px; transform: translate(-50%, -50%); }
.faq__icon::after { width: 1.6px; height: 14px; transform: translate(-50%, -50%); }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq__answer p { padding-bottom: 24px; max-width: 65ch; font-size: 0.97rem; }
.faq__item.is-open .faq__answer { max-height: 240px; }

/* ---------- Localização ---------- */
.location { padding: 110px 0; background: var(--bg); }
.location h2 { margin-bottom: 16px; }
.location__lead { max-width: 60ch; font-size: 1.02rem; margin-bottom: 40px; }
.location__map {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.location__map iframe { width: 100%; height: 100%; display: block; }

.location__card {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.location__card .icon { color: var(--maroon); width: 26px; height: 26px; flex-shrink: 0; }
.location__address { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 220px; }
.location__address strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); font-weight: 600; }
.location__address span { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- CTA final ---------- */
.cta-final {
  background: linear-gradient(160deg, var(--black) 0%, #1a0a05 100%);
  padding: 120px 0;
  text-align: center;
}
.cta-final__inner { max-width: 640px; margin: 0 auto; }
.cta-final h2 { color: var(--white); margin-bottom: 16px; }
.cta-final__inner > p { color: rgba(248, 245, 242, 0.75); font-size: 1.05rem; margin-bottom: 34px; }
.cta-final__contact {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
}
.cta-final__contact p { color: rgba(248, 245, 242, 0.65); font-size: 0.95rem; margin-bottom: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); padding: 64px 0 32px; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(248, 245, 242, 0.1);
}

.footer__logo {
  height: 46px;
  width: auto;
  margin-bottom: 18px;
  /* Logomarca original é vermelho-escuro/preto; aplicamos filtro pra
     virar branca sobre o fundo escuro do rodapé, sem precisar de um
     segundo arquivo de logo. */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.footer__desc {
  color: rgba(248, 245, 242, 0.55);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 34ch;
}

.footer__col-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248, 245, 242, 0.9);
  margin-bottom: 20px;
}

.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a {
  color: rgba(248, 245, 242, 0.6);
  font-size: 0.94rem;
  transition: color 0.25s var(--ease);
}
.footer__links a:hover { color: var(--white); }

.footer__contact { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.footer__contact li { display: flex; align-items: center; gap: 10px; }
.footer__contact .icon { width: 18px; height: 18px; color: #E8C9BE; flex-shrink: 0; }
.footer__contact a, .footer__contact span {
  color: rgba(248, 245, 242, 0.65);
  font-size: 0.94rem;
  transition: color 0.25s var(--ease);
}
.footer__contact a:hover { color: var(--white); }

.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(248, 245, 242, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248, 245, 242, 0.7);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer__social a svg { width: 18px; height: 18px; }
.footer__social a:hover {
  border-color: var(--maroon-light);
  color: var(--white);
  transform: translateY(-2px);
}

.footer__copy { font-size: 0.8rem; color: rgba(248, 245, 242, 0.4); margin-top: 24px; }
.footer__copy a {
  color: rgba(248, 245, 242, 0.6);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.25s var(--ease);
}
.footer__copy a:hover { color: var(--white); }

/* ---------- Botão flutuante WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: whatsapp-pulse 2.6s ease-in-out infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; color: var(--white); }
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.5);
}
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.12); }
}

/* ---------- Animações de scroll ----------
   Visível por padrão: só some se o JS confirmar que pode
   controlar a revelação (classe .js-anim no <html>, setada
   por um script inline no <head>). Se o JS falhar por
   qualquer motivo, o conteúdo nunca fica escondido. */
html.js-anim [data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js-anim [data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.problem__grid [data-animate],
.differentials__grid [data-animate],
.process__timeline [data-animate],
.situations__grid [data-animate],
.areas__grid [data-animate] {
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 72px; }
  .hero__visual { min-height: 380px; order: -1; }
  .about__inner { grid-template-columns: 1fr; }
  .about__visual { order: -1; }
  .puv__inner { grid-template-columns: 1fr; gap: 40px; }
  .puv h2 { max-width: none; }
  .problem__icon-deco { display: none; }
  .problem__grid { grid-template-columns: repeat(2, 1fr); }
  .situations__grid { grid-template-columns: repeat(2, 1fr); }
  .differentials__grid { grid-template-columns: repeat(2, 1fr); }
  .process__timeline { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
}

@media (max-width: 860px) {
  .header__nav {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    padding: 40px 24px;
  }
  .header__nav.is-open { transform: translateX(0); }
  .header__nav ul { flex-direction: column; gap: 28px; text-align: center; }
  .header__nav ul a { font-size: 1.15rem; }
  .header__cta-mobile { display: inline-flex; }
  .header__cta { display: none; }
  .header__toggle { display: flex; }

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

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: 1 / -1; margin-bottom: 8px; }
  .footer__desc { max-width: 50ch; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  /* No mobile o menu não precisa do efeito transparente + blur do
     desktop — fica sólido desde o início, sem depender do scroll. */
  .header::before {
    background: rgba(248, 245, 242, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .hero {
    padding: 84px 0 72px;
    background-image: url('../img/bgmobile.webp');
    /* Desloca a imagem para baixo exatamente a altura do header (84px),
       assim ela começa logo abaixo do menu em vez de ficar escondida atrás dele. */
    background-position: center 84px;
    background-size: contain;
    background-repeat: no-repeat;
  }
  .hero__inner { gap: 14px; }
  .hero__visual { min-height: 340px; }
  .hero__content { text-align: center; }
  .hero__lead, .hero__puv, .hero__micro { margin-left: auto; margin-right: auto; }
  .hero h1 { font-size: 1.85rem; }
  .eyebrow { font-size: 0.62rem; letter-spacing: 0.07em; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__badge { font-size: 0.66rem; padding: 6px 12px; gap: 6px; }
  .hero__badge .icon { width: 14px; height: 14px; }
  .hero__badge--top { top: 58%; right: 5%; animation: hero-float-soft 6.5s ease-in-out infinite; }
  .hero__badge--bottom { top: auto; bottom: 8%; left: 4%; animation: hero-float-soft 7.2s ease-in-out infinite; animation-delay: 0.6s; }

  .problem, .areas, .situations, .process, .differentials, .about, .faq, .puv, .cta-mid, .cta-final, .location { padding: 72px 0; }

  .problem__grid { grid-template-columns: 1fr; }
  .situations__grid { grid-template-columns: 1fr; }
  .differentials__grid { grid-template-columns: 1fr; }
  .process__timeline { grid-template-columns: 1fr; }

  .location__map { aspect-ratio: 4 / 3; }
  .location__card { flex-direction: column; align-items: flex-start; text-align: left; }
  .location__card .btn { width: 100%; }

  .area-card { padding: 32px 24px; }

  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__desc { max-width: none; }

  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* Garantia final: independe da ordem das regras acima, quem prefere
   menos movimento nunca recebe a animação dos bullets do hero. */
@media (prefers-reduced-motion: reduce) {
  .hero__badge--top, .hero__badge--bottom { animation: none !important; }
}
