/* ==========================================================================
   Sartori & Moreti — Design System (v0.2)
   Fonte: Guia de Marca. Cores fixas, Urbanist, escudo + pulso como assinatura.
   ========================================================================== */

/* 1. Fontes (hospedadas no tema: sem requisição ao Google, melhor para LGPD e velocidade) */
@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/urbanist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/urbanist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Tokens */
:root {
  /* Marca */
  --navy: #0e2c49;
  --navy-600: #123960;
  --bronze: #a47c5e;
  --bronze-light: #ce9d78;
  --steel: #727884;
  --mist: #efefef;
  --white: #ffffff;
  /* Derivados (legibilidade) */
  --bronze-ink: #82593c;         /* bronze escurecido para TEXTO sobre fundo claro (contraste AA) */
  --steel-700: #4f5763;          /* texto secundário em fundo claro (contraste AA) */
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(14, 44, 73, 0.14);

  /* Tipografia */
  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.75rem, 3vw, 2.25rem);
  --fs-3xl: clamp(2.25rem, 4.5vw, 3.5rem);
  --fs-4xl: clamp(2.75rem, 6.5vw, 5rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 84px;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--bronze); text-underline-offset: 0.22em; }
a:hover { text-decoration-color: currentColor; }
p { margin: 0 0 1.1em; max-width: 68ch; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: var(--fs-4xl); font-weight: 300; }
h2 { font-size: var(--fs-3xl); font-weight: 300; }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
strong { font-weight: 700; }
::selection { background: var(--bronze-light); color: var(--navy); }

:focus-visible { outline: 2px solid var(--bronze-light); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--bronze-light); color: var(--navy); padding: 0.75rem 1rem; font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* 4. Layout utilitário */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: var(--white); }
.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--steel-700); }
.section--navy .lead { color: rgba(255, 255, 255, 0.78); }

/* Fundo escuro com textura quadriculada e iluminação sutil (Guia de Marca) */
.texture-navy {
  background-color: var(--navy);
  background-image:
    radial-gradient(120% 90% at 12% 0%, rgba(18, 57, 96, 0.95) 0%, rgba(14, 44, 73, 0) 62%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  color: var(--white);
}
/* Fundo claro com grid em #EFEFEF */
.texture-mist {
  background-color: var(--white);
  background-image:
    linear-gradient(var(--mist) 1px, transparent 1px),
    linear-gradient(90deg, var(--mist) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* 5. Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.8rem 1.6rem;
  font: 600 var(--fs-sm)/1.2 var(--font); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn--primary { background: var(--bronze-light); color: var(--navy); }
.btn--primary:hover { background: #dcae8c; }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-600); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(206, 157, 120, 0.14); border-color: var(--bronze-light); }

/* 6. Assinatura: linha de pulso (o traço do símbolo vira divisor de seção) */
.pulse { display: flex; align-items: center; gap: 1.25rem; color: var(--bronze-light); }
.pulse::before, .pulse::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.55; }
.pulse svg { width: 132px; height: 28px; flex: none; overflow: visible; }
.pulse path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: miter; stroke-linecap: square; }
.pulse--ink { color: var(--bronze); }

/* 7. Cards (estrutura sóbria; borda de 1px, sem sombra decorativa) */
.card { background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); }
.card--link { display: block; text-decoration: none; transition: border-color 0.2s var(--ease); }
.card--link:hover { border-color: var(--bronze); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; color: var(--steel-700); }
.section--navy .card, .texture-navy .card { background: rgba(255, 255, 255, 0.04); border-color: var(--line-dark); }
.section--navy .card p:last-child, .texture-navy .card p:last-child { color: rgba(255, 255, 255, 0.75); }

/* 8. Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy); color: var(--white); border-bottom: 1px solid var(--line-dark); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: var(--header-h); }
.brand { display: block; flex: none; line-height: 0; }
.brand img { width: 131px; height: 56px; }

.nav-toggle { display: none; position: relative; width: 48px; height: 48px; margin-right: -10px; background: none; border: 0; color: inherit; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { position: absolute; left: 12px; width: 24px; height: 2px; background: currentColor; transition: transform 0.25s var(--ease), background-color 0.2s; content: ""; }
.nav-toggle__bar { top: 23px; }
.nav-toggle__bar::before { left: 0; top: -7px; }
.nav-toggle__bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list a { display: block; padding: 0.55rem 0.8rem; font-size: var(--fs-sm); font-weight: 500; text-decoration: none; color: rgba(255, 255, 255, 0.88); transition: color 0.2s; }
.nav-list a:hover, .nav-list .current-menu-item > a, .nav-list a[aria-current="page"] { color: var(--white); }
.nav-list > li > a { position: relative; }
.nav-list > li > a::after { content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.2rem; height: 1px; background: var(--bronze-light); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav-list > li:hover > a::after, .nav-list > li > a[aria-current="page"]::after, .nav-list > .current-menu-item > a::after { transform: scaleX(1); }

/* Submenu: Áreas conectadas */
.sub-toggle { width: 28px; height: 28px; margin-left: -0.5rem; padding: 0; background: none; border: 0; color: rgba(255, 255, 255, 0.75); cursor: pointer; }
.sub-toggle::before { content: ""; display: block; width: 7px; height: 7px; margin: 0 auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s var(--ease); }
.sub-toggle[aria-expanded="true"]::before { transform: translateY(1px) rotate(-135deg); }
.sub-menu { margin: 0; padding: 0; list-style: none; }

@media (min-width: 1081px) {
  .sub-menu {
    position: absolute; top: 100%; left: -1rem; z-index: 10; min-width: 360px; padding: 0.5rem;
    background: var(--navy-600); border-top: 2px solid var(--bronze-light);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
  }
  .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
.sub-menu a { padding: 0.85rem 1rem; }
.sub-menu a strong { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--white); }
.sub-menu a span { display: block; margin-top: 0.1rem; font-size: var(--fs-xs); font-weight: 400; line-height: 1.45; color: rgba(255, 255, 255, 0.66); }
.sub-menu a:hover { background: rgba(255, 255, 255, 0.06); }

.nav-cta { white-space: nowrap; }

/* Mobile / tablet */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1.5rem;
    padding: 1.5rem var(--gutter) 2.5rem; overflow-y: auto;
    background: var(--navy);
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 64px 64px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line-dark); }
  .nav-list > li > a { flex: 1; padding: 1.05rem 0; font-size: var(--fs-lg); font-weight: 400; color: var(--white); }
  .nav-list > li > a::after { display: none; }
  .sub-toggle { width: 48px; height: 48px; margin: 0; }
  .sub-menu { display: none; width: 100%; padding: 0 0 0.75rem 0.25rem; }
  .has-sub.is-open > .sub-menu { display: block; }
  .sub-menu a { padding: 0.7rem 0; }
  .nav-cta { width: 100%; }
}
body.nav-locked { overflow: hidden; }

