/* =========================================================
   Frederico Freitas Advocacia Criminal — LP
   Conceito: "Dossiê processual" — papel, tinta, vinho
   ========================================================= */

:root {
  --paper: #f1ead9;
  --paper-alt: #e8dfc7;
  --paper-deep: #dccfa9;
  --ink: #211c15;
  --ink-muted: #5b5442;
  --ink-soft: #8a816a;
  --wine: #7c2a24;
  --wine-dark: #5a1e1a;
  --line: rgba(33, 28, 21, 0.16);
  --line-strong: rgba(33, 28, 21, 0.32);

  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --font-sans: 'IBM Plex Sans', -apple-system, sans-serif;

  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--ink);
}

h2 { font-size: clamp(28px, 3.8vw, 40px); font-weight: 600; }
h3 { font-size: 21px; font-weight: 600; }

p { color: var(--ink-muted); margin: 0 0 16px; }

.section-kicker, .kicker, .closing-kicker {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 500;
  color: var(--wine);
  margin-bottom: 14px;
}

/* ---------- Buttons / links ---------- */
.btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  border-radius: 2px;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-primary:hover { background: var(--wine); border-color: var(--wine); }
.btn-lg { padding: 18px 40px; font-size: 16px; }

.btn-tab {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-tab:hover { background: var(--ink); color: var(--paper); }

.link-arrow {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--wine);
  border-bottom: 1px solid var(--wine);
  padding-bottom: 1px;
  white-space: nowrap;
}
.link-arrow:hover { color: var(--wine-dark); border-color: var(--wine-dark); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(241, 234, 217, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  background: rgba(241, 234, 217, 0.98);
  border-bottom-color: var(--line-strong);
}

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

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  line-height: 1.2;
}
.brand-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine);
  font-weight: 500;
}

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}
.main-nav a em {
  font-family: var(--font-mono);
  font-style: normal;
  color: var(--ink-soft);
  font-size: 11px;
  margin-right: 4px;
}
.main-nav a:hover { color: var(--wine); }

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

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

/* ---------- Hero ---------- */
.hero { padding: 118px 0 80px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: start;
}

.hero h1 {
  font-size: clamp(32px, 4.6vw, 50px);
  max-width: 620px;
  margin-bottom: 22px;
}

.hero-lead {
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 20px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  margin: 34px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}
.hero-facts dt {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.hero-facts dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
  /* teto para a coluna não esticar o hero em telas largas */
  max-width: 380px;
  margin-left: auto;
  width: 100%;
}

/* Retrato acima da dobra — rosto humano aumenta confiança */
.hero-portrait {
  margin: 0;
  background: var(--paper-alt);
  border: 1px solid var(--line-strong);
  padding: 12px 12px 0;
}
.hero-portrait picture { display: block; }
.hero-portrait img {
  width: 100%;
  /* height:auto é obrigatório — sem isso o atributo height="1200" do HTML
     vira altura real e o aspect-ratio abaixo é ignorado */
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center 20%;
}
.hero-portrait figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 4px 16px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.hero-portrait figcaption strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.hero-portrait figcaption span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.hero-citation {
  position: relative;
  background: var(--paper-alt);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--wine);
  padding: 30px 26px;
}
.stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wine);
  border: 1px solid var(--wine);
  border-radius: 50%;
  width: 78px; height: 78px;
  line-height: 1.3;
  padding: 10px;
  transform: rotate(-10deg);
  float: right;
  text-align: center;
  opacity: 0.75;
  margin: -4px -4px 14px 20px;
  shape-outside: circle();
}
.citation-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  color: var(--ink);
  margin-bottom: 14px;
}
.citation-source {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Nota / urgência ---------- */
.notice-bar {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper-alt);
  padding: 18px 0;
}
.notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.notice-inner p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink);
  max-width: 620px;
}
.notice-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wine);
  border: 1px solid var(--wine);
  padding: 2px 7px;
  margin-right: 10px;
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--paper-alt); }
.section h2 { max-width: 600px; }

