/* ============================================================
   Daniel Christian Advocacia — estilos
   Paleta: carvão / off-white / cinza aço / azul marinho (sinal)
   Regra visual: retas dominam; a curva é exceção proposital
   (botões pill + o floating action button).
   ============================================================ */

:root {
  --black: #0A0A0C;
  --black-90: rgba(10, 10, 12, 0.9);
  --black-70: rgba(10, 10, 12, 0.7);
  --black-40: rgba(10, 10, 12, 0.4);
  --off-white: #F2F2F0;
  --off-white-70: rgba(242, 242, 240, 0.7);
  --steel: #3A3D42;
  --steel-light: #6b6f76;
  --steel-hairline: rgba(58, 61, 66, 0.18);
  --navy: #1B2A4A;
  --navy-light: #2c4270;

  --font-head: 'Space Grotesk', 'Arial', sans-serif;
  --font-body: 'Inter', 'Arial', sans-serif;

  --container-w: 1180px;
  --radius-pill: 999px;

  --ease: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--off-white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 640px) {
  .container { padding-inline: 32px; }
}
@media (min-width: 1024px) {
  .container { padding-inline: 48px; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--off-white);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons (curve = deliberate exception) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-pill { border-radius: var(--radius-pill); }
.btn-lg { padding: 17px 32px; font-size: 1rem; }
.btn-navy { background: var(--navy); color: var(--off-white); }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }
.btn-offwhite { background: var(--off-white); color: var(--black); }
.btn-offwhite:hover { background: #ffffff; transform: translateY(-2px); }
.btn-outline-light { border-color: var(--off-white-70); color: var(--off-white); }
.btn-outline-light:hover { background: var(--off-white); color: var(--black); }
.icon-wa { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--black);
  border-bottom: 1px solid rgba(242,242,240,0.12);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 4px 24px rgba(10,10,12,0.35); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 88px;
}
.brand-logo-chip {
  display: inline-flex;
  align-items: center;
  background: var(--off-white);
  padding: 10px 16px;
  border-radius: 8px;
}
.brand-logo { height: 42px; width: auto; mix-blend-mode: multiply; }
.nav {
  display: none;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--off-white);
}
.nav a { position: relative; padding: 4px 0; }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--off-white);
  transition: right 0.25s var(--ease);
}
.nav a:hover::after { right: 0; }
.header-cta { display: none; padding: 10px 20px; font-size: 0.88rem; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--off-white);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile nav panel */
@media (max-width: 899px) {
  .nav {
    position: fixed;
    inset: 88px 0 0 0;
    background: var(--black);
    flex-direction: column;
    padding: 32px 24px;
    gap: 4px;
    font-size: 1.2rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav.is-open { display: flex; transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(242,242,240,0.12); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 45%;
  filter: grayscale(1) contrast(1.05);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0.7) 0%, rgba(10,10,12,0.78) 55%, rgba(10,10,12,0.88) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 40px;
  color: var(--off-white);
}
.eyebrow, .section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--off-white-70);
  margin-bottom: 18px;
}
.section-eyebrow { color: var(--steel); }
.section-eyebrow--light { color: var(--off-white-70); }

.hero-title {
  font-size: clamp(2rem, 7vw, 3.6rem);
  max-width: 18ch;
  margin-bottom: 22px;
}
.hero-lead {
  max-width: 56ch;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  color: var(--off-white-70);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  margin-bottom: 28px;
}
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--off-white-70);
}
.stars { color: var(--navy); letter-spacing: 2px; font-size: 1rem; }
.stars--lg { font-size: 1.8rem; }
.hero-rating .stars { color: var(--off-white); }
.hero-rating-text strong { color: var(--off-white); font-size: 1.05rem; }

@media (min-width: 640px) {
  .hero { min-height: 640px; }
  .hero-content { padding-top: 120px; padding-bottom: 64px; }
}
@media (min-width: 1024px) {
  .hero { min-height: 720px; }
  .hero-content { padding-top: 200px; padding-bottom: 96px; max-width: 1000px; }
  .hero-title { max-width: 21ch; }
  .hero-lead { max-width: 640px; }
}

/* ---------- Redaction reveal effect ---------- */
.redact {
  position: relative;
  display: inline-block;
}
.redact .redact-bar {
  position: absolute;
  inset: -2% -1%;
  transform-origin: left;
  transition: transform 0.85s var(--ease);
  transition-delay: 0.05s;
}
.redact--dark .redact-bar { background: var(--black); }
.redact--light .redact-bar { background: var(--off-white); }
.redact.is-revealed .redact-bar { transform: scaleX(0); }
.redact--dark { color: var(--black); }
.redact--light { color: var(--off-white); }

/* ---------- Generic scroll reveal ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Section shared ---------- */
section { padding-block: 76px; }
section[id] { scroll-margin-top: 88px; }
.section-title {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  margin-bottom: 18px;
  max-width: 16ch;
}
.section-title--light { color: var(--off-white); }
.section-lead {
  max-width: 60ch;
  color: var(--steel);
  font-size: 1.05rem;
}
.section-lead--light { color: var(--off-white-70); }

