/* Medeiros Advocacia — home PT. Tokens, base, componentes e seções. */

@font-face { font-family: "Libre Caslon Text"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-weight: 400; font-style: italic; font-display: swap; src: url("../assets/fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/libre-caslon-text-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --brand-blue: #155A87;
  --brand-primary: #170B62;
  --heading-blue: #10083F;
  --brand-blue-light: #2476A5;
  --brand-blue-deep: #10456D;
  --brand-gradient: linear-gradient(135deg, var(--brand-blue-light) 0%, var(--brand-blue) 48%, var(--brand-blue-deep) 100%);
  --brand-brown: #8A531B;
  --paper: #FFFDFA; /* #FFE8CA com 10% de opacidade sobre branco. */
  --surface: #FFFFFF;
  --ink: #000000;
  --muted: #000000;
  --on-dark: #F4F5F7;
  --on-dark-muted: #D8DADF;
  --line: rgba(7, 48, 71, .12);
  --line-dark: rgba(245, 244, 240, .16);

  --font-display: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 20px;
  --container: 1240px;
  --header-h: 72px;
  --section-y: 64px;

  --fs-h1: clamp(2.5rem, 4.4vw, 4.375rem);
  --fs-h2: clamp(1.75rem, 3.4vw, 3.25rem);
  --fs-body: 1.0625rem;
}
@media (min-width: 640px) { :root { --gutter: 32px; --section-y: 88px; } }
@media (min-width: 1024px) { :root { --gutter: 64px; --section-y: 120px; --header-h: 80px; --fs-body: 1.125rem; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
main:focus { outline: none; }

:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; }
.section--blue :focus-visible, .site-footer :focus-visible { outline-color: var(--on-dark); }

.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: var(--gutter); top: 8px; z-index: 100;
  padding: 12px 18px; background: var(--brand-blue); color: var(--on-dark);
  font-size: .9375rem; font-weight: 500; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* Tipografia */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; color: var(--heading-blue); text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.12; letter-spacing: -.015em; }
h2 { font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -.01em; }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.25; letter-spacing: -.01em; }
h4 { font-size: clamp(1.125rem, 1.4vw, 1.375rem); line-height: 1.3; letter-spacing: -.01em; }
.section__lead { max-width: 65ch; color: var(--muted); }
.lead { max-width: 60ch; color: var(--ink); font-size: clamp(1.125rem, 1.5vw, 1.3125rem); }

/* Teste da cor secundária: marrom nos textos sobre superfícies claras. */
#titulo-publicos,
#titulo-escritorio,
#titulo-como-funciona,
.panel__text h3,
.principle h3 { color: var(--heading-blue); }

/* Rótulos pequenos, em caixa alta, com bullet */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: .875rem; font-weight: 600;
  letter-spacing: .02em; line-height: 1.4;
  color: var(--ink);
}
.label--light { color: var(--on-dark); }
.label__dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.group__label .label__dot { margin-right: 12px; vertical-align: middle; width: 9px; height: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  font-size: .875rem; font-weight: 600; letter-spacing: .02em;
  color: var(--ink); line-height: 1.4;
}
.chip .label__dot { color: var(--ink); }

/* Sem bordas: imagens e cartões só com cantos arredondados */
.frame { border-radius: 20px; }
.frame__in { border-radius: 20px; overflow: hidden; background: var(--paper); height: 100%; }

/* Botão duplo: pílula + círculo; texto rola e o + gira ao passar o mouse ou focar */
.btn-duo {
  --duo-image: var(--brand-gradient);
  --duo-bg: var(--brand-blue); --duo-fg: var(--on-dark);
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0; border: 0; background: none; font: inherit;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600;
  text-decoration: none; color: var(--duo-fg); cursor: pointer; border-radius: 999px;
}
.btn-duo__pill, .btn-duo__circle {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; background: var(--duo-bg); background-image: var(--duo-image); color: var(--duo-fg);
  border: 1.5px solid var(--duo-bg);
}
.btn-duo__pill { padding: 0 26px; border-radius: 999px; overflow: hidden; }
.btn-duo__circle { width: 52px; border-radius: 50%; flex: none; }
.btn-duo__label { display: block; height: 1.4em; overflow: hidden; line-height: 1.4; }
.btn-duo__rail { display: block; transition: transform .3s ease; }
.btn-duo__t { display: block; height: 1.4em; line-height: 1.4; white-space: nowrap; }
.btn-duo__plus { position: relative; width: 11px; height: 11px; transition: transform .3s ease; }
.btn-duo__plus::before, .btn-duo__plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: currentColor;
  transform: translate(-50%, -50%);
}
.btn-duo__plus::before { width: 11px; height: 1.5px; }
.btn-duo__plus::after { width: 1.5px; height: 11px; }
.btn-duo:hover .btn-duo__rail, .btn-duo:focus-visible .btn-duo__rail { transform: translateY(-1.4em); }
.btn-duo:hover .btn-duo__plus, .btn-duo:focus-visible .btn-duo__plus { transform: rotate(90deg); }
.btn-duo:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 4px; }
.btn-duo--light { --duo-bg: var(--paper); --duo-fg: var(--brand-blue); --duo-image: none; }
.btn-duo--ghost { --duo-bg: transparent; --duo-fg: var(--brand-blue); --duo-image: none; }
.btn-duo--ghost .btn-duo__pill, .btn-duo--ghost .btn-duo__circle { border-color: var(--brand-blue); }
.btn-duo--sm .btn-duo__pill, .btn-duo--sm .btn-duo__circle { min-height: 44px; }
.btn-duo--sm .btn-duo__circle { width: 44px; }
.btn-duo--sm .btn-duo__pill { padding: 0 22px; font-size: .9375rem; }
.btn-duo[aria-disabled="true"] { cursor: progress; opacity: .7; }

/* Header fixo: logo | cápsula central | CTA */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(7, 48, 71, .10); }
.site-header__inner { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }

