/* ==========================================================================
   Responsive Adjustments
   Custom mobile / tablet overrides beyond Bootstrap utilities.
   Breakpoints align with Bootstrap 5:
     - sm: 576px
     - md: 768px
     - lg: 992px
     - xl: 1200px
     - xxl: 1400px
   ========================================================================== */

/* Tablet and below (max-width: 991.98px) */
@media (max-width: 991.98px) {
  :root {
    --container-spacing: 1.25rem;
    --hero-logo-width: 8.25rem;
    --about-nav-icon-size: 3.25rem;
    --reveal-distance: 1.35rem;
  }

  .vertical-slider-wrap {
    min-height: calc(4 * 100dvh);
  }

  .vertical-slider {
    min-height: 28rem;
  }

  .vertical-slider__nav {
    inset-inline-end: 0.85rem;
  }

  .vertical-slider__indicator {
    width: 2.15rem;
    height: 2.15rem;
  }

  .vertical-slider__indicator-num {
    font-size: 0.65rem;
  }

  .about-content {
    margin-top: 3.5rem;
  }

  .highlights-grid {
    height: auto;
    min-height: 0;
  }

  .highlights-side {
    height: auto;
    min-height: 0;
  }

  .highlights-stats {
    min-height: 18rem;
  }

  /*
   * Lifestyle on tablet/mobile: match photo aspect ratio
   * so man + child stay fully visible (no heavy crop).
   */
  .highlights-media--tall {
    height: auto;
    min-height: 0;
    aspect-ratio: 959 / 1129;
  }

  .highlights-media--tall .highlights-media__img {
    object-fit: cover;
    object-position: center center;
  }
}

