/* Paleta extraída do site real do Dr. Rodrigo (rodrigomarquesadvocacia.netlify.app) */
:root {
  --black: #0b0a08;
  --black-soft: #161310;
  --black-card: #1c1812;
  --gold: #b8934c;
  --gold-light: #d9b876;
  --gold-dim: rgba(184, 147, 76, 0.28);
  --cream: #ece6d8;
  --grey: #948c7c;
  --grey-dim: #5f594c;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

/* ===== Faixa superior ===== */
.topbar {
  display: block;
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(90deg, #8f1d1d, #c62828 50%, #8f1d1d);
  background-size: 200% 100%;
  animation: bar-shift 4s linear infinite;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  overflow: hidden;
  box-shadow: 0 2px 18px rgba(198,40,40,.55);
}
.ticker { overflow: hidden; white-space: nowrap; padding: 10px 0; }
.ticker-track { display: inline-flex; animation: ticker 28s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; padding: 0 28px; }
.topbar:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bar-shift { from { background-position: 0 0; } to { background-position: 200% 0; } }

.dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: #39ff7a; margin-right: 9px;
  box-shadow: 0 0 0 0 rgba(57,255,122,.7); animation: pulse 1.6s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(57,255,122,0); } 100% { box-shadow: 0 0 0 0 rgba(57,255,122,0); } }

/* ===== Botões / CTA ===== */
.cta-wrap { text-align: center; margin-top: 32px; }
/* Verde do WhatsApp com brilho neon: o botão leva ao WhatsApp e se destaca do preto/dourado */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #062b14;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 30px;
  border-radius: 50px;
  border: 1px solid #7dffaf;
  transition: background .2s, transform .2s;
  animation: neon 2.2s ease-in-out infinite;
}
.btn .wa-svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn:hover { background: #3ae47a; transform: translateY(-2px) scale(1.02); }
.btn-sm { padding: 13px 22px; font-size: 13px; }
@keyframes neon {
  0%, 100% { box-shadow: 0 0 6px rgba(37,211,102,.6), 0 0 16px rgba(37,211,102,.35); }
  50% { box-shadow: 0 0 12px rgba(57,255,122,.95), 0 0 34px rgba(57,255,122,.6), 0 0 60px rgba(37,211,102,.3); }
}
.band .btn { border-color: #0b0a08; }

@media (prefers-reduced-motion: reduce) {
  .btn, .dot, .ticker-track, .topbar { animation: none !important; }
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(184,147,76,.12), transparent 60%),
    var(--black);
  padding: 36px 0 56px;
}
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-logo { width: 190px; height: auto; margin: 0 auto 26px; }
.hero-text { text-align: center; }
.eyebrow { color: var(--gold-light); font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1.08;
  color: var(--cream);
}
.hero-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--gold-light);
  font-size: clamp(22px, 4vw, 30px);
  margin: 10px 0 16px;
}
.hero-sub { color: var(--grey); font-size: 17px; max-width: 560px; margin: 0 auto; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.hero-tags { gap: 8px 22px; }
.info-chip {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold-light); font-size: 14px; font-weight: 600;
}
.info-chip .dot { margin-right: 2px; }
.hero-oab { color: var(--grey-dim); font-size: 13px; margin-top: 16px; letter-spacing: .04em; }

.hero-photo { position: relative; max-width: 420px; margin: 0 auto; width: 100%; }
.hero-photo .img-upload { aspect-ratio: 3 / 4; border: 1px solid var(--gold-dim); }
.photo-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(11,10,8,.95));
  padding: 40px 18px 16px; text-align: center;
}
.photo-caption strong { display: block; color: var(--gold-light); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.photo-caption span { font-size: 13px; color: var(--cream); }

/* ===== Upload de imagem ===== */
.img-upload { position: relative; overflow: hidden; background: var(--black-card); cursor: pointer; border-radius: 4px; }
.img-upload .upload-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 3; }
.img-upload .uploaded-preview { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.upload-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--grey); font-size: 14px; border: 1px dashed var(--gold-dim);
}
.img-upload.has-image .upload-placeholder { display: none; }

