/* ========================================================
   ESTILOS PRINCIPAIS - LANDING PAGE STUDIO AGÊNCIA RB
   Baseado na arquitetura premium de alta conversão
   ======================================================== */

:root {
  --radius: 18px;
  --header-h: 76px;
  --trans: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Raleway', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.005em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Ícones SVG */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

/* Layout Geral & Containers */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.section {
  padding: clamp(64px, 8vw, 108px) 5%;
}

.on-dark {
  background: var(--ink);
  color: var(--cream);
}

.on-dark-2 {
  background: var(--ink-2);
  color: var(--cream);
}

.on-cream-2 {
  background: var(--cream-2);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze-d);
  margin-bottom: 14px;
}

.on-dark .eyebrow,
.on-dark-2 .eyebrow,
.hero .eyebrow {
  color: var(--gold-l);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 54px);
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}

.lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.on-dark .lead,
.on-dark-2 .lead {
  color: rgba(255, 255, 255, 0.75);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 0.98rem/1 var(--sans);
  cursor: pointer;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans), border-color var(--trans);
}

.btn-primary {
  background: var(--gold);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  filter: brightness(0.92);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
  border-color: var(--bronze);
  color: var(--bronze-d);
}

.btn-outline:hover {
  background: rgba(154, 106, 50, 0.08);
  transform: translateY(-2px);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  padding: 0 5%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  background: rgba(10, 15, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--trans), border-color var(--trans);
}

header.scrolled {
  background: var(--ink);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}

.brand img {
  height: 44px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.24rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-sub {
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-l);
  margin-top: 3px;
}

nav#main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
}

nav#main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 2px;
  position: relative;
  transition: color var(--trans);
}

nav#main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans);
}

nav#main-nav a:hover {
  color: var(--cream);
}

nav#main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

/* HERO SECTION */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(44px, 7vw, 84px)) 5% clamp(54px, 8vw, 98px);
  background:
    radial-gradient(70% 60% at 85% 30%, var(--hero-glow-1), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, var(--hero-glow-2), transparent 70%),
    var(--ink);
  color: var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 4.1rem);
  font-weight: 600;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-l);
}

.hero-text {
  margin-top: 22px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 36px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta .icon {
  color: var(--gold-l);
}

.hero-photo {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 440px;
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
}

.photo-frame {
  position: relative;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border-radius: 28px;
  background: var(--ink-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

.photo-badge {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(10, 15, 20, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  text-align: center;
}

.photo-badge strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.photo-badge span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-l);
}

/* TRUST STRIP */
.trust {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  padding: 26px 5%;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 30px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
  font-size: 0.95rem;
}

.trust-item .ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--gold-l);
  background: rgba(255, 255, 255, 0.03);
}

.trust-item b {
  display: block;
  font-weight: 600;
}

.trust-item small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.84rem;
}

/* SITUAÇÕES / DORES */
.situations-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.situations-grid .btn {
  margin-top: 30px;
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 500;
}

.check-list .icon {
  color: var(--bronze);
  margin-top: 3px;
}

/* COMO FUNCIONA (PASSOS) */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--gold-l);
  border: 1px solid var(--gold);
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 1;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 35px;
  left: 68px;
  right: -12px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.step h3 {
  font-size: 1.35rem;
  margin: 20px 0 8px;
}

.step p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

/* OS 8 CARDS DE ATUAÇÃO PREVIDENCIÁRIA */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.area-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  display: flex;
  flex-direction: column;
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border-color: var(--bronze);
}

.area-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--gold-l);
}

.area-icon .icon {
  width: 24px;
  height: 24px;
}

.area-card h3 {
  font-size: 1.38rem;
  margin-bottom: 10px;
}

.area-card > p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* SOBRE A ADVOCACIA */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 7vw, 84px);
  align-items: center;
}

.about-photo {
  position: relative;
  max-width: 420px;
  width: 100%;
  justify-self: center;
}

.about-photo .photo-frame {
  aspect-ratio: 1 / 1;
}

.about-photo::before {
  content: '';
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
}

.about-body .section-title {
  margin-bottom: 20px;
}

.about-body p {
  color: rgba(255, 255, 255, 0.78);
}

.about-body p + p {
  margin-top: 14px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.about-values div {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.about-values b {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--gold-l);
  font-weight: 600;
}

.about-values span {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.68);
}

.about-body .oab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--gold-l);
}

/* ESCRITÓRIO */
.office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.office-grid figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  background: var(--cream-2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.office-grid figure.wide {
  grid-column: span 2;
  aspect-ratio: auto;
}

.office-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.office-grid figure:hover img {
  transform: scale(1.04);
}

/* DEPOIMENTOS */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  margin: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: #ffb703;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.review-card blockquote {
  margin: 0 0 18px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  font-style: italic;
  flex-grow: 1;
}

.review-card figcaption {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--cream);
}

.review-card figcaption small {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--gold-l);
}

.reviews-note {
  margin-top: 26px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* FAQ (DÚVIDAS) */
.faq {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  transition: border-color var(--trans), box-shadow var(--trans);
}

.faq details[open] {
  border-color: var(--bronze);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.faq summary {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--bronze);
  transition: transform var(--trans);
}

.faq details[open] summary::after {
  content: '−';
}

.faq p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* CTA FINAL */
.cta-final {
  background:
    radial-gradient(60% 60% at 50% 50%, var(--hero-glow-1), transparent 70%),
    var(--ink);
  color: var(--cream);
  text-align: center;
}

.cta-final .container {
  max-width: 720px;
}

.cta-final .lead {
  margin: 16px auto 32px;
}

/* FOOTER */
footer {
  background: var(--ink-2);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 5% 30px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 320px;
  line-height: 1.6;
}

footer h4 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 16px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--gold-l);
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-list .icon {
  color: var(--gold-l);
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
}

.disclaimer {
  margin-top: 16px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
  text-align: center;
}

/* BOTÃO FLUTUANTE DE WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 99;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: transform var(--trans), box-shadow var(--trans);
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.6);
}

.whatsapp-float .icon {
  width: 32px;
  height: 32px;
}

/* ANIMAÇÃO REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .step:not(:last-child)::after {
    display: none;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }
  nav#main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    padding: 24px 5%;
    gap: 16px;
    border-bottom: 1px solid var(--line);
  }
  nav#main-nav.open {
    display: flex;
  }
  .hero-grid,
  .situations-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
  .hero-photo {
    order: -1;
    max-width: 360px;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .office-grid {
    grid-template-columns: 1fr;
  }
  .office-grid figure.wide {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .areas-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .about-values {
    grid-template-columns: 1fr;
  }
}

/* Sprite de ícones SVG (escondido sem usar style inline, para manter a CSP estrita) */
.svg-sprite { display: none; }
