/* ===================================================================
   Dr. Wagner Conceição — Advocacia
   Landing page de captação de leads
   Paleta e tipografia conforme manual de identidade visual (Pacote Essence)
=================================================================== */

:root {
  /* Dourados */
  --gold-deep:  #ab6e28;
  --gold:       #cd9934;
  --gold-light: #de9b38;
  --gold-pale:  #efcc75;
  --gold-cream: #fbf2ab;
  --gold-grad:  linear-gradient(135deg, #ab6e28 0%, #efcc75 50%, #cd9934 100%);

  /* Neutros */
  --ink:        #161616;
  --ink-2:      #222222;
  --ink-3:      #2c2c2c;
  --gray-700:   #4d4d4d;
  --gray-600:   #606060;
  --gray-400:   #9a9a9a;
  --gray-300:   #d8d8d8;
  --off-white:  #e8e7e6;
  --white:      #ffffff;

  --maxw: 1180px;
  --radius: 4px;
  --ease: cubic-bezier(.22,.61,.36,1);

  /* Pretos profundos (mármore preto) */
  --black:    #060606;
  --surface:  #101010;
  --surface-2:#171716;

  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--off-white);
  background-color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 22px;
  position: relative;
  padding-left: 42px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 30px; height: 1px;
  background: var(--gold);
}
.eyebrow--dark { color: var(--gold-deep); }
.eyebrow--dark::before { background: var(--gold-deep); }

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--ink);
}
.section__title em { font-style: italic; color: var(--gold-deep); }
.section__title--light { color: var(--white); }
.section__title--light em { color: var(--gold-pale); }

.section__sub {
  margin-top: 20px;
  max-width: 540px;
  color: var(--gray-600);
  font-weight: 300;
  font-size: 1.05rem;
}
.section__sub--light { color: var(--gray-300); }
.section__sub strong { color: var(--gold-pale); font-weight: 600; }

.section { padding-block: clamp(72px, 10vw, 130px); position: relative; }
.section--dark { color: var(--white); }
/* Divisória dourada sutil entre seções */
.section + .section::after {
  content: "";
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(var(--maxw), calc(100% - 48px));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239,204,117,.28), transparent);
}

.section__head { max-width: 640px; margin-bottom: 64px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  will-change: transform;
}
.btn--gold {
  background: var(--gold-grad);
  color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(171,110,40,.6);
  position: relative;
  overflow: hidden;
}
.btn--gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -12px rgba(171,110,40,.75);
}
/* Reflexo de luz que passa periodicamente pelos botões de WhatsApp */
.btn--gold::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.65) 50%, transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
  animation: btnShine 6.5s var(--ease) infinite;
}
@keyframes btnShine {
  0%   { left: -60%; }
  45%  { left: 130%; }
  100% { left: 130%; }
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(239,204,117,.45);
}
.btn--ghost:hover {
  border-color: var(--gold-pale);
  background: rgba(239,204,117,.08);
  transform: translateY(-3px);
}
.btn--block { width: 100%; }

/* ===================================================================
   HEADER
=================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 18px;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(18,18,18,.92);
  backdrop-filter: blur(12px);
  padding-block: 12px;
  box-shadow: 0 1px 0 rgba(239,204,117,.12);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark {
  width: 40px; height: 40px;
  object-fit: contain;
  mix-blend-mode: screen; /* remove o fundo de mármore preto */
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .02em;
  color: var(--white);
}
.brand__tag {
  font-size: .62rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold-pale);
  padding-left: 2px;
}

.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-size: .82rem;
  letter-spacing: .06em;
  color: rgba(255,255,255,.82);
  font-weight: 400;
  transition: color .3s var(--ease);
  position: relative;
}
.nav a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold-pale);
  transition: width .3s var(--ease);
}
.nav a:not(.nav__cta):hover { color: var(--white); }
.nav a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  border: 1px solid rgba(239,204,117,.45);
  padding: 10px 22px;
  border-radius: var(--radius);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--gold-pale);
}
.nav__cta:hover { background: var(--gold-pale); color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--gold-pale);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* ===================================================================
   HERO
=================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    radial-gradient(120% 120% at 80% 0%, #1c1a16 0%, #0c0b0a 45%, #050505 100%);
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 60px;
}
.hero::before {
  /* textura sutil de veios, evocando o mármore da marca */
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(239,204,117,.06), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(171,110,40,.10), transparent 45%);
  pointer-events: none;
}
.hero__overlay {
  position: absolute; inset: 0;
  background-image: url("assets/icon-gold.png");
  background-repeat: no-repeat;
  background-position: right -120px center;
  background-size: 620px;
  mix-blend-mode: screen;
  opacity: .12;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr .85fr;
  gap: 60px;
  align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: .005em;
  margin-bottom: 26px;
}
.hero__title em { font-style: italic; color: var(--gold-pale); }

