/* Shared proportions for the three interior pages. */
:is(.office-page, .services-page, .process-page) {
  --interior-blush: var(--tint);
  --interior-rule: var(--line);
  --interior-section: clamp(36px, 5.7vw, 78px);
  --interior-gap: clamp(23px, 4.8vw, 66px);
}

:is(.office-page, .services-page, .process-page) .page-hero-grid {
  gap: var(--interior-gap);
  padding-block: clamp(30px, 4.7vw, 64px);
}

:is(.office-page, .services-page, .process-page) .page-hero h1 {
  max-width: 16ch;
  font-family: var(--body);
  font-size: clamp(2.05rem, 4.1vw, 4.08rem);
  font-weight: 600;
  letter-spacing: -.063em;
  line-height: 1.04;
}

:is(.office-page, .services-page, .process-page) .page-hero h1 + p {
  max-width: 43ch;
  margin-top: clamp(12px, 1.5vw, 20px);
  font-size: clamp(.95rem, 1.3vw, 1.05rem);
}

:is(.office-page, .services-page, .process-page) .page-hero-media {
  aspect-ratio: 16 / 9;
  background: #171817;
  border: 0;
  border-radius: 0;
}

:is(.office-page, .services-page, .process-page) :is(.page-hero-video, .service-film-video) {
  object-fit: contain;
  object-position: center;
}

:is(.office-page, .services-page, .process-page) .page-hero-media::after,
.services-page .service-film-screen::after { content: none; }

:is(.office-page, .services-page, .process-page) .page-hero .eyebrow { margin-bottom: 10px; }

:is(.office-page, .services-page, .process-page) main h2 {
  font-family: var(--body);
  font-size: clamp(1.75rem, 3.15vw, 3.15rem);
  font-weight: 600;
  letter-spacing: -.052em;
  line-height: 1.1;
  text-wrap: balance;
}

.office-profile, .office-areas, .office-values, .service-explorer, .stage-section {
  padding-block: var(--interior-section);
}

/* Gabinete: full facade, contact links and service index. */
.office-page .page-hero {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--interior-rule);
}

.office-page .page-hero-grid { grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); }
.office-page .page-hero .eyebrow { color: var(--clay); }
.office-page .page-hero :is(.breadcrumb, .page-hero-lead) { color: var(--muted); }
.office-page .page-hero :focus-visible { outline-color: var(--clay); }
.office-page .page-hero .photo-title :is(.eyebrow, .breadcrumb, .page-hero-lead),
.process-page .page-hero .photo-title :is(.eyebrow, .breadcrumb, .page-hero-lead) { color: #fff7ef; }
.office-page .page-hero .photo-title :focus-visible,
.process-page .page-hero .photo-title :focus-visible { outline-color: #fff4da; }

.office-page .office-profile { background: var(--white); }
.office-page .office-profile-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: var(--interior-gap);
  align-items: center;
}

.office-page .office-profile-photo {
  aspect-ratio: 1448 / 1086;
  background: var(--sand);
}

.office-page .office-profile-photo img { object-fit: contain; }
.office-page .office-profile-copy {
  min-width: 0;
  padding: 0;
}

.office-page .office-profile-copy > p { max-width: 45ch; }
.office-page .office-profile-contacts {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 0 16px;
  margin-block: 19px 14px;
}

.office-page .office-profile-contacts a { padding-block: 9px; }
.office-page .office-profile-contacts a:is(:hover, :focus-visible) strong { color: var(--clay); }
.office-page .office-profile-contacts a span {
  color: var(--clay);
  font-size: .76rem;
  font-weight: 720;
  letter-spacing: .04em;
}

.office-page .office-profile-contacts a strong { font-weight: 650; }
.office-page .office-profile-contacts a small { line-height: 1.4; }

.office-page .office-areas {
  background: var(--interior-blush);
  color: var(--ink);
}

.office-page .office-areas-grid {
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  gap: var(--interior-gap);
  align-items: start;
}

.office-page .office-areas-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  align-self: stretch;
  min-height: 190px;
  overflow: hidden;
}

