/* ==========================================================================
   CANCIAN ADVOGADOS — DESIGN SYSTEM V2
   Aesthetic: premium institutional legal — deep navy + champagne + clean white
   Type: Fraunces (display serif) + Manrope (body sans)
   ========================================================================== */

/* ---------- Design tokens ------------------------------------------------ */
:root {
  /* Paleta oficial V2 */
  --primary:        #0F2744;   /* azul profundo institucional */
  --primary-deep:   #0A1E35;   /* hover / variante mais escura */
  --primary-mid:    #1A3A5C;   /* variante intermediária */
  --secondary:      #F8F7F5;   /* off-white premium — seções / cards */
  --accent:         #C9A86A;   /* champagne / dourado sofisticado */
  --accent-deep:    #A8893F;   /* hover dourado */
  --accent-text:    #876A28;   /* dourado para texto pequeno (contraste AA em fundo claro) */
  --accent-soft:    #F0E8D4;   /* tint champagne para superfícies */
  --background:     #FFFFFF;   /* fundo principal */
  --text-primary:   #2E3742;   /* texto principal */
  --text-secondary: #5B6470;   /* texto secundário */
  --line:           #E8E5DF;   /* bordas sutis */
  --line-dark:      rgba(255,255,255,.10);
  --on-dark:        #EBE8E1;   /* texto sobre seções escuras */
  --on-dark-mut:    #AEBED0;   /* texto secundário sobre escuro (contraste AA ~5:1) */
  --success:        #2E7D5B;

  /* Aliases legados (backward compat nas páginas internas) */
  --ink:        var(--primary);
  --ink-2:      var(--primary-mid);
  --paper:      var(--secondary);
  --paper-2:    #F0EDE8;
  --brass:      var(--accent);
  --brass-deep: var(--accent-deep);
  --brass-soft: var(--accent-soft);
  --text:       var(--text-primary);
  --muted:      var(--text-secondary);
  --white:      #FFFFFF;

  /* Type scale (fluid) */
  --step--1: clamp(0.83rem, 0.79rem + 0.18vw, 0.94rem);
  --step-0:  clamp(1.00rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.10rem + 0.5vw, 1.50rem);
  --step-2:  clamp(1.55rem, 1.35rem + 1vw, 2.10rem);
  --step-3:  clamp(2.0rem, 1.6rem + 2vw, 3.2rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 4.8rem);

  /* Spacing */
  --sp-1: .5rem;  --sp-2: 1rem;  --sp-3: 1.5rem;  --sp-4: 2rem;
  --sp-5: 3rem;   --sp-6: 4.5rem; --sp-7: 7rem;

  /* Layout */
  --maxw: 1200px;
  --maxw-narrow: 760px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(15,39,68,.05), 0 16px 40px -20px rgba(15,39,68,.20);
  --shadow-lg: 0 28px 64px -28px rgba(15,39,68,.38);
  --shadow-card: 0 2px 8px rgba(15,39,68,.06), 0 20px 48px -24px rgba(15,39,68,.14);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset -------------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.68;
  color: var(--text-primary);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography --------------------------------------------------- */
h1,h2,h3,h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--primary);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 460; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: "Manrope", sans-serif; font-weight: 700; letter-spacing: 0; }
p  { text-wrap: pretty; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--text-primary); font-weight: 400; }

.eyebrow {
  font-family: "Manrope", sans-serif;
  font-size: .73rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-text);
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content:""; width: 24px; height: 1px; background: var(--accent); display:inline-block;
}