.hero__lead {
  max-width: 520px;
  font-weight: 300;
  font-size: 1.12rem;
  color: var(--gray-300);
  margin-bottom: 38px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__card {
  background: var(--surface);
  border: 1px solid rgba(239,204,117,.22);
  border-radius: 8px;
  padding: 40px 34px;
  text-align: center;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}
.hero__emblem {
  width: 70px; margin: 0 auto 22px;
  mix-blend-mode: screen;
}
.hero__card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

/* --- Card de perfil com foto do advogado --- */
.hero__profile { padding-top: 0; overflow: hidden; }
.hero__photo-wrap {
  position: relative;
  margin: 0 -34px 20px;
  border-radius: 7px 7px 0 0;
  overflow: hidden;
  background: #0a0908; /* combina com o mármore da própria foto */
}
/* Foto exibida na íntegra (sem recorte e sem distorção), preservando qualidade */
.hero__photo {
  width: 100%;
  height: auto;
  display: block;
}
.hero__profile-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--white);
}
.hero__profile-role {
  display: block;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin: 8px 0 16px;
}
.hero__card p {
  font-weight: 300;
  color: var(--gray-300);
  font-size: .95rem;
  margin-bottom: 26px;
}
.hero__card-note {
  display: block;
  margin-top: 16px;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-pale);
}

.hero__scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 54px;
  background: rgba(239,204,117,.3);
  overflow: hidden;
}
.hero__scroll span {
  position: absolute; top: -20px; left: 0;
  width: 100%; height: 20px;
  background: var(--gold-pale);
  animation: scrollDown 2s var(--ease) infinite;
}
@keyframes scrollDown {
  0% { top: -20px; } 100% { top: 54px; }
}

/* ===================================================================
   ÁREAS DE ATUAÇÃO
=================================================================== */
.areas { color: var(--white); }
.areas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(239,204,117,.14);
  border: 1px solid rgba(239,204,117,.16);
}
.area-card {
  background: var(--surface);
  padding: 46px 38px;
  transition: background .4s var(--ease), transform .4s var(--ease);
  position: relative;
}
.area-card::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.area-card:hover { background: var(--surface-2); }
.area-card:hover::before { transform: scaleX(1); }
.area-card__num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-pale);
  letter-spacing: .1em;
}
.area-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 18px 0 12px;
  color: var(--white);
}
.area-card p { color: var(--gray-300); font-weight: 300; font-size: .96rem; }

/* ===================================================================
   FLAGRANTE (CHAMARIZ) + COMO FUNCIONA
=================================================================== */
.section__head--center { text-align: center; margin-inline: auto; }
.section__head--center .eyebrow { padding-left: 0; }
.section__head--center .eyebrow::before { display: none; }
.section__head--center .section__sub { margin-inline: auto; }

/* Botões auxiliares (sem alterar a identidade) */
.btn--sm { padding: 12px 22px; font-size: .72rem; gap: 8px; }
.btn--lg { padding: 19px 40px; font-size: .88rem; }

.flag__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.flag-card {
  background: var(--surface);
  border: 1px solid rgba(239,204,117,.12);
  border-radius: 8px;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s var(--ease);
}
.flag-card:hover {
  border-color: rgba(239,204,117,.42);
  transform: translateY(-4px);
  background: var(--surface-2);
}
.flag-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 12px;
}
.flag-card p {
  color: var(--gray-300);
  font-weight: 300;
  font-size: .96rem;
  flex: 1;
  margin-bottom: 24px;
}

.flag__cta { text-align: center; margin-top: 56px; }
.flag__cta-note {
  display: block;
  margin-top: 16px;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-pale);
}

/* Como funciona — 3 passos */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.step { text-align: center; padding: 10px 16px; }
.step__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 16px;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 10px;
}
.step p {
  color: var(--gray-300);
  font-weight: 300;
  font-size: .95rem;
  max-width: 300px;
  margin-inline: auto;
}

/* ===================================================================
   DIFERENCIAIS
=================================================================== */
.diferenciais__inner {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 70px;
  align-items: start;
}
.diferenciais__intro .btn { margin-top: 34px; }
.diferenciais__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(239,204,117,.12);
  border: 1px solid rgba(239,204,117,.14);
}
.diferenciais__list li {
  background: var(--surface);
  padding: 34px 30px;
  transition: background .4s var(--ease);
}
.diferenciais__list li:hover { background: var(--surface-2); }
.diferenciais__list h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.12rem;
  color: var(--gold-pale);
  margin-bottom: 10px;
}
.diferenciais__list p { color: var(--gray-300); font-weight: 300; font-size: .92rem; }

