body {
  overflow-x: hidden;
}
body.menu-open {
  overflow: hidden;
}
p,h1,h2,h3 {
  margin: 0;
  text-wrap: pretty;
}
h1,h2,h3 {
  text-wrap: balance;
}
.container,.hero-grid {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.topnav {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 84px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo-lockup {
  width: 174px;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
}
.desktop-nav a {
  position: relative;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.desktop-nav a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: '';
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}
.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--fg);
}
.desktop-nav a:not(.nav-contact):hover::after,
.desktop-nav a:not(.nav-contact):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-contact {
  min-height: auto;
  padding: 0;
  background: transparent;
  border-bottom: 0;
  color: var(--muted) !important;
}
.menu-toggle,
.menu-panel {
  display: none;
}

/*
 * Na foto (1365x2048), os rostos ficam entre 23% e 80% da largura e 24% e 47%
 * da altura. Em tela larga a foto ocupa a direita e o texto fica na coluna
 * livre à esquerda; em tela estreita/retrato a foto fica no topo e o texto
 * começa abaixo dos queixos. Assim o texto nunca passa sobre um rosto.
 */
.hero {
  --hero-bg: #3a3434;
  --hero-h: clamp(440px, calc(100svh - 84px), 880px);
  --photo-w: min(calc(var(--hero-h) * 0.97), 55vw);
  position: relative;
  display: grid;
  min-height: var(--hero-h);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    linear-gradient(
      90deg,
      rgba(137, 81, 41, 0.24) 0%,
      rgba(137, 81, 41, 0.08) 24%,
      transparent 46%
    ),
    var(--hero-bg);
}
.hero::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: var(--photo-w);
  aspect-ratio: 1365 / 2048;
  background: url('../../site/mrs-hero.jpeg') center / cover no-repeat;
  transform: translateY(-15%);
  -webkit-mask-image:
    linear-gradient(90deg, transparent, #000 7%),
    linear-gradient(#000 82%, transparent 98%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent, #000 7%),
    linear-gradient(#000 82%, transparent 98%);
  mask-composite: intersect;
  content: '';
}
.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 32%;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  content: '';
}
.hero-grid {
  display: grid;
  align-items: center;
}
.hero-copy {
  /* Termina 40px antes do primeiro rosto (77% da largura da foto, a partir da direita). */
  max-width: min(760px, calc((100vw + 100%) / 2 - var(--photo-w) * 0.77 - 40px));
  padding-block: 56px;
}
.eyebrow,
.section-label {
  margin: 0 0 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}
.hero h1 {
  max-width: 800px;
  margin: 0;
  font: 700 clamp(34px, 4.3vw, 64px)/0.95 var(--font-display);
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero-lead {
  max-width: 570px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.65;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  border: 1px solid transparent;
  background: none;
  font-size: 13px;
  font-weight: 700;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.hero .btn-primary {
  background: var(--bg);
  color: var(--fg);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

/* Tela estreita ou em retrato: foto no topo, cortada acima das cabeças; texto abaixo dos queixos. */
@media (max-width: 700px), (max-aspect-ratio: 1/1) {
  .hero {
    min-height: 0;
  }
  .hero::before {
    left: 0;
    width: 100%;
    transform: translateY(-20%);
    -webkit-mask-image: linear-gradient(#000 47.5%, rgb(0 0 0 / 0.3) 52%, transparent 60%);
    mask-image: linear-gradient(#000 47.5%, rgb(0 0 0 / 0.3) 52%, transparent 60%);
  }
  .hero-copy {
    max-width: 760px;
    /* Queixo mais baixo da foto: 47.4% de 1.5x a largura, menos o corte de 20%. */
    padding-block: calc(41.2vw + 32px) 48px;
  }
  .hero .eyebrow {
    margin-bottom: 20px;
  }
  .hero h1 {
    font-size: clamp(34px, 9vw, 56px);
  }
  .hero-lead {
    margin-top: 24px;
  }
  .hero-cta {
    margin-top: 32px;
  }
}

.section {
  padding-block: 128px;
}
.manifesto-grid,
.integration-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(56px, 8vw, 120px);
}
.manifesto h2,
.section-intro h2,
.integration h2,
.team-overlay h2,
.news h2,
.contact h2 {
  margin: 0;
  font: 400 clamp(46px, 5vw, 72px)/0.98 var(--font-display);
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.manifesto h2 span {
  display: block;
}

.manifesto-copy {
  align-self: end;
  max-width: 620px;
}
.section-label {
  color: var(--muted);
}
.manifesto-copy > p:not(.section-label) {
  margin: 0;
  color: #3c3f3c;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.48;
}
.manifesto-aside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.manifesto-aside div {
  display: grid;
  gap: 5px;
}
.manifesto-aside strong {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.manifesto-aside span {
  color: var(--muted);
  font-size: 14px;
}

.areas {
  background: var(--surface);
}
.section-intro,
.news-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 72px;
}
.section-intro p,
.news-intro p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.area-groups {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  grid-template-areas: 'featured second' 'featured third';
  border-top: 1px solid #bfc1bb;
}
.practice-group {
  position: relative;
  min-height: 270px;
  padding: 36px 8px 36px 40px;
  border-bottom: 1px solid #bfc1bb;
}
.practice-group + .practice-group {
  border-left: 1px solid #bfc1bb;
}
.practice-group-featured {
  grid-area: featured;
  min-height: 540px;
  padding: 52px 64px 48px 0;
}
.practice-group:nth-child(2) {
  grid-area: second;
}
.practice-group:nth-child(3) {
  grid-area: third;
}
.practice-index {
  display: block;
  margin-bottom: 52px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.practice-group:not(.practice-group-featured) .practice-index {
  margin-bottom: 24px;
}
.practice-group h3 {
  max-width: 520px;
  margin: 0;
  font: 400 clamp(30px, 3vw, 48px)/1 var(--font-display);
  letter-spacing: -0.03em;
}
.practice-group:not(.practice-group-featured) h3 {
  font-size: clamp(25px, 2.2vw, 34px);
}
.practice-group p {
  max-width: 520px;
  margin: 24px 0 30px;
  color: var(--muted);
  line-height: 1.7;
}
.practice-group ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.practice-group li {
  display: flex;
  gap: 12px;
  color: #343634;
  font-size: 14px;
}
.practice-group li::before {
  color: var(--accent);
  content: '/';
}

.integration {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: #fff;
}
.integration::after {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: min(38vw, 500px);
  aspect-ratio: 1;
  background: url('../../mrs-simbolo-web-otimizado.svg') center / contain no-repeat;
  content: '';
  opacity: 0.045;
}
.integration .eyebrow {
  color: rgba(255, 255, 255, 0.58);
}
.integration h2 {
  max-width: 540px;
}
.integration-copy {
  position: relative;
  z-index: 1;
}
.integration-copy > p {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.75;
}
.integration-map {
  margin: 50px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  list-style: none;
}
.map-item {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) 1.3fr;
  gap: 20px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.map-item strong {
  font: 400 25px var(--font-display);
}
.map-item span {
  align-self: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.section.team {
  padding-block: 0;
}
.team > .container {
  width: 100%;
  max-width: none;
}
.team {
  background: var(--bg);
}
.team-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
}
.team-portrait > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  filter: saturate(0.82) contrast(1.02);
}
.team-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: var(--accent);
  color: #fff;
}
.team-placeholder img {
  display: block;
  width: min(18vw, 188px);
  height: auto;
  opacity: 0.16;
}
.team-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 24px;
  padding: clamp(28px, 5vw, 64px);
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(0, 0, 0, 0.72)
  );
  pointer-events: none;
}
.team-overlay h2 {
  max-width: 680px;
  color: #fff;
  font-weight: 650;
}
.team-overlay .team-link {
  margin-top: 0;
  border-bottom-color: rgba(255, 255, 255, 0.72);
  color: #fff;
  pointer-events: auto;
}
.team-markers {
  position: absolute;
  inset: 0;
}
.person-marker {
  position: absolute;
  display: block;
  width: max-content;
  max-width: 230px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(20, 20, 20, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transform: translate(-50%, -50%);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}
.team-link,
.news-intro a {
  display: inline-block;
  margin-top: 48px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.news {
  background: var(--surface);
}
.news-intro {
  display: grid;
  justify-items: start;
}
.news-intro a {
  margin-top: 22px;
}
.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 20px;
}
.news-card {
  padding: 22px;
  background: var(--bg);
  border-top: 2px solid var(--fg);
}
.news-card:first-child {
  grid-row: span 2;
  padding: 30px;
  background: var(--accent);
  color: #fff;
  border-top-color: var(--accent);
}
.news-media {
  overflow: hidden;
  margin-bottom: 28px;
  background: #d8d7d1;
}
.news-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.news-card:first-child .news-media img {
  aspect-ratio: 4 / 3;
}
.news-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.news-card:first-child .news-meta,
.news-card:first-child p {
  color: rgba(255, 255, 255, 0.62);
}
.news-card h3 {
  margin: 18px 0 12px;
  font: 400 clamp(24px, 2.3vw, 34px)/1.08 var(--font-display);
  letter-spacing: -0.025em;
}
.news-card:first-child h3 {
  max-width: 600px;
  font-size: clamp(34px, 4vw, 54px);
}
.news-card p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.news-modal-open {
  overflow: hidden;
}

.news-modal[hidden] {
  display: none;
}

.news-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
}

.news-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgb(38 40 39 / 68%);
}

.news-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 820px);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: clamp(26px, 5vw, 64px);
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 30px 100px rgb(0 0 0 / 26%);
}