/* 9. Rodapé */
.site-footer { color: rgba(255, 255, 255, 0.82); }
.site-footer__pulse { padding-block: 1.25rem; background: var(--white); }
.site-footer__main { display: grid; gap: clamp(2.5rem, 5vw, 4rem); padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .site-footer__main { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer__brand img { width: 150px; height: auto; margin-bottom: 1.5rem; }
.site-footer__slogan { font-size: var(--fs-xl); font-weight: 300; line-height: 1.25; color: var(--white); margin-bottom: 0.75rem; }
.site-footer__note { font-size: var(--fs-sm); max-width: 34ch; color: rgba(255, 255, 255, 0.68); }
.site-footer h2 { margin-bottom: 1rem; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.02em; color: var(--bronze-light); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 0.45rem; }
.site-footer a { text-decoration: none; font-size: var(--fs-sm); }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--bronze-light); }
.site-footer address { font-style: normal; font-size: var(--fs-sm); line-height: 1.7; }
.site-footer__legal { border-top: 1px solid var(--line-dark); padding-block: 1.5rem 2rem; font-size: var(--fs-xs); line-height: 1.6; color: rgba(255, 255, 255, 0.6); }
.site-footer__legal .container { display: grid; gap: 0.75rem; }
.site-footer__legal p { max-width: 90ch; margin: 0; }

/* 10. Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* 11. Home — Apresentação */
.about__grid { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); }
@media (min-width: 900px) { .about__grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.about h2 { font-size: var(--fs-3xl); max-width: 16ch; margin: 0; }
.about__text .lead { color: var(--navy); }
.about__text p:last-child { margin-bottom: 0; }
.principles { display: grid; gap: 1.75rem; margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0; list-style: none; }
@media (min-width: 800px) { .principles { grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); } }
.principles li { padding-top: 1.25rem; border-top: 1px solid var(--bronze); }
.principles h3 { font-size: var(--fs-lg); margin-bottom: 0.4em; }
.principles p { margin: 0; color: var(--steel-700); }

