/* ==========================================================================
   Park Pebbles — stylesheet
   Design tokens lifted from the live Elementor build.
   ========================================================================== */

:root {
  --pp-primary: #b07e50;   /* gold — CTAs */
  --pp-secondary: #103c3b; /* deep green */
  --pp-green-lt: #1e4645;
  --pp-cream: #f9f1ec;
  --pp-ink: #1e1e1e;
  --pp-white: #fff;

  --pp-font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pp-font-head: "Jost", var(--pp-font-body);

  --pp-header-h: 96px;
  --pp-container: 1240px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--pp-font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--pp-ink);
  background: var(--pp-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: var(--pp-container);
  margin-inline: auto;
  padding-inline: 20px;
}

[id] { scroll-margin-top: calc(var(--pp-header-h) + 16px); }

.section { padding: 90px 0; }

.section-title {
  font-family: var(--pp-font-head);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #000;
  margin: 0 0 28px;
}

.section-title--center { text-align: center; margin-bottom: 48px; }
.section-title--light { color: var(--pp-white); }

/* --------------------------------------------------------------------------
   Entrance animations
   Every section and grid fades up as it scrolls into view; [data-stagger]
   cascades its children. Delays are set in JS.
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(38px); }

.reveal,
[data-stagger].reveal > * {
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal[data-reveal="left"]  { transform: translateX(-48px); }
.reveal[data-reveal="right"] { transform: translateX(48px); }

.reveal.is-revealed { opacity: 1; transform: none; }

/* Stagger container itself does not move — its children do */
[data-stagger].reveal { opacity: 1; transform: none; }
[data-stagger].reveal > * { opacity: 0; transform: translateY(30px); }
[data-stagger].reveal.is-revealed > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  [data-stagger].reveal > * { opacity: 1 !important; transform: none !important; transition: none; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 0;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), padding 0.35s ease;
}

.site-header__bar {
  position: relative;
  background: var(--pp-white);
  transition: max-width 0.35s ease, border-radius 0.35s ease, box-shadow 0.35s ease;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--pp-header-h);
  padding-inline: clamp(20px, 2.6vw, 38px);
}

/* Detached state: once past the header the bar becomes a floating card,
   matching the theme's .sticky-header behaviour. */
.site-header.is-stuck { padding: 14px clamp(12px, 2vw, 26px) 0; }

.site-header.is-stuck .site-header__bar {
  max-width: 1560px;
  margin-inline: auto;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
}

/* Slide away on scroll down, return on scroll up */
.site-header.is-hidden { transform: translateY(-115%); }

.site-logo img { height: 74px; width: auto; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
}

.nav a {
  font-family: var(--pp-font-head);
  font-weight: 600;
  font-size: 18px;
  color: #000;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav a:hover,
.nav a.is-active { color: var(--pp-primary); }

/* Matches .rts__main__btn on the live build: DM Sans 12px / 2px tracking / 6px radius */
.btn {
  display: inline-block;
  font-family: var(--pp-font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 17px 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.btn--primary { background: var(--pp-primary); color: var(--pp-white); }
.btn--primary:hover { background: #96683e; }
.btn--primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn--pill {
  background: var(--pp-primary);
  color: var(--pp-white);
  border-radius: 999px;
  width: 100%;
  padding: 16px 24px;
}

.btn--pill:hover { background: #96683e; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--pp-ink);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.2s;
}

.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { margin-top: var(--pp-header-h); }
.hero__media img { width: 100%; }

/* --------------------------------------------------------------------------
   Legacy collage
   -------------------------------------------------------------------------- */

.legacy__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
}

.legacy__copy p { margin: 0 0 18px; max-width: 46ch; }
.legacy__copy p:last-child { margin-bottom: 0; }

.legacy__collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.legacy__collage figure { margin: 0; }

/* Right column drops to create the staggered rhythm of the original */
.legacy__collage figure:nth-child(2),
.legacy__collage figure:nth-child(4) { margin-top: 56px; }

.legacy__collage img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* --------------------------------------------------------------------------
   Video
   -------------------------------------------------------------------------- */

.video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--pp-ink);
  overflow: hidden;
}

.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__frame--facade { cursor: pointer; }

.video__frame--facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.video__frame--facade:hover img { transform: scale(1.04); }

.video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 52px;
  border-radius: 12px;
  background: #f00;
  transition: background 0.2s;
}