.brand {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 .55em;
  min-height: 44px; align-content: center; padding-block: 8px;
  font-family: "Montserrat", system-ui, sans-serif; font-weight: 600; font-size: 1rem;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none; line-height: 1.2;
}
.brand__name { color: var(--brand-primary); }
.brand__sub { color: var(--ink); }
@media (min-width: 1180px) { .brand { font-size: 1.0625rem; } }

.menu-toggle {
  display: none; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px 0 12px;
  background: none; border: 0; color: var(--ink);
  font: 500 .9375rem/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.menu-toggle__icon { position: relative; display: inline-block; width: 24px; height: 24px; }
.menu-toggle__icon span { position: absolute; left: 2px; right: 2px; height: 1.5px; background: currentColor; transition: transform .22s ease, top .22s ease; }
.menu-toggle__icon span:first-child { top: 8px; }
.menu-toggle__icon span:last-child { top: 15px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child { top: 12px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child { top: 12px; transform: rotate(-45deg); }

.header-cta { display: none; }
.language-toggle { flex-shrink: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: 600 .8125rem var(--font-sans); cursor: pointer; }
.language-toggle[hidden] { display: none; }
.language-toggle:hover { background: rgba(7, 48, 71, .07); }
.language-toggle:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 4px; }
.language-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; }
.language-toggle__option { display: inline-flex; align-items: center; gap: 5px; padding: 6px; border-radius: 999px; opacity: .6; transition: background-color .18s ease, opacity .18s ease; }
.language-toggle__option img { display: block; width: 24px; height: 16px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(7, 48, 71, .12); }
.language-toggle__option.is-active { background: rgba(7, 48, 71, .09); opacity: 1; }
.language-toggle__divider { opacity: .35; }
@media (prefers-reduced-motion: reduce) { .language-toggle__option { transition: none; } }
@media (max-width: 1179px) {
  .language-toggle { margin-left: auto; }
  .menu-toggle { order: 2; margin-left: 12px; }
}

@media (min-width: 1180px) {
  .site-header__inner { display: grid; grid-template-columns: 1fr auto auto auto; gap: 20px; }
  .language-toggle { grid-column: 3; grid-row: 1; }
  .nav { grid-column: 2; grid-row: 1; }
  .brand { justify-self: start; }
  .header-cta { display: inline-flex; justify-self: end; }
  .nav__list { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: #FFFFFF; box-shadow: 0 2px 10px rgba(7, 48, 71, .08); }
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .nav__list { background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  }
  .nav__list a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
    font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--ink);
    transition: background-color .18s ease, color .18s ease;
  }
  .nav__list a:hover { background: rgba(7, 48, 71, .07); color: var(--ink); }
  .menu-toggle { display: none !important; }
}
@media (max-width: 1179px) {
  .js .menu-toggle { display: inline-flex; }
  .js .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .js .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .22s ease, transform .22s ease, visibility 0s; }
  .nav__list { display: flex; flex-direction: column; }
  .nav__list li + li { border-top: 1px solid var(--line); }
  .nav__list a {
    display: flex; align-items: center; width: 100%; min-height: 52px;
    font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; color: var(--ink); text-decoration: none;
  }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 6px; }
  html:not(.js) .nav { width: 100%; }
  html:not(.js) .nav__list { flex-direction: row; flex-wrap: wrap; gap: 0 6px; }
  html:not(.js) .nav__list li + li { border: 0; }
  html:not(.js) .nav__list a { width: auto; min-height: 44px; padding: 0 10px 0 0; font: 500 .9375rem var(--font-sans); color: var(--ink); }
}

/* Seções */
.section { position: relative; padding-block: var(--section-y); overflow-x: clip; }
.section--white { background: var(--surface); }
.section--paper { background: var(--paper); }
.section--blue { background: var(--brand-gradient); color: var(--on-dark); }
.section--blue h2, .section--blue h3, .section--blue h4 { color: var(--on-dark); }
.section--blue .section__lead { color: var(--on-dark-muted); }
.svc h4, .svc .svc__body h4 { color: var(--heading-blue); }

.section__head { display: grid; gap: 24px; margin-bottom: 48px; }
.section__head h2 { max-width: 24ch; }
.section__head--center { justify-items: center; text-align: center; }
.section__head--center h2, .section__head--center .section__lead { margin-inline: auto; }
@media (min-width: 1024px) { .section__head { margin-bottom: 72px; } .section__head h2 { max-width: 26ch; } }

/* Revelação de imagem (wrapper e imagem em sentidos opostos) */
.img-reveal { position: relative; overflow: hidden; }
.img-reveal__in { width: 100%; height: 100%; }
.img-reveal img { width: 100%; height: 100%; object-fit: cover; }