.office-page .office-areas-lead::after { content: none; }
.office-page .office-areas-lead .eyebrow {
  color: #fff7ef;
  margin-bottom: 8px;
}


.office-page .office-area-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(15px, 2.8vw, 41px);
  align-self: stretch;
}

.office-page .office-area {
  position: relative;
  min-height: 78px;
  grid-template-columns: minmax(0, 1fr) 10px;
  align-items: center;
  column-gap: 10px;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--interior-rule);
  transition: color .18s ease;
}

.office-page .office-area:nth-last-child(-n+2) { border-bottom: 1px solid var(--interior-rule); }
.office-page .office-area :is(strong, span) { grid-column: 1; }
.office-page .office-area strong {
  font-size: clamp(.98rem, 1.55vw, 1.2rem);
  font-weight: 680;
  line-height: 1.2;
}

.office-page .office-area span { color: var(--muted); }
.office-page .office-area::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / 3;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.office-page .office-area:is(:hover, :focus-visible) {
  color: var(--clay);
  background: transparent;
  outline-color: var(--clay);
}

.office-page .office-area:hover::after { transform: translateX(3px) rotate(45deg); }

.office-page .office-values h2 {
  max-width: 23ch;
  text-align: left;
  margin-bottom: clamp(19px, 3vw, 31px);
}

.office-page .office-values-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.7vw, 39px);
}

.office-page .office-value {
  grid-template-rows: auto 1fr;
  border: 0;
  border-bottom: 1px solid var(--interior-rule);
  background: transparent;
}

.office-page .office-value img { aspect-ratio: 16 / 10; }
.office-page .office-value-copy { padding: 15px 0 17px; }
.office-page .office-value h3 {
  font: 650 clamp(1.14rem, 2.05vw, 1.65rem)/1.2 var(--body);
  letter-spacing: -.032em;
}

.office-page .office-value p { margin: 7px 0 11px; }
.office-page .office-value:hover h3 { color: var(--clay); }