.video__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}

.video__frame--facade:hover .video__play { background: #c00; }

/* --------------------------------------------------------------------------
   Built on trust
   -------------------------------------------------------------------------- */

.trust { background: var(--pp-secondary); color: var(--pp-white); }

.trust__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.trust__col { padding: 0 46px; text-align: center; }
.trust__col + .trust__col { border-left: 1px solid rgba(176, 126, 80, 0.6); }

.trust__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  margin-bottom: 26px;
}

.trust__brand img { max-height: 150px; width: auto; }

.trust__blurb { margin: 0 auto 34px; max-width: 52ch; }

.trust__projects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.trust__projects li {
  background: var(--pp-white);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
}

.trust__projects img { max-height: 100%; width: auto; object-fit: contain; }

/* --------------------------------------------------------------------------
   Split panels (location, buyers, story)
   Image bleeds to the outer edge; copy sits on the inner half.
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.split--cream { background: var(--pp-cream); }
.split--green { background: var(--pp-secondary); color: var(--pp-white); }

.split__media { min-height: 420px; }

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px clamp(24px, 5vw, 70px);
}

.split__copy p { margin: 0 0 16px; max-width: 52ch; }
.split__copy p:last-child { margin-bottom: 0; }

/* Copy first in source, image second — but the copy keeps the inner edge */
.split--reverse .split__copy { padding-left: max(24px, calc((100vw - var(--pp-container)) / 2 + 20px)); }
.split:not(.split--reverse) .split__copy { padding-right: max(24px, calc((100vw - var(--pp-container)) / 2 + 20px)); }

/* --------------------------------------------------------------------------
   Configurations
   -------------------------------------------------------------------------- */

.configs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.config-card {
  background: var(--pp-secondary);
  color: var(--pp-white);
  text-align: center;
  padding: 46px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.config-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(16, 60, 59, 0.25);
}

.config-card__name {
  font-family: var(--pp-font-head);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 400;
  margin: 0;
}

.config-card__carpet { font-size: 21px; margin: -12px 0 0; }
.config-card__price { margin: 0; font-size: 18px; }

/* --------------------------------------------------------------------------
   Films
   -------------------------------------------------------------------------- */

.films__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

/* --------------------------------------------------------------------------
   Floor plans carousel
   -------------------------------------------------------------------------- */

.floorplans { background: var(--pp-secondary); padding: 90px 0 100px; }

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel__viewport { flex: 1; overflow: hidden; }

.carousel__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.carousel__slide {
  flex: 0 0 33.3333%;
  padding: 0 1px;
}

.floorplan {
  background: var(--pp-white);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.floorplan img { max-height: 430px; width: auto; object-fit: contain; }

.floorplan__label {
  margin: 0;
  padding: 22px 12px;
  text-align: center;
  color: var(--pp-white);
  font-size: 19px;
}

.carousel__nav {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--pp-white);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.carousel__nav:hover { background: rgba(255, 255, 255, 0.24); }
.carousel__nav:disabled { opacity: 0.25; cursor: default; }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery__filters {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 44px;
}

.gallery__filter {
  border: 0;
  background: transparent;
  color: var(--pp-ink);
  font-size: 19px;
  font-weight: 500;
  padding: 12px 26px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.gallery__filter.is-active { background: var(--pp-primary); color: var(--pp-white); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery__item:hover img { transform: scale(1.06); }

.gallery__view {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(16, 60, 59, 0.55);
  color: var(--pp-white);
  font-size: 20px;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.3s;
}

.gallery__item:hover .gallery__view,
.gallery__view:focus-visible { opacity: 1; }

/* --------------------------------------------------------------------------
   Amenities
   -------------------------------------------------------------------------- */

.amenities__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 44px 20px;
}

.amenity { text-align: center; }

.amenity__icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  object-fit: contain;
  transition: transform 0.3s;
}

.amenity:hover .amenity__icon { transform: translateY(-5px) scale(1.08); }

.amenity__label {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Specifications
   -------------------------------------------------------------------------- */

.specs { background: var(--pp-cream); }

.specs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px 34px;
}

.specs__col { display: flex; flex-direction: column; gap: 46px; }

.spec { display: flex; gap: 22px; align-items: flex-start; }

.spec__icon { width: 66px; height: 66px; flex: 0 0 66px; object-fit: contain; }

.spec__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 400;
  font-family: var(--pp-font-head);
}