/* ---------- Layout helpers ---------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.narrow    { width: min(100% - 2.5rem, var(--maxw-narrow)); margin-inline: auto; }
.section   { padding-block: var(--sp-7); }
.section-sm{ padding-block: var(--sp-6); }
.center    { text-align: center; }
.stack > * + * { margin-top: var(--sp-3); }
.grid { display: grid; gap: var(--sp-4); }
@media (min-width:760px){ .grid-2{grid-template-columns:repeat(2,1fr);} .grid-3{grid-template-columns:repeat(3,1fr);} }
@media (min-width:980px){ .grid-4{grid-template-columns:repeat(4,1fr);} }

.section-head { max-width: 640px; margin-bottom: var(--sp-5); }
.section-head.center { margin-inline: auto; }
.section-head .eyebrow { margin-bottom: var(--sp-2); }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .88em 1.7em; border-radius: 999px;
  font-weight: 600; font-size: var(--step--1); letter-spacing: .01em;
  border: 1.5px solid transparent; transition: all .32s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }

/* Primário: azul escuro */
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(201,168,106,.55); }

/* Brass / champage */
.btn-brass { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-brass:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(201,168,106,.55); }

/* Ghost */
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); background: var(--secondary); transform: translateY(-2px); }

/* Light (sobre fundo escuro) */
.btn-light { background: rgba(255,255,255,.10); color: var(--on-dark); border-color: var(--line-dark); }
.btn-light:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

/* Accent (chamada secundária) */
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-2px); }

.btn-block { width: 100%; justify-content: center; }
.link-arrow { font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: .4rem; transition: gap .28s var(--ease), color .28s; }
.link-arrow:hover { gap: .75rem; color: var(--accent-deep); }

/* ---------- Header / Nav ------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px -8px rgba(15,39,68,.10);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding-block: .9rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-logo-img { height: 40px; width: auto; display: block; }
.nav-links { display: none; align-items: center; gap: 1.8rem; }
.nav-links a {
  font-size: .88rem; font-weight: 600; color: var(--text-primary);
  position: relative; padding-block: .4rem; letter-spacing: .01em;
}
.nav-links a::after {
  content:""; position:absolute; left:0; bottom:0; height:2px; width:0;
  background: var(--accent); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width:100%; }
.nav-cta { display: none; }
@media (min-width: 980px){ .nav-links{display:flex;} .nav-cta{display:inline-flex;} }

.nav-toggle { display: grid; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--primary); transition: .3s; border-radius: 2px; }
@media (min-width: 980px){ .nav-toggle{display:none;} }
.mobile-menu {
  display: none; padding: 0 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--text-primary); }
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .btn { margin-top: 1rem; }

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: var(--sp-6); padding-bottom: var(--sp-7);
  overflow: hidden;
  background: var(--background);
}
.hero::before {
  content:""; position:absolute; inset:0; z-index:0;
  background:
    radial-gradient(55% 70% at 100% 0%, rgba(15,39,68,.04), transparent 65%),
    radial-gradient(40% 50% at 0% 100%, rgba(201,168,106,.06), transparent 65%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: var(--sp-5); align-items: center; }
@media (min-width: 980px){ .hero-grid{ grid-template-columns: 1fr .9fr; gap: var(--sp-7);} }
.hero h1 { margin-bottom: var(--sp-3); color: var(--primary); }
.hero h1 em { font-style: italic; color: var(--accent-deep); }
.hero .lead { color: var(--text-secondary); margin-bottom: var(--sp-4); max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: var(--sp-4); }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 1.6rem;
  font-size: .8rem; color: var(--text-secondary);
  padding-top: var(--sp-3); border-top: 1px solid var(--line);
}
.hero-trust b {
  color: var(--primary); font-family: "Fraunces", serif;
  font-size: 1.6rem; font-weight: 600; display:block; line-height:1;
}

/* Foto hero */
.hero-photo {
  position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--primary);
  aspect-ratio: 5/6;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: top center; display: block;
}
.hero-photo::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(to top, rgba(15,39,68,.40) 0%, transparent 55%);
}
/* Detalhe decorativo dourado */
.hero-photo::before {
  content:""; position:absolute; z-index:2;
  bottom: -12px; right: -12px;
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: .25;
  pointer-events: none;
}

