/* Local layout layer for the Orthominas production snapshot. */
.hero-brand-logo {
  display: block;
  width: clamp(172px, 19vw, 260px);
  height: auto;
  margin: 0 0 1.15rem;
  filter: drop-shadow(0 12px 22px rgb(0 0 0 / 0.26));
}

.hero-left .hero-subheading {
  margin-bottom: 1rem;
}

.hero-grid {
  position: relative;
}

.hero-doctors {
  position: absolute;
  z-index: 2;
  right: clamp(1rem, 1.5vw, 2rem);
  bottom: clamp(1.2rem, 5vh, 3.5rem);
  display: flex;
  align-items: end;
  gap: clamp(0.45rem, 1.25vw, 1.25rem);
  width: min(48vw, 740px);
  pointer-events: none;
}

.hero-doctors img {
  display: block;
  width: calc((100% - clamp(0.45rem, 1.25vw, 1.25rem)) / 2);
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgb(0 0 0 / 0.26));
}

.hero-heading {
  font-size: clamp(2.1rem, 3.9vw, 3.9rem);
}

.hero-description {
  max-width: 500px;
}

.hero-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-picture .hero-test-image {
  display: block;
  object-position: center;
}

@media (width >= 1024px) {
  .hero-grid,
  .motion-disabled .hero-grid {
    width: 100%;
    max-width: none;
    min-height: 100svh;
    margin: 0;
    padding: 0;
  }

  .hero-right {
    width: 100vw;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-doctors {
    top: 20.8vh;
    right: 8.5vw;
    bottom: auto;
    display: flex;
    align-items: flex-start;
    gap: clamp(1rem, 2vw, 2rem);
    width: min(46vw, 770px);
  }

  .hero-doctors img {
    width: calc((100% - clamp(1rem, 2vw, 2rem)) / 2);
    aspect-ratio: 3 / 4;
    height: auto;
  }

  .hero-left {
    z-index: 3;
    position: absolute;
    top: 18vh;
    left: 8.5vw;
    max-width: 38rem;
    padding: 0;
  }

  .hero-brand-logo {
    width: min(26vw, 360px);
    max-width: none;
    margin: 0 0 clamp(2rem, 4vh, 2.8rem);
  }

  .hero-left .hero-subheading {
    display: none;
  }

  .hero-heading {
    max-width: 12.5ch;
    margin: 0 0 clamp(1.7rem, 3vh, 2.2rem);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.3rem, 4.55vw, 4.9rem);
    font-weight: 400;
    line-height: 0.99;
    letter-spacing: 0;
    text-wrap: balance;
  }

  .hero-heading span {
    color: #d8b759;
  }

  .hero-description {
    max-width: 31rem;
    margin: 0 0 1.2rem;
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    line-height: 1.55;
    text-wrap: pretty;
  }

  .hero-contact-line {
    display: inline-flex;
    margin: 1rem 1.35rem 0 0;
    color: #d8b759;
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    font-weight: 700;
  }

  .hero-contact-action {
    display: inline-flex;
    margin-top: 1rem;
  }
}

.hero-contact-action {
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-width: min(100%, 300px);
  padding: 0.9rem 1.35rem;
  color: #fff;
  border: 1px solid #d8b759;
  border-radius: 6px;
  background: rgb(4 19 48 / 0.35);
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.18);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.hero-contact-action span {
  color: #d8b759;
  font-size: 1.65em;
  line-height: 0.8;
}

.hero-contact-action:hover,
.hero-contact-action:focus-visible {
  background: rgb(216 183 89 / 0.16);
  transform: translateY(-2px);
}

@media (width <= 768px) {
  .hero-picture .hero-test-image {
    object-position: center top;
  }

  .hero-doctors {
    top: 0.55rem;
    right: 0.7rem;
    bottom: auto;
    left: 0.7rem;
    align-items: start;
    gap: 0.4rem;
    width: auto;
  }

  .hero-doctors img {
    width: calc((100% - 0.4rem) / 2);
    filter: drop-shadow(0 12px 18px rgb(0 0 0 / 0.2));
  }
}

