/* Royal Builders — Single scrollbar fix */

/* The document owns page scrolling; the mobile drawer is the only inner scroller. */
html {
  min-height: 100% !important;
  overflow-x: clip !important;
  overflow-y: scroll !important;
}

/* body must NOT set overflow-x — doing so forces overflow-y:auto on body too (CSS spec) */
body {
  overflow: visible !important;
  min-height: 100% !important;
  height: auto !important;
  max-height: none !important;
}

body.nav-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.container,
.hero-content {
  max-width: 1240px !important;
}

.sec,
.residences-sec,
.adv-sec,
.why-sec,
.about-sec {
  padding-top: clamp(64px, 8vw, 112px) !important;
  padding-bottom: clamp(64px, 8vw, 112px) !important;
}

.btn,
.btn-gold,
.btn-outline,
.btn-outline-gold,
.cta-pill,
.nl-btn {
  min-height: 48px;
}

#navbar {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#navbar,
#navbar.scrolled {
  background: #12345A !important;
}

.hero-teasers {
  display: flex !important;
  border-left: 4px solid #DAA520;
}

.nav-inner {
  height: 86px !important;
}

.nav-logo-circle {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24) !important;
}

.hero-content {
  padding: 180px 28px 150px !important;
}

.hero-title {
  max-width: 660px !important;
}

.hero-sub {
  max-width: 520px !important;
}

.hero-arrow {
  border-radius: 50% !important;
}

.page-hero {
  min-height: 390px;
  display: flex;
  align-items: flex-end;
  padding: 150px 0 68px !important;
}

.prop-card,
.proj-detail-card,
.gal-card,
.why-c,
.team-card,
.testimonial-card,
.contact-card {
  box-shadow: 0 16px 44px rgba(0, 0, 0, .1) !important;
}

.prop-card:hover,
.gal-card:hover,
.why-c:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 28px 70px rgba(16, 29, 40, .18) !important;
}

.prop-card-img,
.gal-thumb {
  height: 290px !important;
}

.prop-body,
.gal-body {
  padding: 28px !important;
}

.floating-contact-btn {
  border-radius: 50% !important;
  width: 56px !important;
  height: 56px !important;
}

.hero {
  overflow: visible !important;
  margin-bottom: 110px;
}

.hero-teasers {
  right: clamp(16px, 8vw, 120px) !important;
  bottom: -110px !important;
  z-index: 3;
  max-width: min(640px, 60%);
  background: #fff;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .12);
}

.hero-teaser {
  background: #fff !important;
  border: 0 !important;
  min-width: 0 !important;
  flex: 1 1 0;
  padding: 28px 24px !important;
}

.hero-teaser + .hero-teaser {
  border-left: 1px solid var(--border) !important;
}

.hero-teaser h5 {
  color: var(--dark) !important;
  font-size: .92rem !important;
}

.hero-teaser p {
  color: var(--text-mid) !important;
}

.hero-teasers::before,
.newsletter-strip::before,
.newsletter-strip::after,
.footer-main::before,
.footer-main::after {
  content: '';
  position: absolute;
  width: 92px;
  height: 92px;
  background: rgba(255, 255, 255, .08);
  pointer-events: none;
}

.hero-teasers::before {
  left: -34px;
  bottom: -28px;
}

.newsletter-strip::before {
  top: -42px;
  left: 0;
}

.newsletter-strip::after {
  right: 10%;
  bottom: -56px;
}

.footer-main {
  position: relative;
  overflow: hidden;
}

.footer-main::before {
  top: -34px;
  left: 0;
}

.footer-main::after {
  right: 0;
  bottom: -38px;
}

.nl-deco,
.nl-deco-br {
  position: absolute;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(3, 46px);
  grid-auto-rows: 46px;
  opacity: .8;
  pointer-events: none;
}

.nl-deco {
  top: 0;
  left: 0;
}

.nl-deco-br {
  right: 0;
  bottom: 0;
  grid-template-columns: repeat(2, 46px);
}

.nl-deco-sq,
.nl-deco-br-sq {
  background: rgba(255, 255, 255, .1);
}

.nl-deco-sq:nth-child(2) { opacity: .75; }
.nl-deco-sq:nth-child(3) { opacity: .5; }
.nl-deco-sq:nth-child(4) { opacity: .65; }
.nl-deco-sq:nth-child(5) { opacity: .4; }
.nl-deco-sq:nth-child(6) { opacity: .22; }
.nl-deco-br-sq:nth-child(2) { opacity: .7; }
.nl-deco-br-sq:nth-child(3) { opacity: .45; }
.nl-deco-br-sq:nth-child(4) { opacity: .22; }

.newsletter-strip > .container,
.footer-main > .container {
  position: relative;
  z-index: 1;
}

/* overflow-x:hidden computes overflow-y:auto; clip avoids creating section scrollers. */
body > * {
  max-width: 100%;
  overflow-x: clip !important;
}

/* Mobile nav drawer — only allowed inner scroll element */
@media (max-width: 768px) {
  #navbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
  }

  .nav-links {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    height: auto !important;
    max-height: none !important;
    width: min(300px, 85vw) !important;
    padding-top: calc(80px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .hero {
    margin-bottom: 226px;
  }

  .hero-content {
    padding: 130px 16px 120px !important;
  }

  .hero-teasers {
    display: flex !important;
    right: 16px !important;
    bottom: -210px !important;
    left: 16px;
    max-width: none;
    flex-direction: column;
  }

  .hero-teaser {
    width: 100%;
    padding: 22px 20px !important;
  }

  .hero-teaser + .hero-teaser {
    border-left: 0 !important;
    border-top: 1px solid var(--border) !important;
  }

  .hero-teasers::before {
    left: -16px;
    bottom: -26px;
  }

  .nav-links {
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch;
  }

  .pdc-grid,
  .pdc-grid.reverse {
    grid-template-columns: 1fr !important;
    direction: ltr !important;
  }

  .pdc-grid.reverse > * {
    direction: ltr !important;
  }

  .pdc-img {
    min-height: 250px !important;
    max-height: 58vw;
  }

  .pdc-body {
    padding: 24px 20px !important;
  }

  .gallery-grid,
  .prop-grid,
  .svc-img-grid,
  .why-cards-grid,
  .team-grid {
    grid-template-columns: 1fr !important;
  }

  .feature-list {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .pdc-img {
    max-height: none;
  }

  .pdc-price {
    font-size: 1.8rem;
  }

  .additional-images {
    gap: 8px;
  }
}