/* Serviços: outlined filters, six disclosures and two editorial interludes. */
.services-page .page-hero { background: var(--deep); color: var(--white); }
.services-page .page-hero-grid { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
.services-page .page-hero :is(.breadcrumb, .page-hero-lead) { color: #eee8e9; }
.services-page .page-hero .eyebrow { color: #f1cbd6; }
.services-page .page-hero :focus-visible { outline-color: #f1cbd6; }
.services-page .service-explorer { background: var(--white); }
.services-page .service-explorer .section-heading { margin-bottom: 19px; }
.services-page .service-explorer .section-heading h2 { max-width: 20ch; text-align: left; }
.services-page .service-shortcuts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: clamp(18px, 3vw, 34px);
  background: transparent;
}

.services-page .service-shortcuts a {
  min-height: 44px;
  padding: 7px 8px;
  justify-content: center;
  text-align: center;
  border: 0;
  border-radius: 7px;
  background: var(--paper);
  transition: color .18s ease, background-color .18s ease;
}

.services-page .service-shortcuts a:is(:hover, :focus-visible) {
  background: var(--interior-blush);
  color: var(--clay);
}

.services-page .service-shortcuts a:focus-visible {
  z-index: 1;
  outline-offset: 2px;
}

.services-page .detail-panels {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 24px);
}

.services-page .detail-panel {
  border: 1px solid var(--interior-rule);
  background: var(--paper);
}

.services-page .detail-panel:is([open], :target) { border-color: var(--clay); }

.services-page .detail-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 0;
  transition: background-color .18s ease;
}

.services-page :is(.detail-summary, .faq-list summary):focus-visible { outline-offset: 1px; }

.services-page .detail-summary:is(:hover, :focus-visible),
.services-page .detail-panel[open] .detail-summary { background: var(--interior-blush); }

.services-page .detail-image {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  margin: 0;
}

.services-page .detail-summary-copy {
  min-width: 0;
  min-height: 174px;
  padding: clamp(14px, 1.7vw, 21px);
}

.services-page .detail-summary-copy h3,
.process-page .stage-summary h3 {
  font: 650 clamp(1.1rem, 1.76vw, 1.5rem)/1.18 var(--body);
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}

.services-page .detail-summary-copy p,
.process-page .stage-summary-copy p {
  font-size: .94rem;
  line-height: 1.52;
  margin: 8px 0 13px;
}

:is(.services-page .detail-summary, .process-page .stage-summary) .disclosure-action {
  min-height: 26px;
  margin-top: auto;
  text-decoration: none;
}

:is(.services-page .detail-summary, .process-page .stage-summary) .disclosure-action::after {
  font-size: 1.15em;
  padding-inline: 3px;
}

.services-page .detail-body {
  padding: 16px clamp(14px, 1.7vw, 21px) 19px;
  border-color: var(--interior-rule);
  background: var(--white);
}

.services-page .detail-body h4 {
  font-size: .91rem;
  font-weight: 700;
}

.services-page :is(.detail-body, .faq-list) p,
.services-page .detail-body ul,
.process-page .stage-body ul { font-size: .94rem; }

:is(.services-page .detail-body, .process-page .stage-body) .directory-button {
  width: fit-content;
  max-width: 100%;
  padding-inline: 12px;
}

.services-page .feature-band {
  padding-block: var(--interior-section);
  background: var(--interior-blush);
  color: var(--ink);
}

.services-page .feature-band-grid {
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: var(--interior-gap);
}

.services-page .feature-band-copy .eyebrow { color: var(--clay); }
.services-page .feature-band-copy > p:not(.eyebrow) { color: var(--muted); }
.services-page .feature-band-image img { aspect-ratio: 16 / 9; }
.services-page .section--soft { background: var(--white); }
.services-page .faq-grid h2 { max-width: 20ch; text-align: left; }
.services-page .faq-intro { --title-focus: 67% 55%; }
.services-page .faq-list details { padding-block: 15px; }
.services-page .faq-list summary { min-height: 27px; }

.services-page .services-closing {
  background: var(--deep);
  color: var(--white);
}

.services-page .services-closing .service-film-layout {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: var(--interior-gap);
}

.services-page .service-film-screen {
  aspect-ratio: 16 / 9;
  background: #171817;
  border: 0;
}

.services-page .services-closing .service-film-copy p { color: #eee8e9; }

/* Acompanhamento: a stable reading column beside the four steps. */
.process-page .page-hero { background: var(--sand); color: var(--ink); }
.process-page .page-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.process-page .page-hero-content { grid-column: 2; grid-row: 1; }
.process-page .page-hero-media { grid-column: 1; grid-row: 1; aspect-ratio: 1440 / 760; }
.process-page .page-hero-content .eyebrow { color: var(--clay); }
.process-page .page-hero :is(.breadcrumb, .page-hero-lead) { color: var(--muted); }
.process-page .page-hero :focus-visible { outline-color: var(--clay); }

.process-page .stage-section { background: var(--white); }
.process-page .stage-section > .container {
  display: grid;
  grid-template-columns: minmax(0, .38fr) minmax(0, 1fr);
  gap: var(--interior-gap);
  align-items: start;
}

.process-page .stage-heading {
  position: sticky;
  top: calc(var(--header) + 21px);
}

.process-page .stage-heading h2 { text-align: left; margin-bottom: 21px; }
.process-page .stage-heading nav {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--interior-rule);
}

.process-page .stage-heading nav a {
  min-height: 44px;
  padding: 7px 5px 7px 0;
  border: 0;
  border-bottom: 1px solid var(--interior-rule);
  background: transparent;
  font-size: .87rem;
  font-weight: 630;
  transition: color .18s ease;
}

.process-page .stage-heading nav a:is(:hover, :focus-visible) { color: var(--clay); }

.process-page .stage-cards {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--interior-rule);
}