/* 01 Hero — fotografia em tela inteira, com cabeçalho integrado. */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 100svh; overflow: hidden; padding-block: calc(var(--header-h) + 56px) 64px; background: #211a16; }
.hero__image { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 10, 10, .88) 0%, rgba(12, 10, 10, .65) 42%, rgba(12, 10, 10, .12) 100%), linear-gradient(180deg, rgba(12, 10, 10, .5), transparent 30%, rgba(12, 10, 10, .25)); }
.site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; transition: background-color .25s ease, box-shadow .25s ease; }
.site-header:not(.is-scrolled) .brand__name,
.site-header:not(.is-scrolled) .menu-toggle,
.site-header:not(.is-scrolled) .language-toggle { color: var(--on-dark); }
.site-header:not(.is-scrolled) .brand__sub { color: #BCD9E5; }
.site-header:not(.is-scrolled) .header-cta { --duo-bg: var(--paper); --duo-fg: var(--brand-blue); --duo-image: none; }
.site-header:not(.is-scrolled) :focus-visible, .hero :focus-visible { outline-color: #BCD9E5; }
.site-header:not(.is-scrolled) .language-toggle { border-color: rgba(245, 244, 240, .35); background: rgba(12, 10, 10, .25); }
.site-header:not(.is-scrolled) .language-toggle__option.is-active { background: rgba(245, 244, 240, .18); }
.site-header.is-scrolled { background: var(--paper); border-bottom-color: var(--line); }
@media (min-width: 1180px) {
  .site-header:not(.is-scrolled) .nav__list { background: transparent; box-shadow: none; backdrop-filter: none; }
  .site-header:not(.is-scrolled) .nav__list a { color: var(--on-dark); }
  .site-header:not(.is-scrolled) .nav__list a:hover { background: rgba(245, 244, 240, .12); }
}
.glass { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.glass__base, .glass__flutes, .glass__veil { position: absolute; inset: 0; }
.glass__base {
  background:
    radial-gradient(60% 70% at 12% 18%, rgba(20, 81, 106, .28), transparent 70%),
    radial-gradient(55% 70% at 92% 24%, rgba(85, 123, 140, .32), transparent 70%),
    radial-gradient(50% 55% at 70% 100%, rgba(138, 83, 27, .10), transparent 70%),
    radial-gradient(70% 60% at 30% 100%, rgba(7, 48, 71, .14), transparent 70%),
    var(--paper);
}
.glass__flutes {
  background: repeating-linear-gradient(90deg,
    rgba(7, 48, 71, .09) 0, rgba(7, 48, 71, 0) 10px,
    rgba(255, 255, 255, .32) 30px, rgba(255, 255, 255, .05) 46px, rgba(7, 48, 71, .06) 60px);
}
.glass__side {
  position: absolute; top: -4%; bottom: -4%; width: 40%;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(20, 81, 106, .26), transparent 70%),
    repeating-linear-gradient(90deg, rgba(7, 48, 71, .10) 0, rgba(7, 48, 71, 0) 12px, rgba(255, 255, 255, .26) 34px, rgba(7, 48, 71, .07) 62px);
}
.glass__side--l { left: -6%; }
.glass__side--r { right: -6%; }
.glass__veil { background: radial-gradient(ellipse 62% 60% at 50% 50%, rgba(245, 244, 240, .94) 0%, rgba(245, 244, 240, .86) 55%, rgba(245, 244, 240, 0) 100%); }
@media (min-width: 1024px) {
  .glass__flutes { background: repeating-linear-gradient(90deg, rgba(7, 48, 71, .09) 0, rgba(7, 48, 71, 0) 14px, rgba(255, 255, 255, .32) 42px, rgba(255, 255, 255, .05) 66px, rgba(7, 48, 71, .06) 84px); }
}
.hero__inner { position: relative; z-index: 1; }
.hero__content { display: grid; justify-items: start; gap: 28px; max-width: 780px; text-align: left; }
.hero h1 { max-width: 18ch; font-size: clamp(2.5rem, 4.8vw, 4.75rem); color: var(--on-dark); }
.hero .lead { max-width: 49ch; color: var(--on-dark); }
.hero .chip { background: transparent; padding: 0; color: #BCD9E5; }
.hero .chip .label__dot { color: currentColor; }
.hero .btn-duo { --duo-bg: var(--brand-blue); }
.hero .btn-duo--ghost { --duo-bg: var(--paper); --duo-fg: var(--brand-blue); }
.hero .btn-duo--ghost .btn-duo__pill, .hero .btn-duo--ghost .btn-duo__circle { border-color: var(--paper); }
.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px 20px; margin-top: 8px; }
@media (min-width: 640px) { .hero__actions { flex-direction: row; flex-wrap: wrap; } }
@media (min-width: 1024px) { .hero { padding-block: calc(var(--header-h) + 80px) 80px; } .hero__content { gap: 32px; } }
@media (max-width: 639px) {
  .hero__image { object-position: 62% center; }
  .hero::before { background: linear-gradient(90deg, rgba(12, 10, 10, .86), rgba(12, 10, 10, .62)); }
  .hero__content { gap: 24px; }
}

/* Hero claro com a fachada em preto e branco. */
.hero-claro { --hero-img-h: 56.28vw; }
.hero-claro .hero { align-items: flex-start; min-height: 0; background: var(--paper); padding-block: calc(var(--header-h) + 48px) calc(var(--hero-img-h) * .70); }
.hero-claro .hero::before { display: none; }
.hero-claro .hero__image {
  inset: auto 0 0 0; z-index: -1; width: 100%; height: auto; object-fit: initial;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%); mask-image: linear-gradient(to bottom, transparent 0, #000 16%);
}
.hero-claro .hero h1 { color: var(--heading-blue); font-size: clamp(2.25rem, 4.1vw, 4.25rem); }
.hero-claro .hero .lead { color: var(--ink); }
.hero-claro .hero .chip { color: var(--ink); }
.hero-claro .hero .btn-duo { --duo-bg: var(--brand-blue); --duo-fg: var(--on-dark); }
.hero-claro .hero .btn-duo--ghost { --duo-bg: rgba(255, 255, 255, .88); --duo-fg: #000; }
.hero-claro .hero .btn-duo--ghost .btn-duo__pill, .hero-claro .hero .btn-duo--ghost .btn-duo__circle { border-color: #000; }
.hero-claro .hero :focus-visible, .hero-claro .site-header:not(.is-scrolled) :focus-visible { outline-color: var(--brand-blue); }
/* cabeçalho transparente sobre o céu claro: textos escuros */
.hero-claro .site-header:not(.is-scrolled) .brand__name,
.hero-claro .site-header:not(.is-scrolled) .menu-toggle,
.hero-claro .site-header:not(.is-scrolled) .language-toggle { color: var(--ink); }
.hero-claro .site-header:not(.is-scrolled) .brand__sub { color: var(--ink); }
.hero-claro .site-header:not(.is-scrolled) .header-cta { --duo-bg: var(--brand-blue); --duo-fg: var(--on-dark); --duo-image: var(--brand-gradient); }
.hero-claro .site-header:not(.is-scrolled) .language-toggle { border-color: var(--line); background: rgba(255, 255, 255, .6); }
.hero-claro .site-header:not(.is-scrolled) .language-toggle__option.is-active { background: rgba(7, 48, 71, .09); }
@media (min-width: 1180px) {
  .hero-claro .site-header:not(.is-scrolled) .nav__list { background: rgba(255, 255, 255, .78); box-shadow: 0 2px 10px rgba(7, 48, 71, .08); }
  .hero-claro .site-header:not(.is-scrolled) .nav__list a { color: var(--ink); }
  .hero-claro .site-header:not(.is-scrolled) .nav__list a:hover { background: rgba(7, 48, 71, .07); }
}

/* 02 Públicos — duas imagens (5/7) com o texto logo abaixo */
.panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.panel { display: grid; gap: 22px; align-content: start; min-width: 0; }
.panel__media { height: 340px; border-radius: 20px; background: #E7E6E2; }
.panel__text { display: grid; gap: 10px; max-width: 52ch; }
.panel__text h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.panel__text p { color: var(--muted); }
@media (min-width: 900px) {
  .panels { grid-template-columns: 5fr 7fr; gap: 32px; }
  .panel__media { height: 440px; }
}

/* 03 Serviços: cada superfície ocupa a largura inteira e cobre a anterior. */
.services { padding-top: var(--section-y); }
.services__intro .section__head { margin-bottom: 48px; }
.services__stack { position: relative; isolation: isolate; }
.service-card { position: sticky; top: var(--service-top, var(--header-h)); z-index: var(--service-index); display: flex; align-items: center; width: 100%; min-height: calc(100svh - var(--header-h)); padding-block: 32px; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -12px 32px rgba(36, 35, 55, .06); }
.service-card:nth-child(even) { background: var(--surface); }
.service-card__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: 24px; border: 1px solid var(--line); }
.service-card__image { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper); }
.service-card__image img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { display: grid; gap: 18px; min-width: 0; }
.service-card__body h3 { color: var(--heading-blue); font-size: clamp(1.5rem, 2.6vw, 2.5rem); line-height: 1.15; }
.service-card__heading { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 20px; }
.service-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(16, 8, 63, .055); color: var(--heading-blue); }
.service-card__icon svg { display: block; width: 30px; height: 30px; stroke-width: 2.2; }
@media (max-width: 767px) {
  .service-card__heading { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
  .service-card__icon { width: 40px; height: 40px; }
  .service-card__icon svg { width: 26px; height: 26px; }
}
.service-card__summary { font-size: clamp(1rem, 1.3vw, 1.1875rem); line-height: 1.6; color: var(--ink); }
.service-card__detail { padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 1rem; line-height: 1.65; }
.service-card__number { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink); font-size: .8125rem; }
@media (max-width: 767px) {
  .service-card { padding-block: 20px; }
  .service-card__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 16px; }
  .service-card__image { aspect-ratio: 16 / 9; }
  .service-card__body { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .service-card { position: relative; top: auto; min-height: 0; } }

/* Componentes anteriores do carrossel (preservados para outras páginas). */
.group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 8px; }
.group + .group { margin-top: 48px; }
.group__head { display: flex; align-items: center; gap: 20px; }
.group__label {
  display: flex; align-items: center; flex: 1; gap: 24px;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.1; letter-spacing: -.005em; color: var(--heading-blue);
}
.group__label::after { content: ""; flex: 1; height: 1px; background: rgba(7, 48, 71, .22); }

.carousel__controls { display: flex; gap: 8px; }
.carousel__controls[hidden] { display: none; }
.carousel__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  background: transparent; color: var(--ink); border: 1.5px solid var(--brand-blue);
  cursor: pointer; transition: background-color .18s ease, color .18s ease;
}
.carousel__btn:hover:not(:disabled) { background: var(--brand-blue); color: var(--on-dark); }
.carousel__btn:disabled { opacity: .35; cursor: default; }