/* 12. Home — Áreas */
.areas__intro { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.areas__intro h2 { margin-bottom: 0.35em; }
.areas { display: grid; gap: 1.25rem; }
@media (min-width: 900px) {
  .areas { grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .area--main { grid-row: 1 / span 2; }
}
.area { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.25rem); text-decoration: none; background-color: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius); transition: border-color 0.2s var(--ease); }
a.area:hover { border-color: var(--bronze); }
.area h3 { font-size: var(--fs-xl); margin-bottom: 0.4em; }
.area p { margin: 0 0 1em; color: var(--steel-700); }
.area__links { margin: auto 0 0 !important; padding-top: 1rem; font-size: var(--fs-xs); font-weight: 600; color: var(--bronze-ink) !important; }
.area--main { background-color: var(--navy); border-color: transparent; color: var(--white); }
.area--main:hover { border-color: var(--bronze-light); }
.area--main h3 { font-size: var(--fs-2xl); font-weight: 300; }
.area--main p { color: rgba(255, 255, 255, 0.8); }
.area__list { margin: 0.5rem 0 1.5rem; padding: 0; list-style: none; }
.area__list li { padding: 0.6rem 0; border-top: 1px solid var(--line-dark); font-size: var(--fs-sm); }
.area__more { margin-top: auto; align-self: flex-start; padding-bottom: 0.2rem; font-size: var(--fs-sm); font-weight: 600; color: var(--bronze-light); border-bottom: 1px solid var(--bronze-light); }

/* 13. Hero — o pulso se desenha ao carregar */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: min(780px, calc(100svh - var(--header-h))); padding-block: clamp(3rem, 8vw, 6rem) clamp(7rem, 12vw, 9rem); }
.hero__grid { display: grid; gap: 3rem; align-items: center; width: 100%; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { max-width: 15ch; margin-bottom: 0.4em; }
.hero .lead { max-width: 52ch; margin-bottom: 2rem; color: rgba(255, 255, 255, 0.82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; max-width: none; }
.hero__photo { margin: 0; justify-self: end; width: min(100%, 620px); line-height: 0; }
.hero__photo img { width: 100%; height: auto; border-radius: var(--radius);
  -webkit-mask-image: radial-gradient(ellipse 64% 62% at 50% 44%, #000 52%, transparent 96%);
  mask-image: radial-gradient(ellipse 64% 62% at 50% 44%, #000 52%, transparent 96%); }
@media (max-width: 899px) { .hero__photo { width: min(100%, 420px); margin-top: 0.5rem; } }
.hero__ecg { position: absolute; left: 0; right: 0; bottom: clamp(1.25rem, 3.5vw, 2.5rem); width: 100%; height: 60px; pointer-events: none; }
.hero__ecg path { fill: none; stroke: var(--bronze-light); stroke-width: 1.5; stroke-linejoin: miter; vector-effect: non-scaling-stroke; opacity: 0.9; }

.js .hero__photo img { animation: sm-fade 1.4s var(--ease) 0.2s both; }
.js .hero__ecg path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sm-draw 2.6s var(--ease) 0.5s forwards; }
@keyframes sm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sm-draw { to { stroke-dashoffset: 0; } }

/* Divisores de pulso desenham ao entrar na tela */
.js .pulse path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .pulse.is-drawn path { animation: sm-draw 1.4s var(--ease) forwards; }

/* Progresso de leitura no header (herdado do site anterior) */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--bronze-light); transform: scaleX(var(--progress, 0)); transform-origin: left; }

/* 14. Método */
.steps { display: grid; gap: 2.5rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); } }
.steps li { position: relative; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); }
.steps__n { display: block; margin-bottom: 0.75rem; font-size: var(--fs-4xl); font-weight: 200; line-height: 1; color: var(--bronze-light); }
.steps h3 { margin-bottom: 0.4em; }
.steps p { margin: 0; color: rgba(255, 255, 255, 0.78); }