/* ---------- Trust bar ---------------------------------------------------- */
.trustbar {
  border-block: 1px solid var(--line);
  background: var(--secondary);
}
.trustbar .container {
  display:flex; flex-wrap:wrap; gap: 1.5rem 2.5rem;
  align-items:center; justify-content:center; padding-block: 1.2rem;
}
.trustbar span { font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; color: var(--text-secondary); display:flex; align-items:center; gap:.5rem; }
.trustbar svg { width:1.05em; height:1.05em; color: var(--accent-deep); }

/* ---------- Cards / areas ----------------------------------------------- */
.card {
  background: var(--background); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-4); transition: all .35s var(--ease); height: 100%;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.card::after {
  content:""; position:absolute; bottom:0; left:0; right:0; height:3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card .ic {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--secondary); color: var(--primary); margin-bottom: var(--sp-2);
  border: 1px solid var(--line);
  transition: background .35s, color .35s;
}
.card:hover .ic { background: var(--accent-soft); color: var(--accent-deep); }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-family:"Manrope",sans-serif; font-size: 1.1rem; font-weight: 700; letter-spacing: 0; margin-bottom: .4rem; color: var(--primary); }
.card p { font-size: .92rem; color: var(--text-secondary); margin-bottom: var(--sp-2); flex: 1; }