.news-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  font-size: 28px;
  line-height: 1;
}

.news-modal-close:hover,
.news-modal-close:focus-visible {
  background: var(--surface);
}

.news-modal-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.news-modal-content > article {
  max-width: 700px;
  margin: 0 auto;
}

.news-modal-content h1 {
  margin: 0 0 18px;
  font: 400 clamp(34px, 5vw, 64px)/1 var(--font-display);
  letter-spacing: -0.04em;
}

.news-modal-content > article > .section-label,
.news-detail article > .section-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-modal-content > article > p:nth-of-type(2),
.news-detail article > p:nth-of-type(2) {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.news-modal-content figure {
  margin: 0 0 28px;
}

.news-modal-content figure img {
  width: 100%;
}

.news-modal-content article > p,
.news-modal-content article > ul,
.news-modal-content article > ol,
.news-modal-content article > blockquote,
.news-modal-content article > pre {
  margin: 0 0 18px;
  line-height: 1.8;
}

.news-modal-content article > p:last-child {
  margin-top: 34px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-detail-page {
  min-height: 100vh;
}

.news-detail {
  padding-block: clamp(48px, 9vw, 120px);
}

.news-detail article {
  max-width: 760px;
  margin: 0 auto;
}

.news-detail h1 {
  margin: 0 0 20px;
  font: 400 clamp(38px, 6vw, 76px)/1 var(--font-display);
  letter-spacing: -0.04em;
}

.news-detail figure {
  margin: 0 0 34px;
}

.news-detail figure img {
  width: 100%;
}

.news-detail article > p,
.news-detail article > ul,
.news-detail article > ol,
.news-detail article > blockquote,
.news-detail article > pre {
  margin: 0 0 20px;
  line-height: 1.85;
}

.news-detail article > p:last-child {
  margin-top: 42px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact {
  background: var(--surface);
  color: var(--fg);
}
.contact-grid {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(40px, 8vw, 104px);
}
.contact .eyebrow {
  color: var(--muted);
}
.contact-copy > p:last-of-type {
  max-width: 480px;
  color: var(--muted);
  line-height: 1.75;
}
.contact-location-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 24px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  font-size: 13px;
  font-weight: 700;
}
.contact-form {
  display: grid;
  gap: 24px;
  padding: clamp(20px, 2.5vw, 32px);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
}
.location {
  border-top: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
}
.location-intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 64px);
}
.location-intro {
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.location-intro > div {
  display: grid;
  gap: 18px;
}
.location-intro h2 {
  max-width: 640px;
  margin: 0;
  font: 400 clamp(38px, 4.5vw, 60px)/1.02 var(--font-display);
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.location-intro > p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.location-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto auto;
  column-gap: clamp(24px, 5vw, 64px);
  row-gap: clamp(10px, 1.5vw, 18px);
  align-items: start;
}
.location-carousel,
.location-carousel-viewport,
.location-carousel-track {
  display: contents;
}
.location-carousel-controls {
  display: none;
}
.location-building {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  min-width: 0;
  margin: 0;
}
.location-building-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.location-building-visual > img {
  display: block;
  width: 100%;
  height: auto;
}
.location-building > figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}
.location-map-pin {
  position: absolute;
  z-index: 2;
  top: 49%;
  left: 44%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgb(0 0 0 / 28%);
  transform: translate(-50%, -50%);
}
.location-map-pin:hover,
.location-map-pin[aria-expanded='true'] {
  background: var(--fg);
}
.location-map-pin:focus-visible {
  outline: 2px solid var(--bg);
  outline-offset: 4px;
}
.location-map-pin svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  fill-rule: evenodd;
}
.location-map-panel {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  width: min(260px, calc(100% - 24px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: #fff;
  box-shadow: 0 12px 30px rgb(0 0 0 / 22%);
}
.location-map-panel iframe {
  display: block;
  width: 100%;
  height: auto;
  min-height: 140px;
  aspect-ratio: 16 / 9;
  border: 0;
}
.location-photo {
  position: relative;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border);
  background: var(--surface);
}
.location-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.location-photo-reception {
  grid-column: 2;
  grid-row: 1;
  aspect-ratio: 1.25;
}
.location-photo-reception img {
  aspect-ratio: 1.25;
}
.location-photo-meeting {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  width: calc(55% - 9px);
  aspect-ratio: 0.95;
}
.location-photo-meeting img {
  aspect-ratio: 0.95;
}
.location-photo figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 34px 14px 12px;
  background: linear-gradient(transparent, rgb(0 0 0 / 72%));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.location-card {
  display: flex;
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: stretch;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  width: calc(45% - 9px);
  min-width: 0;
  padding: clamp(16px, 2.2vw, 28px);
  border: 1px solid var(--border);
  background: var(--surface);
}
.location-card-label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.location-card > p:not(.location-card-label) {
  margin: 0;
  color: var(--fg);
  font: 400 clamp(18px, 2vw, 23px)/1.25 var(--font-display);
}
.location-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  align-self: start;
  margin-top: 4px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  font-size: 12px;
  font-weight: 700;
}
.field {
  display: grid;
  gap: 9px;
}
.field label {
  color: var(--fg);
  font-size: 12px;
  font-weight: 700;
}
.input,
.textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 0;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  outline: 0;
}
.textarea {
  min-height: 112px;
  resize: vertical;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--muted);
}
.input:focus,
.textarea:focus {
  border-bottom-color: var(--accent);
}
.contact-form .btn {
  justify-self: start;
  margin-top: 4px;
  background: var(--bg);
  color: var(--fg);
}
.form-error,
.form-status {
  display: none;
  margin: 0;
  font-size: 13px;
}
.form-error.is-visible,
.form-status:not(:empty) {
  display: block;
}
.form-error {
  color: #8f312b;
}
.form-status {
  color: #356d61;
}