/* ---------- Índice de atuação ---------- */
.index-list { margin-top: 46px; border-top: 1px solid var(--line-strong); }
.index-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.2s ease;
}
.index-item:hover { padding-left: 8px; border-bottom-color: var(--wine); }
.index-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--wine);
  padding-top: 3px;
}
.index-body h3 { margin-bottom: 6px; }
.index-body p { margin: 0; max-width: 620px; font-size: 15px; }

/* ---------- Sobre ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
}
.exhibit-frame {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--paper-deep);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.exhibit-placeholder {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.6;
}
.exhibit-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}
.exhibit-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.about-lead { font-size: 17px; color: var(--ink); }

.clause-list {
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}
.clause-list div {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.clause-list dt {
  font-family: var(--font-mono);
  color: var(--wine);
  width: 40px;
  flex: none;
}
.clause-list dd { margin: 0; color: var(--ink-muted); }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
  padding-top: 30px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line-strong);
}
.timeline-item { position: relative; padding-top: 4px; }
.timeline-item::before {
  content: '';
  position: absolute;
  top: -34px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--wine);
}
.timeline-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--wine);
  display: block;
  margin-bottom: 10px;
}
.timeline-item h3 { font-size: 18px; margin-bottom: 8px; }
.timeline-item p { font-size: 14px; margin: 0; }

/* ---------- Cláusulas / diferenciais ---------- */
.grid-clauses {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.clause span {
  font-family: var(--font-mono);
  color: var(--wine);
  font-size: 13px;
  display: block;
  margin-bottom: 12px;
}
.clause h3 { font-size: 18px; }
.clause p { font-size: 14px; margin: 0; }


/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}
.faq-intro p { font-size: 15px; margin-bottom: 26px; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: none;
  border: none;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 500;
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
}
.faq-mark {
  font-family: var(--font-mono);
  color: var(--wine);
  flex: none;
  font-weight: 500;
}
.faq-text { flex: 1; }
.faq-icon { flex: none; width: 16px; height: 16px; position: relative; margin-top: 3px; }
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--ink-soft);
  transition: transform 0.25s ease;
}
.faq-icon::before { width: 100%; height: 1px; top: 50%; left: 0; }
.faq-icon::after { width: 1px; height: 100%; top: 0; left: 50%; }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-item.open { border-bottom-color: var(--wine); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding-left: 30px; }
.faq-answer p { padding-bottom: 14px; margin: 0; font-size: 14.5px; max-width: 540px; }
.faq-answer .link-arrow { display: inline-block; margin-bottom: 22px; }
.faq-answer p:last-child { padding-bottom: 22px; }

/* ---------- Fechamento ---------- */
.closing {
  padding: 110px 0 100px;
  text-align: center;
  border-top: 1px solid var(--line-strong);
}
.closing-inner { max-width: 640px; margin: 0 auto; }
.closing-inner h2 { font-size: clamp(26px, 3.6vw, 36px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper-alt);
  border-top: 1px solid var(--line-strong);
  padding: 60px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-strong);
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer-logo {
  width: 72px;
  height: 72px;
}
.footer-brand-text {
  display: flex;
  flex-direction: column;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wine);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col p { font-size: 13.5px; margin-bottom: 6px; color: var(--ink-muted); }

/* ---------- WhatsApp tab ---------- */
.whatsapp-tab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--wine);
  color: var(--paper);
  padding: 13px 18px;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  z-index: 90;
  transition: background 0.2s ease;
}
.whatsapp-tab:hover { background: var(--wine-dark); }