.treatments-section {
  height: auto;
  min-height: 100svh;
  overflow: visible;
  padding: clamp(4.5rem, 7vw, 6rem) 0;
}

.treatments-section .container {
  width: min(100% - 4rem, 1240px);
}

.treatments-section .section-header {
  max-width: 840px;
  margin-inline: auto;
  text-align: center;
}

.treatments-section .section-heading {
  font-size: clamp(2.45rem, min(5.6vw, 7vh), 5.2rem);
  line-height: 0.95;
}

.treatments-intro {
  max-width: 680px;
  margin: 1rem auto 0;
  color: rgb(255 255 255 / 0.82);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.65;
}

.treatments-section .section-header,
.treatments-section .treatment-title-art,
.location-intro,
.location-map-shell,
.location-details,
.location-pin {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
  clip-path: none !important;
}

.treatments-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.75rem, 1.25vw, 1.05rem);
  width: 100%;
  max-width: 1180px;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.treatment-title-art {
  color: #fff;
  text-decoration: none;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding: clamp(1rem, 1.7vw, 1.45rem);
  justify-content: space-between;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgb(10 17 35 / 0.05), rgb(10 17 35 / 0.78)),
    radial-gradient(circle at 76% 18%, rgb(201 173 115 / 0.34), transparent 34%),
    linear-gradient(145deg, #23325f, #111a35);
}

.treatment-title-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 42%, rgb(255 255 255 / 0.08) 43%, transparent 53%),
    radial-gradient(circle at 28% 72%, rgb(255 255 255 / 0.1), transparent 30%);
  opacity: 0.8;
}

.treatment-title-art span {
  color: #c9ad73;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
}