.carousel__track {
  position: relative; display: flex; align-items: stretch; gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--brand-blue) transparent;
  padding-bottom: 20px;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
@media (prefers-reduced-motion: no-preference) { .carousel__track { scroll-behavior: smooth; } }

.svc {
  flex: 0 0 min(72%, 260px); scroll-snap-align: start; min-width: 0;
  display: flex; flex-direction: column; min-height: var(--svc-min, 0); background: var(--surface); border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 28px rgba(7, 48, 71, .10);
}
@media (min-width: 640px) { .svc { flex-basis: 270px; } }
@media (min-width: 1024px) {
  .carousel__track { gap: 22px; margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .svc { flex-basis: 290px; }
}
.svc__media { aspect-ratio: 4 / 3; background: #E7E6E2; }
.svc__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 18px 14px; min-width: 0; }
.svc__body h4 { font-size: 1.0625rem; line-height: 1.3; min-height: 2.6em; overflow-wrap: break-word; }
.svc__summary { font-size: .9375rem; line-height: 1.6; min-height: 4.8em; color: var(--muted); }
.svc__cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.svc__arrow { display: inline-flex; color: var(--ink); }

.service__details summary {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; list-style: none; cursor: pointer;
  font-size: .875rem; font-weight: 600; color: var(--ink);
}
.service__details summary::-webkit-details-marker { display: none; }
.toggle-label { text-decoration: underline; text-decoration-color: var(--brand-blue); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.when-open { display: none; }
.service__details[open] .when-open { display: inline; }
.service__details[open] .when-closed { display: none; }
.toggle-icon { position: relative; flex: none; width: 30px; height: 30px; border: 1px solid var(--brand-blue); border-radius: 50%; transition: background-color .18s ease; }
.toggle-icon::before, .toggle-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--brand-blue); transform: translate(-50%, -50%); transition: background-color .18s ease; }
.toggle-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.service__details[open] .toggle-icon::after { transform: translate(-50%, -50%) rotate(0); }
.service__details summary:hover .toggle-icon { background: var(--brand-blue); }
.service__details summary:hover .toggle-icon::before, .service__details summary:hover .toggle-icon::after { background: var(--on-dark); }
.service__details > p { font-size: .9375rem; line-height: 1.6; padding: 4px 0 8px 16px; margin-top: 4px; border-left: 2px solid var(--brand-blue); color: var(--ink); }

