@media (max-width: 991.98px) {
  .nav-shell {
    padding: 9px 14px;
  }

  .navbar-collapse {
    max-height: calc(100dvh - 92px);
    padding-top: 14px;
    overflow-y: auto;
  }

  .nav-actions {
    margin-left: 0;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .treatments-dropdown .dropdown-menu {
    position: static;
    width: 100%;
    margin: 4px 0 8px;
    box-shadow: none;
  }

  .hero-copy,
  .hero-photo,
  .service-hero-copy,
  .service-visual {
    min-height: 390px;
  }

  .service-visual--photo {
    min-height: 0;
  }

  .about-photo {
    min-height: 400px;
  }

  .foto-sobre {
    max-width: 100%;
    height: 480px;
  }
}

@media (max-width: 767.98px) {
  html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior-x: none;
    scroll-padding-top: 76px;
  }

  body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior-x: none;
    overflow-wrap: anywhere;
  }

  header,
  main,
  footer,
  section {
    max-width: 100%;
  }

  .container,
  .container-fluid,
  .page-shell,
  [class*="col-"] {
    min-width: 0;
    max-width: 100%;
  }

  .d-flex > *,
  .row > * {
    min-width: 0;
  }

  .site-header {
    padding: 7px 6px 4px;
  }

  .nav-shell {
    padding: 7px 10px;
    border-radius: 13px;
  }

  .navbar-brand {
    max-width: calc(100% - 58px);
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .navbar-toggler {
    padding: 5px 8px;
  }

  .navbar-toggler-icon {
    width: 1.35rem;
    height: 1.35rem;
  }

  .navbar-nav {
    gap: 1px;
  }

  .nav-link,
  .treatments-dropdown .dropdown-item {
    padding-block: 9px;
  }

  .nav-actions {
    width: 100%;
    align-items: stretch !important;
  }

  .nav-actions .btn-light-pill {
    display: flex;
    min-height: 42px;
    flex: 1;
    align-items: center;
    justify-content: center;
  }

  .section-space {
    padding: 48px 0;
  }

  .section-space-sm {
    padding: 12px 0 42px;
  }

  h1 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
    line-height: 1.1;
  }

  h2 {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  h1 br,
  h2 br {
    display: none;
  }

  .eyebrow {
    max-width: 100%;
    white-space: normal;
  }

  .hero-copy,
  .service-hero-copy {
    min-height: 0;
    padding: 25px 21px;
  }

  .hero-copy .d-flex,
  .service-hero-copy .d-flex,
  .service-cta .d-flex {
    align-items: stretch !important;
    flex-direction: column;
  }

  .hero-copy .btn,
  .service-hero-copy .btn,
  .service-cta .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .hero-photo {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .foto-principal {
    height: 100%;
    object-position: center 18%;
  }

  .foto-sobre {
    height: auto;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
  }

  .service-visual {
    min-height: 300px;
  }

  .service-visual--photo {
    min-height: 0;
  }

  .service-photo {
    width: 100%;
    height: auto;
  }

  .service-breadcrumb {
    margin-bottom: 12px;
    font-size: 0.78rem;
  }

  .service-hero-copy p {
    font-size: 0.95rem;
  }

  .content-card,
  .step-card,
  .service-cta {
    height: auto;
    padding: 22px 20px;
  }

  .check-list {
    margin-top: 18px;
    gap: 11px;
  }

  .stats-row .info-card {
    min-height: 132px;
    padding: 16px;
  }

  .stats-row .info-card p {
    font-size: 0.8rem;
  }

  .info-card svg {
    margin-bottom: 16px;
  }

  .treatment-card {
    min-height: 0;
  }

  .case-card,
  .patient-story-media {
    width: 100%;
  }

  .patient-gallery {
    margin-top: 1.5rem !important;
  }

  .google-reviews-panel {
    padding: 24px 19px;
    gap: 22px;
  }

  .google-rating-value {
    font-size: 3.5rem;
  }

  .contact-panel {
    padding: 25px 19px;
  }

  .contact-panel .row {
    --bs-gutter-y: 2rem;
  }

  .contact-map-section .ratio {
    --bs-aspect-ratio: 82%;
  }

  .footer-bar {
    padding: 17px;
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    width: 50px;
    height: 50px;
    padding: 0;
  }

  .whatsapp-float span {
    display: none;
  }

  .whatsapp-icon {
    width: 1.45rem;
    height: 1.45rem;
  }

  .image-lightbox {
    padding: 64px 10px 18px;
  }

  .image-lightbox__figure {
    max-width: 100%;
    max-height: calc(100dvh - 82px);
  }

  .image-lightbox__image {
    max-height: calc(100dvh - 130px);
    border-radius: 8px;
  }

  .image-lightbox__caption {
    padding-inline: 8px;
    font-size: 0.78rem;
  }

  .image-lightbox__close {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 374.98px) {
  .hero-copy,
  .service-hero-copy,
  .contact-panel {
    padding-inline: 17px;
  }

  .stats-row > [class*="col-"] {
    width: 100%;
  }

  .stats-row .info-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