/* 15. Sócios */
.partners { display: grid; gap: clamp(2.5rem, 4vw, 3.5rem); }
@media (min-width: 1000px) { .partners { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); } }
.partner { display: grid; gap: 1.5rem; align-content: start; }
@media (min-width: 560px) { .partner { grid-template-columns: minmax(170px, 0.8fr) 1.2fr; gap: 1.75rem; align-items: start; } }
.partner__photo { aspect-ratio: 4 / 5; width: 100%; max-width: 320px; display: grid; place-items: center; overflow: hidden; background: var(--mist); border: 1px solid var(--line-light); border-radius: var(--radius); }
.partner__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.02); }
.partner__photo .partner__placeholder { width: 28%; height: auto; opacity: 0.55; object-fit: contain; filter: none; }
.partner h3 { margin-bottom: 0.1em; font-size: var(--fs-2xl); font-weight: 400; }
.partner__role { margin-bottom: 1rem; font-weight: 600; color: var(--bronze-ink); }
.partner__oab { margin: 1rem 0 0; font-size: var(--fs-xs); color: var(--steel-700); }
.partners__more { margin: clamp(2rem, 4vw, 3rem) 0 0; max-width: none; }

/* 16. Medicina Protegida */
.mp { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 800px) { .mp { grid-template-columns: 1fr auto; } }
.mp h2 { margin-bottom: 0.25em; }
.mp p { margin: 0; }

/* 17. Conteúdos */
.posts { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2rem); text-decoration: none; background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius); transition: border-color 0.2s var(--ease); }
.post-card:hover { border-color: var(--bronze); }
.post-card h3 { font-size: var(--fs-lg); }
.post-card p { margin: 0 0 1rem; color: var(--steel-700); }
.post-card__meta { margin-top: auto; font-size: var(--fs-xs); font-weight: 600; color: var(--bronze-ink); }

/* 18. Chamada final */
.cta-final h2 { max-width: 20ch; font-size: var(--fs-3xl); }
.cta-final p { margin: 2rem 0 0; }

/* Movimento reduzido: tudo já desenhado, nada anima */
@media (prefers-reduced-motion: reduce) {
  .js .hero__photo img, .js .hero__ecg path, .js .pulse.is-drawn path { animation: none; }
  .js .hero__ecg path, .js .pulse path { stroke-dashoffset: 0; }
}

/* 19. Páginas de área */
.area-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }
.area-hero h1 { max-width: 20ch; font-size: var(--fs-4xl); margin-bottom: 0.35em; }
.area-hero .lead { max-width: 58ch; margin-bottom: 2rem; color: rgba(255, 255, 255, 0.82); }
.area-hero p:last-child { margin-bottom: 0; }
.breadcrumb { margin-bottom: clamp(2rem, 5vw, 3.5rem); font-size: var(--fs-xs); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; margin: 0; padding: 0; list-style: none; color: rgba(255, 255, 255, 0.7); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.6rem; color: var(--bronze-light); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--bronze-light); }
.breadcrumb [aria-current] { color: var(--white); }

.areas-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.area__more--dark { color: var(--bronze-ink); border-bottom-color: var(--bronze); margin-top: auto; align-self: flex-start; font-size: var(--fs-sm); font-weight: 600; border-bottom: 1px solid var(--bronze); padding-bottom: 0.2rem; }
.areas-grid .area > p { margin-bottom: 1.25rem; }

.connects { display: grid; gap: 1.5rem 2.5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 800px) { .connects { grid-template-columns: 1fr 1fr; } }
.connects a { display: block; height: 100%; padding-top: 1.1rem; border-top: 1px solid var(--bronze); text-decoration: none; }
.connects h3 { margin-bottom: 0.3em; font-size: var(--fs-lg); transition: color 0.2s var(--ease); }
.connects a:hover h3 { color: var(--bronze-ink); }
.connects p { margin: 0; color: var(--steel-700); }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq details:first-child { border-top: 1px solid var(--line-light); }
.faq summary { position: relative; padding: 1.25rem 2.5rem 1.25rem 0; font-weight: 600; font-size: var(--fs-lg); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.4rem; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--bronze); border-bottom: 1.5px solid var(--bronze); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 1.4rem; max-width: 64ch; color: var(--steel-700); }
.faq__note { margin: 1.5rem 0 0; font-size: var(--fs-xs); color: var(--steel-700); }

@media (min-width: 800px) {
  .areas-grid--n4 { grid-template-columns: repeat(2, 1fr); }
  .areas-grid--n5 { grid-template-columns: repeat(6, 1fr); }
  .areas-grid--n5 > * { grid-column: span 2; }
  .areas-grid--n5 > :nth-child(n+4) { grid-column: span 3; }
}

/* 20. Cabeçalho com foto (Sócios) */
@media (min-width: 900px) {
  .area-hero--photo .area-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
}
.area-hero--photo .hero__photo { margin-top: 2rem; }
@media (min-width: 900px) { .area-hero--photo .hero__photo { margin-top: 0; } }
.area-hero--photo h1 { max-width: 14ch; }