/* ===== Números ===== */
.stats { background: var(--black-soft); border-top: 1px solid var(--gold-dim); border-bottom: 1px solid var(--gold-dim); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.stats-grid div { padding: 22px 10px; text-align: center; }
.stats-grid strong { display: block; font-family: var(--serif); font-size: 30px; color: var(--gold-light); font-weight: 500; line-height: 1.1; }
.stats-grid strong small { color: #FBBC04; font-size: 20px; }
.stats-grid span { font-size: 13px; color: var(--grey); }

/* ===== Seções ===== */
.section { padding: 72px 0; }
.section-soft { background: var(--black-soft); }
.kicker {
  text-align: center; color: var(--gold); font-size: 12px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 10px;
}
.section-title {
  font-family: var(--serif); font-weight: 500; text-align: center;
  font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin-bottom: 18px;
}
.section-title em { color: var(--gold-light); }
.section-title.left { text-align: left; }
.section-intro { text-align: center; color: var(--grey); max-width: 640px; margin: 0 auto 36px; font-size: 17px; }
.sub-title { font-family: var(--serif); font-weight: 500; font-size: 26px; text-align: center; margin: 56px 0 24px; }

/* ===== Avaliações ===== */
.rating-line { text-align: center; color: var(--grey); margin-bottom: 32px; }
.rating-line strong { color: var(--cream); }
.stars { color: #FBBC04; letter-spacing: 1px; }
.reviews-grid { display: grid; gap: 18px; }
.review {
  background: var(--black-card); border: 1px solid rgba(184,147,76,.15);
  border-radius: 6px; padding: 22px;
}
.review p { color: var(--cream); font-size: 15px; margin-top: 14px; }
.review-head { display: flex; gap: 12px; align-items: center; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 18px;
}
.review-id strong { display: block; font-size: 15px; line-height: 1.3; }
.review-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.review-time { color: var(--grey); }
.google-g { display: inline-flex; margin-left: auto; }

/* ===== Checklist ===== */
.checklist { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.checklist li {
  position: relative; padding: 16px 18px 16px 52px;
  background: var(--black-card); border-left: 3px solid var(--gold); border-radius: 4px;
}
.checklist li::before {
  content: ''; position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border-radius: 50%; background: var(--gold-dim);
}
.checklist li::after {
  content: ''; position: absolute; left: 25px; top: 50%; width: 5px; height: 10px; margin-top: -7px;
  border: solid var(--gold-light); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.note { color: var(--grey); text-align: center; margin-top: 24px; }

/* ===== Áreas ===== */
.areas-row { display: grid; gap: 18px; }
.area-card {
  background: var(--black-card); border: 1px solid rgba(184,147,76,.15);
  border-radius: 6px; padding: 28px 24px; position: relative;
  transition: border-color .2s;
}
.area-card:hover { border-color: var(--gold); }
.area-num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 15px; }
.area-card h3 { font-family: var(--serif); font-weight: 600; font-size: 23px; margin: 6px 0 10px; }
.area-card p { color: var(--grey); font-size: 15px; }
.cta-bar {
  margin: 18px 0 34px; padding: 20px; text-align: center;
  border-top: 1px solid var(--gold-dim); border-bottom: 1px solid var(--gold-dim);
}
.cta-bar span { display: block; color: var(--gold-light); font-weight: 600; margin-bottom: 12px; }
.cta-bar:last-child { margin-bottom: 0; }

/* ===== Banda "outra situação" ===== */
.band { background: var(--gold); color: var(--black); padding: 60px 0; }
.band h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 5vw, 36px); line-height: 1.2; }
.band p { margin-top: 12px; font-size: 17px; font-weight: 500; }
.band .cta-wrap { margin-top: 26px; }

/* ===== Fases e passos ===== */
.phases { display: grid; gap: 14px; margin-top: 28px; }
.phase {
  text-align: center; padding: 26px 18px; border: 1px solid var(--gold-dim); border-radius: 6px;
}
.phase span { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 26px; display: block; }
.phase strong { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: 15px; margin: 4px 0 6px; }
.phase p { color: var(--grey); font-size: 14px; }
.steps { list-style: none; display: grid; gap: 16px; counter-reset: s; }
.steps li {
  counter-increment: s; background: var(--black-card); border-radius: 6px;
  padding: 22px 22px 22px 74px; position: relative;
}
.steps li::before {
  content: counter(s); position: absolute; left: 22px; top: 22px;
  width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--black);
  font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.steps strong { font-size: 17px; }
.steps p { color: var(--grey); font-size: 15px; margin-top: 4px; }

/* ===== Sobre ===== */
.about-grid { display: grid; gap: 36px; align-items: center; }
.about-photo { max-width: 420px; margin: 0 auto; width: 100%; }
.about-photo .img-upload { aspect-ratio: 3 / 4; border: 1px solid var(--gold-dim); }
.about-text .kicker { text-align: left; }
.about-oab { color: var(--gold-light); font-weight: 600; margin: -8px 0 18px; }
.about-text p { color: var(--grey); margin-bottom: 14px; }
.about-list { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.about-list li { padding-left: 26px; position: relative; }
.about-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 14px; height: 2px; background: var(--gold); }

/* ===== Localização ===== */
.location-grid { display: grid; gap: 28px; margin-top: 18px; }
.info-item { padding: 14px 0; border-bottom: 1px solid rgba(184,147,76,.15); }
.info-label { display: block; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 2px; }
.info-item a { color: var(--cream); }
.map { border-radius: 6px; overflow: hidden; border: 1px solid var(--gold-dim); min-height: 320px; }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(.4) contrast(1.05); }

/* ===== FAQ ===== */
.faq { margin-top: 28px; display: grid; gap: 10px; }
.faq-item { background: var(--black-card); border-radius: 6px; border: 1px solid rgba(184,147,76,.12); }
.faq-question {
  width: 100%; text-align: left; background: none; border: 0; color: var(--cream);
  font-family: var(--sans); font-size: 16px; font-weight: 700; padding: 20px 52px 20px 20px;
  cursor: pointer; position: relative;
}
.faq-question::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 24px; font-weight: 400; transition: transform .2s;
}
.faq-item.open .faq-question::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer p { padding: 0 20px 20px; color: var(--grey); }
.faq-item.open .faq-answer { max-height: 300px; }

