/* ==========================================================================
   Luiz Fernando Dias — Advocacia Especializada
   Design system: ink / gold / paper
   ========================================================================== */

:root {
  /* Colors */
  --ink: #0c0c0e;
  --charcoal: #17171a;
  --charcoal-2: #202024;
  --paper: #faf9f6;
  --paper-2: #f2efe8;
  --line: #e6e2d8;
  --line-dark: #2c2c30;
  --gold: #a6812e;
  --gold-light: #d4b96a;
  --gold-deep: #7c5f22;
  --text: #1a1a1a;
  --text-muted: #5c584f;
  --text-on-dark: #efece4;
  --text-on-dark-muted: #a6a297;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 2px;
  --shadow-soft: 0 20px 50px -25px rgba(12, 12, 14, 0.35);
  --shadow-card: 0 12px 30px -18px rgba(12, 12, 14, 0.25);
  --ease: cubic-bezier(.22,.61,.36,1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.2rem; font-weight: 600; font-family: var(--font-body); }

em { font-family: var(--font-display); font-style: italic; color: var(--gold-deep); }

p { margin: 0 0 1em; color: var(--text-muted); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
  margin: 0 0 14px;
}
.eyebrow.center { justify-content: center; }
.eyebrow.light { color: var(--gold-light); }
.eyebrow-dash {
  width: 26px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: #17130a;
  box-shadow: 0 14px 30px -14px rgba(166, 129, 46, 0.65);
}
.btn-primary:hover { box-shadow: 0 18px 36px -14px rgba(166, 129, 46, 0.8); }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-outline.light { border-color: var(--gold-light); color: var(--gold-light); }
.btn-outline.light:hover { background: var(--gold-light); color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  padding: 10px 20px;
  font-size: 0.8rem;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }

.btn-buy {
  width: 100%;
  background: var(--ink);
  color: var(--paper);
}
.btn-buy:hover { background: var(--gold-deep); }

/* ============================== HEADER ============================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 8px 24px -16px rgba(12,12,14,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-seal { color: var(--gold-deep); display: inline-flex; }
.brand-seal-letters {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1px;
  fill: currentColor;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.brand-text small { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================== HERO ============================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  background: var(--paper);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 600px at 82% 15%, rgba(166,129,46,0.10), transparent 60%),
    radial-gradient(700px 500px at 5% 90%, rgba(166,129,46,0.06), transparent 60%);
  pointer-events: none;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(12,12,14,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(12,12,14,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,0.6) 30%, transparent 85%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.hero-lead { font-size: 1.08rem; max-width: 46ch; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

.hero-portrait {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}
.portrait-ring {
  position: absolute;
  inset: -34px;
  width: calc(100% + 68px);
  height: calc(100% + 68px);
  color: var(--gold-deep);
  opacity: 0.75;
  animation: spin 34s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.portrait-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: var(--paper-2);
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(166,129,46,0.35);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-cue span {
  width: 3px;
  height: 7px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ============================== SECTIONS ============================== */
.section { padding: 110px 0; }
.section-alt { background: var(--paper-2); }
.section-dark {
  background: var(--ink);
  color: var(--text-on-dark);
}
.section-dark p { color: var(--text-on-dark-muted); }
.on-dark { color: var(--paper); }

.section-head { max-width: 720px; margin: 0 0 56px; text-align: left; }
.section-head h2 { max-width: 20ch; }
.section-sub { font-size: 1.02rem; max-width: 52ch; }

/* Cabeçalhos centralizados: qualquer section-head cujo eyebrow tenha .center */
.section-head:has(.eyebrow.center) {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head:has(.eyebrow.center) .section-sub { margin-left: auto; margin-right: auto; }

/* Fallback para navegadores sem suporte a :has() */
.section-head.is-centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head.is-centered .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Sobre ---------- */
.sobre-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.sobre-label h2 { margin-bottom: 0; }
.lead-quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  font-style: italic;
  border-left: 2px solid var(--gold);
  padding-left: 24px;
  margin-bottom: 24px;
}
.sobre-content p:not(.lead-quote) { font-size: 1.02rem; max-width: 60ch; }

/* ---------- Cards grid ---------- */
.cards-grid { display: grid; gap: 28px; }
.cards-grid.three { grid-template-columns: repeat(3, 1fr); }

.feature-card, .spec-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 38px 32px;
  border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.feature-card:hover, .spec-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--gold-light);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--gold-deep);
  margin-bottom: 20px;
}
.spec-card { background: var(--paper-2); border-color: transparent; }
.spec-card h3::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: var(--gold);
  margin: 12px 0 14px;
}