@media (min-width: 981px) {
  .location {
    padding-block: clamp(88px, 6vw, 96px);
  }
  .location-building-visual {
    aspect-ratio: 3 / 4;
  }
  .location-building-visual > img {
    height: 100%;
    object-fit: cover;
  }
  .location-photo-reception,
  .location-photo-reception img {
    aspect-ratio: 1.65;
  }
  .location-photo-meeting,
  .location-photo-meeting img {
    aspect-ratio: 1.3;
  }
}

@media (max-width: 980px) {
  .container,
  .hero-grid {
    width: min(100% - 40px, 1240px);
  }
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    position: relative;
    z-index: 102;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    padding: 0;
    background: transparent;
    border: 0;
  }
  .menu-glyph {
    position: relative;
    display: block;
    width: 24px;
    height: 16px;
    background: transparent;
  }
  .menu-glyph::before,
  .menu-glyph::after {
    position: absolute;
    left: 0;
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    content: '';
    transition:
      top 0.2s ease,
      bottom 0.2s ease,
      transform 0.2s ease;
  }
  .menu-glyph::before {
    top: 3px;
    transform: none;
  }
  .menu-glyph::after {
    top: auto;
    bottom: 3px;
  }
  .menu-toggle[aria-expanded='true'] .menu-glyph {
    background: transparent;
    transform: none;
  }
  .menu-toggle[aria-expanded='true'] .menu-glyph::before {
    top: 7px;
    transform: rotate(45deg);
  }
  .menu-toggle[aria-expanded='true'] .menu-glyph::after {
    bottom: 7px;
    transform: rotate(-45deg);
  }
  .menu-panel {
    position: fixed;
    z-index: 99;
    inset: 84px 0 0;
    display: block;
    padding: 28px 20px max(32px, env(safe-area-inset-bottom));
    background: var(--bg);
    color: var(--fg);
    visibility: hidden;
    opacity: 0;
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease;
  }
  .menu-panel.is-open {
    visibility: visible;
    opacity: 1;
  }
  .menu-panel nav {
    display: grid;
  }
  .menu-panel a {
    display: flex;
    align-items: center;
    min-height: 60px;
    border-bottom: 1px solid var(--border);
    font: 400 30px var(--font-display);
  }
  .menu-panel a::after {
    color: var(--muted);
  }
  .manifesto-grid,
  .integration-grid,
  .contact-grid,
  .section-intro,
  .news-head {
    grid-template-columns: 1fr;
  }
  .marker-gabriel,
  .marker-luiz {
    top: 45%;
  }
  .marker-amanda {
    top: 69%;
  }
}