/* ---------- Dark section ------------------------------------------------- */
.dark { background: var(--primary); color: var(--on-dark); position: relative; overflow: hidden; }
.dark h1,.dark h2,.dark h3 { color: #fff; }
.dark h4 { color: var(--on-dark); }
.dark .eyebrow { color: var(--accent); }
.dark p { color: var(--on-dark-mut); }
.dark .lead { color: var(--on-dark-mut); }
.dark::after {
  content:""; position:absolute; inset:0;
  background: radial-gradient(55% 65% at 85% 10%, rgba(201,168,106,.08), transparent 65%);
  pointer-events:none;
}

/* ---------- Section com fundo secundário --------------------------------- */
.section-alt { background: var(--secondary); }

/* ---------- Process / steps --------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: var(--sp-4); }
@media(min-width:760px){ .steps{ grid-template-columns: repeat(4,1fr);} }
.step { position: relative; padding-top: var(--sp-3); border-top: 2px solid var(--line-dark); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family:"Fraunces",serif; font-size: 1.5rem; color: var(--accent);
  display:block; margin-bottom:.5rem;
}
.step h4 { color: #fff; margin-bottom:.4rem; }
.step p { font-size: .9rem; color: var(--on-dark-mut); }

/* ---------- Stats -------------------------------------------------------- */
.stats { display:grid; gap: var(--sp-4); }
@media(min-width:760px){ .stats{ grid-template-columns: repeat(3,1fr);} }
.stat { text-align:center; padding: var(--sp-3); }
.stat b { font-family:"Fraunces",serif; font-size: clamp(2.4rem,5vw,3.6rem); font-weight:600; color: var(--primary); display:block; line-height:1; }
.dark .stat b { color: var(--accent); }
.stat span { font-size:.88rem; color: var(--text-secondary); }
.dark .stat span { color: var(--on-dark-mut); }

/* ---------- FAQ / accordion --------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.25rem 0;
  display:flex; justify-content:space-between; gap:1rem;
  font-family:"Fraunces",serif; font-size: 1.15rem; color: var(--primary);
}
.faq summary::-webkit-details-marker { display:none; }
.faq summary .pm {
  flex: none; width: 26px; height: 26px; border:1px solid var(--line);
  border-radius:50%; display:grid; place-items:center;
  transition: .3s; color: var(--accent-deep);
}
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--primary); color:#fff; border-color: var(--primary); }
.faq details p { padding: 0 0 1.4rem; color: var(--text-secondary); max-width: 70ch; }

/* ---------- CTA band ----------------------------------------------------- */
.cta-band { text-align:center; }
.cta-band h2 { margin-bottom: var(--sp-3); color: #fff; }
.cta-band .lead { color: var(--on-dark-mut); margin: 0 auto var(--sp-4); max-width: 52ch; }
.cta-actions { display:flex; flex-wrap:wrap; gap: .8rem; justify-content:center; }

/* ---------- Seção Sobre -------------------------------------------------- */
.sobre-section { background: var(--secondary); }
.sobre-grid { display: grid; gap: var(--sp-6); align-items: center; }
@media(min-width:860px){ .sobre-grid { grid-template-columns: 1fr 1fr; } }
.sobre-photo {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative; aspect-ratio: 4/5;
}
.sobre-photo img { width:100%; height:100%; object-fit:cover; object-position:top center; }
.sobre-photo::after {
  content:""; position:absolute; bottom:0; left:0; right:0; height:40%;
  background: linear-gradient(to top, rgba(15,39,68,.30), transparent);
}
/* Linha decorativa dourada */
.sobre-photo::before {
  content:""; position:absolute; z-index:2;
  top: 24px; left: -16px;
  width: 5px; height: 80px;
  background: var(--accent);
  border-radius: 3px;
}
.sobre-content { display: flex; flex-direction: column; gap: var(--sp-3); }
.sobre-values { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .8rem; margin-top: var(--sp-2); }
.sobre-values li {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .94rem; color: var(--text-secondary);
}
.sobre-values li::before {
  content:""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft); border: 1.5px solid var(--accent);
  margin-top: .18em;
}

/* ---------- Seção Autoridade --------------------------------------------- */
.autoridade-section { background: var(--primary); position: relative; overflow: hidden; }
.autoridade-section::after {
  content:""; position:absolute; inset:0;
  background: radial-gradient(60% 80% at 15% 50%, rgba(201,168,106,.07), transparent 70%);
  pointer-events:none;
}
.autoridade-grid { display: grid; gap: var(--sp-6); align-items: center; position: relative; z-index: 1; }
@media(min-width:860px){ .autoridade-grid { grid-template-columns: 1fr 1fr; } }
.autoridade-photo {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/5;
  order: 2;
}
@media(min-width:860px){ .autoridade-photo { order: 1; } }
.autoridade-photo img { width:100%; height:100%; object-fit:cover; object-position:top center; }
.autoridade-content { order: 1; }
@media(min-width:860px){ .autoridade-content { order: 2; } }
.autoridade-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-top: var(--sp-4); }
.autoridade-stat {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius); padding: var(--sp-3);
}
.autoridade-stat b {
  font-family:"Fraunces",serif; font-size: 2.4rem; font-weight: 600;
  color: var(--accent); display:block; line-height:1; margin-bottom: .3rem;
}
.autoridade-stat span { font-size: .82rem; color: var(--on-dark-mut); }
.autoridade-diferenciais { list-style:none; padding:0; margin-top: var(--sp-3); display:flex; flex-direction:column; gap:.7rem; }
.autoridade-diferenciais li {
  display:flex; align-items:center; gap: .75rem;
  font-size: .92rem; color: var(--on-dark);
}
.autoridade-diferenciais li svg { width:16px; height:16px; color: var(--accent); flex:none; }