/* ===== CTA final e rodapé ===== */
.final-cta {
  padding: 80px 0;
  background: radial-gradient(ellipse at center, rgba(184,147,76,.16), transparent 70%), var(--black);
  border-top: 1px solid var(--gold-dim);
}
.final-cta h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 6vw, 44px); }
.final-cta p { color: var(--grey); margin-top: 12px; font-size: 17px; }
.footer { background: var(--black-soft); padding: 48px 0 100px; font-size: 14px; color: var(--grey); }
.footer-grid { display: grid; gap: 24px; }
.footer-logo { width: 160px; height: auto; margin-bottom: 14px; }
.footer strong { color: var(--cream); }
.footer a { color: var(--grey); text-decoration: none; }
.footer a:hover { color: var(--gold-light); }
.footer p { margin-bottom: 10px; }
.footer-legal { text-align: center; font-size: 12px; color: var(--grey-dim); margin-top: 28px; padding: 0 20px; }

/* ===== WhatsApp flutuante ===== */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.wa-bubble {
  background: var(--cream); color: var(--black); font-size: 13px; font-weight: 700;
  line-height: 1.3; padding: 9px 14px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.wa-bubble small { font-weight: 500; color: var(--grey-dim); }
.wa-icon {
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.4);
}

/* ===== Desktop ===== */
@media (min-width: 720px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid div + div { border-left: 1px solid var(--gold-dim); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-4 { grid-template-columns: repeat(2, 1fr); }
  .areas-row { grid-template-columns: repeat(2, 1fr); }
  .phases { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .hero { padding: 56px 0 80px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .hero-text { text-align: left; }
  .hero-logo { margin: 0 0 30px; }
  .hero-sub { margin: 0; }
  .hero-tags { justify-content: flex-start; }
  .about-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; }
  .location-grid { grid-template-columns: 1fr 1.3fr; }
  .reviews-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .wa-bubble { display: none; }
  .btn { padding: 16px 22px; font-size: 14px; }
}

/* Destaque do plantão (texto em evidência, sem formato de botão) */
.chip-strong {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
  color: var(--gold-light);
  text-shadow: 0 0 18px rgba(217,184,118,.45);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--gold);
}

/* ===== Galeria de atuação presencial ===== */
.gallery { display: grid; gap: 16px; grid-template-columns: 1fr; }
.gallery figure { margin: 0; }
.gallery .img-upload { aspect-ratio: 3 / 4; border: 1px solid var(--gold-dim); }
.gallery figcaption {
  text-align: center; color: var(--gold-light); font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin-top: 10px;
}
@media (max-width: 719px) {
  .gallery {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
    margin: 0 -20px; padding-left: 20px; padding-right: 20px; scroll-padding-left: 20px;
  }
  .gallery figure { scroll-snap-align: start; }
  .gallery-hint { display: block; }
}
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

/* ===== Celular: foto do hero vira um avatar pequeno no topo ===== */
@media (max-width: 959px) {
  .hero { padding-top: 26px; }
  .hero-grid { gap: 0; }
  .hero-photo { order: -1; width: 112px; max-width: 112px; margin: 0 auto 18px; }
  .hero-photo .img-upload {
    aspect-ratio: 1 / 1; border-radius: 50%;
    border: 2px solid var(--gold); box-shadow: 0 0 0 5px rgba(184,147,76,.15), 0 0 26px rgba(184,147,76,.35);
  }
  .hero-photo picture { display: block; width: 100%; height: 100%; }
  .hero-photo .uploaded-preview { object-position: center; }
  .hero-photo .photo-caption { display: none; }
  .hero-logo { width: 150px; margin-bottom: 18px; }
}

/* ===== PC: hero mais compacto, texto e foto mais próximos ===== */
@media (min-width: 960px) {
  .hero { padding: 36px 0 60px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; max-width: 1040px; }
  .hero-logo { width: 170px; margin-bottom: 22px; }
}
.gallery-hint { display: none; text-align: center; color: var(--grey); font-size: 13px; margin-top: 10px; }

/* ===== Selo de avaliação do Google no hero ===== */
.google-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(251,188,4,.35);
  border-radius: 50px; padding: 6px 14px 6px 10px; margin-bottom: 14px;
  font-size: 13px; color: var(--cream); text-decoration: none;
  box-shadow: 0 0 18px rgba(251,188,4,.18);
  transition: border-color .2s;
}
.google-badge:hover { border-color: #FBBC04; }
.google-badge .stars { font-size: 14px; letter-spacing: 0; text-shadow: 0 0 8px rgba(251,188,4,.6); }
.google-badge strong { font-weight: 800; }
.google-badge .gb-count { color: var(--grey); }
@media (max-width: 380px) { .google-badge .gb-count { font-size: 12px; } }

/* Celular: botão flutuante só aparece depois do hero, para não cobrir o CTA principal */
@media (max-width: 959px) {
  .wa-float { opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s; }
  .wa-float.visible { opacity: 1; transform: none; pointer-events: auto; }
}

/* ===== Hero: OAB junto ao nome + versão compacta no PC ===== */
.hero-oab { margin: -8px 0 14px; font-size: 13px; color: var(--grey); letter-spacing: .03em; }
.hero-oab strong { color: var(--gold-light); font-weight: 700; }
@media (min-width: 960px) {
  .hero { padding: 24px 0 44px; }
  .hero-logo { width: 140px; margin-bottom: 16px; }
  .google-badge { margin-bottom: 10px; }
  .hero h1 { font-size: clamp(36px, 3.4vw, 48px); }
  .hero-name { font-size: 26px; margin: 6px 0 12px; }
  .hero-sub { font-size: 16px; }
  .hero-tags { margin-top: 16px; }
  .hero .cta-wrap { margin-top: 22px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 959px) {
  .oab-extra { display: none; }
  .hero { padding-top: 18px; padding-bottom: 40px; }
  .hero-photo { width: 92px; max-width: 92px; margin-bottom: 12px; }
  .hero-logo { width: 120px; margin-bottom: 12px; }
  .google-badge { margin-bottom: 10px; }
  .eyebrow { font-size: 14px; margin-bottom: 6px; }
  .hero-name { margin: 6px 0 12px; }
  .hero-sub { font-size: 15px; }
  .hero-tags { margin-top: 14px; }
  .hero .cta-wrap { margin-top: 20px; }
}

/* ===== Celular: ordem do hero
   [foto] [logo]
   headline, nome, OAB, avaliações Google, texto, plantão/atuação, botão ===== */
@media (max-width: 959px) {
  .hero-grid {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    column-gap: 18px;
    row-gap: 0;
    text-align: center;
  }
  .hero-text { display: contents; }
  .hero-photo { order: 1; margin: 0; }
  .hero-logo { order: 2; margin: 0; width: 140px; justify-self: start; }
  .hero-text > :not(.hero-logo) { grid-column: 1 / -1; }
  .eyebrow { display: none; }
  .hero h1 { order: 3; margin-top: 20px; }
  .hero-name { order: 4; }
  .hero-oab { order: 5; }
  .google-badge { order: 6; justify-self: center; margin: 2px 0 16px; }
  .hero-sub { order: 7; }
  .hero-tags { order: 8; }
  .hero .cta-wrap { order: 9; }
}
@media (max-width: 959px) {
  .hero-grid { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .hero-photo { justify-self: end; }
  .hero-logo { justify-self: start; }
}
@media (max-width: 959px) {
  .hero-grid { grid-template-columns: 1fr auto auto 1fr; column-gap: 0; }
  .hero-photo { grid-column: 2; margin-right: 16px; }
  .hero-logo { grid-column: 3; }
}