.spec__body ul { margin: 0; padding-left: 20px; }
.spec__body li { margin-bottom: 6px; }

/* --------------------------------------------------------------------------
   Contact / enquiry forms
   -------------------------------------------------------------------------- */

.contact { background: var(--pp-secondary); }

.enquiry { max-width: 800px; margin: 0 auto; }

.enquiry__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.enquiry input,
.enquiry textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  background: var(--pp-white);
  color: var(--pp-ink);
}

.enquiry textarea { resize: vertical; min-height: 190px; }

.enquiry input:focus,
.enquiry textarea:focus { outline: 2px solid var(--pp-primary); outline-offset: 1px; }

/* Inline validation — shown under the offending field, not as a native bubble */
.field-error {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: #ffb0a8;
  margin-top: -6px;
}

.field-error:empty { display: none; }

.enquiry input.is-invalid,
.enquiry textarea.is-invalid {
  border-color: #e0574a;
  box-shadow: 0 0 0 2px rgba(224, 87, 74, 0.18);
}

.enquiry--modal .field-error { color: #c0392b; }

/* After a successful send: hide the emptied fields and show only the confirmation,
   so a blank form never sits under a "Thank you" message. */
.enquiry.is-sent > *:not(.enquiry__status) { display: none; }

.enquiry.is-sent .enquiry__status {
  display: block;
  font-size: 18px;
  padding: 34px 20px;
  text-align: center;
}

.enquiry.is-sent .enquiry__status::before {
  content: "✓";
  display: block;
  font-size: 40px;
  line-height: 1;
  margin-bottom: 12px;
  color: #9fe3b0;
}

.enquiry--modal.is-sent .enquiry__status::before { color: var(--pp-secondary); }

.enquiry__actions { text-align: center; margin-top: 28px; }

.enquiry__status { text-align: center; margin: 16px 0 0; color: var(--pp-white); min-height: 1.6em; }
.enquiry__status.is-ok { color: #9fe3b0; }
.enquiry__status.is-error { color: #ffb0a8; }


/* --------------------------------------------------------------------------
   5 reasons
   -------------------------------------------------------------------------- */

.reasons__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
}

.reason__icon { width: 78px; height: 78px; margin-bottom: 26px; object-fit: contain; }

.reason__title {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 400;
  font-family: var(--pp-font-head);
}

.reason p { margin: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--pp-secondary); color: var(--pp-white); padding: 76px 0 0; }

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  text-align: center;
  align-items: start;
}

.site-footer h4 {
  font-family: var(--pp-font-head);
  font-size: 25px;
  font-weight: 400;
  margin: 0 0 22px;
}

.site-footer p { margin: 0 0 12px; }
.site-footer a:hover { color: var(--pp-primary); }

.site-footer__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-bottom: 22px;
}

.site-footer__logos img:first-child { max-height: 96px; width: auto; }
.site-footer__logos img:last-child  { max-height: 74px; width: auto; }

.socials {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  font-size: 15px;
}

/* Underlined so it reads as a link against the plain footer text */
.rera-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.rera-link:hover { color: var(--pp-primary); }

.site-footer__qr { width: 130px; margin: 20px auto 0; background: #fff; padding: 6px; }

.site-footer__bar {
  margin-top: 60px;
  padding: 22px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Modal + lightbox
   -------------------------------------------------------------------------- */

.modal,
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }

.modal[hidden],
.lightbox[hidden] { display: none; }

.modal__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }

.modal__box {
  position: relative;
  z-index: 1;
  width: min(570px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--pp-white);
  padding: 38px 34px;
  border-radius: 10px;
}