.treatment-title-art h3 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--font-heading);
  color: #fff;
  font-size: clamp(1.14rem, 1.65vw, 1.65rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.treatment-art-feature {
  grid-column: auto;
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #07142e;
  border: 0;
  border-radius: 0;
}

.treatment-art-feature img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.treatment-title-art:hover,
.treatment-title-art:focus-visible {
  box-shadow: 0 25px 54px -18px rgb(0 0 0 / 0.48), 0 0 0 3px rgb(201 173 115 / 0.42);
  transform: translateY(-8px);
}

.team-carousel {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: end;
  height: min(76vh, 660px);
}

.team-member {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  top: auto !important;
  width: min(100%, 430px) !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

.team-photo-frame {
  height: min(56vh, 520px);
}

/* Preserve the complete top of Dra. Kenia's taller portrait inside the existing frame. */
.team-member[data-member="1"] .team-photo-frame img {
  object-position: center top !important;
}

.team-member-meta {
  left: 1rem;
  bottom: 1rem;
  width: min(280px, calc(100% - 2rem));
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
}

.team-progress,
.team-closing {
  display: none;
}

.location-map-shell {
  min-height: min(76vh, 720px);
}

.location-map-brand {
  position: absolute;
  z-index: 4;
  top: clamp(1rem, 2vw, 1.5rem);
  left: clamp(1rem, 2vw, 1.5rem);
  display: grid;
  gap: 0.55rem;
  width: min(300px, calc(100% - 2rem));
  padding: 1rem 1.1rem;
  color: #fff;
  text-decoration: none;
  background: rgb(21 33 63 / 0.94);
  border: 1px solid rgb(201 173 115 / 0.4);
  border-radius: 8px;
  box-shadow: 0 22px 52px rgb(21 33 63 / 0.24);
}

.location-map-brand img {
  width: min(230px, 100%);
  height: auto;
  filter: drop-shadow(0 8px 14px rgb(0 0 0 / 0.12));
}

.location-map-brand span {
  color: #d8bf83;
  font-size: 0.84rem;
  font-weight: 800;
}

.location-map-gallery {
  position: absolute;
  z-index: 4;
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  width: min(370px, calc(100% - 2rem));
  pointer-events: none;
}

.location-map-gallery img {
  display: block;
  width: 100%;
  height: clamp(96px, 9vw, 124px) !important;
  object-fit: cover;
  object-position: center 45%;
  border: 1px solid rgb(255 255 255 / 0.65);
  border-radius: 6px;
  box-shadow: 0 10px 22px rgb(9 19 41 / 0.32);
}

.location-map-click-target {
  position: absolute;
  z-index: 3;
  inset: 0;
}

/* The map no longer uses a scroll-progress indicator. */
.location-progress {
  display: none !important;
}

.is-removed-section {
  display: none !important;
}

/* The clinic chose a direct, unanimated scroll experience. */
.motion-disabled .scroll-reveal,
.motion-disabled .fade-in-element {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
  clip-path: none !important;
}

.motion-toggle {
  display: none !important;
}

/* Keep the life-stage cards framed, without framing the whole section. */
.life-stages-stage,
.life-stages-stage::before,
.life-stages-stage::after {
  border-color: transparent !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.footer-navigation {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (width <= 1023px) {
  .treatments-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .footer-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width <= 768px) {
  .hero-brand-logo {
    display: block !important;
    width: 100%;
    max-width: 440px;
    margin: 0 auto 1.2rem;
  }

  .hero-grid {
    align-items: end;
    min-height: 100svh;
    margin-top: 0;
    padding: 0 1.25rem 1.25rem;
    position: relative;
  }

  .hero-left {
    max-width: 100%;
    padding-top: 0;
    position: absolute;
    right: 1.25rem;
    bottom: clamp(1.25rem, 6svh, 3rem);
    left: 1.25rem;
    align-items: center;
    text-align: center;
  }

  .hero-left .hero-subheading {
    display: none;
  }

  .hero-heading {
    max-width: 13ch;
    margin: 0 auto 1rem;
    font-size: clamp(1.84rem, 9vw, 2.52rem);
    line-height: 0.96;
  }

  .hero-description {
    max-width: 21rem;
    margin: 0 auto 0.9rem;
    font-size: clamp(1rem, 4.7vw, 1.22rem);
    line-height: 1.45;
  }

  .hero-contact-line {
    margin-bottom: 1rem;
    font-size: clamp(0.92rem, 4.4vw, 1.1rem);
  }

  .hero-contact-action {
    min-width: 0;
    padding: 0.72rem 1rem;
    font-size: 1rem;
  }

  .treatments-section .container {
    width: calc(100% - 2rem);
  }

  .treatments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .treatment-title-art {
    min-height: 0;
  }

  .treatment-art-feature {
    height: auto;
    min-height: 0;
  }

  .team-carousel {
    grid-template-columns: 1fr;
    height: auto;
  }

  .team-photo-frame {
    height: min(52vh, 420px);
  }

  .location-map-brand {
    width: min(260px, calc(100% - 2rem));
  }

  .location-map-gallery {
    width: min(285px, calc(100% - 2rem));
  }
}

@media (width <= 520px) {
  .treatments-grid {
    grid-template-columns: 1fr !important;
  }

  .treatment-title-art {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .treatment-art-feature {
    height: auto;
    min-height: 0;
  }

  .treatment-title-art h3 {
    max-width: 12ch;
  }

  .footer-navigation {
    grid-template-columns: 1fr;
  }
}

@media (width <= 768px) and (height <= 720px) {
  .motion-disabled .hero-section,
  .hero-grid {
    min-height: 760px;
  }
}
/* Contraste WCAG AA (10/09/2026).
   Apenas os seletores que ficam sobre fundo CLARO.
   Os .section-tag sobre fundo escuro mantem o dourado claro original. */
.team-count,
.location-index,
.location-intro .section-tag,
.process-list li > span,
.trust-grid article > span {
  color: #856529;
}

.team-specialty {
  color: #5d687e;
}

/* Complemento: .content-heading .section-tag reprovava (4.18-4.42:1) sobre
   os fundos claros #edf0f5 / #f6f4ef / #f8f6f2. Mesma cor acessivel. */
.content-heading .section-tag {
  color: #856529;
}