/* ---------- Perfis de advogadas (EEAT) ---------------------------------- */
.attorneys { display: grid; gap: var(--sp-5); }
@media(min-width:760px){ .attorneys { grid-template-columns: 1fr 1fr; } }
.attorney-card {
  background: var(--background); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.attorney-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.attorney-photo {
  aspect-ratio: 4/5; overflow: hidden; background: var(--primary); position: relative;
}
.attorney-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
}
.attorney-photo::after {
  content:""; position:absolute; bottom:0; left:0; right:0; height:55%;
  background: linear-gradient(to top, rgba(15,39,68,.65), transparent);
}
.attorney-info { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.attorney-info h3 { font-size: var(--step-1); margin-bottom: .25rem; color: var(--primary); }
.attorney-oab {
  font-size: .78rem; color: var(--accent-deep); font-weight: 700;
  letter-spacing: .08em; margin-bottom: var(--sp-2); text-transform: uppercase;
}
.attorney-bio { font-size: .92rem; color: var(--text-secondary); margin-bottom: var(--sp-2); }
.attorney-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.attorney-tags span {
  background: var(--secondary); color: var(--primary); border: 1px solid var(--line);
  font-size: .72rem; font-weight: 700; padding: .28em .8em; border-radius: 999px;
}

/* ---------- Diferenciais ------------------------------------------------- */
.pill {
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.35em .85em; border-radius:999px;
  background:rgba(255,255,255,.08); color: var(--on-dark);
  font-size:.78rem; font-weight:600; border: 1px solid rgba(255,255,255,.12);
}
.dark .stack > p { color: var(--on-dark-mut); }

/* ---------- Footer ------------------------------------------------------- */
.site-footer { background: var(--primary); color: var(--on-dark-mut); padding-top: var(--sp-6); }
.footer-grid { display:grid; gap: var(--sp-5); padding-bottom: var(--sp-5); }
@media(min-width:760px){ .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr 1.2fr;} }
.site-footer h4 {
  color: #fff; font-size:.75rem; letter-spacing:.18em;
  text-transform:uppercase; margin-bottom: var(--sp-2);
  font-family:"Manrope",sans-serif; font-weight:700;
}
.site-footer a {
  color: var(--on-dark-mut); font-size:.9rem;
  display:block; padding:.28rem 0; transition: color .25s;
}
.site-footer a:hover { color: var(--accent); }
.footer-brand p { font-size:.88rem; max-width: 34ch; margin-top: var(--sp-2); line-height:1.6; }
.footer-divider { height:1px; background: rgba(255,255,255,.08); margin-bottom: var(--sp-3); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-block: 1.6rem;
  display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; font-size:.78rem;
}
.footer-bottom a { display:inline; padding:0; font-size:.78rem; }
.oab-note { font-size:.75rem; color: var(--on-dark-mut); opacity:.7; max-width: 72ch; margin-top: var(--sp-2); line-height:1.6; }
/* Linha dourada no topo do footer */
.site-footer::before {
  content:""; display:block; height:3px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
}

/* ---------- Seção EEAT bar ---------------------------------------------- */
.eeat-item { display: flex; align-items: center; gap: .6rem; font-size: .82rem; }
.eeat-item svg { width: 17px; height: 17px; color: var(--accent-deep); flex: none; }
.eeat-item strong { color: var(--primary); }

/* ---------- Geo / Local pages ------------------------------------------- */
.geo-hero { background: var(--primary); color: var(--on-dark); padding-block: var(--sp-6); position: relative; overflow: hidden; }
.geo-hero::after { content:""; position:absolute; inset:0;
  background: radial-gradient(60% 60% at 80% 0%, rgba(201,168,106,.12), transparent); pointer-events:none; }
.geo-hero h1 { color: #fff; }
.geo-hero .eyebrow { color: var(--accent); }
.geo-hero .lead { color: var(--on-dark-mut); }

.geo-cities { display: flex; flex-wrap: wrap; gap: .5rem; }
.geo-cities a {
  background: var(--background); border: 1px solid var(--line);
  color: var(--primary); font-size: .8rem; font-weight: 600; padding: .4em .95em;
  border-radius: 999px; transition: all .28s var(--ease);
}
.geo-cities a:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }

/* ---------- Review stars ------------------------------------------------ */
.stars { color: var(--accent); font-size: 1rem; letter-spacing: .1em; }
.review-card {
  background: var(--background); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--sp-3);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.review-author { font-weight: 700; color: var(--primary); font-size: .88rem; }
.review-text { font-size: .9rem; color: var(--text-secondary); font-style: italic; margin-top: .5rem; line-height:1.6; }

/* Depoimentos sobre fundo escuro */
.depoimentos-section { background: var(--primary); }
.depoimentos-section .review-card { background: var(--background); }

