/* =========================================================
   Cardinali Advocacia — landing page
   Paleta (exclusiva): azul-caneta #040817 · branco quente #F8F7F3 · bronze antigo #A97C4A
   Transparências apenas em bordas, sombras e sobreposições.
   ========================================================= */

:root {
  --bg: #040817;
  --text: #F8F7F3;
  --accent: #A97C4A;

  --overlay-1: rgba(248, 247, 243, .03);
  --overlay-2: rgba(248, 247, 243, .06);
  --line: rgba(248, 247, 243, .12);
  --line-accent: rgba(169, 124, 74, .45);
  --shadow: rgba(4, 8, 23, .6);

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --radius: 4px;
  --cookie-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
h3 { font-size: 1.2rem; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--bg);
  padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bg); }

main:focus { outline: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Eyebrow (tag com fio) ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  line-height: 1.4;
}
.eyebrow::before {
  content: ""; flex: 0 0 26px; height: 1px; background: var(--accent);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { background: var(--text); color: var(--bg); }
.btn--outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: .95rem; }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 1.1rem; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.link-btn {
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--accent); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px var(--shadow);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; margin: 0; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; color: var(--text); }
.brand__sub {
  font-family: var(--sans); font-size: .66rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  margin-top: 5px;
}
.brand:hover .brand__name { color: var(--text); }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 12px;
  background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  font: 600 .95rem var(--sans); cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor;
  transition: transform .25s, opacity .25s;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__list a { text-decoration: none; font-weight: 600; }