/* Mobile (max-width: 767.98px) */
@media (max-width: 767.98px) {
  :root {
    --container-spacing: 1rem;
    --hero-logo-width: 7rem;
    --about-nav-icon-size: 2.75rem;
  }

  .section-hero {
    overflow: hidden;
  }

  .about-section__inner {
    width: min(100% - 1.5rem, 75rem);
  }

  .about-content {
    margin-top: 2.75rem;
  }

  .vertical-slider {
    min-height: 100svh;
  }

  .vertical-slider__nav {
    inset-block: auto 1rem;
    inset-inline-end: 0.75rem;
    transform: none;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .vertical-slider__progress {
    display: none;
  }

  .vertical-slider__indicators {
    flex-direction: row;
    gap: 0.35rem;
  }

  .vertical-slider__indicator {
    width: 1.85rem;
    height: 1.85rem;
  }

  .about-content {
    margin-top: 2.25rem;
  }

  .hero-tagline__brand,
  .hero-tagline__text {
    font-size: 1.1rem;
  }

  .about-content__text {
    line-height: 1.8;
  }

  .highlights-stat {
    padding: 1.35rem 0.75rem;
  }

  .highlights-stat__value {
    font-size: 1.5rem;
  }

  .highlights-panel__inner {
    padding: 2rem 1.25rem 3rem;
  }

  .highlights-media {
    min-height: 16rem;
  }

  .highlights-media--tall {
    min-height: 0;
    aspect-ratio: 959 / 1129;
  }

  .minutes-section__header {
    padding-block: 2.5rem 1.75rem;
  }

  .masterplan-section__inner {
    padding-block: 3rem 2rem;
  }

  .masterplan-legend {
    gap: 1rem 1.25rem;
    padding-block: 1.5rem 2rem;
    justify-content: center;
  }

  .masterplan-legend__label {
    white-space: normal;
    text-align: start;
  }

  .facilities-section__inner {
    padding-block: 2.75rem;
  }

  .facilities-section__title {
    margin-bottom: 2rem;
  }

  .facilities-item__label {
    white-space: normal;
  }

  .facilities-cta {
    margin-top: 2.75rem;
  }

  .facilities-cta__text {
    max-width: none;
  }

  .facilities-cta__btn {
    display: flex;
    width: 100%;
    max-width: 22rem;
    align-self: center;
  }

  .facilities-cta__btn-text {
    flex: 1;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .contact-section__inner {
    padding-block: 2.75rem 3.25rem;
  }

  .contact-section__intro {
    max-width: none;
    margin-bottom: 1.75rem;
  }

  .contact-form__input {
    padding: 1rem 1.1rem;
  }

  .contact-form__textarea {
    min-height: 9rem;
  }

  .contact-form__submit {
    width: auto;
    min-width: 7.5rem;
  }

  .site-footer {
    min-height: 15rem;
  }

  .site-footer__inner {
    min-height: 15rem;
    padding-block: 3.25rem 3rem;
  }

  .site-footer__brand {
    display: block;
    text-align: center;
  }

  .site-footer__logo {
    margin-inline: auto;
  }

  .site-footer__nav-list {
    justify-content: center;
    gap: 1rem 1.5rem;
  }

  .site-footer__meta {
    justify-content: center;
    text-align: center;
  }

}

/* Small mobile (max-width: 575.98px) */
@media (max-width: 575.98px) {
  :root {
    --hero-logo-width: 6rem;
    --about-nav-icon-size: 2.35rem;
  }

  .hero-tagline__brand,
  .hero-tagline__text {
    font-size: 1rem;
    line-height: 1.5;
  }

  .vertical-slider__indicator {
    width: 1.65rem;
    height: 1.65rem;
  }

  .vertical-slider__indicator-num {
    font-size: 0.58rem;
  }

  .highlights-stats__shell--top,
  .highlights-stats__shell--center {
    width: 3.5rem;
  }

  .highlights-media--tall {
    /* Slightly shorter on very small screens, keep subjects framed */
    aspect-ratio: 4 / 5;
  }

  .highlights-media--tall .highlights-media__img {
    object-position: 35% center;
  }

  .location-section__inner {
    padding-block: 3.25rem;
  }

  .location-decor__shell--top-left {
    width: 6.7rem;
    top: auto;
    bottom: 13%;
    left: 0.75rem;
    right: auto;
  }

  .location-decor__shell--bottom-left {
    width: 2.85rem;
    bottom: 4%;
    left: 9rem;
    right: auto;
  }

  .location-decor__shell--right {
    width: 2rem;
    right: 0;
    left: auto;
    transform: rotate(22deg);
  }

  .minutes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .minutes-grid__item--mall {
    grid-column: 1;
    grid-row: 1;
  }

  .minutes-grid__item--color {
    grid-column: 2;
    grid-row: 1;
  }

  .minutes-grid__item--bridge {
    grid-column: 1 / 3;
    grid-row: 2;
    aspect-ratio: 8 / 3;
  }

  .minutes-grid__item--uni {
    grid-column: 1;
    grid-row: 3;
  }

  .minutes-grid__item--coast {
    grid-column: 2;
    grid-row: 3;
  }

  .minutes-grid__item--college {
    grid-column: 1;
    grid-row: 4;
  }

  .minutes-grid__item--dhahran {
    grid-column: 2;
    grid-row: 4;
  }

  .minutes-grid__panel {
    width: 38%;
    min-width: 6.5rem;
    max-width: 9.5rem;
    min-height: 6.75rem;
    max-height: 55%;
    padding-bottom: 20px;
  }

  .minutes-grid__item--bridge .minutes-grid__panel {
    width: 28%;
    max-width: 10.5rem;
    min-height: 7rem;
    max-height: 60%;
  }

  .minutes-grid__panel-num {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }
}

/* Focused overrides for hero pin + about navigation layout */
@media (max-width: 1199.98px) {
  .about-section__inner {
    width: min(100% - 36px, 1200px);
  }
}

@media (max-width: 991.98px) {
  .hero-pin-wrap {
    height: 260vh;
    height: 260dvh;
  }
}

@media (max-width: 767.98px) {
  .hero-pin-wrap {
    height: 235vh;
    height: 235dvh;
  }

  .about-section__inner {
    width: min(100% - 24px, 100%);
  }
}

/* Tablet + mobile: single-row scrollable shell navigation, no sticky duplicate */
@media (max-width: 1023.98px) {
  .about-compact-nav {
    display: none !important;
  }

  .about-section__inner {
    padding-block: 1.25rem 1.65rem;
  }

  .about-section__content {
    align-items: stretch;
  }

  .about-nav {
    width: 100%;
    max-width: 100%;
  }

  .about-nav__list {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.35rem;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-inline: 0.35rem;
    scroll-padding-inline: 0.35rem;
  }

  .about-nav__list::-webkit-scrollbar {
    display: none;
  }

  .about-nav__item {
    flex: 0 0 auto;
    min-width: 72px;
  }

  .about-nav__item:last-child {
    grid-column: auto;
    justify-self: auto;
  }

  .about-nav__link {
    flex: 0 0 auto;
    min-width: 72px;
    gap: 0.35rem;
  }

  .about-nav__icon-wrap {
    width: 50px;
    height: 50px;
  }

  .about-nav__label {
    font-size: 0.74rem;
    line-height: 1.25;
    white-space: nowrap;
  }

  .about-content {
    margin-top: 1.65rem;
  }
}

@media (max-width: 575.98px) {
  .about-nav__list {
    gap: 1.1rem;
    padding-inline: 0.25rem;
    scroll-padding-inline: 0.25rem;
  }

  .about-nav__link {
    min-width: 68px;
    gap: 0.3rem;
  }

  .about-nav__icon-wrap {
    width: 46px;
    height: 46px;
  }

  .about-nav__label {
    font-size: 0.68rem;
  }
}