/* 04 Abordagem — abertura no topo, imagem na borda e símbolos abstratos */
.approach__head { display: grid; justify-items: center; gap: 24px; text-align: center; margin-bottom: 56px; }
.approach__head h2 { max-width: 28ch; }
.approach__head .section__lead { max-width: 68ch; }
.approach { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: stretch; padding-right: var(--gutter); }
.approach__image { min-width: 0; height: 320px; border-radius: 0 8px 8px 0; }
.approach__image img { object-position: center; }
.principles { display: grid; align-content: center; gap: 36px; min-width: 0; margin-left: var(--gutter); padding: 32px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.principle { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; align-items: start; }
.principle__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(16, 8, 63, .055); color: var(--heading-blue); }
.principle__icon svg { width: 30px; height: 30px; stroke-width: 2.2; }
.principle__body { display: grid; gap: 12px; padding-top: 4px; }
.principle h3 { font-size: clamp(1.25rem, 1.65vw, 1.625rem); }
.principle p { color: var(--muted); max-width: 43ch; font-size: 1rem; line-height: 1.75; }
@media (min-width: 900px) {
  .approach__head { margin-bottom: 64px; }
  .approach { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 3vw, 56px); }
  .approach__image { position: relative; height: auto; min-height: 520px; }
  .approach__image .img-reveal__in { position: absolute; inset: 0; }
  .principles { margin-left: 0; gap: 40px; padding: clamp(32px, 3vw, 56px); }
  .principle { grid-template-columns: 56px minmax(0, 1fr); gap: 24px; }
  .principle__icon { width: 56px; height: 56px; }
  .principle__icon svg { width: 34px; height: 34px; }
}
@media (max-width: 479px) {
  .approach__head { text-align: left; justify-items: start; margin-bottom: 36px; }
  .approach__image { height: 260px; }
  .principles { padding: 28px 20px; gap: 32px; }
  .principle { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
  .principle__icon { width: 40px; height: 40px; }
  .principle__icon svg { width: 26px; height: 26px; }
}

/* 05 Escritório — duas dobras, texto amplo e imagens alternadas */
.office { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.office__intro, .office__story { display: grid; gap: 36px; align-content: start; min-width: 0; }
.office h2 { max-width: 17ch; font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1.14; letter-spacing: -.01em; }
.office__media { overflow: hidden; border-radius: 4px; background: #E7E6E2; }
.office__media--landscape { aspect-ratio: 3 / 2; }
.office__media--portrait { aspect-ratio: 4 / 5; }
.office__media .img-reveal__in { height: 100%; }
.office__media img { width: 100%; height: 100%; object-fit: cover; }
.office__lead { font-family: var(--font-display); font-size: clamp(1.375rem, 1.9vw, 1.75rem); font-weight: 400; line-height: 1.5; letter-spacing: 0; color: var(--ink); max-width: 34ch; }
.office__copy { display: grid; gap: 28px; max-width: 52ch; }
.office__copy p { font-size: clamp(1.125rem, 1.4vw, 1.25rem); line-height: 1.8; color: var(--ink); }
.office-continuation { border-top: 1px solid rgba(23, 11, 98, .1); }
@media (max-width: 899px) {
  .office__media--landscape { aspect-ratio: 16 / 10; }
  .office__media--portrait { aspect-ratio: 4 / 3; }
}
@media (min-width: 900px) {
  .office { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(56px, 7vw, 112px); }
  .office__story { gap: 40px; }
  .office--reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

/* Imagens do escritório alcançam as bordas; Curitiba recebe o resumo dos serviços. */
.office--edge-left, .office--edge-right { max-width: none; padding-inline: 0; }
#escritorio { padding-block: clamp(48px, 5vw, 80px); }
.office--edge-left { align-items: stretch; gap: clamp(32px, 4vw, 64px); }
.office--edge-left .office__story { gap: 24px; align-self: center; }
.office--edge-left h2 { max-width: 20ch; }
.office--edge-left .office__lead { font-size: clamp(1.25rem, 1.6vw, 1.5rem); }
.office--edge-left .office__copy { gap: 20px; }
.office--edge-left .office__copy p { line-height: 1.7; }
.office--edge-left .office__media { border-radius: 0 4px 4px 0; }
.office--edge-left > .office__story { padding-inline: var(--gutter); }
.office--edge-right > .office__story { padding-inline: clamp(20px, 5vw, 96px) var(--gutter); }
.office__city { position: relative; isolation: isolate; display: grid; align-items: end; min-width: 0; min-height: 400px; overflow: hidden; border-radius: 4px 0 0 4px; background: #E7E6E2; }
.office__city-image { position: absolute; inset: 0; z-index: -2; }
.office__city-image img { object-position: center; }
.office__highlights { padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink); }
.office__highlights h3 { max-width: 23ch; margin-bottom: 28px; font-size: clamp(1.5rem, 2vw, 2rem); color: var(--heading-blue); line-height: 1.3; }
.office__topics { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 28px; }
.office__topics li { position: relative; padding-left: 20px; font-size: 1rem; font-weight: 500; line-height: 1.6; }
.office__topics li::before { content: ""; position: absolute; left: 2px; top: .4em; width: 5px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
@media (min-width: 640px) { .office__topics { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 900px) {
  .office--edge-left, .office--edge-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 5vw, 96px); }
  .office--edge-left > .office__story { padding: 16px clamp(32px, 5vw, 96px) 16px 0; }
  .office--edge-left > .office__media { position: relative; min-height: 520px; aspect-ratio: auto; margin-right: 0; }
  .office--edge-left > .office__media .img-reveal__in { position: absolute; inset: 0; }
  .office--edge-right > .office__story { padding-right: 0; }
  .office__city { min-height: 480px; }
}
@media (max-width: 899px) {
  .office--edge-right .office__city { margin-left: var(--gutter); }
  .office--edge-left .office__media { margin-right: var(--gutter); }
  .office--edge-left > .office__story { order: -1; }
}

/* Título central e fotografias de apoio completam as duas colunas. */
.office__section-head { margin-bottom: 40px; text-align: center; }
.office__section-head h2 { max-width: 29ch; margin-inline: auto; }
.office__support-media { overflow: hidden; border-radius: 4px; height: clamp(180px, 17vw, 260px); min-width: 0; background: #E7E6E2; }
.office__support-media img { object-position: center 55%; }
.office--edge-left .office__story { align-self: stretch; }
@media (min-width: 900px) {
  .office--edge-left > .office__story { padding-top: 0; padding-bottom: 0; }
  .office--edge-right { align-items: stretch; }
  .office--edge-right > .office__story { align-self: stretch; grid-template-rows: auto auto auto; gap: 28px; }
  .office--edge-right .office__support-media { height: 100%; min-height: 220px; }
}
@media (max-width: 899px) {
  .office__section-head { margin-bottom: 32px; }
  .office__support-media { height: auto; aspect-ratio: 16 / 9; }
}

/* 06 Fundadora — card com moldura */
.founder__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 22px; background: var(--paper); align-items: center; }
.founder__logo { background: #EFF0EF; overflow: hidden; border-radius: 16px; }
/* Para o retrato da Géssica: trocar o <img> da logo por <img class="founder__photo"> (ver DECISOES.md) */
.founder__figure { margin: 0; width: 100%; max-width: 420px; }
.founder__photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 20px; }
.founder__body { display: grid; gap: 18px; }
.founder__body p:last-child { max-width: 65ch; color: var(--muted); }
@media (min-width: 900px) { .founder__in { grid-template-columns: 4fr 8fr; gap: 56px; padding: 48px; } }

/* Fundadora em fundo azul com curvas de nível sutis (assets/img/topografia.svg).
   A opacidade das linhas fica no ::before: suba ou desça só esse valor para ajustar. */
.section--fundadora { position: relative; isolation: isolate; overflow: hidden; background: var(--brand-primary); color: var(--on-dark); }
.section--fundadora::before, .site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../assets/img/topografia.svg") center / cover no-repeat; opacity: .06; pointer-events: none; }
.section--fundadora .founder__in { background: transparent; padding: 0; }
.section--fundadora h2, .section--fundadora .label { color: var(--on-dark); }
.section--fundadora .section__lead { color: var(--on-dark); }
.section--fundadora .founder__body p:last-child { color: var(--on-dark-muted); }
.section--fundadora .founder__photo { box-shadow: 0 24px 48px rgba(6, 26, 45, .35); }

/* 07 Como funciona — três cards */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.step__in { display: grid; gap: 12px; align-content: start; padding: 28px 24px 32px; background: var(--surface); border-radius: 6px; }
.step__num { font-family: var(--font-display); font-size: 2rem; font-weight: 400; line-height: 1; color: var(--ink); }
.step p { color: var(--muted); max-width: 40ch; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* 08 Contato — azul liso: informações visíveis à esquerda, formulário branco à direita */
.contact { padding-bottom: 56px; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.contact__info { display: grid; gap: 22px; align-content: start; }
.contact__info h2 { max-width: 16ch; font-size: clamp(1.875rem, 3.6vw, 3.25rem); }
.contact__email { margin-top: 12px; font-family: var(--font-display); font-size: clamp(1.1875rem, 5vw, 1.75rem); font-weight: 400; line-height: 1.25; overflow-wrap: anywhere; color: var(--on-dark); }
.contact__place { margin-top: -10px; font-size: 1.125rem; color: var(--on-dark-muted); }
@media (min-width: 1024px) {
  .contact { padding-bottom: 72px; }
  .contact__grid { grid-template-columns: 5fr 7fr; gap: 72px; }
  .contact__info { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* Formulário: cartão branco, só os campos arredondados */
.contact-form, .form__success { background: var(--surface); color: var(--ink); padding: 28px 20px 32px; }
@media (min-width: 640px) { .contact-form, .form__success { padding: 40px 40px 44px; } }
.contact-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 24px; }
@media (min-width: 640px) { .contact-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.form__note { grid-column: 1 / -1; font-size: .9375rem; color: var(--muted); }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.req { color: var(--ink); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 20px; font: inherit; font-size: 1rem; line-height: 1.4;
  color: var(--ink); background: #FFFFFF; border: 1px solid #77747F; border-radius: 999px;
  appearance: none; -webkit-appearance: none; transition: border-color .18s ease;
}
.field textarea { resize: vertical; min-height: 150px; border-radius: 24px; padding: 16px 20px; }
.field select {
  padding-right: 52px; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--brand-blue) 50%), linear-gradient(135deg, var(--brand-blue) 50%, transparent 50%);
  background-position: calc(100% - 28px) 50%, calc(100% - 22px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 2px; border-color: var(--brand-blue); }
.field__help { font-size: .875rem; color: var(--muted); padding-left: 20px; }
.field__help--count { text-align: right; padding-right: 8px; padding-left: 0; }
.field__error { font-size: .9375rem; font-weight: 500; color: #A8201A; padding-left: 20px; }
.field__error::before { content: "! "; font-weight: 700; }
.field--invalid input, .field--invalid select { border: 2px solid #A8201A; padding: 12px 19px; }
.field--invalid select { padding-right: 51px; }
.field--invalid textarea { border: 2px solid #A8201A; padding: 15px 19px; }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { grid-column: 1 / -1; margin-top: 4px; }
.form__status { grid-column: 1 / -1; min-height: 1.4em; font-size: .9375rem; font-weight: 500; color: var(--ink); }
.form__alert { grid-column: 1 / -1; padding: 14px 20px; font-weight: 500; color: #8A1812; background: #FBE9E7; border-left: 4px solid #A8201A; }
.form__alert[hidden] { display: none; }
.form__success { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.625rem); font-weight: 400; line-height: 1.4; color: var(--ink); border-left: 4px solid var(--brand-blue); }
.form__success[hidden] { display: none; }
.form__success:focus { outline: none; }
.form__success:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; }

/* Contato independente com as cores e componentes da Medeiros. */
/* Mais respiro embaixo: o formulário encostava no rodapé. */
.contact { background: var(--paper); padding-block: 32px clamp(72px, 8vw, 128px); }
.contact__grid { max-width: none; padding-inline: 0; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: center; }
.contact__visual { position: relative; min-width: 0; height: 360px; }
.contact__visual .contact__image { width: 100%; height: 100%; min-height: 0; }
.contact__details { position: absolute; z-index: 1; right: 24px; bottom: 24px; max-width: calc(100% - 48px); display: grid; gap: 24px; padding: 24px; background: rgba(18, 13, 61, .94); color: var(--on-dark); font-style: normal; border-radius: 4px; }
.contact__detail { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; align-items: center; font-size: 1rem; line-height: 1.5; }
.contact__detail-icon { width: 20px; height: 20px; stroke-width: 1.7; }
.contact__detail-label { margin-bottom: 4px; font-size: .8125rem; color: var(--on-dark-muted); }
.contact__details a { text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact__details a:hover { text-decoration: none; }
.contact__details a:focus-visible { outline-color: var(--on-dark); }
.contact__image { min-height: 280px; background: var(--paper); }
.contact__image img { object-position: center; }
.contact__panel { min-width: 0; padding: 32px var(--gutter); background: var(--surface); color: var(--ink); }
.contact__info { position: static; gap: 10px; margin-bottom: 16px; }
.contact__info .label { color: var(--ink); }
.contact__info h2 { max-width: 25ch; font-size: clamp(1.625rem, 2.3vw, 2rem); color: var(--heading-blue); }
.contact__info .section__lead { color: var(--muted); font-size: 1rem; }
.contact .contact-form, .contact .form__success { padding: 0; background: transparent; color: var(--ink); }
.contact .contact-form[hidden] { display: none; }
.contact .contact-form { gap: 12px 20px; }
.contact .field { gap: 5px; }
.contact .form__note { font-size: .8125rem; }
.contact .field__help { font-size: .8125rem; line-height: 1.4; }
.contact .field input, .contact .field select { min-height: 44px; padding-block: 9px; }
.contact .form__note, .contact .field__help { color: var(--muted); }
.contact .field label { color: var(--ink); font-weight: 500; }
.contact .req { color: var(--ink); }
.contact .field input, .contact .field select, .contact .field textarea { background-color: #E9ECF0; color: var(--ink); border: 0; }
.contact .field--invalid input, .contact .field--invalid select, .contact .field--invalid textarea { box-shadow: inset 0 0 0 2px #A8201A; }
.contact .field textarea { min-height: 80px; padding-block: 10px; }
.contact .form__status:empty { display: none; }
.contact .field__help, .contact .field__error { padding-left: 0; }
.contact .form__status { color: var(--ink); }
.contact :focus-visible { outline-color: var(--brand-blue); }
.contact .form__success { padding: 24px; color: var(--ink); border-left-color: var(--brand-blue); }
.contact .form__actions .btn-duo { --duo-bg: var(--brand-blue); --duo-fg: var(--on-dark); }
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact__visual { height: clamp(440px, 42vw, 580px); }
  .contact__details { right: 32px; bottom: 32px; padding: 28px; }
  .contact__panel { width: 100%; max-width: 760px; padding: 24px clamp(32px, 4vw, 72px); }
  .contact__image { position: relative; }
  .contact__image .img-reveal__in { position: absolute; inset: 0; }
}
@media (max-width: 639px) { .contact__visual { height: 320px; } .contact__details { right: 20px; bottom: 20px; gap: 18px; padding: 20px; } }
@media (min-width: 900px) and (max-height: 800px) {
  .contact { padding-block: 20px clamp(64px, 6vw, 96px); }
  .contact__panel { padding-block: 20px; }
  .contact .contact-form { gap: 10px 18px; }
  .contact .form__actions .btn-duo__pill, .contact .form__actions .btn-duo__circle { min-height: 44px; }
  .contact .form__actions .btn-duo__circle { width: 44px; }
}

/* Rodapé — azul: marca, navegação e contato. */
.site-footer {
  position: relative; isolation: isolate; overflow: hidden; /* para as curvas de nível no ::before (ver Fundadora) */
  background: var(--brand-primary);
  color: var(--on-dark-muted); font-size: 1rem;
}
.site-footer__inner { display: grid; gap: 32px; padding-block: 48px 36px; border-top: 1px solid var(--line-dark); }
.site-footer__name { font-family: "Montserrat", system-ui, sans-serif; font-size: 1.25rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 10px; }
.site-footer__title { margin-bottom: 8px; font-size: .9375rem; font-weight: 600; letter-spacing: .02em; color: #BCD9E5; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); text-underline-offset: 5px; }
.site-footer__email { font-family: var(--font-display); font-size: 1.125rem; font-weight: 400; color: var(--on-dark); overflow-wrap: anywhere; }
.site-footer__contact p:last-child { margin-top: 4px; }
.site-footer__legal { display: grid; gap: 4px; padding-block: 0 32px; font-size: .9375rem; }
.site-footer__credit a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); font-weight: 600; text-underline-offset: 5px; }
@media (min-width: 900px) { .site-footer__legal { grid-template-columns: 1fr auto; align-items: center; } }
/* Dados exigidos pelo Estatuto da OAB: razão social, CNPJ e inscrição, em letra pequena. */
.site-footer__oab { grid-column: 1 / -1; order: 3; font-size: .75rem; letter-spacing: .02em; color: var(--on-dark-muted); opacity: .85; }
@media (min-width: 900px) {
  .site-footer__inner { grid-template-columns: 5fr 3fr 4fr; gap: 48px; padding-block: 64px 48px; }
}

/* Movimento progressivo: tudo visível sem JS, sem preferência por movimento e se os scripts falharem (.anim-fail) */
@keyframes heroUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes sideInL { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes sideInR { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .js .glass__side--l { animation: sideInL .9s ease-out .2s both; }
  .js .glass__side--r { animation: sideInR .9s ease-out .2s both; }
  .js .hero .chip { animation: heroUp .8s ease-out .1s both; }
  .js .hero h1 { animation: heroUp .8s ease-out .2s both; }
  .js .hero .lead { animation: heroUp .8s ease-out .4s both; }
  .js .hero__actions { animation: heroUp .8s ease-out .5s both; }
  .mouse-move { transition: translate .25s ease-out; }

  /* A seção entra como conjunto: fade e deslocamento curto, sem alterar o layout. */
  .js.anim-ready [data-reveal-up] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .8s cubic-bezier(.22, .61, .36, 1), transform .8s cubic-bezier(.22, .61, .36, 1);
    transition-delay: calc(min(var(--i, 0), 3) * 60ms);
  }
  .js.anim-ready [data-reveal-up].is-visible { opacity: 1; transform: none; }
  .js.anim-ready [data-reveal-up]:focus-within { opacity: 1; transform: none; transition: none; }
  @media (max-width: 639px) {
    .js.anim-ready [data-reveal-up] { transform: translateY(20px); transition-duration: .65s; }
    .js.anim-ready [data-reveal-up].is-visible { transform: none; }
  }

  /* Títulos por palavra: uma variante por título */
  .js .is-split .w { display: inline-block; opacity: 0; transition: opacity .55s ease-out, transform .55s cubic-bezier(.22, .61, .36, 1); transition-delay: var(--wd, 0s); }
  .js .split-in-up .w { transform: translateY(32px); }
  .js .split-in-right .w { transform: translateX(32px); }
  .js .split-in-left .w { transform: translateX(-32px); }
  .js .is-split.is-visible .w { opacity: 1; transform: none; }

  .anim-fail [data-reveal-up], .anim-fail [data-reveal], .anim-fail .is-split .w, .anim-fail .img-reveal__in, .anim-fail .img-reveal img { opacity: 1 !important; transform: none !important; transition: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* "Medeiros" no azul original da logo (#170B62), não no azul de apoio. */
.site-header .brand__name, .hero-claro .site-header:not(.is-scrolled) .brand__name { color: var(--brand-primary); }

/* Botões no azul principal original da marca. */
.btn-duo,
.hero .btn-duo,
.hero-claro .hero .btn-duo,
.site-header:not(.is-scrolled) .header-cta,
.hero-claro .site-header:not(.is-scrolled) .header-cta,
.contact .form__actions .btn-duo {
  --duo-bg: var(--brand-primary);
  --duo-fg: #FFFFFF;
  --duo-image: none;
}
.btn-duo .btn-duo__pill, .btn-duo .btn-duo__circle,
.hero .btn-duo--ghost .btn-duo__pill, .hero .btn-duo--ghost .btn-duo__circle,
.hero-claro .hero .btn-duo--ghost .btn-duo__pill, .hero-claro .hero .btn-duo--ghost .btn-duo__circle { border-color: var(--heading-blue); }

/* CTA secundário da abertura: vidro branco a 20%. */
.hero .btn-duo--ghost,
.hero-claro .hero .btn-duo--ghost {
  --duo-bg: rgba(255, 255, 255, .2);
  --duo-fg: var(--brand-primary);
  --duo-image: none;
}
.hero .btn-duo--ghost .btn-duo__pill,
.hero .btn-duo--ghost .btn-duo__circle,
.hero-claro .hero .btn-duo--ghost .btn-duo__pill,
.hero-claro .hero .btn-duo--ghost .btn-duo__circle {
  border-color: rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 16px rgba(0, 0, 0, .04);
}

/* Cabeçalho no celular: marca à esquerda; idioma só com bandeiras e menu só com o ícone, à direita.
   Painel do menu em tela cheia sob o cabeçalho, com links grandes. */
@media (max-width: 1179px) {
  .site-header__inner { gap: 8px; }
  .brand { flex-wrap: nowrap; font-size: .875rem; letter-spacing: .16em; }
  .language-toggle { gap: 0; padding: 3px; margin-left: auto; }
  .language-toggle__option { font-size: 0; gap: 0; padding: 8px 9px; }
  .language-toggle__divider { display: none; }
  .menu-toggle { order: 2; margin-left: 4px; padding: 0; flex: none; width: 44px; min-width: 44px; justify-content: center; }
  .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .menu-toggle__icon { width: 28px; height: 28px; }
  .menu-toggle__icon span { left: 3px; right: 3px; height: 2px; }
  .menu-toggle__icon span:first-child { top: 9px; }
  .menu-toggle__icon span:last-child { top: 17px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child { top: 13px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child { top: 13px; }
  .js .nav { padding: 12px var(--gutter) 28px; box-shadow: 0 18px 30px rgba(7, 48, 71, .12); }
  .js .nav .nav__list a { min-height: 60px; font-size: 1.375rem; }
}
@media (max-width: 479px) {
  .brand { font-size: .75rem; letter-spacing: .1em; }
}
@media (max-width: 359px) {
  .brand { flex-wrap: wrap; font-size: .75rem; letter-spacing: .12em; }
  .language-toggle__option { padding: 8px 6px; }
  .site-header__inner { gap: 4px; }
}