/* ---------- Galeria de ambiente / escritório ---------------------------- */
.ambiente-grid { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
.ambiente-col { display: grid; gap: var(--sp-3); }
.ambiente-item {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card); aspect-ratio: 3/2; background: var(--primary);
}
.ambiente-item img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
@media (min-width: 860px){
  .ambiente-grid { grid-template-columns: 1.35fr 1fr; align-items: stretch; }
  .ambiente-lg { grid-row: 1 / span 2; aspect-ratio: auto; height: 100%; }
  .ambiente-col { grid-template-rows: 1fr 1fr; }
}

/* ---------- Faixa institucional com imagem de fundo --------------------- */
.image-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  min-height: 300px; display: grid; place-items: center; text-align: center;
  color: var(--on-dark); padding: var(--sp-6) var(--sp-4);
}
.image-band img.image-band-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.image-band::after {
  content:""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,39,68,.72), rgba(10,30,53,.82));
}
.image-band > * { position: relative; z-index: 2; }

/* ---------- Cards da equipe associada -------------------------------- */
.team-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px){ .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--primary); box-shadow: var(--shadow-card); margin-bottom: var(--sp-2);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.team-mono { display: grid; place-items: center; background: linear-gradient(160deg, var(--ink-2), var(--primary)); }
.team-mono span { font-family: 'Fraunces', serif; font-size: 2.4rem; color: var(--accent); letter-spacing: .03em; }
.team-card h3 { font-size: 1rem; line-height: 1.25; margin: 0 0 .15rem; }
.team-card .attorney-oab { margin: 0; }

/* ---------- Banner de consentimento (LGPD) --------------------------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10000;
  max-width: 620px; margin-inline: auto;
  background: var(--primary); color: var(--on-dark);
  border: 1px solid var(--line-dark); border-radius: 14px;
  padding: 15px 18px; box-shadow: 0 18px 50px -12px rgba(0,0,0,.5);
  display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .85rem; color: var(--on-dark-mut); flex: 1; min-width: 220px; }
.cookie-banner a { color: var(--accent); }
.cookie-actions { display: flex; gap: 8px; }
@media (max-width: 767px){ .cookie-banner { bottom: 5.4rem; } }

/* Campo de formulário com erro (acessibilidade) */
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: #b3261e; box-shadow: 0 0 0 1px #b3261e;
}

/* ---------- Mapa embed -------------------------------------------------- */
.map-embed { border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); min-height: 360px; }
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Floating phone bar (mobile) --------------------------------- */
.phone-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
  background: var(--primary); padding: .8rem 1.25rem;
  justify-content: space-between; align-items: center; gap: 1rem;
  border-top: 1px solid rgba(255,255,255,.10);
}
@media (max-width: 767px){
  .phone-bar { display: flex; }
  /* evita sobreposição da phone-bar fixa com a wa-float e com o conteúdo */
  .wa-float { bottom: 5.3rem; }
  body { padding-bottom: 4.6rem; }
}
.phone-bar span { font-size: .8rem; color: var(--on-dark-mut); }
.phone-bar a { flex: none; }

/* ---------- WhatsApp float ----------------------------------------------- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color:#fff;
  display:grid; place-items:center;
  box-shadow: 0 8px 28px -6px rgba(37,211,102,.55);
  transition: transform .28s var(--ease);
}
.wa-float:hover { transform: scale(1.09); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Article / prose --------------------------------------------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin: var(--sp-5) 0 var(--sp-2); }
.prose h3 { font-size: var(--step-1); margin: var(--sp-4) 0 var(--sp-1); font-family:"Manrope",sans-serif; font-weight:700; }
.prose p, .prose li { color: var(--text-primary); }
.prose ul { padding-left: 1.2rem; list-style: none; }
.prose ul li { position: relative; padding-left: 1.2rem; margin-bottom: .5rem; }
.prose ul li::before { content:""; position:absolute; left:0; top:.62em; width:7px; height:7px; background: var(--accent); border-radius:2px; transform: rotate(45deg); }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Page hero (interior) ---------------------------------------- */
.page-hero { padding-block: var(--sp-6) var(--sp-5); }
.breadcrumb { font-size:.8rem; color: var(--text-secondary); margin-bottom: var(--sp-3); display:flex; gap:.5rem; flex-wrap:wrap; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--primary); }