.modal__title {
  margin: 0 0 22px;
  font-family: var(--pp-font-head);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  color: var(--pp-secondary);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--pp-secondary);
  color: var(--pp-white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.modal__close:hover { background: #000; }

.lightbox__close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
}

/* Modal form: bordered fields, full-width gold submit.
   Field metrics match the live Popup Maker form — 46px inputs, 44px button. */
.enquiry--modal { display: grid; gap: 14px; }

.enquiry--modal input,
.enquiry--modal textarea {
  border: 2px solid var(--pp-secondary);
  border-radius: 4px;
  padding: 10px 16px;
  line-height: 1.4;
}

.enquiry--modal textarea { min-height: 200px; }

.enquiry--modal .btn {
  width: 100%;
  padding: 13px 20px;
  font-size: 14px;
  line-height: 1.2;
}

/* No reserved space until there is something to say, so the box stays compact */
.enquiry--modal .enquiry__status {
  color: var(--pp-ink);
  min-height: 0;
  margin: 0;
}

.enquiry--modal .enquiry__status:empty { display: none; }

/* --------------------------------------------------------------------------
   Fixed call / enquire actions (bottom-left)
   -------------------------------------------------------------------------- */

.quick-actions {
  position: fixed;
  left: 22px;
  bottom: 24px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px 13px 15px;
  border: 0;
  border-radius: 999px;
  background: var(--pp-primary);
  color: var(--pp-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transition: background 0.2s, transform 0.2s;
}

.quick-action--call { background: var(--pp-secondary); }
.quick-action:hover { transform: translateY(-3px); }
.quick-action svg { width: 19px; height: 19px; flex: 0 0 19px; fill: currentColor; }

.lightbox { background: rgba(0, 0, 0, 0.9); padding: 40px; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox__close { color: #fff; top: 18px; right: 24px; font-size: 40px; }

/* --------------------------------------------------------------------------
   Back to top
   -------------------------------------------------------------------------- */

.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--pp-primary);
  color: var(--pp-white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.to-top.is-visible { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  .amenities__grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .nav a { font-size: 15px; }
  .btn { padding: 14px 22px; }

  .carousel__slide { flex-basis: 50%; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .specs__grid { grid-template-columns: repeat(2, 1fr); }
  .configs__grid { grid-template-columns: repeat(2, 1fr); }
  .reasons__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  :root { --pp-header-h: 76px; }

  .site-logo img { height: 56px; }
  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--pp-white);
    padding: 8px 20px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
    max-height: calc(100vh - var(--pp-header-h));
    overflow-y: auto;
    display: none;
  }

  .site-header.is-open .nav { display: flex; }

  .nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav .btn { margin-top: 16px; border-bottom: 0; text-align: center; }

  .section { padding: 60px 0; }

  .legacy__grid { grid-template-columns: 1fr; gap: 40px; }
  .legacy__copy p { max-width: none; }

  .trust__grid { grid-template-columns: 1fr; gap: 56px; }
  .trust__col { padding: 0; }
  .trust__col + .trust__col { border-left: 0; border-top: 1px solid rgba(176, 126, 80, 0.6); padding-top: 50px; }
  .trust__projects { grid-template-columns: repeat(3, 1fr); }

  /* Stack split panels, image first */
  .split { grid-template-columns: 1fr; }
  .split__media { min-height: 300px; order: -1; }
  .split__copy,
  .split--reverse .split__copy,
  .split:not(.split--reverse) .split__copy { padding: 50px 24px; }
  .split__copy p { max-width: none; }

  .films__grid { grid-template-columns: 1fr; }
  .floorplan { min-height: 380px; }
  .floorplan img { max-height: 330px; }
  .amenities__grid { grid-template-columns: repeat(4, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .carousel__slide { flex-basis: 100%; }
  .carousel__nav { width: 42px; height: 42px; font-size: 24px; }

  /* Quick actions become a full-width bar so they never cover content */
  .quick-actions {
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: row;
    gap: 0;
  }

  .quick-action {
    flex: 1;
    justify-content: center;
    border-radius: 0;
    box-shadow: none;
    padding: 16px 10px;
  }

  .quick-action:hover { transform: none; }

  .to-top { bottom: 78px; }
}

@media (max-width: 575px) {
  body { font-size: 16px; }

  .legacy__collage { gap: 14px; }
  .legacy__collage figure:nth-child(2),
  .legacy__collage figure:nth-child(4) { margin-top: 28px; }

  .configs__grid,
  .gallery__grid,
  .specs__grid,
  .reasons__grid,
  .enquiry__row { grid-template-columns: 1fr; }

  .amenities__grid { grid-template-columns: repeat(2, 1fr); gap: 34px 14px; }
  .trust__projects { grid-template-columns: repeat(2, 1fr); }
  .spec { gap: 16px; }
  .spec__icon { width: 52px; height: 52px; flex-basis: 52px; }
}