/* ---------- Benefits (dark) ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.benefit-item {
  background: var(--ink);
  padding: 40px 28px;
  text-align: center;
}
.benefit-number {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-light);
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.benefit-item h3 { color: var(--paper); font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; }
.benefit-item p { font-size: 0.92rem; margin: 0; }

/* ---------- Contratos ---------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-muted);
  padding: 10px 22px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold-deep); }
.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.contracts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
  animation: fadeIn .5s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: translateY(0);} }

.contract-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.contract-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--gold-light);
}
.contract-card h3 {
  font-size: 1rem;
  font-weight: 600;
  min-height: 48px;
  color: var(--ink);
}
.price { display: flex; align-items: baseline; gap: 10px; }
.price .old { text-decoration: line-through; color: var(--text-muted); font-size: 0.9rem; }
.price .new { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-deep); font-weight: 600; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  counter-reset: step;
}
.step { position: relative; padding-top: 16px; border-top: 1px solid var(--line); }
.step-index {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testimonial-card {
  margin: 0;
  background: var(--paper-2);
  border-left: 2px solid var(--gold);
  padding: 30px 28px;
  border-radius: var(--radius);
}
.testimonial-card blockquote {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}
.testimonial-card figcaption {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}
.faq-head { margin: 0; }
.faq-head .btn { margin-top: 12px; }

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.faq-icon {
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--gold-deep);
  transition: transform .3s var(--ease);
}
.faq-icon::before { top: 8px; left: 0; width: 18px; height: 1.5px; }
.faq-icon::after { top: 0; left: 8px; width: 1.5px; height: 18px; }
.faq-item.is-open .faq-icon::after { transform: rotate(90deg); opacity: 0; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}
.faq-item.is-open .faq-answer { max-height: 220px; }
.faq-answer p { padding-bottom: 22px; margin: 0; }

/* ---------- CTA Final ---------- */
.cta-final {
  background: var(--ink);
  padding: 110px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 400px at 50% 0%, rgba(166,129,46,0.16), transparent 65%);
}
.cta-final-inner { position: relative; max-width: 640px; margin: 0 auto; }
.cta-seal { color: var(--gold-light); margin-bottom: 20px; display: inline-flex; }
.cta-final h2 { color: var(--paper); }
.cta-final p { color: var(--text-on-dark-muted); font-size: 1.05rem; }
.cta-final .hero-cta { justify-content: center; }

/* ============================== FOOTER ============================== */
.site-footer {
  background: var(--charcoal);
  color: var(--text-on-dark-muted);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; }
.footer-brand .brand-seal { color: var(--gold-light); grid-row: span 1; }
.footer-brand strong { color: var(--paper); font-family: var(--font-display); font-size: 1.1rem; }
.footer-brand p { margin: 0; font-size: 0.82rem; }
.footer-desc { grid-column: 1 / -1; margin-top: 14px; max-width: 40ch; }

.footer-col h3 {
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.92rem; transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  padding: 26px 0;
  text-align: center;
  font-size: 0.8rem;
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1f1f22;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,0.5);
  z-index: 90;
  border: 1px solid var(--line-dark);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); background: var(--gold-deep); color: var(--ink); }

/* ============================== REVEAL ANIMATION ============================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin: 0 auto 1em; }
  .hero-cta { justify-content: center; }
  .hero-portrait { order: -1; max-width: 300px; }
  .sobre-grid { grid-template-columns: 1fr; }
  .cards-grid.three { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .main-nav { 
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--ink);
    padding: 110px 34px 40px;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 95;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 24px; }
  .main-nav a { color: var(--paper); font-size: 1rem; }
  .nav-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
  .cards-grid.three { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero { padding: 120px 0 80px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  h1 { font-size: 2.1rem; }
  .btn { width: 100%; }
  .hero-cta, .cta-final .hero-cta { flex-direction: column; }
  .filter-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .filter-btn { flex-shrink: 0; }
}