/* ---------- Reveal (sutil, sem translate) ---------- */
.reveal { opacity: 0; transition: opacity 0.5s ease; }
.reveal.is-visible { opacity: 1; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-strong);
    padding: 8px 24px 20px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 100px 0 60px; }
  .hero-aside { flex-direction: row; align-items: flex-start; gap: 20px; max-width: none; margin-left: 0; }
  .hero-portrait { flex: 0 0 44%; }
  .hero-citation { flex: 1; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 46px; }
  .grid-clauses { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 260px; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .timeline { grid-template-columns: 1fr; }
  .grid-clauses { grid-template-columns: 1fr; }
  .index-item { grid-template-columns: 40px 1fr; }
  .notice-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-facts { flex-wrap: wrap; row-gap: 16px; }
  .brand { gap: 9px; font-size: 16px; }
  .brand-logo { width: 36px; height: 36px; }
  .footer-logo { width: 60px; height: 60px; }
  .hero-aside { flex-direction: column; }
  .hero-portrait { flex: none; }
  .cta-stack { flex-direction: column; align-items: stretch; }
  .cta-stack .btn-primary,
  .cta-stack .btn-secondary { text-align: center; justify-content: center; }
}

/* ---------- Selo de avaliação do Google ---------- */
.google-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  padding: 18px 22px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}
.google-score {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--wine);
  font-size: 15px;
  letter-spacing: 0.06em;
}
.google-count {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.google-link {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wine);
  border-bottom: 1px solid var(--wine);
  text-decoration: none;
  padding-bottom: 2px;
}
.google-link:hover { color: var(--wine-dark); border-color: var(--wine-dark); }

@media (max-width: 720px) {
  .google-summary { gap: 10px; padding: 16px; }
  .google-score { font-size: 28px; }
  .google-link { margin-left: 0; flex-basis: 100%; }
}


/* =========================================================
   CRO — CTAs, prova de disponibilidade, formulário reservado
   ========================================================= */

/* ---------- Botões secundários ---------- */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 26px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-secondary svg { flex: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
  padding: 9px 4px;
  transition: color 0.2s ease;
}
.btn-ghost:hover { color: var(--wine); }

.btn-block { display: block; width: 100%; text-align: center; cursor: pointer; }
.btn-block:disabled { opacity: 0.6; cursor: wait; }

.inline-link {
  color: var(--wine);
  border-bottom: 1px solid rgba(124, 42, 36, 0.4);
  padding-bottom: 1px;
  font-weight: 500;
}
.inline-link:hover { border-bottom-color: var(--wine); }

/* ---------- Disponibilidade ---------- */
.availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--paper-alt);
  border: 1px solid var(--line-strong);
  padding: 8px 14px;
  margin: 0 0 26px;
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2f7d32;
  flex: none;
  box-shadow: 0 0 0 0 rgba(47, 125, 50, 0.6);
  animation: ff-pulse 2.4s infinite;
}
@keyframes ff-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47, 125, 50, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(47, 125, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 125, 50, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
}

/* ---------- Grupo de CTAs ---------- */
.cta-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cta-stack-center { justify-content: center; margin-top: 30px; }

.cta-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}
.cta-note svg { flex: none; color: var(--ink-soft); }
.cta-note-center { justify-content: center; margin-top: 18px; }

/* ---------- CTA de fim de seção ---------- */
.section-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 40px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}

.closing-lead { font-size: 16px; max-width: 520px; margin: 0 auto; }

/* ---------- Links do rodapé ---------- */
.footer-link {
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-link:hover { color: var(--wine); border-bottom-color: var(--wine); }

/* ---------- Barra de ação fixa (mobile) ---------- */
.action-bar { display: none; }

@media (max-width: 720px) {
  /* No celular, a barra fixa de WhatsApp vale mais que o botão flutuante */
  .whatsapp-tab { display: none; }

  .action-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 95;
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--line-strong);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.1);
  }
  .action-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 10px;
    font-size: 15px;
    font-weight: 600;
    padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px));
  }
  .action-whats { background: var(--wine); color: var(--paper); }

  /* espaço para a barra não cobrir o rodapé */
  body { padding-bottom: 62px; }

  .section-cta { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 600px) {
  /* libera espaço no header no celular */
  .btn-ghost { display: none; }
  .header-actions { gap: 10px; }
  .availability { font-size: 11.5px; padding: 8px 11px; }
  .hero-facts { gap: 14px 24px; }
}

