/* ============================================================
   Marcelo Alessandro Advocacia — Design System
   Paleta derivada do brasão/monograma do escritório:
   vinho (identidade), azul-marinho (autoridade), latão (selo)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Public+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Cor */
  --navy-950: #0B1420;
  --navy-900: #101C2C;
  --navy-800: #16273B;
  --wine-700: #6E2A3A;
  --wine-600: #7F3245;
  --wine-500: #9A3D53;
  --brass-500: #A9824C;
  --brass-400: #C4A06B;
  --parchment: #F6F2EA;
  --parchment-dim: #EDE7D9;
  --ink: #1B1A17;
  --ink-soft: #4A4741;
  --line: rgba(27, 26, 23, 0.12);
  --line-dark: rgba(246, 242, 234, 0.14);
  --white: #FFFFFF;

  /* Tipografia */
  --font-display: 'Fraunces', serif;
  --font-body: 'Public Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
}

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

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

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

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

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine-600);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass-500);
}
.eyebrow.on-dark { color: var(--brass-400); }

/* Foco visível para acessibilidade */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--wine-600);
  outline-offset: 3px;
}

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

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 20, 32, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--parchment);
}
.brand img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.brand-text { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.01em; }
.brand-text span { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--brass-400); text-transform: uppercase; margin-top: 3px; }

nav.main-nav { display: flex; align-items: center; gap: 34px; }
nav.main-nav a {
  font-size: 14.5px;
  color: rgba(246,242,234,0.82);
  transition: color .15s ease;
}
nav.main-nav a:hover { color: var(--brass-400); }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  background: var(--wine-600);
  color: var(--white) !important;
  padding: 11px 20px;
  border-radius: 2px;
  transition: background .15s ease;
}
.nav-cta:hover { background: var(--wine-500); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  nav.main-nav { position: fixed; inset: 84px 0 0 0; background: var(--navy-950); flex-direction: column; justify-content: flex-start; padding: 40px 28px; gap: 26px; transform: translateX(100%); transition: transform .25s ease; }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav a { font-size: 20px; }
  .nav-toggle { display: block; background: none; border: none; color: var(--parchment); font-size: 26px; cursor: pointer; }
}

/* ============ HERO ============ */
.hero {
  background: var(--navy-950);
  color: var(--parchment);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 85% 15%, rgba(127,50,69,0.35), transparent 60%),
    radial-gradient(ellipse 600px 500px at 10% 90%, rgba(169,130,76,0.14), transparent 60%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: end;
  padding-top: 88px;
  padding-bottom: 0;
}
.hero-copy { padding-bottom: 76px; }
.hero-copy h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  margin: 20px 0 26px;
}
.hero-copy h1 em { font-style: italic; color: var(--brass-400); }
.hero-copy p.lede {
  font-size: 18px;
  color: rgba(246,242,234,0.78);
  max-width: 46ch;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 15px 26px;
  border-radius: 2px;
  transition: all .15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--wine-600); color: var(--white); }
.btn-primary:hover { background: var(--wine-500); }
.btn-ghost { border-color: rgba(246,242,234,0.3); color: var(--parchment); }
.btn-ghost:hover { border-color: var(--brass-400); color: var(--brass-400); }
.btn-dark { border-color: var(--ink); color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: var(--parchment); }

/* Selo / letterhead card — elemento assinatura */
.docket {
  background: linear-gradient(180deg, #12202F, #0E1A28);
  border: 1px solid rgba(196,160,107,0.28);
  border-radius: 3px;
  padding: 34px 32px;
  position: relative;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
}
.docket::before {
  content: "";
  position: absolute;
  top: 14px; left: 14px; right: 14px; bottom: 14px;
  border: 1px solid rgba(196,160,107,0.16);
  pointer-events: none;
}
.docket-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-400);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(246,242,234,0.14);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.docket-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.docket-stats .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--parchment);
  font-weight: 600;
}
.docket-stats .stat span {
  font-size: 11.5px;
  color: rgba(246,242,234,0.6);
  line-height: 1.3;
}
.docket-foot {
  font-size: 13px;
  color: rgba(246,242,234,0.7);
  border-top: 1px solid rgba(246,242,234,0.14);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.docket-foot .row { display: flex; justify-content: space-between; gap: 12px; }
.docket-foot .row b { color: var(--parchment); font-weight: 500; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-copy { padding-bottom: 40px; }
  .docket { margin-bottom: 56px; }
}

/* ============ SECTION SHELL ============ */
section { padding: 96px 0; }
section.tight { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3vw, 40px); }
.section-head p { color: var(--ink-soft); font-size: 16.5px; margin-top: 16px; }
.on-dark { background: var(--navy-950); color: var(--parchment); }
.on-dark .section-head p { color: rgba(246,242,234,0.72); }
.on-dark h2 { color: var(--parchment); }
.dim { background: var(--parchment-dim); }

