/* ============================================================
   Landing Page — Dr. Willians Reis dos Santos
   Advocacia Previdenciária · OAB/BA 49815
   Paleta e tipografia conforme specs/design.md
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --navy: #0B1F3A;        /* primária */
  --navy-900: #081729;    /* navy mais profundo (sombras/faixas) */
  --blue: #1E4E8C;        /* ações / botões */
  --blue-600: #24589b;    /* hover claro */
  --blue-700: #163d70;    /* pressed */
  --gold: #C9A227;        /* detalhe */
  --gold-soft: rgba(201, 162, 39, .45);
  --white: #FFFFFF;
  --gray: #F5F7FA;        /* blocos alternados */

  --ink: #14243c;         /* texto sobre claro (navy-tinted, nunca preto puro) */
  --ink-soft: #4a5a71;    /* texto secundário sobre claro (tint navy) */
  --on-navy: #eef2f8;     /* texto sobre navy */
  --on-navy-soft: #aebbd0;/* secundário sobre navy (tint azul, nunca cinza puro) */

  --line: #e3e8ef;        /* divisórias sobre claro */

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 8px rgba(11, 31, 58, .07);
  --shadow-md: 0 10px 26px rgba(11, 31, 58, .10);
  --shadow-lg: 0 18px 44px rgba(11, 31, 58, .16);

  --container: 1140px;
  --gutter: clamp(20px, 5vw, 40px);

  --wa: #25D366;          /* verde WhatsApp (só sinal no FAB) */

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1rem, .97rem + .18vw, 1.0625rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { margin: 0; line-height: 1.14; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

a { color: inherit; }

/* ---------- Browser surfaces (temas de detalhe) ---------- */
::selection { background: var(--gold); color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--blue) var(--gray); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--gray); }
::-webkit-scrollbar-thumb { background: var(--blue); border: 3px solid var(--gray); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--white);
  padding: 12px 18px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--light { background: var(--white); }
.section--gray { background: var(--gray); }

.section__head { max-width: 44ch; margin-bottom: clamp(28px, 4vw, 44px); }
.section__title {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  color: var(--navy);
  text-wrap: balance;
}
.section__title::after {
  content: ""; display: block;
  width: 56px; height: 3px; margin-top: 20px;
  background: var(--gold); border-radius: 3px;
}
.section__sub {
  margin-top: 16px;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem);
  color: var(--ink-soft);
  font-weight: 500;
}
.section__cta { margin-top: clamp(32px, 5vw, 48px); }
.section__cta--left { margin-top: 28px; }

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--blue);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: inherit; font-weight: 700; font-size: 1.0625rem;
  line-height: 1; text-decoration: none; cursor: pointer;
  color: var(--white);
  background: var(--btn-bg);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-sm);
  padding: 16px 26px;
  min-height: 52px;
  box-shadow: 0 8px 20px rgba(11, 31, 58, .22);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  background: var(--blue-600);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(11, 31, 58, .28), 0 0 0 3px rgba(201, 162, 39, .28);
}
.btn:active { transform: translateY(0); background: var(--blue-700); box-shadow: 0 6px 14px rgba(11, 31, 58, .24); }
.btn--lg { padding: 18px 30px; font-size: 1.125rem; min-height: 58px; }
.btn--sm { padding: 11px 18px; font-size: .95rem; min-height: 44px; box-shadow: 0 6px 16px rgba(0, 0, 0, .22); }