/* ---------- Forms -------------------------------------------------------- */
.field { margin-bottom: var(--sp-3); }
.field label { display:block; font-size:.84rem; font-weight:700; color: var(--primary); margin-bottom:.4rem; letter-spacing:.01em; }
.field input, .field textarea, .field select {
  width:100%; padding: .9rem 1.1rem; border:1.5px solid var(--line); border-radius: 10px;
  background: var(--background); font: inherit; color: var(--text-primary);
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,39,68,.10);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size:.77rem; color: var(--text-secondary); }
.consent { display:flex; gap:.6rem; align-items:flex-start; font-size:.82rem; color: var(--text-secondary); }
.consent input { width:auto; margin-top:.25rem; }

.contact-grid { display:grid; gap: var(--sp-5); }
@media(min-width:900px){ .contact-grid{ grid-template-columns: 1fr 1fr; } }
.info-block { display:flex; gap: .9rem; align-items:flex-start; margin-bottom: var(--sp-3); }
.info-block .ic {
  flex:none; width:42px; height:42px; border-radius:11px;
  background: var(--secondary); color: var(--primary);
  border: 1px solid var(--line); display:grid; place-items:center;
}
.info-block b { display:block; color: var(--primary); }
.info-block span { color: var(--text-secondary); font-size:.9rem; }

/* ---------- Blog list ---------------------------------------------------- */
.post-card { display:flex; flex-direction:column; }
.post-card .tag { font-size:.72rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color: var(--accent-deep); margin-bottom:.6rem; }
.post-card h3 { font-size: 1.25rem; margin-bottom:.5rem; color: var(--primary); }
.post-card .meta { font-size:.78rem; color: var(--text-secondary); margin-top: auto; padding-top: var(--sp-2); }

/* ---------- Reveal animation -------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  .reveal { opacity:1; transform:none; transition:none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utilities ---------------------------------------------------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.text-brass{color:var(--accent-deep)}
.divider{height:1px;background:var(--line);border:0;margin-block:var(--sp-5)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- Banner institucional anti-golpes ---------------------------- */
.security-banner {
  background: #FFF8E7;
  border-top: 3px solid #C9A86A;
  border-bottom: 1px solid #E8D89A;
  padding: .9rem 0;
}
.security-banner .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.security-banner-icon {
  flex: none;
  width: 36px; height: 36px;
  background: #0F2744;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #C9A86A;
}
.security-banner-icon svg { width: 18px; height: 18px; }
.security-banner-content { flex: 1; min-width: 240px; }
.security-banner-content strong {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: #0F2744;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .15rem;
}
.security-banner-content p {
  font-size: .82rem;
  color: #5B6470;
  margin: 0;
  line-height: 1.5;
}
.security-banner .btn-security {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5em 1.1em;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid #0F2744;
  color: #0F2744;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background .25s, color .25s;
  text-decoration: none;
  flex-shrink: 0;
}
.security-banner .btn-security:hover {
  background: #0F2744;
  color: #fff;
}
@media (max-width: 600px) {
  .security-banner .container { gap: .6rem; }
  .security-banner .btn-security { width: 100%; justify-content: center; }
}

/* ---------- Notificação WhatsApp tooltip -------------------------------- */
.wa-tooltip {
  position: fixed; right: 5rem; bottom: 1.6rem; z-index: 59;
  background: var(--primary); color: var(--on-dark); font-size: .8rem;
  padding: .5rem 1rem; border-radius: 999px;
  box-shadow: var(--shadow); white-space: nowrap;
  opacity: 0; transform: translateX(8px);
  transition: all .35s var(--ease); pointer-events: none;
}
.wa-float:hover ~ .wa-tooltip,
.wa-tooltip:hover { opacity: 1; transform: translateX(0); }

