/* ==========================================================================
   Suncity Monarch — Responsive Styles
   Breakpoints: 1920 → 320
   ========================================================================== */

@media (max-width: 1600px) {
  :root {
    --container: min(92%, 1180px);
  }

  .header__nav {
    gap: 1.5rem;
  }
}

@media (max-width: 1440px) {
  :root {
    --container: min(92%, 1100px);
  }

  .header__nav {
    gap: 1.25rem;
  }

  .hero__project {
    font-size: 64px;
  }
}

@media (max-width: 1366px) {
  .header__nav {
    gap: 1rem;
  }

  .header__link {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .header__call {
    font-size: 0.82rem;
  }

  .header__cta {
    padding: 0.65rem 1rem;
    font-size: 0.65rem;
  }

  .hero__project {
    font-size: 64px;
  }

  .hero__config {
    font-size: 30px;
  }

  .hero__location {
    font-size: 22px;
  }

  .hero__price {
    font-size: 26px;
  }
}

@media (max-width: 1280px) {
  .header__inner {
    width: min(96%, 1200px);
    gap: 1rem;
  }

  .header__nav {
    gap: 0.85rem;
  }

  .header__logo-text {
    font-size: 1.35rem;
  }

  .hero__project {
    font-size: 64px;
  }

  .overview__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .amenities__grid {
    /* legacy grid removed — carousel layout */
  }

  .about__grid {
    gap: 2.5rem;
  }
}

@media (max-width: 1100px) {
  .amenities__grid {
    /* carousel handles layout */
  }
}

/* Tablet landscape / small laptop */
@media (max-width: 1024px) {
  :root {
    --header-h: 72px;
    --section-pad: clamp(4rem, 8vw, 6rem);
  }

  .header__inner {
    grid-template-columns: 1fr auto;
  }

  .header__nav {
    position: fixed;
    inset: 0;
    background: rgba(14, 35, 68, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    gap: 1.75rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
    z-index: 1;
    justify-self: stretch;
  }

  .header.is-open .header__nav {
    opacity: 1;
    visibility: visible;
  }

  .header__link {
    font-size: 0.95rem;
    letter-spacing: 0.14em;
  }

  .header__toggle {
    display: flex;
  }

  .header__cta {
    display: none;
  }

  .hero__project {
    font-size: 64px;
  }

  .hero__config {
    font-size: 28px;
    letter-spacing: 0.1em;
  }

  .hero__location {
    font-size: 20px;
  }

  .hero__price {
    font-size: 24px;
  }

  .overview__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.95rem;
  }

  .overview-card {
    min-height: 200px;
    padding: 1.75rem 1rem 1.5rem;
  }

  .overview-card__icon {
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
  }

  .overview-card__icon svg {
    width: 40px;
    height: 40px;
  }

  /* amenities carousel — grid unused */

  .location__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .location__map {
    grid-column: 1;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    order: -1;
  }

  .location__places {
    grid-column: 1;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .floorplan__grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-inline: auto;
    gap: 1.15rem;
  }

  .floorplan-card {
    aspect-ratio: 1 / 1;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__logo {
    margin-left: auto;
    margin-right: auto;
  }

  .about__info {
    grid-template-columns: 1fr 1fr;
  }

  .about__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .price-list__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .price-table {
    min-width: 600px;
  }

  .price-table thead th,
  .price-table td {
    padding: 1.15rem 1.1rem;
  }

  .price-table__btn {
    padding: 0.7rem 1.1rem;
    font-size: 0.65rem;
  }
}

/* Tablet portrait */
@media (max-width: 991px) {
  .hero__project {
    font-size: 54px;
  }

  .hero__config {
    font-size: 24px;
  }

  .hero__location {
    font-size: 18px;
  }

  .hero__price {
    font-size: 22px;
  }

  .hero__btn {
    min-width: 160px;
    padding: 0.9rem 1.5rem;
  }
}

@media (max-width: 991px) {
  .hero__content {
    width: min(94%, 1100px);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
  }

  .hero__content {
    width: 92%;
    padding-inline: 1rem;
    padding-bottom: 4rem;
  }

  .hero__project {
    font-size: 40px;
  }

  .hero__config {
    font-size: 22px;
    letter-spacing: 0.08em;
  }

  .hero__location {
    font-size: 16px;
    letter-spacing: 0.1em;
  }

  .hero__price {
    font-size: 20px;
    margin-bottom: 1.5rem;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 320px);
  }

  .hero__btn {
    width: 100%;
    min-width: 0;
  }

  .hero__meta-bar {
    font-size: 0.65rem;
    gap: 0.5rem 0.75rem;
  }

  .amenities__grid {
    /* carousel */
  }

  .location__places {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .location-card {
    padding: 1rem 0.95rem;
  }

  .float-actions {
    bottom: 5.25rem;
    right: 0.85rem;
  }

  /* Avoid duplicate Call on mobile — sticky bar covers it; keep WhatsApp float */
  .float-btn--call {
    display: none;
  }

  .mobile-cta {
    display: flex;
  }

  body {
    padding-bottom: 72px;
  }

  .lightbox__prev,
  .lightbox__next {
    bottom: 4rem;
    top: auto;
  }

  .lightbox__prev { left: 1rem; }
  .lightbox__next { right: 1rem; }
}

@media (max-width: 576px) {
  .header__call span {
    font-size: 0.78rem;
  }

  .hero__project {
    font-size: 40px;
  }

  .hero__config {
    font-size: 20px;
  }

  .hero__location {
    font-size: 15px;
  }

  .hero__price {
    font-size: 18px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  :root {
    --header-h: 64px;
    --section-pad: 3.5rem;
  }

  .header__call span {
    display: none;
  }

  .header__call {
    width: 40px;
    height: 40px;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
  }

  .hero__project {
    font-size: 40px;
  }

  .hero__config {
    font-size: 18px;
    letter-spacing: 0.06em;
  }

  .hero__location {
    font-size: 14px;
  }

  .hero__price {
    font-size: 17px;
  }

  .hero__scroll {
    bottom: 1.25rem;
  }

  .overview__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .overview-card {
    min-height: 190px;
    padding: 1.5rem 0.75rem 1.25rem;
  }

  .overview-card__icon {
    width: 64px;
    height: 64px;
  }

  .overview-card__icon svg {
    width: 34px;
    height: 34px;
  }

  .overview-card__value {
    font-size: 0.82rem;
    letter-spacing: 0.03em;
  }

  .overview-card__label {
    font-size: 0.62rem;
  }

  .amenities__grid {
    /* carousel */
  }

  .about__info {
    gap: 0.75rem;
  }

  .about-info {
    padding: 1.25rem 1rem;
  }

  .about__stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .enquiry__card {
    padding: 1.5rem 1.25rem;
    border-radius: 8px;
  }

  .enquiry__wrap {
    padding: 1.5rem;
  }

  .footer__main {
    /* stacked via style.css mobile rules */
  }

  .footer__strip-inner {
    flex-direction: column;
    text-align: center;
  }

  .thank-you__actions {
    flex-direction: column;
  }

  .thank-you__actions .btn {
    width: 100%;
  }

  .video-banner {
    min-height: 340px;
  }

  .video-banner__play {
    width: 78px;
    height: 78px;
  }

  .video-banner__play svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 430px) {
  .hero__project {
    font-size: 34px;
    line-height: 1.02;
  }

  .amenities__grid {
    gap: 0.5rem;
  }

  .float-btn {
    width: 48px;
    height: 48px;
  }

  .float-btn--call svg {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 390px) {
  .hero__project {
    font-size: 32px;
    line-height: 1.02;
  }

  .hero__config {
    font-size: 16px;
  }

  .hero__btn {
    padding: 0.85rem 1.25rem;
    font-size: 0.72rem;
  }

  .overview-card {
    padding: 1.35rem 0.65rem 1.15rem;
    min-height: 180px;
  }
}

@media (max-width: 375px) {
  .hero__project {
    font-size: 40px;
  }

  .hero__meta-bar {
    flex-direction: column;
  }

  .hero__sep {
    display: none;
  }

  .mobile-cta__btn {
    font-size: 0.65rem;
    padding: 0.75rem 0.3rem;
  }
}

@media (max-width: 360px) {
  .hero__project {
    font-size: 40px;
  }

  .hero__config {
    font-size: 15px;
  }

  .hero__location {
    font-size: 13px;
  }

}

@media (max-width: 320px) {
  .container,
  .container--wide {
    width: 94%;
  }

  .hero__project {
    font-size: 40px;
  }

  .hero__price {
    font-size: 15px;
  }

  .btn {
    padding: 0.85rem 1.25rem;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print */
@media print {
  .header,
  .float-actions,
  .mobile-cta,
  .popup,
  .progress-bar,
  .hero__scroll {
    display: none !important;
  }

  body {
    padding: 0;
    color: #000;
    background: #fff;
  }
}

/* --------------------------------------------------------------------------
   Section heading + hero typography refinements (wins over earlier rules)
   -------------------------------------------------------------------------- */
.overview__title,
.highlights__title,
.gallery__title,
.price-list__title,
.amenities__title,
.location__title,
.floorplan__title,
.about__title,
.video-banner__title,
.enquiry__title,
.section__title {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.08;
  text-align: center;
  display: inline-block;
  margin: 0 auto 12px;
  max-width: none;
  white-space: nowrap;
  text-wrap: nowrap;
  font-size: clamp(42px, 3vw, 58px);
}

.overview__header,
.highlights__header,
.gallery__header,
.price-list__header,
.amenities__header,
.location__header,
.floorplan__header,
.about__header,
.enquiry__header {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 36px;
  padding-inline: 20px;
  text-align: center;
}

.amenities__header {
  margin-bottom: 40px;
}

.overview__subtitle,
.highlights__subtitle,
.gallery__subtitle,
.price-list__subtitle,
.amenities__subtitle,
.location__subtitle,
.floorplan__subtitle,
.about__subtitle,
.enquiry__subtitle {
  font-size: 18px;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.overview__accent,
.highlights__accent,
.gallery__accent,
.price-list__accent,
.amenities__accent,
.location__accent,
.floorplan__accent,
.about__accent,
.enquiry__accent {
  display: block;
  width: 70px;
  height: 3px;
  border-radius: 999px;
  margin: 0 auto 12px;
  background: #C9A45C;
}

@media (max-width: 1439px) {
  .overview__title,
  .highlights__title,
  .gallery__title,
  .price-list__title,
  .amenities__title,
  .location__title,
  .floorplan__title,
  .about__title,
  .video-banner__title,
  .enquiry__title,
  .section__title { font-size: 48px; }
  .hero__project { font-size: 64px; line-height: 1.05; }
}

@media (max-width: 1199px) {
  .overview__title,
  .highlights__title,
  .gallery__title,
  .price-list__title,
  .amenities__title,
  .location__title,
  .floorplan__title,
  .about__title,
  .video-banner__title,
  .enquiry__title,
  .section__title { font-size: 42px; }
}

@media (max-width: 991px) {
  .overview__title,
  .highlights__title,
  .gallery__title,
  .price-list__title,
  .amenities__title,
  .location__title,
  .floorplan__title,
  .about__title,
  .video-banner__title,
  .enquiry__title,
  .section__title { font-size: 36px; }
  .overview__subtitle,
  .highlights__subtitle,
  .gallery__subtitle,
  .price-list__subtitle,
  .amenities__subtitle,
  .location__subtitle,
  .floorplan__subtitle,
  .about__subtitle,
  .enquiry__subtitle { font-size: 16px; }
  .hero__project { font-size: 54px; }
}

@media (max-width: 767px) {
  .overview__title,
  .highlights__title,
  .gallery__title,
  .price-list__title,
  .amenities__title,
  .location__title,
  .floorplan__title,
  .about__title,
  .video-banner__title,
  .enquiry__title,
  .section__title {
    font-size: 30px;
    white-space: normal;
    text-wrap: wrap;
  }
  .overview__subtitle,
  .highlights__subtitle,
  .gallery__subtitle,
  .price-list__subtitle,
  .amenities__subtitle,
  .location__subtitle,
  .floorplan__subtitle,
  .about__subtitle,
  .enquiry__subtitle { font-size: 15px; }

  /* Floating phone icon — larger glyph, same button size */
  .float-btn--call svg {
    width: 30px;
    height: 30px;
  }

  /* ---------- Mobile Hero: compact premium hierarchy ---------- */
  .hero {
    min-height: 100svh;
    height: 100svh;
  }

  .hero__content {
    width: 90%;
    max-width: 420px;
    padding-inline: 0.75rem;
    padding-bottom: 4.5rem;
    justify-content: center;
  }

  br.hero__br-mobile {
    display: block;
  }

  .hero__project {
    font-size: clamp(1.85rem, 8.2vw, 2.15rem);
    line-height: 1.08;
    letter-spacing: 0.4px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 0.4rem;
    white-space: normal;
    text-wrap: balance;
  }

  .hero__config {
    font-size: clamp(0.88rem, 3.6vw, 1rem);
    line-height: 1.25;
    letter-spacing: 0.08em;
    margin: 0 auto 0.55rem;
    max-width: 92%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero__tagline {
    font-size: 15px;
    line-height: 1.45;
    letter-spacing: 0.01em;
    max-width: 90%;
    margin: 0 auto 0.55rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero__location {
    font-size: 0.78rem;
    line-height: 1.3;
    letter-spacing: 0.12em;
    margin: 0 0 0.4rem;
  }

  .hero__price {
    font-size: 1.05rem;
    line-height: 1.3;
    letter-spacing: 0.03em;
    margin: 0 0 1.05rem;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 300px);
    gap: 0.65rem;
    margin-bottom: 0.85rem;
  }

  .hero__btn {
    width: 100%;
    min-width: 0;
    padding: 0.85rem 1.25rem;
  }

  .hero__meta-bar {
    font-size: 0.62rem;
    gap: 0.35rem 0.65rem;
    margin-top: 0;
  }

  /* Overview heading — max 2 lines */
  .overview__title {
    font-size: 24px;
    line-height: 1.12;
    letter-spacing: 0.5px;
    max-width: 100%;
    width: 100%;
    white-space: normal;
    text-wrap: balance;
  }

  .overview__header {
    padding-inline: 12px;
  }

  /* Hero scroll indicator — true horizontal center on mobile */
  .hero__scroll {
    left: 50%;
    right: auto;
    bottom: 1.1rem;
    margin: 0;
    padding: 0;
    width: max-content;
    transform: translateX(-50%);
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero__scroll-mouse {
    margin-inline: auto;
  }

  .hero__scroll-label {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
  }

  html.js-motion:not(.is-page-ready) .hero__scroll {
    transform: translateX(-50%) translateY(24px);
  }

  html.is-page-ready .hero__scroll {
    animation:
      luxEnterScrollMob 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1.12s forwards,
      scrollFloat 2.4s ease-in-out 1.77s infinite;
  }
}

@keyframes luxEnterScrollMob {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 380px) {
  .overview__title,
  .highlights__title,
  .gallery__title,
  .price-list__title,
  .amenities__title,
  .location__title,
  .floorplan__title,
  .about__title,
  .video-banner__title,
  .enquiry__title,
  .section__title { font-size: 26px; }

  .hero__project {
    font-size: 1.75rem;
    line-height: 1.08;
  }

  .hero__tagline {
    font-size: 14.5px;
    max-width: 92%;
  }

  .hero__config {
    font-size: 0.85rem;
  }

  .overview__title {
    font-size: 22px;
    line-height: 1.12;
  }

  .float-btn--call svg {
    width: 28px;
    height: 28px;
  }
}

/* Lifestyle + Specifications grids */
@media (max-width: 1199px) {
  .lifestyle__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .specifications__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .about__info {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .lifestyle__grid,
  .specifications__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .lifestyle .highlight-card,
  .specifications .highlight-card {
    min-height: auto;
  }

  .overview__lead {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .trust-strip__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    max-width: 22rem;
    margin-inline: auto;
  }

  .about__info {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 479px) {
  .about__info {
    grid-template-columns: 1fr;
  }
}