/* ===================================================================
   SOBRE
=================================================================== */
.sobre { color: var(--white); }
.sobre__inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.sobre__media {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  border: 1px solid rgba(239,204,117,.2);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}
.sobre__media img { mix-blend-mode: screen; }
.sobre__media::after {
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid rgba(239,204,117,.22);
  border-radius: 4px;
  pointer-events: none;
}
.sobre__content p {
  margin-top: 18px;
  color: var(--gray-300);
  font-weight: 300;
}
.sobre__points {
  list-style: none;
  margin-top: 30px;
  display: grid;
  gap: 14px;
}
.sobre__points li {
  position: relative;
  padding-left: 30px;
  font-size: .98rem;
  color: var(--off-white);
}
.sobre__points li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 14px; height: 2px;
  background: var(--gold-grad);
}

/* ===================================================================
   FOOTER
=================================================================== */
.footer { background: #040404; color: var(--gray-300); position: relative; }
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding-block: 60px 46px;
}
.footer__nav { display: flex; flex-direction: column; gap: 14px; }
.footer__nav a { font-size: .9rem; transition: color .3s; }
.footer__nav a:hover { color: var(--gold-pale); }
.footer__contact { display: flex; flex-direction: column; gap: 12px; font-size: .9rem; }
.footer__contact > :first-child { color: var(--gold-pale); font-size: 1.05rem; }
.footer__contact a { transition: color .3s; }
.footer__contact a:hover { color: var(--gold-pale); }
.footer__address { font-weight: 300; font-size: .82rem; line-height: 1.5; color: var(--gray-400); margin-top: 2px; }
.footer__hours { font-size: .82rem; letter-spacing: .04em; color: var(--gold-pale); }
.footer__map-link {
  margin-top: 4px;
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--gold-pale);
  transition: opacity .3s;
}
.footer__map-link:hover { opacity: .75; }

/* Mapa do escritório */
.footer__map {
  margin-bottom: 56px;
  border: 1px solid rgba(239,204,117,.2);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px -30px rgba(0,0,0,.9);
}
.footer__map iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  /* tom escuro para combinar com o tema; volta ao normal no hover */
  filter: invert(0.9) hue-rotate(180deg) brightness(0.95) contrast(0.9) grayscale(0.2);
  transition: filter .4s var(--ease);
}
.footer__map:hover iframe { filter: none; }

.footer__bar { border-top: 1px solid rgba(255,255,255,.08); }
.footer__bar-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 24px;
  font-size: .76rem;
  color: var(--gray-600);
}

/* ---------- WhatsApp flutuante (pulsante) ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #e23b3b 0%, #b71c1c 100%);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 30px -8px rgba(209,47,47,.7);
  transition: transform .35s var(--ease);
  animation: waBounce 2.6s var(--ease) infinite;
}
/* Anéis de pulso que chamam atenção */
.whatsapp-float::before,
.whatsapp-float::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(226,59,59,.5);
  z-index: -1;
  animation: waPulse 2.6s var(--ease) infinite;
}
.whatsapp-float::after { animation-delay: 1.3s; }
.whatsapp-float:hover { transform: scale(1.1) translateY(-2px); animation-play-state: paused; }
.whatsapp-float svg { position: relative; z-index: 1; }
/* Selo 24h reforçando o atendimento ininterrupto */
.whatsapp-float__badge {
  position: absolute;
  top: -6px; right: -6px;
  z-index: 2;
  background: var(--ink);
  color: var(--gold-pale);
  border: 1px solid var(--gold-pale);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .62rem;
  letter-spacing: .02em;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,.5);
}

@keyframes waPulse {
  0%   { transform: scale(1);   opacity: .7; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes waBounce {
  0%, 88%, 100% { transform: scale(1); }
  92% { transform: scale(1.12); }
  96% { transform: scale(.97); }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===================================================================
   RESPONSIVO
=================================================================== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__card { max-width: 440px; }
  .diferenciais__inner,
  .sobre__inner { grid-template-columns: 1fr; gap: 44px; }
  .areas__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex;
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(14,14,14,.98);
    backdrop-filter: blur(12px);
    padding: 16px 24px 28px;
    border-top: 1px solid rgba(239,204,117,.18);
  }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav.open .nav__cta { border: 1px solid rgba(239,204,117,.45); margin-top: 12px; text-align: center; }

  .areas__grid { grid-template-columns: 1fr; }
  .flag__grid { grid-template-columns: 1fr; }
  .diferenciais__list { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__card { padding: 30px 24px; }
  .footer__bar-inner { flex-direction: column; }
}

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