/* =========================================================
   Qualificação pré-WhatsApp
   ========================================================= */
body.modal-aberto { overflow: hidden; }

.qualify-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 16, 12, 0.62);
  backdrop-filter: blur(3px);
  animation: ff-fade 0.18s ease;
}
.qualify-overlay[hidden] { display: none; }

@keyframes ff-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ff-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.qualify-modal {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--wine);
  padding: 38px 36px 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  animation: ff-rise 0.22s ease;
}
@media (prefers-reduced-motion: reduce) {
  .qualify-overlay, .qualify-modal { animation: none; }
}

.qualify-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 6px 10px;
  transition: color 0.2s ease;
}
.qualify-close:hover { color: var(--wine); }

.qualify-kicker {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 500;
  color: var(--wine);
  margin-bottom: 10px;
}
.qualify-modal h2 {
  font-size: clamp(22px, 3.4vw, 27px);
  margin-bottom: 10px;
  max-width: 100%;
}
.qualify-sub {
  font-size: 14.5px;
  margin-bottom: 26px;
}

.qualify-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qualify-option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: var(--paper-alt);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.qualify-option:hover,
.qualify-option:focus-visible {
  border-color: var(--wine);
  background: var(--paper);
  transform: translateX(3px);
  outline: none;
}
.qualify-option.is-urgent { border-left: 3px solid var(--wine); }

.qualify-mark {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--wine);
  flex: none;
  padding-top: 3px;
}
.qualify-body { display: flex; flex-direction: column; gap: 3px; }
.qualify-body strong {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.qualify-body span {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.qualify-skip {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 10px 0 2px;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s ease;
}
.qualify-skip:hover { color: var(--wine); }

@media (max-width: 600px) {
  .qualify-overlay { padding: 0; align-items: flex-end; }
  .qualify-modal {
    max-width: 100%;
    max-height: 92vh;
    padding: 30px 22px calc(24px + env(safe-area-inset-bottom, 0px));
    border-bottom: none;
  }
  .qualify-option { padding: 15px 15px; gap: 13px; }
  .qualify-body strong { font-size: 15.5px; }
}

/* ===== PÁGINAS POR TEMA ===== */
.breadcrumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-muted); border-bottom: 1px solid var(--line-strong); }
.breadcrumb a:hover { color: var(--wine); border-color: var(--wine); }

.prose { max-width: 720px; }
.prose p { font-size: 17px; line-height: 1.7; margin: 0 0 18px; }
.prose h2 { margin-bottom: 24px; max-width: none; }
.prose .section-cta { margin-top: 26px; }

.index-body h3 a { color: inherit; border-bottom: 1px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }
.index-body h3 a:hover { color: var(--wine); border-bottom-color: var(--wine); }

.related-list { margin-top: 34px; border-top: 1px solid var(--line-strong); max-width: 720px; }
.related-list a {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 17px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 19px; color: var(--ink);
  transition: color 0.2s ease;
}
.related-list a::after { content: '\2192'; color: var(--wine); }
.related-list a:hover { color: var(--wine); }

.situacoes { margin-top: 30px; font-size: 15px; color: var(--ink-muted); }
.situacoes a { color: var(--wine); border-bottom: 1px solid var(--wine); margin-right: 4px; }
.situacoes a:hover { color: var(--wine-dark); border-color: var(--wine-dark); }

.footer-extra { padding-top: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 18px; }
.footer-links a { font-size: 13px; color: var(--ink-muted); border-bottom: 1px solid var(--line); transition: color 0.2s ease, border-color 0.2s ease; }
.footer-links a:hover { color: var(--wine); border-bottom-color: var(--wine); }
.footer-legal { font-size: 12px; line-height: 1.6; color: var(--ink-soft); max-width: 900px; margin: 0; }