/* 21. Biografias */
.bio { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 800px) { .bio { grid-template-columns: minmax(240px, 0.8fr) 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); } }
.bio .partner__photo { max-width: 420px; }
.bio h2 { margin-bottom: 0.1em; font-size: var(--fs-3xl); }
.bio h3 { margin: 1.75rem 0 0.5rem; font-size: var(--fs-lg); }
.bio__list { margin: 0 0 1rem; padding: 0; list-style: none; }
.bio__list li { padding: 0.6rem 0; border-top: 1px solid var(--line-light); font-size: var(--fs-sm); }
.bio__list li:last-child { border-bottom: 1px solid var(--line-light); }
@media (min-width: 800px) { .principles--4 { grid-template-columns: repeat(4, 1fr); } }

/* 22. Contato e formulários */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; } }
.contact-info h2 { font-size: var(--fs-2xl); }
.contact-list { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.contact-list li { display: grid; gap: 0.1rem; padding: 0.9rem 0; border-top: 1px solid var(--line-light); }
.contact-list li:last-child { border-bottom: 1px solid var(--line-light); }
.contact-list span { font-size: var(--fs-xs); font-weight: 600; color: var(--bronze-ink); }
.contact-note { font-size: var(--fs-sm); color: var(--steel-700); }
.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--mist); border-radius: var(--radius); scroll-margin-top: calc(var(--header-h) + 16px); }
.form-grid { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: 0.4rem; font-size: var(--fs-sm); font-weight: 600; }
.field__opt { font-weight: 400; color: var(--steel-700); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; font: inherit; font-size: 1rem; color: var(--navy); background: var(--white); border: 1px solid rgba(14, 44, 73, 0.28); border-radius: var(--radius); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--bronze-light); outline-offset: 1px; border-color: var(--bronze); }
.field__hint { margin: 0.5rem 0 0; font-size: var(--fs-xs); color: var(--steel-700); }
.check { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1.5rem; font-size: var(--fs-sm); line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 0.15rem; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { margin: 0 0 1.5rem; padding: 1rem 1.25rem; font-size: var(--fs-sm); font-weight: 500; border-left: 3px solid var(--bronze); background: var(--white); max-width: none; }
.alert--erro { border-left-color: #9b2c2c; }

/* 23. Conteúdos */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.chips a { display: block; padding: 0.5rem 1rem; font-size: var(--fs-sm); font-weight: 500; text-decoration: none; border: 1px solid var(--line-light); border-radius: 999px; transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease); }
.chips a:hover { border-color: var(--bronze); }
.chips a[aria-current] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.posts--list { margin-bottom: 2.5rem; }
@media (min-width: 800px) { .posts--list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .posts--list { grid-template-columns: repeat(3, 1fr); } }
.post-card h2 { font-size: var(--fs-lg); }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.navigation.pagination a, .navigation.pagination span { padding: 0.5rem 0.9rem; font-size: var(--fs-sm); text-decoration: none; border: 1px solid var(--line-light); border-radius: var(--radius); }
.navigation.pagination .current { background: var(--navy); border-color: var(--navy); color: var(--white); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.container--narrow { max-width: calc(760px + var(--gutter) * 2); }
.post-title { max-width: 22ch; font-size: var(--fs-3xl); }
.post-meta { margin: 0; font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.75); }
.post-meta a { text-decoration: underline; text-decoration-color: var(--bronze-light); }
.entry-content { font-size: 1.125rem; line-height: 1.75; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2 { margin-top: 2em; font-size: var(--fs-2xl); font-weight: 400; }
.entry-content h3 { margin-top: 1.75em; font-size: var(--fs-xl); }
.entry-content p { max-width: none; margin-bottom: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content a { color: var(--navy-600); text-decoration-color: var(--bronze); }
.entry-content blockquote { margin-inline: 0; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 2px solid var(--bronze); font-size: var(--fs-lg); color: var(--steel-700); }
.entry-content img { border-radius: var(--radius); }
.entry-content table { display: block; overflow-x: auto; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 0.6rem 0.8rem; border: 1px solid var(--line-light); text-align: left; }

/* ==========================================================================
   24. Versão 2.0 — texto "Autoridade próxima"
   ========================================================================== */
.nav-mobile-only { display: none; }
@media (max-width: 1080px) { .nav-mobile-only { display: flex; } }

/* Títulos longos: escalas próprias */
.hero h1 { font-size: clamp(2.25rem, 5.2vw, 3.9rem); max-width: 19ch; line-height: 1.08; }
.area-hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); max-width: 24ch; line-height: 1.1; }
.about h2, .about__grid h2, .areas__intro h2, .quem h2 { font-size: clamp(1.7rem, 3.1vw, 2.4rem); max-width: 24ch; line-height: 1.15; }
.areas__intro h2 { max-width: 30ch; }
.cta-final h2 { max-width: 28ch; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.cta-final .lead { max-width: 56ch; margin-bottom: 0; color: rgba(255, 255, 255, 0.82); }
.cta-final p.lead + p { margin-top: 2rem; }
.section--navy .about h2, .section--navy h2 { color: var(--white); }
.section--navy .lead { color: rgba(255, 255, 255, 0.82); }
.section--navy .about__text .lead { color: rgba(255, 255, 255, 0.9); }
.section--navy p { color: rgba(255, 255, 255, 0.82); }
.about__text .lead { color: var(--navy); }

/* Home: três situações */
.fazer { display: grid; gap: 2rem; }
@media (min-width: 900px) { .fazer { grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); } }
.fazer__item { display: flex; flex-direction: column; padding-top: 1.25rem; border-top: 1px solid var(--bronze); }
.fazer__item h3 { margin-bottom: 0.5em; font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.fazer__item p { color: var(--steel-700); }
.text-link { margin-top: auto; align-self: flex-start; font-weight: 600; color: var(--bronze-ink); text-decoration: none; border-bottom: 1px solid var(--bronze); padding-bottom: 0.15rem; }
.text-link:hover { border-bottom-color: var(--bronze-ink); }

/* Home: quem somos */
.quem { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .quem { grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem, 6vw, 5rem); } }
.quem__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.quem__photos .partner__photo { max-width: none; }
.quem h2 { margin-bottom: 0.5em; }

/* Blocos de texto em duas colunas (Direito Médico, Outras áreas) */
.blocks { display: grid; gap: 0; }
.block { display: grid; gap: 0.75rem; padding: clamp(1.75rem, 3.5vw, 2.5rem) 0; border-top: 1px solid var(--line-light); scroll-margin-top: calc(var(--header-h) + 16px); }
.block:last-child { border-bottom: 1px solid var(--line-light); }
@media (min-width: 900px) { .block { grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); } }
.block h2, .block h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 400; line-height: 1.2; letter-spacing: -0.015em; max-width: 24ch; }
.block p { color: var(--steel-700); }
.block p:last-child { margin-bottom: 0; }
.blocks--plain .block:first-child { border-top: 0; padding-top: 0; }