/* Menu mobile: escondido só quando o JS está ativo (sem JS, a lista fica visível) */
@media (max-width: 899.98px) {
  .js .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px var(--shadow);
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .js .nav.is-open { display: block; }
  .nav__list a {
    display: block; padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav__cta { margin-top: 20px; width: 100%; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .header__inner { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .nav__list { display: flex; flex-wrap: wrap; gap: 0 16px; }
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .nav { display: flex; align-items: center; gap: 28px; }
  .nav__list { display: flex; gap: 24px; }
  .nav__list a { font-size: .95rem; padding: 6px 0; position: relative; }
  .nav__list a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
  }
  .nav__list a:hover::after { transform: scaleX(1); }
  .nav__cta { min-height: 42px; padding: 8px 18px; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + clamp(28px, 6vw, 72px));
  padding-bottom: clamp(40px, 6vw, 72px);
}
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__title {
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.5rem);
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero__title .eyebrow { margin-bottom: 20px; }
.hero__title em { display: block; }
.hero__lead { font-size: 1.12rem; max-width: 36em; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero__meta {
  font-size: .95rem; margin: 0; max-width: 34em; text-wrap: balance;
  padding-left: 14px; border-left: 2px solid var(--accent);
}

.hero__media { position: relative; max-width: 440px; width: 100%; margin-inline: auto; }
.hero__media::before {
  content: ""; position: absolute; inset: 18px -14px -14px 18px;
  border: 1px solid var(--line-accent);
  pointer-events: none;
}
.hero__media picture { position: relative; display: block; }
.hero__media picture::after {
  /* sobreposição do próprio azul para fundir a base da foto ao fundo */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(4, 8, 23, 0) 38%);
  pointer-events: none;
}
.hero__photo { width: 100%; aspect-ratio: 800 / 1005; object-fit: cover; }
.hero__caption {
  position: absolute; left: 20px; bottom: 16px; margin: 0;
  display: flex; flex-direction: column; line-height: 1.3;
}
.hero__caption strong { font-family: var(--serif); font-size: 1.1rem; }
.hero__caption span { font-size: .85rem; color: var(--accent); font-weight: 600; letter-spacing: .06em; }

.facts {
  list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.facts li {
  display: flex; flex-direction: column;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.facts strong { font-family: var(--serif); font-size: 1.5rem; color: var(--accent); line-height: 1.2; }

@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .facts li { border-bottom: 0; padding: 22px 20px; }
  .facts li + li { border-left: 1px solid var(--line); }
  .facts li:first-child { padding-left: 0; }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; }
  .hero__media { margin-right: 14px; }
}

/* ---------- Seções ---------- */
.section {
  padding-block: clamp(64px, 9vw, 112px);
  border-top: 1px solid var(--line);
}
.section--tint { background: var(--overlay-1); }
.section__head { max-width: 40rem; margin-bottom: clamp(32px, 5vw, 52px); }
.section__head p:last-child { margin-bottom: 0; }
.section__cta { margin-top: 40px; }

.split { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
  .split__head { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* Lista de dores */
.pain-list { list-style: none; margin: 0; padding: 0; }
.pain-list li {
  position: relative;
  padding: 20px 0 20px 40px;
  border-bottom: 1px solid var(--line);
}
.pain-list li:first-child { padding-top: 0; }
.pain-list li::before {
  content: ""; position: absolute; left: 0; top: 33px;
  width: 22px; height: 1px; background: var(--accent);
}
.pain-list li:first-child::before { top: 13px; }
.pain-list h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.pain-list p { margin: 0; }

/* Cartões das áreas */
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  background: var(--overlay-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 0;
  padding: 32px 28px 28px;
  display: flex; flex-direction: column;
}
.card__num {
  position: absolute; top: 20px; right: 24px;
  font-family: var(--serif); font-size: 2.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line-accent);
}
.card__icon {
  width: 40px; height: 40px; margin-bottom: 20px;
  fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-size: 1.35rem; padding-right: 40px; }
.card p { margin-bottom: 0; }
.card__link {
  margin-top: 18px; font-weight: 600; color: var(--accent);
  align-self: flex-start;
}
.card__link::after { content: " →"; }

.subhead {
  font-size: 1.25rem; margin: clamp(48px, 6vw, 64px) 0 16px;
}
.topics {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.topics li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.topics strong { font-weight: 600; }
@media (min-width: 640px) {
  .topics { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
}
@media (min-width: 900px) {
  .topics { grid-template-columns: repeat(3, 1fr); }
}

/* Setor elétrico */
.section--feature {
  background: var(--overlay-2);
  border-top: 2px solid var(--accent);
}
.section--feature .split__head p { max-width: 34em; }
.section--feature .btn { margin-top: 12px; }

.check-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
.check-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--overlay-1);
  font-weight: 600;
}
.check-list li::before {
  content: ""; flex: none; width: 10px; height: 10px;
  border: 1px solid var(--accent); transform: rotate(45deg);
}
@media (min-width: 640px) { .check-list { grid-template-columns: repeat(2, 1fr); } }

/* Quem atende — retrato grande com o nome sobreposto */
.about { display: grid; gap: 40px; align-items: center; }
.about__portrait { position: relative; display: grid; }
.about__media {
  grid-area: 1 / 1;
  position: relative; justify-self: end;
  width: 76%;
}
.about__media::before {
  content: ""; position: absolute; inset: -14px -14px 14px 14px;
  border: 1px solid var(--line-accent); pointer-events: none;
}
.about__media picture { position: relative; display: block; }
.about__media picture::after {
  /* fusão do retrato com o fundo à esquerda e na base, onde o nome entra */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, var(--bg) 0%, rgba(4, 8, 23, 0) 48%),
    linear-gradient(to top, var(--bg) 0%, rgba(4, 8, 23, 0) 42%),
    linear-gradient(rgba(4, 8, 23, .18), rgba(4, 8, 23, .18));
}
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 58% 20%; }
.about__id {
  grid-area: 1 / 1;
  align-self: end;
  position: relative; z-index: 1;
  padding-bottom: 6px;
}
.about__id h2 {
  font-size: clamp(2.2rem, 1.3rem + 3vw, 3.4rem);
  line-height: 1.04;
  margin-bottom: 12px;
}
.about__first { display: block; font-style: italic; color: var(--accent); }
.about__last { display: block; }
.about__oab {
  font-weight: 600; letter-spacing: .06em; margin: 0;
  display: inline-flex; align-items: center; gap: 10px;
}
.about__oab::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.about__text > p { max-width: 36em; }
.creds {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--line);
}
.creds li {
  padding: 12px 0 12px 22px; position: relative;
  border-bottom: 1px solid var(--line); font-weight: 600;
}
.creds li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 8px; height: 8px; margin-top: -4px;
  background: var(--accent); transform: rotate(45deg);
}
@media (min-width: 640px) { .creds { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .about__portrait { margin-right: 14px; }
}

/* Como funciona */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 32px; grid-template-columns: 1fr;
  counter-reset: none;
}
.steps li { border-top: 1px solid var(--line); padding-top: 24px; }
.steps__num {
  display: block; margin-bottom: 14px;
  font-family: var(--serif); font-size: 3.6rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--accent);
}
.steps p { margin: 0; }
.steps__note {
  margin: 40px 0 0; padding-left: 14px;
  border-left: 2px solid var(--accent);
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* FAQ */
.faq-wrap { max-width: 880px; }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item h3 { margin: 0; font-size: inherit; }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 18px 0;
  background: none; border: 0; color: var(--text);
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.35;
  text-align: left; cursor: pointer;
}
.faq__q::after {
  content: ""; flex: none;
  width: 12px; height: 12px;
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  margin-top: -6px; margin-right: 4px;
  transform: rotate(45deg);
  transition: transform .25s, margin-top .25s;
}
.faq__q[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 6px; }
.faq__q:hover { color: var(--accent); }
.faq__a { padding: 0 0 22px; }
@media (min-width: 640px) { .faq__a { padding-right: 40px; } }
.faq__a p { margin: 0; }
.faq__note { font-size: .92rem; margin-top: 24px; padding-left: 14px; border-left: 2px solid var(--accent); }