/* ---------- Áreas de atuação ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 44px;
}
.area-card {
  background: #ffffff;
  border: 1px solid var(--steel-hairline);
  padding: 32px 28px;
  position: relative;
}
.area-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.area-card p { color: var(--steel); font-size: 0.96rem; margin-bottom: 0; }
.area-card-icon {
  width: 44px; height: 44px;
  color: var(--navy);
  margin-bottom: 20px;
}
.area-card-icon svg { width: 100%; height: 100%; }

.area-card--primary {
  background: var(--black);
  color: var(--off-white);
  border-color: var(--black);
  grid-column: 1 / -1;
  padding: 44px 32px;
}
.area-card--primary .area-card-icon { color: var(--off-white); }
.area-card--primary p { color: var(--off-white-70); }
.area-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--off-white);
  padding: 5px 12px;
  margin-bottom: 16px;
}
.area-card--primary h3 { font-size: 1.6rem; margin-bottom: 14px; }

@media (min-width: 720px) {
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .area-card--primary { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start; padding: 48px; }
  .area-card--primary .area-card-icon { grid-row: 1 / span 2; margin-bottom: 0; }
  .area-card--primary .area-tag { grid-column: 2; }
  .area-card--primary h3 { grid-column: 2; }
  .area-card--primary p { grid-column: 2; max-width: 56ch; }
}

/* ---------- Urgência (dark, dossiê) ---------- */
.urgencia {
  background: var(--black);
  color: var(--off-white);
  position: relative;
}
.urgencia-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
}
.urgencia-item { border-top: 1px solid rgba(242,242,240,0.15); padding-top: 22px; }
.urgencia-index {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--navy-light);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.urgencia-item h3 { font-size: 1.2rem; margin-bottom: 10px; }
.urgencia-item p { color: var(--off-white-70); font-size: 0.95rem; margin-bottom: 0; }

.urgencia-cta {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(242,242,240,0.15);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.urgencia-cta p { font-size: 1.05rem; margin-bottom: 0; }

@media (min-width: 720px) {
  .urgencia-grid { grid-template-columns: repeat(3, 1fr); }
  .urgencia-cta { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Sobre ---------- */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.sobre-photo-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--steel);
  max-width: 380px;
  margin-inline: auto;
}
.sobre-photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  filter: grayscale(0.9) contrast(1.05);
}

.sobre-content p { color: var(--steel); }
.sobre-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-weight: 600;
  border-bottom: 1px solid var(--black);
  padding-bottom: 4px;
}
.sobre-social svg { width: 20px; height: 20px; }

@media (min-width: 860px) {
  .sobre-grid { grid-template-columns: 340px 1fr; gap: 64px; }
  .sobre-photo-frame { margin-inline: 0; max-width: none; }
}

/* ---------- Prova social ---------- */
.prova-social { background: #ffffff; }
.prova-social-inner { text-align: left; }
.rating-block {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 30px 0 20px;
}
.rating-number {
  font-family: var(--font-head);
  font-size: clamp(3.2rem, 10vw, 5rem);
  line-height: 1;
  color: var(--navy);
}
.rating-details p { margin: 6px 0 0; color: var(--steel); font-weight: 500; }

/* ---------- Contato ---------- */
.contato { background: var(--navy); color: var(--off-white); }
.contato-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.contato-primary .section-title { max-width: 20ch; }
.contato-primary .btn { margin-top: 8px; }

.contato-photo-frame {
  position: relative;
  width: 180px;
  aspect-ratio: 9 / 8;
  overflow: hidden;
  margin: 8px 0 26px;
  background: var(--black);
}
.contato-photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: grayscale(0.85) contrast(1.05);
}
.contato-photo-frame::before,
.contato-photo-frame::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 14%;
  z-index: 2;
  pointer-events: none;
}
.contato-photo-frame::before { top: 0; background: linear-gradient(180deg, rgba(27,42,74,0.7), rgba(27,42,74,0)); }
.contato-photo-frame::after { bottom: 0; background: linear-gradient(0deg, rgba(27,42,74,0.75), rgba(27,42,74,0)); }

@media (min-width: 640px) {
  .contato-photo-frame { width: 210px; }
}

.contato-details { display: flex; flex-direction: column; gap: 22px; }
.contato-item p { margin: 0; color: var(--off-white-70); }
.contato-item p a { color: var(--off-white); border-bottom: 1px solid var(--off-white-70); }
.contato-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off-white-70);
  margin-bottom: 6px;
}
.contato-map { border: 1px solid rgba(242,242,240,0.25); overflow: hidden; }
.contato-map iframe { width: 100%; height: 260px; border: 0; display: block; filter: grayscale(0.3) contrast(1.05); }

@media (min-width: 900px) {
  .contato-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--off-white-70); padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-logo-chip {
  display: inline-block;
  background: var(--off-white);
  padding: 12px 18px;
  margin-bottom: 16px;
}
.footer-logo { height: 30px; width: auto; mix-blend-mode: multiply; }
.footer-brand p { font-size: 0.85rem; margin: 0; }
.oab-placeholder { color: var(--navy-light); font-weight: 600; }
.footer-heading {
  display: block;
  color: var(--off-white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-col p { margin: 0; font-size: 0.88rem; }

.footer-legal {
  border-top: 1px solid rgba(242,242,240,0.12);
  padding-block: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--off-white-70);
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

/* ---------- Floating WhatsApp button (curve exception) ---------- */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(10,10,12,0.35);
  z-index: 600;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.25s var(--ease);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.whatsapp-float.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.whatsapp-float:hover { background: var(--navy-light); }
.whatsapp-float svg { width: 26px; height: 26px; fill: currentColor; }
