/* Stella Placidia — final mobile refinements for all public pages */
html {
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

img,
video,
iframe,
svg {
  max-width: 100%;
}

.row > *,
.card,
.card-body,
.hero-card,
.media-frame {
  min-width: 0;
}

p,
li,
small,
.text-break {
  overflow-wrap: anywhere;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

input,
select,
textarea {
  scroll-margin-top: 6rem;
}

[id] {
  scroll-margin-top: 5.5rem;
}

@media (max-width: 991.98px) {
  #mainNav > .container {
    flex-wrap: wrap;
    padding-inline: 1rem;
  }

  #mainNav .navbar-brand {
    min-height: 56px;
    min-width: 0;
    margin-right: auto;
  }

  #mainNav .navbar-toggler {
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    padding: .55rem;
  }

  #navLinks {
    flex-basis: 100%;
    max-height: calc(100svh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .4rem 0 .85rem;
    -webkit-overflow-scrolling: touch;
  }

  #navLinks .navbar-nav {
    align-items: stretch !important;
    gap: .15rem;
    margin: 0 !important;
  }

  #navLinks .nav-item {
    min-width: 0;
    margin-left: 0 !important;
  }

  #navLinks .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .65rem .75rem;
  }

  #navLinks .language-switch {
    justify-content: flex-start;
    gap: .3rem;
  }

  #navLinks .dropdown-menu,
  #navLinks .sp-experiences-dropdown {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: 100%;
    margin: .1rem 0 .4rem;
    padding: .35rem;
    box-shadow: none;
  }

  #navLinks .dropdown-item,
  #navLinks .sp-experience-item {
    min-height: 44px;
    white-space: normal;
  }

  #navLinks .sp-experience-item small {
    display: block;
    white-space: normal;
  }

  #navLinks .btn-sp {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    width: 100%;
    margin-top: .35rem;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding-block: clamp(2.7rem, 9vw, 4rem);
  }

  .section-sm {
    padding-block: clamp(2.2rem, 7vw, 3.2rem);
  }

  .section-title {
    font-size: clamp(1.75rem, 7vw, 2.35rem);
    line-height: 1.12;
    text-wrap: pretty;
  }

  .container {
    --bs-gutter-x: 1.5rem;
  }

  .footer .container {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .sp-footer-main,
  .sp-footer-bottom,
  .sp-footer-brand,
  .sp-footer-contact,
  .sp-footer-legal {
    min-width: 0;
  }

  .sp-footer-contact a,
  .sp-footer-legal a {
    overflow-wrap: anywhere;
  }

  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }

  .table-responsive table {
    white-space: nowrap;
  }

  .modal-dialog {
    margin: .75rem;
  }

  .modal-content {
    max-height: calc(100svh - 1.5rem);
    overflow-y: auto;
  }

  .btn,
  button,
  [role="button"] {
    min-height: 44px;
  }

  .form-control,
  .form-select,
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    min-height: 46px;
    font-size: 16px;
  }

  textarea {
    min-height: 110px;
  }

  .form-check-input,
  input[type="checkbox"],
  input[type="radio"] {
    width: 1.15rem;
    height: 1.15rem;
  }

  .form-check-label {
    padding-block: .25rem;
  }

  a,
  button,
  input,
  select,
  textarea {
    touch-action: manipulation;
  }
}

@media (max-width: 575.98px) {
  .container,
  #mainNav > .container {
    --bs-gutter-x: 1.25rem;
  }

  #mainNav > .container {
    padding-inline: .65rem;
  }

  .kicker {
    font-size: .68rem;
    letter-spacing: .11em;
  }

  .hero .container {
    padding-inline: 1rem;
  }

  .hero h1,
  h1.display-1,
  h1.display-2 {
    font-size: clamp(2rem, 10vw, 3.25rem);
    line-height: 1.05;
    text-wrap: balance;
  }

  .hero-badges {
    gap: .45rem;
  }

  .badge-soft {
    padding: .45rem .68rem;
    font-size: .82rem;
  }

  .sp-footer-main,
  .sp-footer-bottom {
    gap: 1rem;
  }

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

  .sp-home-video-inner {
    width: calc(100% - 2rem);
  }

  .sp-home-video .section-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