/* ============ ÁREAS GRID ============ */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.area-card {
  background: var(--parchment);
  padding: 34px 30px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background .15s ease;
  position: relative;
}
.area-card:hover { background: var(--white); }
.area-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brass-500);
  letter-spacing: 0.08em;
}
.area-card h3 { font-size: 21px; margin: 30px 0 10px; }
.area-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.area-card .arrow {
  position: absolute;
  top: 32px; right: 28px;
  font-size: 18px;
  color: var(--brass-500);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all .15s ease;
}
.area-card:hover .arrow { opacity: 1; transform: translate(0,0); }

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

/* ============ SOBRE ============ */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.about-photo { position: relative; }
.about-photo img { border-radius: 3px; }
.about-photo .frame {
  position: absolute; inset: -14px;
  border: 1px solid var(--brass-500);
  border-radius: 3px;
  z-index: -1;
}
.about-copy p { color: rgba(246,242,234,0.78); font-size: 16px; margin-bottom: 18px; }
.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 40px; }
.pillar { border-top: 1px solid rgba(246,242,234,0.2); padding-top: 18px; }
.pillar h4 { color: var(--brass-400); font-size: 16px; margin-bottom: 8px; font-weight: 500;}
.pillar p { color: rgba(246,242,234,0.65); font-size: 14px; margin: 0; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
}

/* ============ PROCESSO ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; counter-reset: step; }
.step { border-left: 2px solid var(--brass-500); padding-left: 20px; }
.step .step-num { font-family: var(--font-mono); font-size: 13px; color: var(--brass-500); display: block; margin-bottom: 12px; }
.step h4 { font-size: 18px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ============ ARTIGOS ============ */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article-card { background: var(--white); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: transform .15s ease, box-shadow .15s ease; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(27,26,23,0.18); }
.article-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wine-600); }
.article-card h3 { font-size: 18.5px; }
.article-card p { font-size: 14px; color: var(--ink-soft); margin: 0; flex: 1; }
.article-card .read-more { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
@media (max-width: 900px) { .articles-grid { grid-template-columns: 1fr; } }

/* ============ CONTATO ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-info dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wine-600); margin-top: 26px; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 6px 0 0; font-size: 16.5px; }
.contact-info dd a:hover { color: var(--wine-600); }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; margin-bottom: 7px; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: 2px;
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 44px; } }

/* ============ FOOTER ============ */
footer { background: var(--navy-950); color: rgba(246,242,234,0.65); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer-brand img { height: 34px; filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; max-width: 34ch; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-400); margin-bottom: 18px; font-weight: 500; }
.footer-col a { display: block; font-size: 14px; margin-bottom: 11px; color: rgba(246,242,234,0.65); }
.footer-col a:hover { color: var(--parchment); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 26px; font-size: 12.5px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-legal { max-width: 720px; opacity: 0.75; line-height: 1.6; }

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

/* ============ PÁGINA DE ÁREA ============ */
.area-hero { background: var(--navy-950); color: var(--parchment); padding: 150px 0 70px; }
.area-hero .breadcrumb { font-family: var(--font-mono); font-size: 12px; color: rgba(246,242,234,0.5); margin-bottom: 22px; }
.area-hero .breadcrumb a:hover { color: var(--brass-400); }
.area-hero h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 20px; }
.area-hero p.lede { font-size: 17px; color: rgba(246,242,234,0.75); max-width: 64ch; margin-bottom: 34px; }
.area-hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card { border-top: 2px solid var(--wine-600); padding-top: 20px; }
.service-card h3 { font-size: 18.5px; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .service-grid { grid-template-columns: 1fr; } }

.alert-panel { background: var(--navy-950); color: var(--parchment); border-radius: 3px; padding: 48px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; }
.alert-panel .panel-copy h2 { color: var(--parchment); font-size: 30px; margin-bottom: 16px; }
.alert-panel .panel-copy p { color: rgba(246,242,234,0.7); margin-bottom: 26px; }
.alert-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.alert-list li { padding: 16px 0; border-top: 1px solid var(--line-dark); font-size: 15px; position: relative; padding-left: 26px; }
.alert-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.alert-list li::before { content: "—"; position: absolute; left: 0; color: var(--brass-400); }
@media (max-width: 900px) { .alert-panel { grid-template-columns: 1fr; padding: 32px; } }

.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 26px 0; }
.faq-item h3 { font-size: 18px; margin-bottom: 12px; }
.faq-item p { font-size: 15px; color: var(--ink-soft); margin: 0; }

.other-areas { display: flex; flex-wrap: wrap; gap: 12px; }
.other-areas a {
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 20px;
  transition: all .15s ease;
}
.other-areas a:hover { border-color: var(--wine-600); color: var(--wine-600); }

.disclaimer-strip { font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 22px; margin-top: 10px; }

/* Utilities */
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.wa-fab {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.4);
  z-index: 90;
}
.wa-fab svg { width: 28px; height: 28px; fill: #fff; }