/* Chamada final */
.final-cta { text-align: center; }
.final-cta__box { max-width: 760px; }
.final-cta .eyebrow { justify-content: center; }
.final-cta .eyebrow::after { content: ""; flex: 0 0 26px; height: 1px; background: var(--accent); }
.final-cta h2 em { display: block; }
.final-cta p { margin-inline: auto; max-width: 34em; }
.final-cta .btn { margin-top: 12px; }

/* Linhas de contato tocáveis (chamada final e rodapé) */
.contact-rows { list-style: none; margin: 0; padding: 0; }
.contact-rows a, .contact-rows__item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 0;
  text-decoration: none;
}
.contact-rows li + li { border-top: 1px solid var(--line); }
.contact-rows__label {
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.contact-rows__value { font-size: 1rem; overflow-wrap: anywhere; }
.contact-rows a:hover .contact-rows__value { color: var(--accent); }
.contact-rows--center {
  max-width: 420px; margin: 32px auto 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) {
  .contact-rows--center { display: flex; max-width: 560px; border-bottom: 0; border-top: 0; }
  .contact-rows--center li { flex: 1; }
  .contact-rows--center li + li { border-top: 0; border-left: 1px solid var(--line); }
}

/* ---------- Rodapé ---------- */
.site-footer {
  border-top: 2px solid var(--accent);
  background: var(--overlay-1);
  padding: 56px 0 calc(112px + var(--cookie-h));
  font-size: .98rem;
}
.footer__grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.1fr 1fr 1fr; } }
.brand--footer { margin-bottom: 16px; }
.footer__title {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.site-footer address { font-style: normal; }
.footer__links { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 4px; }
.footer__links .link-btn { min-height: 36px; text-align: left; }
.footer__legal {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.footer__legal p { max-width: 62em; }

/* ---------- Botão flutuante ---------- */
.wa-float {
  position: fixed; z-index: 40;
  right: 16px;
  bottom: calc(16px + var(--cookie-h));
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 56px; min-height: 56px; padding: 0 16px;
  justify-content: center;
  background: var(--accent); color: var(--bg);
  border-radius: 999px;
  box-shadow: 0 10px 24px var(--shadow);
  font-weight: 600; text-decoration: none;
  transition: bottom .3s, background-color .2s, color .2s;
}
.wa-float:hover { background: var(--text); color: var(--bg); }
.wa-float .icon { width: 26px; height: 26px; }
.wa-float__label { display: none; }
@media (min-width: 768px) {
  .wa-float { right: 24px; bottom: calc(24px + var(--cookie-h)); padding: 0 22px 0 18px; }
  .wa-float__label { display: inline; }
}
.wa-float:focus-visible { outline-color: var(--text); }
/* Some enquanto um botão de WhatsApp já está na tela (topo e chamada final) */
.wa-float.is-hidden {
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility 0s .25s, bottom .3s;
}
.wa-float { transition: opacity .25s, transform .25s, visibility 0s, bottom .3s, background-color .2s, color .2s; }

/* ---------- Banner de cookies ---------- */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: var(--bg);
  border-top: 1px solid var(--line-accent);
  box-shadow: 0 -12px 32px var(--shadow);
}
.cookie[hidden] { display: none; }
.cookie__inner {
  max-width: var(--container); margin-inline: auto;
  padding: 18px var(--gutter);
  display: grid; gap: 14px;
  font-size: .95rem;
}
.cookie__inner p { margin: 0; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie__actions .btn { flex: 1 1 auto; }
@media (min-width: 900px) {
  .cookie__inner { grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
  .cookie__actions .btn { flex: none; }
}

/* ---------- Modais ---------- */
.modal {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0; border: 1px solid var(--line-accent); border-radius: var(--radius);
  background: var(--bg); color: var(--text);
  box-shadow: 0 24px 64px var(--shadow);
}
.modal::backdrop { background: rgba(4, 8, 23, .82); }
.modal__inner { padding: 40px clamp(20px, 5vw, 44px) 32px; position: relative; }
.modal h2 { font-size: 1.8rem; padding-right: 40px; }
.modal h3 { font-family: var(--sans); font-size: 1.05rem; color: var(--accent); margin-top: 24px; margin-bottom: 6px; }
.modal__close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.modal__close:hover { border-color: var(--accent); color: var(--accent); }
body.modal-open { overflow: hidden; }

/* =========================================================
   MOBILE DEDICADO (< 900px)
   Não é o desktop empilhado: foto do Fernando abre a página em sangria total,
   texto sobe sobre a base da foto, CTA principal no primeiro scroll,
   números em linha, avatar compacto em "Quem atende", passos em linha do tempo.
   ========================================================= */
@media (max-width: 899.98px) {
  :root { --header-h: 60px; }

  /* Topo: foto primeiro, de borda a borda */
  .hero { padding-top: var(--header-h); padding-bottom: 8px; }
  .hero__grid { gap: 0; }
  .hero__media {
    order: -1;
    width: auto; max-width: none;
    margin: 0 calc(var(--gutter) * -1);
  }
  .hero__media::before { display: none; }
  .hero__photo {
    aspect-ratio: auto;
    height: min(112vw, 58svh);
    object-position: center 12%;
  }
  .hero__media picture::after {
    /* véu do próprio azul + fusão com o fundo no topo e na base */
    background:
      linear-gradient(rgba(4, 8, 23, .22), rgba(4, 8, 23, .22)),
      linear-gradient(to bottom, rgba(4, 8, 23, .6) 0%, rgba(4, 8, 23, 0) 20%, rgba(4, 8, 23, 0) 50%, var(--bg) 96%);
  }
  .hero__caption { left: var(--gutter); bottom: calc(4.25rem + 16px); }
  .hero__caption strong { font-size: 1rem; }
  .hero__text { position: relative; z-index: 1; margin-top: -4.25rem; }
  .hero__title { font-size: clamp(2rem, 9vw, 2.6rem); margin-bottom: 16px; }
  .hero__title .eyebrow { margin-bottom: 14px; font-size: .72rem; }
  .hero__lead { font-size: 1rem; margin-bottom: 20px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 4px; margin-bottom: 16px; }
  .hero__actions .btn--primary { width: 100%; min-height: 54px; font-size: 1.05rem; }
  .hero__actions .btn--ghost {
    border: 0; min-height: 44px;
    text-decoration: underline; text-underline-offset: 4px;
  }
  .hero__meta { font-size: .9rem; }

  /* Números em linha, como uma faixa */
  .facts { grid-template-columns: repeat(3, 1fr); margin-top: 32px; border-bottom: 1px solid var(--line); }
  .facts li, .facts li:first-child { border-bottom: 0; padding: 14px 6px; text-align: center; }
  .facts li + li { border-left: 1px solid var(--line); }
  .facts strong { font-size: 1.15rem; }
  .facts span { font-size: .8rem; line-height: 1.3; }

  /* Ritmo geral mais curto */
  .section { padding-block: 56px; }
  h2 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .section__head { margin-bottom: 28px; }
  .split { gap: 28px; }
  .section__cta { margin-top: 28px; }
  .section__cta .btn { width: 100%; }

  /* Dores: lista compacta */
  .pain-list li { padding: 14px 0 14px 30px; }
  .pain-list li::before { top: 26px; width: 16px; }
  .pain-list li:first-child::before { top: 12px; }
  .pain-list h3 { font-size: 1.02rem; }
  .pain-list p { font-size: .95rem; }

  /* Áreas: ícone ao lado do título */
  .cards { gap: 12px; }
  .card { padding: 22px 20px; display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; align-items: center; }
  .card__num { display: none; }
  .card__icon { width: 34px; height: 34px; margin: 0; }
  .card h3 { font-size: 1.12rem; padding-right: 0; margin: 0; }
  .card p, .card__link { grid-column: 1 / -1; }
  .card p { margin-top: 12px; font-size: .97rem; }
  .subhead { margin-top: 40px; }
  .topics li { padding: 12px 0; }
  .topics span { font-size: .93rem; }

  /* Setor elétrico: temas em 2 colunas */
  .check-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .check-list li { padding: 12px; font-size: .92rem; line-height: 1.35; align-items: flex-start; gap: 10px; }
  .check-list li::before { width: 8px; height: 8px; margin-top: 6px; }
  .section--feature .btn { width: 100%; }

  /* Quem atende: retrato encostado na borda direita, nome sobre a base */
  .about { gap: 28px; }
  .about__portrait { padding-top: 10px; }
  .about__media { width: 78%; margin-right: calc(var(--gutter) * -1); }
  .about__media::before { inset: -10px 10px 10px -10px; }
  .about__id h2 { font-size: clamp(2.1rem, 10vw, 2.8rem); }

  /* Como funciona: linha do tempo */
  .steps { gap: 0; }
  .steps li { position: relative; border-top: 0; padding: 0 0 28px 64px; }
  .steps li::before {
    content: ""; position: absolute; left: 20px; top: 50px; bottom: 8px;
    width: 1px; background: var(--line-accent);
  }
  .steps li:last-child { padding-bottom: 0; }
  .steps li:last-child::before { display: none; }
  .steps__num { position: absolute; left: 0; top: -4px; margin: 0; font-size: 2.5rem; }
  .steps h3 { font-size: 1.1rem; margin-bottom: 4px; }
  .steps__note { margin-top: 28px; }

  /* FAQ */
  .faq__q { font-size: 1.05rem; min-height: 56px; padding: 14px 0; }

  /* Chamada final */
  .final-cta .btn { width: 100%; }
  .contact-rows--center { text-align: left; margin-top: 24px; }

  /* Rodapé */
  .site-footer { padding-top: 40px; }
  .footer__grid { gap: 28px; }
}

@media (max-width: 359.98px) {
  .check-list { grid-template-columns: 1fr; }
  .facts strong { font-size: 1.02rem; }
  .facts span { font-size: .75rem; }
}

/* ---------- Animações (só com JS e sem preferência por movimento reduzido) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