@media (max-width: 700px) {
  .container,
  .hero-grid {
    width: min(100% - 32px, 1240px);
  }
  .topnav {
    height: 72px;
  }
  .logo-lockup {
    width: 148px;
  }
  .menu-panel {
    inset-block-start: 72px;
  }
  .hero-lead {
    font-size: 16px;
  }
  .hero-cta {
    display: grid;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .section {
    padding-block: 82px;
  }
  .manifesto-grid,
  .integration-grid,
  .contact-grid {
    gap: 54px;
  }
  .location-intro,
  .location-layout {
    grid-template-columns: 1fr;
  }
  .location-intro {
    gap: 24px;
    margin-bottom: 36px;
  }
  .location-layout {
    display: grid;
    grid-template-rows: auto;
    gap: 20px;
  }
  .location-carousel {
    display: grid;
    min-width: 0;
    gap: 14px;
  }
  .location-carousel-viewport {
    display: block;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
  }
  .location-carousel-viewport::-webkit-scrollbar {
    display: none;
  }
  .location-carousel-viewport:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
  }
  .location-carousel-track {
    display: flex;
  }
  .location-slide {
    position: relative;
    grid-column: auto;
    grid-row: auto;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    aspect-ratio: 3 / 4;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .location-building {
    align-self: auto;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
  }
  .location-building-visual {
    width: 100%;
    height: 100%;
    border: 0;
  }
  .location-building-visual > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .location-building > figcaption,
  .location-photo figcaption {
    position: absolute;
    z-index: 1;
    inset: auto 0 0;
    margin: 0;
    padding: 34px 14px 12px;
    background: linear-gradient(transparent, rgb(0 0 0 / 72%));
    color: #fff;
    font-size: 12px;
    font-weight: 600;
  }
  .location-photo,
  .location-photo-reception,
  .location-photo-meeting {
    justify-self: stretch;
    width: 100%;
    aspect-ratio: 3 / 4;
  }
  .location-photo-reception img,
  .location-photo-meeting img {
    aspect-ratio: auto;
  }
  .location-map-panel {
    top: 12px;
    right: 12px;
    width: min(220px, calc(100% - 24px));
  }
  .location-map-panel iframe {
    min-height: 124px;
  }
  .location-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .location-carousel-controls button {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--fg);
    font-size: 22px;
  }
  .location-carousel-controls button:hover {
    border-color: var(--accent);
    background: var(--bg);
  }
  .location-carousel-controls p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
  }
  .location-card {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    width: 100%;
  }
  .manifesto h2,
  .section-intro h2,
  .integration h2,
  .team-overlay h2,
  .news h2,
  .contact h2 {
    font-size: clamp(41px, 12vw, 58px);
  }
  .team-portrait {
    aspect-ratio: auto;
  }
  .team-portrait > img {
    height: auto;
  }
  .team-overlay {
    position: static;
    background: var(--fg);
  }
  .manifesto h2 span:nth-child(2) {
    transform: none;
  }
  .manifesto-copy > p:not(.section-label) {
    font-size: 19px;
  }
  .manifesto-aside {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
  .section-intro,
  .news-head {
    gap: 28px;
    margin-bottom: 48px;
  }
  .area-groups {
    display: block;
  }
  .practice-group,
  .practice-group-featured {
    min-height: 0;
    padding: 34px 0 40px;
    border-left: 0 !important;
  }
  .practice-index,
  .practice-group:not(.practice-group-featured) .practice-index {
    margin-bottom: 22px;
  }
  .practice-group h3,
  .practice-group:not(.practice-group-featured) h3 {
    font-size: 32px;
  }
  .integration::after {
    width: 75vw;
  }
  .integration-copy > p {
    font-size: 16px;
  }
  .map-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .person-marker {
    max-width: 150px;
    padding: 7px 9px;
    font-size: 9px;
  }
  .marker-gabriel,
  .marker-luiz {
    top: 48%;
  }
  .marker-gabriel {
    left: 17%;
  }
  .marker-luiz {
    left: 78%;
  }
  .marker-amanda {
    top: 68%;
    left: 49%;
  }
  .team-link {
    margin-top: 52px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-card:first-child {
    grid-row: auto;
    padding: 22px;
  }
  .contact-form .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .location-carousel-viewport {
    scroll-behavior: auto;
  }
}

/* Campo isca anti-spam: fora da tela (substitui style="" inline por causa da CSP). */
.field-trap {
  position: absolute;
  left: -9999px;
}

.contact-form .btn-whatsapp {
  gap: 10px;
  margin-top: 0;
  border-color: #25d366;
  background: transparent;
  color: var(--fg);
}
.contact-form .btn-whatsapp:hover,
.contact-form .btn-whatsapp:focus-visible {
  background: #25d366;
  color: #fff;
}
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 6px 18px rgb(0 0 0 / 28%);
  color: #fff;
  transition: transform 0.18s ease;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.06);
}
.whatsapp-float:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
@media (max-width: 700px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    transition: none;
  }
}