.ico { width: 1.25em; height: 1.25em; flex: none; }
.ico--arrow { transition: transform .22s var(--ease); }
.btn:hover .ico--arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 31, 58, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(201, 162, 39, .28);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 26px rgba(0, 0, 0, .28); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px;
}
.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--on-navy); }
.brand__name { font-weight: 800; font-size: 1.06rem; letter-spacing: -.01em; line-height: 1.1; }
.brand__meta {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold);
}
.header-cta .ico { color: var(--wa); }
.header-cta:hover .ico { color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex; align-items: center;
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, rgba(8, 23, 41, .96) 0%, rgba(8, 23, 41, .88) 32%, rgba(11, 31, 58, .55) 55%, rgba(11, 31, 58, .08) 80%, rgba(11, 31, 58, 0) 100%),
    url("imagens/foto-hero-desktop.webp");
  background-repeat: no-repeat;
  background-position: center right, center right;
  background-size: cover, cover;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 162, 39, 0));
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(48px, 9vw, 96px); }
.hero__content { max-width: 640px; }
.hero__title {
  color: var(--white);
  font-size: clamp(2.15rem, 1.3rem + 3.6vw, 3.6rem);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hero__title-em { color: var(--gold); }
.hero__lead {
  margin-top: 22px;
  max-width: 46ch;
  font-size: clamp(1.06rem, 1rem + .5vw, 1.25rem);
  color: var(--on-navy-soft);
  font-weight: 500;
}
.hero__actions { margin-top: 32px; }
.hero__place {
  margin-top: 26px;
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .98rem; color: var(--on-navy-soft); font-weight: 500;
}
.hero__place strong { color: var(--on-navy); }
.hero__place .ico--pin { color: var(--gold); }

/* ---------- Situações (lista) ---------- */
.lead-inline {
  font-size: 1.1rem; font-weight: 700; color: var(--navy);
  margin: 8px 0 18px;
}
.situations {
  list-style: none; margin: 0 0 clamp(40px, 6vw, 60px); padding: 0;
  display: grid; gap: 14px 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.situations li {
  display: flex; align-items: flex-start; gap: 12px;
  font-weight: 600; color: var(--ink);
  padding: 14px 18px;
  background: var(--gray);
  border-radius: var(--radius);
}
.situations .ico--check {
  width: 22px; height: 22px; flex: none; margin-top: 1px;
  color: var(--blue);
}

/* ---------- Cards de serviço ---------- */
.services {
  display: grid; gap: clamp(18px, 2.4vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px 32px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; margin-bottom: 20px;
  border-radius: 14px;
  background: rgba(30, 78, 140, .08);
  color: var(--navy);
}
.card__icon svg { width: 32px; height: 32px; }
.card:hover .card__icon { color: var(--blue); }
.card__title { font-size: 1.2rem; color: var(--navy); margin-bottom: 10px; }
.card__text { color: var(--ink-soft); font-weight: 500; margin: 0; }

/* ---------- Split (Dobra 3) ---------- */
.split {
  display: grid; gap: clamp(32px, 5vw, 64px); align-items: center;
  grid-template-columns: 1fr;
}
.split__body p { color: var(--ink-soft); font-weight: 500; }
.split__body .section__title { margin-bottom: 24px; }
.photo-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 460px;
}
.photo-frame::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(201, 162, 39, .35); border-radius: inherit;
  pointer-events: none;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Acolhimento ---------- */
.reassure {
  max-width: 62ch; margin: 0 auto clamp(48px, 7vw, 80px);
  padding: clamp(30px, 4vw, 48px);
  background: var(--navy);
  color: var(--on-navy);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 162, 39, .22);
  box-shadow: var(--shadow-md);
}
.reassure__title {
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem);
  color: var(--white); margin-bottom: 6px; font-style: italic; font-weight: 700;
}
.reassure__ok { font-size: 1.3rem; font-weight: 800; color: var(--gold); margin-bottom: 18px; }
.reassure p { color: var(--on-navy-soft); font-weight: 500; }
.reassure__strong { color: var(--on-navy) !important; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq__title { text-align: center; margin-bottom: clamp(24px, 4vw, 40px); }
.faq__title::after { margin-inline: auto; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq__item:has(.faq__q[aria-expanded="true"]) { border-color: var(--gold-soft); box-shadow: var(--shadow-sm); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 1.06rem; font-weight: 700; color: var(--navy);
  line-height: 1.35;
  text-align: left; padding: 20px 22px; min-height: 44px;
}
.faq__q span { flex: 1; }
.faq__chevron { width: 22px; height: 22px; flex: none; color: var(--blue); transition: transform .28s var(--ease); }
.faq__q[aria-expanded="true"] .faq__chevron { transform: rotate(180deg); }
.faq__a { padding: 0 22px; }
.faq__a p { padding-bottom: 22px; margin: 0; color: var(--ink-soft); font-weight: 500; }
.faq__a[hidden] { display: none; }

/* ---------- Closing (CTA final) ---------- */
.closing {
  position: relative;
  background:
    radial-gradient(1200px 400px at 50% -10%, rgba(30, 78, 140, .5), rgba(11, 31, 58, 0) 60%),
    var(--navy);
  padding-block: clamp(64px, 9vw, 112px);
  text-align: center;
  overflow: hidden;
}
.closing::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0), var(--gold), rgba(201, 162, 39, 0));
}
.closing__inner { max-width: 720px; margin-inline: auto; position: relative; z-index: 2; }
.closing__title {
  color: var(--white);
  font-size: clamp(1.8rem, 1.3rem + 2.4vw, 2.75rem);
  text-wrap: balance;
}
.closing__lead {
  margin: 20px auto 34px; max-width: 54ch;
  color: var(--on-navy-soft); font-weight: 500;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem);
}
.closing__place {
  margin-top: 26px;
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--on-navy-soft); font-size: .96rem; font-weight: 500;
}
.closing__place .ico--pin { color: var(--gold); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy-900); color: var(--on-navy); padding-block: 30px; }
.site-footer__inner { text-align: center; }
.site-footer__name { font-weight: 800; font-size: 1.05rem; color: var(--white); margin: 0; }
.site-footer__meta {
  margin: 4px 0 0; font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
}

/* ---------- WhatsApp flutuante (mobile) ---------- */
.whats-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; display: none;
  align-items: center; justify-content: center;
  background: var(--blue); color: var(--white);
  border-radius: 50%;
  border: 1.5px solid var(--gold-soft);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
}
.whats-fab svg { width: 30px; height: 30px; }
.whats-fab::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .5);
  animation: fabPulse 2.6s var(--ease) infinite;
}
@keyframes fabPulse {
  0% { transform: scale(.9); opacity: .7; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Reveal (uma animação autoral) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .whats-fab::after { animation: none; }
  .btn, .card, .ico--arrow, .faq__chevron { transition: none; }
}

/* ============================================================
   Responsivo
   ============================================================ */
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .split__media { justify-self: center; }
}

@media (max-width: 720px) {
  .whats-fab { display: inline-flex; }
  .header-cta span { display: none; }
  .header-cta { padding: 11px; }
  .header-cta .ico { width: 1.4em; height: 1.4em; }

  /* Hero mobile: imagem dedicada como background, texto sobre a área vazia inferior */
  .hero {
    min-height: 100svh;
    align-items: flex-end;
    background-image:
      linear-gradient(180deg, rgba(11, 31, 58, 0) 30%, rgba(11, 31, 58, .55) 52%, rgba(8, 23, 41, .96) 78%),
      url("imagens/bg-hero-mobile.webp");
    background-position: center top, center top;
  }
  .hero__inner { padding-bottom: 40px; }
  .hero__content { max-width: 100%; }
  .hero__lead { max-width: none; }
}

@media (max-width: 400px) {
  .brand__name { font-size: .95rem; }
  .brand__meta { font-size: .7rem; letter-spacing: .05em; }
}