/* Listas com filetes */
.list-lines { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.list-lines li { padding: 0.8rem 0; border-top: 1px solid var(--line-light); }
.list-lines li:last-child { border-bottom: 1px solid var(--line-light); }
.notice { padding: 0.9rem 1.1rem; border-left: 3px solid var(--bronze-light); background: var(--white); font-size: var(--fs-sm); color: var(--steel-700); }

/* Perguntas frequentes: o título é um H3 dentro do resumo */
.faq summary h3 { margin: 0; font: inherit; letter-spacing: 0; }
.faq summary { font-size: var(--fs-lg); }

/* Contato */
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 0.8fr; } }
.contact-grid h2 { font-size: var(--fs-2xl); }
fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 0.4rem; font-size: var(--fs-sm); font-weight: 600; }
.choices { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.choice { display: flex !important; align-items: center; gap: 0.55rem; margin: 0 !important; font-weight: 500 !important; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--navy); }
.form-note { margin: 0 0 1.25rem; font-size: var(--fs-sm); color: var(--steel-700); max-width: none; }
[data-cond][hidden] { display: none; }
.contact-info .lead a { color: var(--navy); }

/* ==========================================================================
   25. Texto corrido justificado (com hifenização em português para evitar "rios" de espaço)
   ========================================================================== */
main p, main li, main blockquote, .site-footer p, .site-footer address, .entry-content {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  overflow-wrap: break-word;
}
/* Títulos, navegação, botões e rótulos curtos continuam alinhados à esquerda */
main h1, main h2, main h3, main h4, summary, .breadcrumb li, .chips li, .btn, label, legend,
.partner__oab, .partner__role, .post-meta, .post-card__meta, .contact-list li, .area__links, .text-link {
  text-align: left;
  hyphens: manual;
  -webkit-hyphens: manual;
}