/* ==========================================================================
   RESPONSIVIDADE MOBILE-FIRST
   ========================================================================== */

@media (max-width: 759px) {
  .hero { padding-top: var(--sp-4); padding-bottom: var(--sp-5); }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .sobre-photo::before { display: none; }
  .autoridade-stats { grid-template-columns: 1fr 1fr; }
  .autoridade-stat b { font-size: 2rem; }
  .section { padding-block: var(--sp-5); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 479px) {
  .hero-trust { gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .autoridade-stats { grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
}

/* ==========================================================================
   V4 — Dropdowns de navegação (Áreas / Conteúdo) + limpeza de estilos inline
   ========================================================================== */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: .28rem; }
.caret { flex: 0 0 auto; transition: transform .2s var(--ease); }
.has-dropdown:hover .caret,
.has-dropdown:focus-within .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px; margin-top: .2rem; padding: .5rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  display: grid; gap: .1rem; z-index: 60;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
/* ponte invisível: mantém o hover ao atravessar o vão até o menu */
.has-dropdown::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: .6rem; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-areas { grid-template-columns: 1fr 1fr; min-width: 342px; }
.dropdown a {
  display: block; padding: .5rem .7rem; border-radius: 8px;
  font-size: .9rem; font-weight: 500; letter-spacing: 0;
  color: var(--text-secondary); white-space: nowrap;
}
.dropdown a::after { display: none !important; }
.dropdown a:hover { color: var(--primary); background: var(--secondary); }
.dropdown-all {
  grid-column: 1 / -1; margin-top: .25rem; padding-top: .55rem;
  border-top: 1px solid var(--line);
  font-weight: 700 !important; color: var(--accent-text) !important;
}

/* Footer — classes no lugar de estilos inline (manutenção) */
.footer-logo { height: 40px; margin-bottom: .8rem; filter: brightness(0) invert(1); }
.footer-ig { margin-top: .6rem; font-size: .82rem; }
.footer-ig a { color: var(--accent); }
.footer-address { margin-top: .8rem; font-size: .82rem; color: var(--on-dark-mut); }

/* Contato — telefone/e-mail clicáveis (tel:/mailto:) mantendo o visual do bloco */
.info-block a { color: inherit; text-decoration: none; }
.info-block a:hover { color: var(--accent-text); text-decoration: underline; }

/* Menu mobile — grupos colapsáveis (Áreas/Conteúdo), paridade com o desktop */
.mobile-menu .m-group { border-bottom: 1px solid var(--line); }
.mobile-menu .m-group summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: .85rem 0; font-weight: 600; color: var(--text-primary);
}
.mobile-menu .m-group summary::-webkit-details-marker { display: none; }
.mobile-menu .m-group summary::after { content: "+"; font-size: 1.2rem; line-height: 1; color: var(--accent-text); }
.mobile-menu .m-group[open] summary::after { content: "–"; }
.mobile-menu .m-group a { padding: .7rem 0 .7rem 1rem; border-bottom: 0; font-weight: 500; font-size: .92rem; color: var(--text-secondary); min-height: 44px; display: flex; align-items: center; }
.mobile-menu .m-group a:last-child { padding-bottom: .85rem; color: var(--accent-text); font-weight: 600; }

/* Skip-link visível ao receber foco (WCAG 2.4.1 — antes era invisível ao teclado) */
.sr-only:focus {
  position: fixed; top: .6rem; left: .6rem; width: auto; height: auto;
  clip: auto; margin: 0; padding: .6rem 1rem; overflow: visible; white-space: normal;
  background: var(--primary); color: #fff; border-radius: 8px; z-index: 200;
  box-shadow: var(--shadow-lg); font-weight: 600;
}

/* Hero acima da dobra renderiza de imediato (desacopla o LCP do JS do reveal) */
.hero .reveal, .hero-photo.reveal { opacity: 1; transform: none; transition: none; }

/* Trava a rolagem do body enquanto o menu mobile está aberto */
body.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .dropdown, .caret { transition: none; }
}
