/* A página de atendimentos segue o vidro, as curvas e os cartões da página Clientes. */
.atendimentos-page .attendance-modes,
.atendimentos-page .attendance-gallery {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--paper);
  scroll-margin-top: 100px;
}

.atendimentos-page .attendance-modes {
  padding-block: clamp(64px, 7.5vw, 108px) clamp(110px, 10vw, 148px);
  color: #0c153e;
}

.atendimentos-page .attendance-modes__ribbon {
  position: absolute;
  z-index: -2;
  top: -8%;
  right: -10%;
  width: 110%;
  height: 110%;
  fill: none;
  stroke: #e7ecf4;
  stroke-width: 110;
  pointer-events: none;
}

.atendimentos-page .attendance-modes__wash {
  position: absolute;
  z-index: -1;
  inset: 38% -12% -22%;
  filter: blur(30px);
  background:
    radial-gradient(ellipse at 7% 92%, #12224e 0%, #203361 16%, transparent 37%),
    radial-gradient(ellipse at 52% 63%, #7a88a5 0%, #b6bfd0 21%, transparent 42%),
    radial-gradient(ellipse at 96% 46%, #82afe4 0%, #a6c9ee 25%, transparent 47%);
  pointer-events: none;
}

.atendimentos-page .attendance-modes .section-heading,
.atendimentos-page .attendance-gallery .section-heading {
  gap: 48px;
  margin-bottom: 48px;
}

.atendimentos-page .attendance-modes .section-heading > div,
.atendimentos-page .attendance-gallery .section-heading > div {
  min-width: 0;
}

.atendimentos-page .attendance-modes .section-heading h2,
.atendimentos-page .attendance-gallery .section-heading h2 {
  max-width: 770px;
  font-size: clamp(2.75rem, 4.8vw, 4.5rem);
  line-height: 1.08;
}

.atendimentos-page .attendance-modes .section-heading > p,
.atendimentos-page .attendance-gallery .section-heading > p {
  max-width: 360px;
  font-size: 1rem;
  line-height: 1.8;
}

.atendimentos-page .attendance-modes__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.atendimentos-page .attendance-mode-motion { min-width: 0; }

.atendimentos-page .attendance-mode {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 370px;
  min-width: 0;
  padding: clamp(28px, 3.3vw, 48px);
  border: 2px solid rgba(255, 255, 255, .87);
  border-radius: 36px;
  background: rgba(243, 247, 253, .88);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .95), 0 16px 38px rgba(30, 48, 82, .09);
}

.atendimentos-page .attendance-mode > .eyebrow {
  color: #2c3b56;
  margin-bottom: 28px;
  font-size: .75rem;
  letter-spacing: .1em;
}

.atendimentos-page .attendance-mode > h3 {
  margin: 0 0 22px;
  font-size: clamp(2.25rem, 3.5vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.atendimentos-page .attendance-mode__copy {
  max-width: 460px;
  margin-bottom: 34px;
  color: #2c3b56;
  font-size: 1rem;
  line-height: 1.8;
}

.atendimentos-page .attendance-mode > .text-link {
  align-self: flex-start;
  margin-top: auto;
  max-width: 100%;
  gap: 24px;
  border-color: #667896;
  color: #0c153e;
}

.atendimentos-page .attendance-mode > .text-link:hover { color: #1a3966; }

.atendimentos-page .attendance-modes > .section-curve { fill: var(--paper); }

.atendimentos-page .attendance-gallery {
  padding-block: clamp(60px, 7vw, 100px) clamp(112px, 10vw, 148px);
}

.atendimentos-page .attendance-gallery__ribbon {
  position: absolute;
  z-index: -1;
  top: -20px;
  left: calc(50% - 980px);
  width: 1500px;
  height: 630px;
  fill: none;
  stroke: #e4eaf3;
  stroke-width: 110;
  opacity: .8;
  pointer-events: none;
}

.atendimentos-page .attendance-gallery .filter-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  margin-bottom: 36px;
  padding: 12px 28px;
  background: var(--navy);
  border: 1px solid #ffffff14;
  border-radius: 28px 6px 28px 6px;
}

.atendimentos-page .attendance-gallery .filter-bar > p {
  padding-right: 32px;
  border-right: 1px solid #ffffff30;
  color: #a7ccf5;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.atendimentos-page .attendance-gallery .filter-bar > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  min-width: 0;
}

.atendimentos-page .attendance-gallery .filter-button {
  position: relative;
  min-width: 0;
  min-height: 62px;
  padding: 16px 12px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #c5d0e4;
  font-size: 1rem;
  line-height: 1.5;
}

.atendimentos-page .attendance-gallery .filter-button::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 3px;
  border-radius: 3px;
  background: #a7ccf5;
  transform: scaleX(0);
  transition: transform .2s var(--ease);
}

.atendimentos-page .attendance-gallery .filter-button:hover {
  background: #ffffff0d;
  color: var(--white);
}

.atendimentos-page .attendance-gallery .filter-button.is-active,
.atendimentos-page .attendance-gallery .filter-button[aria-pressed="true"] {
  background: #ffffff0d;
  color: var(--white);
}

.atendimentos-page .attendance-gallery .filter-button[aria-pressed="true"]::after {
  transform: scaleX(1);
}

.atendimentos-page .attendance-gallery .filter-button:focus-visible {
  outline: 2px solid #a7ccf5;
  outline-offset: -4px;
}

.atendimentos-page .attendance-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 24px;
}

.atendimentos-page .attendance-gallery__grid > .gallery-item {
  min-width: 0;
  display: flex;
}

/* O cartão se move por dentro da figura, sem interferir na entrada ao rolar. */
.atendimentos-page .attendance-photo-card {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: clamp(42px, 4.5vw, 66px) 6px 36px 6px;
  background: var(--navy);
  color: var(--white);
}

.atendimentos-page .attendance-photo-card > .gallery-open {
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 0;
}

.atendimentos-page .attendance-photo-card > .gallery-open > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transition: none;
}

.atendimentos-page .attendance-photo-card .gallery-open-hint {
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  background: #f6f8fc;
  color: var(--navy);
  box-shadow: 0 3px 16px #00002c26;
}

.atendimentos-page .attendance-photo-card > figcaption {
  display: grid;
  align-content: start;
  gap: 10px;
  flex: 1;
  min-height: 136px;
  padding: 25px 26px 28px;
}

.atendimentos-page .attendance-photo-card > figcaption > span {
  color: #a7ccf5;
  font-size: .6875rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.atendimentos-page .attendance-photo-card > figcaption > strong {
  color: var(--white);
  font: 400 clamp(1.125rem, 1.55vw, 1.375rem)/1.35 var(--display);
  letter-spacing: -.02em;
}

.atendimentos-page .attendance-photo-card > .gallery-open:focus-visible {
  outline: 3px solid #a7ccf5;
  outline-offset: -6px;
}

.atendimentos-page .attendance-gallery > .section-curve { fill: #e6eef9; }
.atendimentos-page .attendance-gallery + .cta-band { border-top: 0; }

@supports ((backdrop-filter: blur(24px)) or (-webkit-backdrop-filter: blur(24px))) {
  .atendimentos-page .attendance-mode {
    background: linear-gradient(125deg, rgba(255, 255, 255, .76), rgba(240, 246, 255, .66));
    -webkit-backdrop-filter: blur(24px) saturate(115%);
    backdrop-filter: blur(24px) saturate(115%);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .atendimentos-page .attendance-mode,
  .atendimentos-page .attendance-photo-card { transition: transform .25s var(--ease); }

  .atendimentos-page .attendance-mode-motion:hover > .attendance-mode {
    transform: translateY(-4px) scale(1.015);
  }

  .atendimentos-page .attendance-gallery__grid > .gallery-item:hover > .attendance-photo-card {
    transform: translateY(-5px) scale(1.02);
  }
}

@media (max-width: 1000px) {
  .atendimentos-page .attendance-modes .section-heading,
  .atendimentos-page .attendance-gallery .section-heading { gap: 32px; }

  .atendimentos-page .attendance-modes .section-heading > p,
  .atendimentos-page .attendance-gallery .section-heading > p { max-width: 300px; }

  .atendimentos-page .attendance-mode { padding: 32px; }
  .atendimentos-page .attendance-mode > h3 { font-size: 2.5rem; }
  .atendimentos-page .attendance-mode__copy { font-size: .9375rem; }
  .atendimentos-page .attendance-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .atendimentos-page .attendance-modes,
  .atendimentos-page .attendance-gallery { scroll-margin-top: 88px; }

  .atendimentos-page .attendance-modes { padding-block: 56px 94px; }
  .atendimentos-page .attendance-modes__ribbon { width: 185%; right: -60%; }
  .atendimentos-page .attendance-modes__wash { inset: 34% -42% -10%; }

  .atendimentos-page .attendance-modes .section-heading,
  .atendimentos-page .attendance-gallery .section-heading {
    gap: 24px;
    margin-bottom: 32px;
  }

  .atendimentos-page .attendance-modes .section-heading h2,
  .atendimentos-page .attendance-gallery .section-heading h2 {
    font-size: clamp(2.25rem, 8vw, 3.25rem);
    line-height: 1.1;
  }

  .atendimentos-page .attendance-modes .section-heading > p,
  .atendimentos-page .attendance-gallery .section-heading > p {
    max-width: none;
    font-size: .9375rem;
  }

  .atendimentos-page .attendance-modes__grid { grid-template-columns: 1fr; gap: 20px; }
  .atendimentos-page .attendance-mode { min-height: 350px; border-radius: 28px; padding: 30px 26px; }
  .atendimentos-page .attendance-mode > .eyebrow { font-size: .6875rem; margin-bottom: 25px; }
  .atendimentos-page .attendance-mode > h3 { font-size: 2.5rem; }
  .atendimentos-page .attendance-mode__copy { margin-bottom: 28px; }
  .atendimentos-page .attendance-mode > .text-link { gap: 18px; }
  .atendimentos-page .attendance-gallery { padding-block: 54px 94px; }
  .atendimentos-page .attendance-gallery__ribbon { left: -410px; width: 1150px; height: 480px; stroke-width: 84; }
  .atendimentos-page .attendance-gallery .filter-bar { grid-template-columns: 1fr; padding: 20px 16px 12px; gap: 12px; margin-bottom: 28px; }
  .atendimentos-page .attendance-gallery .filter-bar > p { padding: 0 0 12px; border-right: 0; border-bottom: 1px solid #ffffff30; }
  .atendimentos-page .attendance-gallery .filter-button { padding: 14px 8px; font-size: .8125rem; min-height: 56px; }
  .atendimentos-page .attendance-gallery__grid { grid-template-columns: 1fr; gap: 28px; }
  .atendimentos-page .attendance-photo-card { border-radius: 54px 6px 34px 6px; }
  .atendimentos-page .attendance-photo-card > .gallery-open { aspect-ratio: 4 / 5; }
  .atendimentos-page .attendance-photo-card > figcaption { min-height: 124px; padding: 23px 24px 25px; }
  .atendimentos-page .attendance-photo-card > figcaption > strong { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .atendimentos-page .attendance-gallery .filter-bar > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
  .atendimentos-page .attendance-mode { padding: 27px 22px; }
  .atendimentos-page .attendance-mode > h3 { font-size: 2.15rem; }
  .atendimentos-page .attendance-mode > .text-link { font-size: .8125rem; gap: 14px; }
  .atendimentos-page .attendance-photo-card > figcaption { padding-inline: 22px; }
  .atendimentos-page .attendance-photo-card > figcaption > strong { font-size: 1.125rem; }
}

@media (prefers-reduced-transparency: reduce) {
  .atendimentos-page .attendance-mode {
    background: #edf2fa;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atendimentos-page .attendance-mode > .text-link > svg,
  .atendimentos-page .attendance-gallery .filter-button,
  .atendimentos-page .attendance-gallery .filter-button::after { transition: none; }
  .atendimentos-page .attendance-mode > .text-link:hover > svg { transform: none; }
}