.process-page .stage-card {
  border: 0;
  border-bottom: 1px solid var(--interior-rule);
  background: var(--white);
}

.process-page .stage-card:is([open], :target) { border-bottom-color: var(--clay); }
.process-page .stage-card[open] .stage-summary { background: var(--interior-blush); }
.process-page .stage-summary {
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  min-height: 0;
  transition: background-color .18s ease;
}

.process-page .stage-summary:is(:hover, :focus-visible) { background: var(--paper); }
.process-page .stage-summary:focus-visible { outline-offset: 1px; }
.process-page .stage-image { aspect-ratio: 16 / 10; margin-block: 10px; }
.process-page .stage-summary-copy { padding: clamp(13px, 2vw, 25px); }
.process-page .stage-body {
  padding: 14px clamp(13px, 2vw, 25px) 19px;
  background: var(--paper);
  border-color: var(--interior-rule);
}

.process-page .stage-end {
  background: var(--interior-blush);
  padding-block: clamp(25px, 4vw, 53px);
}
.process-page .stage-end .section-photo { --title-focus: center 41%; }

@media (max-width: 1020px) {
  .services-page .service-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .services-page .detail-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-page .detail-summary-copy { min-height: 151px; }
}

@media (max-width: 760px) {
  :is(.office-page, .services-page, .process-page) .page-hero-grid,
  .office-page :is(.office-profile-grid, .office-areas-grid),
  .services-page :is(.feature-band-grid, .services-closing .service-film-layout),
  .process-page .stage-section > .container { grid-template-columns: minmax(0, 1fr); }

  :is(.office-page, .services-page, .process-page) .page-hero h1 {
    max-width: 21ch;
    font-size: clamp(2rem, 6.8vw, 3.05rem);
  }

  .office-page .office-values-grid { gap: clamp(10px, 2.5vw, 19px); }
  .office-page .office-value-copy { padding-top: 11px; }
  .services-page .services-closing .service-film-screen { grid-row: auto; }
  .process-page .page-hero-content { grid-column: 1; grid-row: 1; }
  .process-page .page-hero-media { grid-column: 1; grid-row: 2; }
  .process-page .stage-heading { position: static; }
  .process-page .stage-heading nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 13px;
  }
}

@media (max-width: 550px) {
  .office-page .office-values-grid { grid-template-columns: minmax(0, 1fr); }
  .office-page .office-value {
    grid-template-columns: minmax(0, .73fr) minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 13px;
  }

  .office-page .office-value img {
    height: auto;
    aspect-ratio: 5 / 4;
    align-self: center;
  }

  .office-page .office-value-copy { padding-block: 8px 12px; }
  .services-page .detail-panels { grid-template-columns: minmax(0, 1fr); }
  .services-page .detail-summary {
    grid-template-columns: minmax(0, .69fr) minmax(0, 1.31fr);
    grid-template-rows: auto;
    align-items: stretch;
  }

  .services-page .detail-image { aspect-ratio: auto; }
  .services-page .detail-summary-copy { min-height: 0; }
  .process-page .stage-summary { grid-template-columns: minmax(0, .69fr) minmax(0, 1.31fr); }
  .process-page .stage-image { aspect-ratio: 1; }
}

@media (max-width: 370px) {
  .office-page .office-profile-contacts { grid-template-columns: minmax(0, 1fr); }
  .services-page .service-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-page .detail-summary,
  .process-page .stage-summary { grid-template-columns: minmax(0, .58fr) minmax(0, 1.42fr); }
  .services-page .detail-summary-copy,
  .process-page .stage-summary-copy { padding-inline: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .office-page .office-area::after,
  .services-page :is(.service-shortcuts a, .detail-summary),
  .process-page :is(.stage-summary, .stage-heading nav a) { transition: none; }
}
