/* =========================================================================
   The St. Regis Residences, Dubai Islands — stregisdubaiislands.com
   Palette: midnight ink, warm ivory, muted gold.
   Media panels use a layered gradient UNDER an optional photograph, so the
   page stays intentional-looking before real renders are dropped in.
   ========================================================================= */

:root {
  --ink:        #0a1017;
  --ink-2:      #101822;
  --ink-3:      #16202c;
  --ivory:      #f6f2ea;
  --sand:       #ece5d8;
  --sand-2:     #e2d9c7;
  --gold:       #c2a26a;
  --gold-deep:  #a8874c;
  --gold-pale:  #ddc9a0;
  --text:       #23282e;
  --text-soft:  #5b6470;
  --text-dark-soft: rgba(246, 242, 234, .72);
  --line:       rgba(35, 40, 46, .14);
  --line-dark:  rgba(246, 242, 234, .16);

  /* Single family across the page. --display is kept as a separate token so
     headings can be retuned without touching body copy. */
  --display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --sans:    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif:   var(--display);

  --wrap: 1560px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ------------------------------------------------------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--ivory); padding: .8rem 1.4rem;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Layout primitives ------------------------------------------ */

.wrap {
  width: min(100% - 3.5rem, var(--wrap));
  margin-inline: auto;
}

.narrow { width: min(100% - 3.5rem, 1040px); }

.section { padding: clamp(4.5rem, 9vw, 8.5rem) 0; }

.section-dark  { background: var(--ink); color: var(--ivory); }
.section-sand  { background: var(--sand); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.align-center { align-items: center; }
.align-start  { align-items: start; }

.center { text-align: center; }

/* ---------- Type -------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 1.1rem;
}

h2 { font-size: clamp(1.75rem, 3.3vw, 2.65rem); }
h3 { font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
h4 { font-size: 1rem; }

/* Geometric-sans italic reads weakly at display size, so the accent carries on
   colour rather than slant. */
h2 em, h1 em { font-style: normal; color: var(--gold-deep); }
.on-dark      { color: var(--ivory); }
.on-dark em   { color: var(--gold); }

p { margin: 0 0 1.15rem; }

.eyebrow {
  font-size: .74rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--gold-deep);
  margin: 0 0 1.2rem;
}
.eyebrow.light { color: var(--gold); }

.rule-gold {
  width: 68px; height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(194, 162, 106, 0));
  margin: 0 0 1.8rem;
}
.center-rule {
  margin-inline: auto;
  background: linear-gradient(90deg, rgba(194,162,106,0), var(--gold), rgba(194,162,106,0));
  width: 110px;
}

.section-lede {
  max-width: 60ch; margin-inline: auto;
  color: var(--text-soft);
}
.lede-dark { color: var(--text-dark-soft); max-width: 62ch; }
.center .lede-dark, .center .section-lede { margin-inline: auto; }

.micro {
  font-size: .82rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.on-dark-micro { color: rgba(246, 242, 234, .5); }

/* ---------- Buttons ----------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1.02rem 2.3rem;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background .4s var(--ease), color .4s var(--ease),
              border-color .4s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-pale); border-color: var(--gold-pale); }

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(246, 242, 234, .45);
}
.btn-ghost:hover { background: rgba(246, 242, 234, .1); border-color: var(--ivory); }

.btn-dark {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.btn-dark:hover { background: var(--ink-3); }

.btn-sm    { padding: .74rem 1.5rem; font-size: .7rem; letter-spacing: .16em; }
.btn-block { width: 100%; }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background .45s var(--ease), padding .45s var(--ease),
              box-shadow .45s var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 16, 23, .93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: .85rem 0;
  box-shadow: 0 1px 0 rgba(246, 242, 234, .1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* The supplied wordmark is black artwork on transparency, so it is forced to
   ivory for the dark header and footer. */
.brand { display: block; line-height: 0; }
.brand img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: height .45s var(--ease);
}
.site-header.scrolled .brand img { height: 40px; }

.nav-desktop { display: none; align-items: center; gap: 2.5rem; }
.nav-desktop a:not(.btn) {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: bold;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: .8;
  transition: opacity .3s var(--ease);
}
.nav-desktop a:not(.btn):hover { opacity: 1; }
.nav-desktop .btn {
  border-radius: 0;
  padding: 1rem 2.5rem;
  font-weight: 600;
  letter-spacing: .15em;
  color: var(--ink);
}
@media (min-width: 900px) { .nav-desktop { display: flex; } .nav-toggle { display: none; } }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: none;
  border: 0;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 1px;
  width: 26px;
  background: var(--ivory);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 6.5rem 1.5rem 3rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
  overflow-y: auto;
}
body.nav-open .nav-mobile { opacity: 1; visibility: visible; }
.nav-mobile a:not(.btn) {
  display: block;
  width: 100%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ivory);
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(246, 242, 234, 0.08);
  transition: color .3s var(--ease);
}
.nav-mobile a:not(.btn):hover { color: #fff; }
.nav-mobile .btn.btn-gold {
  background: #fff;
  color: #000;
  border-color: #fff;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  width: 100%;
  padding: 1.35rem;
  margin-top: 2rem;
}
.nav-mobile .btn.btn-gold:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.85);
  color: #000;
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem 0 5rem;
  background: var(--ink);
  overflow: hidden;
}

/* Every media panel on this page is built the same way: a solid background-color
   at the base, translucent gradient scrims above it, and the photograph as the
   bottom background-image layer. The scrims must stay translucent — an opaque
   colour stop would hide the photograph completely. With no photo present the
   background-color reads through and the panel still looks deliberate. */
.hero-media {
  position: absolute;
  inset: 0;
  background-color: #0a1017;
  /* Legibility is handled by .hero-veil below — keep this layer light so the
     render itself still reads. */
  background-image:
    radial-gradient(120% 90% at 78% 18%, rgba(194, 162, 106, .18) 0%, rgba(194, 162, 106, 0) 58%),
    url("../assets/images/hero/The-St.-Regis-Residences-hero.webp");
  background-size: cover, cover;
  background-position: center, center;
  transform: scale(1.04);
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.11) translate3d(0, -1.4%, 0); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  /* Vertical ramp for the header and the fold, plus a horizontal ramp so the
     headline and lede keep contrast over the bright water on the left. */
  background:
    linear-gradient(90deg, rgba(10,16,23,.82) 0%, rgba(10,16,23,.62) 34%, rgba(10,16,23,.12) 68%, rgba(10,16,23,0) 100%),
    linear-gradient(180deg, rgba(10,16,23,.72) 0%, rgba(10,16,23,.22) 34%, rgba(10,16,23,.48) 70%, rgba(10,16,23,.9) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  color: var(--ivory);
  line-height: 1.14;
  margin: 0 0 1.6rem;
  letter-spacing: -.025em;
}
.hero-title em { color: var(--gold); font-style: normal; }

.hero-place {
  font-size: .82rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 1.5rem;
}

.hero-lede {
  color: rgba(246, 242, 234, .92);
  font-size: clamp(.98rem, 1.15vw, 1.06rem);
  max-width: 52ch;
  margin-bottom: 2.4rem;
  text-shadow: 0 1px 18px rgba(6, 10, 15, .6);
}

/* The headline and place line sit over the brightest part of the render. */
.hero-title,
.hero-place { text-shadow: 0 2px 26px rgba(6, 10, 15, .55); }

/* Both CTAs share one width so the pair reads as a single block rather than
   two buttons sized by their label length. */
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-actions .btn {
  min-width: 260px;
  padding-inline: 1.5rem;
}

/* ---------- Media panels ----------------------------------------------- */

.media {
  position: relative;
  background-color: var(--ink-2);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}
.media::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(194, 162, 106, .34);
  pointer-events: none;
}
.media-portrait  { aspect-ratio: 4 / 5; }
.media-landscape { aspect-ratio: 4 / 3; }

/* No text sits over these, so the tint stays light. */
.media-overview {
  aspect-ratio: 4 / 3;
  background-color: #16242f;
  background-image:
    linear-gradient(165deg, rgba(20,40,60,.10) 0%, rgba(10,16,23,.16) 100%),
    url("../assets/images/The-St.-Regis-Residences-about.webp");
}
.media-location {
  aspect-ratio: 4 / 3;
  background-color: #16242f;
  background-image:
    linear-gradient(165deg, rgba(20,40,60,.10) 0%, rgba(10,16,23,.16) 100%),
    url("../assets/images/location/Regis-Residences-on-Dubai-Islands.jpg");
}

/* ---------- Pull quote -------------------------------------------------- */

.pull-quote {
  margin: 2.4rem 0 0;
  padding: 1.4rem 0 .2rem 1.6rem;
  border-left: 2px solid var(--gold);
}
.pull-quote p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: .8rem;
}
.pull-quote cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: .74rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-soft);
}

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

.legacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line-dark);
}
.legacy-item {
  padding: 2.6rem 1.8rem;
  border-left: 1px solid var(--line-dark);
}
.legacy-item:first-child { border-left: 0; }
.legacy-num {
  display: block;
  font-family: var(--serif);
  font-size: .9rem;
  letter-spacing: .2em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.legacy-item h3 { color: var(--ivory); font-size: 1.1rem; margin-bottom: .7rem; }
.legacy-item p  { color: var(--text-dark-soft); font-size: .93rem; margin: 0; }

/* ---------- Residences -------------------------------------------------- */

/* Three equal columns. Every card carries the same blocks in the same order —
   media, tag, title, rule, copy, meta, CTA — and the copy flexes so the meta row
   and CTA line up across all three regardless of description length. */
.res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.2vw, 2.2rem);
  align-items: stretch;
  /* margin-block only — a `margin` shorthand here would zero out the
     `margin-inline: auto` that .wrap relies on to centre the row. */
  margin-block: clamp(3rem, 6vw, 4.5rem) 0;
}

.res-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease),
              border-color .5s var(--ease);
}
.res-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color .5s var(--ease);
}
.res-card:hover {
  transform: translateY(-8px);
  border-color: rgba(194, 162, 106, .45);
  box-shadow: 0 30px 60px -34px rgba(10, 16, 23, .6);
}
.res-card:hover::after { border-color: rgba(194, 162, 106, .28); }

.res-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--ink-2);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Gold index numeral, set in the corner of each media panel. */
.res-num {
  position: absolute;
  left: 1.4rem;
  bottom: 1.1rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .3em;
  color: var(--gold-pale);
}
.res-media::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(246, 242, 234, .3);
  pointer-events: none;
}
/* Interior renders are bright and carry no overlaid text beyond the corner
   numeral, so the scrim is bottom-weighted only — a full wash would grey them
   out. */
.res-1 {
  background-color: #2b4256;
  background-image:
    linear-gradient(180deg, rgba(10,16,23,0) 52%, rgba(10,16,23,.58) 100%),
    url("../assets/images/residences/1.webp");
}
.res-3 {
  background-color: #3a5a72;
  background-image:
    linear-gradient(180deg, rgba(10,16,23,0) 52%, rgba(10,16,23,.58) 100%),
    url("../assets/images/residences/2.webp");
}
.res-ph {
  background-color: #1a2a3a;
  background-image:
    linear-gradient(180deg, rgba(10,16,23,0) 48%, rgba(10,16,23,.66) 100%),
    url("../assets/images/residences/3.webp");
}

.res-body {
  padding: clamp(1.8rem, 2.2vw, 2.4rem);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.res-tag {
  display: inline-block;
  font-size: .62rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: .8rem;
}
.res-tag.gold { color: var(--gold-deep); }

.res-card h3 { margin-bottom: 0; }

.res-rule {
  width: 42px;
  height: 1px;
  background: var(--gold);
  margin: 1.1rem 0 1.2rem;
}

.res-body p { font-size: .93rem; color: var(--text-soft); flex: 1; margin-bottom: 1.6rem; }

/* Three equal meta columns keep the row aligned card to card. */
.res-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.res-meta div { display: flex; flex-direction: column; }
.res-meta dt {
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.res-meta dd {
  margin: .35rem 0 0;
  font-family: var(--display);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
}

.res-cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  align-self: flex-start;
  margin-top: 1.6rem;
  padding-bottom: .35rem;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border-bottom: 1px solid rgba(194, 162, 106, .4);
  transition: color .35s var(--ease), border-color .35s var(--ease), gap .35s var(--ease);
}
.res-cta::after { content: "→"; font-size: .9rem; line-height: 1; }
.res-cta:hover { color: var(--text); border-color: var(--text); gap: .9rem; }

/* The penthouse card is the same shape as the others, distinguished by tone. */
.res-card-signature {
  background: var(--ink);
  border-color: rgba(194, 162, 106, .28);
}
.res-card-signature h3        { color: var(--ivory); }
.res-card-signature .res-body p { color: var(--text-dark-soft); }
.res-card-signature .res-meta { border-top-color: var(--line-dark); }
.res-card-signature .res-meta dt { color: rgba(246, 242, 234, .55); }
.res-card-signature .res-meta dd { color: var(--gold); }
.res-card-signature .res-cta { color: var(--gold); border-color: rgba(194, 162, 106, .5); }
.res-card-signature .res-cta:hover { color: var(--ivory); border-color: var(--ivory); }

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

/* Shared left-aligned section header, used by Amenities and Location. */
.sec-head, .amen-head { max-width: 900px; }
.sec-head h2, .amen-head h2 { margin-bottom: 1.4rem; }
.sec-lede, .amen-lede {
  font-size: clamp(.95rem, 1.15vw, 1.05rem);
  max-width: 68ch;
  margin: 0;
}
.amen-lede { color: var(--text-dark-soft); }
.sec-lede  { color: var(--text-soft); }

.eyebrow-rule::before {
  content: "";
  display: inline-block;
  width: 38px;
  height: 1px;
  background: var(--gold);
  margin-right: 1.1rem;
  vertical-align: middle;
}

.amen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.6rem, 4vw, 4rem) clamp(1.6rem, 2.4vw, 2.4rem);
  margin-block: clamp(3rem, 6vw, 4.5rem) 0;
}

.amen-card { display: flex; flex-direction: column; }

/* Source renders are 2.15:1 panoramas; 3/2 keeps the card close to the design
   proportion while cropping less off the sides than 4/3 would. */
.amen-media {
  position: relative;
  aspect-ratio: 3 / 2;
  background-color: var(--ink-2);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.amen-num {
  position: absolute;
  left: 1.1rem;
  bottom: .85rem;
  font-size: .66rem;
  font-weight: 400;
  letter-spacing: .28em;
  color: rgba(246, 242, 234, .8);
}

.amen-card h3 {
  margin: 1.5rem 0 1.2rem;
  color: var(--ivory);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -.015em;
}

.amen-items { list-style: none; margin: 0; padding: 0; }
.amen-items li {
  position: relative;
  padding: .78rem 0 .78rem 1.6rem;
  border-bottom: 1px solid rgba(246, 242, 234, .13);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, .68);
}
.amen-items li:first-child { border-top: 1px solid rgba(246, 242, 234, .13); }
.amen-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.32em;
  width: 9px;
  height: 1px;
  background: var(--gold);
}

/* Bottom-weighted scrim keeps the corner numeral legible; the colour wash stays
   translucent so a dropped-in photo reads through. */
/* Supplied renders: light, bright interiors/exteriors — only a bottom scrim, so
   the numeral stays legible without greying the image. */
.amen-arrival {
  background-color: #3a3026;
  background-image:
    linear-gradient(180deg, rgba(10,16,23,0) 58%, rgba(10,16,23,.6) 100%),
    url("../assets/images/amenities/arrival.webp");
}
.amen-pool {
  background-color: #235361;
  /* Anchored right so the Burj Khalifa skyline survives the crop. */
  background-position: right center;
  background-image:
    linear-gradient(180deg, rgba(10,16,23,0) 58%, rgba(10,16,23,.6) 100%),
    url("../assets/images/amenities/pool.webp");
}
.amen-spa {
  background-color: #35322a;
  background-image:
    linear-gradient(180deg, rgba(10,16,23,0) 58%, rgba(10,16,23,.6) 100%),
    url("../assets/images/amenities/wellness.webp");
}
.amen-dining {
  background-color: #40331f;
  background-image:
    linear-gradient(180deg, rgba(10,16,23,0) 58%, rgba(10,16,23,.6) 100%),
    url("../assets/images/amenities/dining.webp");
}

.amen-beach {
  background-color: #24485c;
  background-image:
    linear-gradient(180deg, rgba(10,16,23,0) 58%, rgba(10,16,23,.6) 100%),
    url("../assets/images/amenities/beach.jpg");
}
.amen-family {
  background-color: #262f3a;
  background-image:
    linear-gradient(180deg, rgba(10,16,23,0) 58%, rgba(10,16,23,.6) 100%),
    url("../assets/images/amenities/family.webp");
}

/* ---------- Location ---------------------------------------------------- */

/* Connectivity panel beside the map. Item styling mirrors the amenity lists so
   the two redesigned sections read as one system. */
.loc-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 3.5vw, 3.5rem);
  align-items: center;
  margin-block: clamp(3rem, 6vw, 4.5rem) 0;
}
.loc-panel h3 {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0;
}
.loc-map { margin-top: clamp(2.5rem, 4vw, 3.5rem); }

.dist-list {
  list-style: none;
  margin: 1.6rem 0 1rem;
  padding: 0;
  border-top: 1px solid var(--line);
}
.dist-list li {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: .95rem 0 .95rem 1.6rem;
  border-bottom: 1px solid var(--line);
}
.dist-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.55em;
  width: 9px;
  height: 1px;
  background: var(--gold-deep);
}
.dist-t {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.dist-v {
  font-family: var(--display);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--gold-deep);
  white-space: nowrap;
}

.map-wrap {
  position: relative;
  aspect-ratio: 21 / 9;
  border: 1px solid var(--line);
  background: var(--sand-2);
}
.map-wrap iframe {
  width: 100%; height: 100%; border: 0;
  filter: grayscale(.35) contrast(1.05);
  pointer-events: none;
}
.map-wrap.active iframe { pointer-events: auto; }
.map-activate {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 23, .28);
  color: var(--ivory);
  border: 0;
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: opacity .35s var(--ease);
}
.map-wrap.active .map-activate { opacity: 0; pointer-events: none; }



/* ---------- Enquiry ----------------------------------------------------- */

.enquire-section { scroll-margin-top: 90px; }
.enquire-grid { align-items: center; }

.enquire-benefits {
  list-style: none;
  margin: 1.8rem 0;
  padding: 0;
}
.enquire-benefits li {
  position: relative;
  padding: .6rem 0 .6rem 1.7rem;
  color: var(--text-dark-soft);
  font-size: .95rem;
  border-bottom: 1px solid rgba(246, 242, 234, .1);
}
.enquire-benefits li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.28em;
  width: 9px; height: 1px;
  background: var(--gold);
}

.enquiry-form {
  background: var(--ivory);
  padding: clamp(1.9rem, 3.5vw, 2.8rem);
  border: 1px solid rgba(194, 162, 106, .3);
}
.form-title {
  font-size: 1.22rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: .45rem;
}
.field label span[aria-hidden] { color: var(--gold-deep); }
.field .opt { letter-spacing: .06em; text-transform: none; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .82rem .9rem;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 300;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(35, 40, 46, .2);
  border-radius: 0;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6470' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 11px;
  padding-right: 2.4rem;
}
.field textarea { resize: vertical; min-height: 84px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(194, 162, 106, .18);
}

.phone-row { display: grid; grid-template-columns: 118px 1fr; gap: .55rem; }
.phone-row select { padding-right: 1.9rem; background-position: right .6rem center; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg { margin: .9rem 0 0; font-size: .86rem; min-height: 1.2em; }
.form-msg.err { color: #a5342c; }
.form-msg.ok  { color: #2f6a45; }

.form-fine {
  margin: 1rem 0 0;
  font-size: .74rem;
  line-height: 1.55;
  color: var(--text-soft);
}

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

.site-footer {
  background: var(--ink);
  color: var(--text-dark-soft);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-logo {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-blurb { margin-top: 1.2rem; font-size: .9rem; max-width: 42ch; }

.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: .55rem; }
.footer-nav h4, .footer-contact h4 {
  font-family: var(--sans);
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .7rem;
}
.footer-nav a { font-size: .9rem; transition: color .3s var(--ease); }
.footer-nav a:hover { color: var(--ivory); }
.footer-contact p { margin: 0; font-size: .9rem; }
.footer-contact a { color: var(--gold-pale); }

.footer-legal { padding-top: 2rem; }
.footer-legal p {
  font-size: .76rem;
  line-height: 1.65;
  color: rgba(246, 242, 234, .45);
}
.footer-legal strong { color: rgba(246, 242, 234, .68); font-weight: 400; }

/* ---------- Sticky CTA -------------------------------------------------- */

/* Mobile only — the desktop header already carries a persistent Register CTA,
   so a second fixed bar there is just lost viewport. Switched on at 860px. */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: rgba(10, 16, 23, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(194, 162, 106, .3);
  transform: translateY(110%);
  transition: transform .5s var(--ease);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .85rem 0;
}
.sticky-cta .btn { width: 100%; }

/* ---------- Modals ------------------------------------------------------ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 10, 15, .8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
  overflow-y: auto;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  position: relative;
  display: none;
  width: min(100%, 520px);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--ivory);
  border: 1px solid rgba(194, 162, 106, .35);
  padding: clamp(1.9rem, 4vw, 2.8rem);
}
.modal.active { display: block; }

.modal-close {
  position: absolute;
  top: .6rem; right: .9rem;
  background: none;
  border: 0;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--text-soft);
  padding: .2rem .4rem;
}
.modal-close:hover { color: var(--text); }

.modal .enquiry-form { background: none; border: 0; padding: 0; }
.modal-lede { font-size: .9rem; color: var(--text-soft); margin-bottom: 1.5rem; }

.modal-success { text-align: center; }
.success-mark {
  width: 62px; height: 62px;
  margin: .5rem auto 1.4rem;
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold-deep);
}
.modal-success h3 { font-size: 1.4rem; }
.modal-success p { color: var(--text-soft); margin-bottom: 1.6rem; }

/* ---------- Reveals ----------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

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

@media (max-width: 1080px) {
  .res-grid      { grid-template-columns: repeat(2, 1fr); }
  /* Odd card out spans both columns rather than leaving a gap. */
  .res-card:last-child { grid-column: span 2; }
  .legacy-grid   { grid-template-columns: repeat(2, 1fr); }
  .legacy-item:nth-child(3) { border-left: 0; }
  .legacy-item:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .invest-grid   { grid-template-columns: repeat(2, 1fr); }
  .amen-grid     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle  { display: flex; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-2 > div:first-child { order: 2; }
  .grid-2 > div:last-child  { order: 1; }
  .loc-grid { grid-template-columns: 1fr; }
  .enquire-grid > div:first-child { order: 1; }
  .enquire-grid > div:last-child  { order: 2; }

  .pay-grid { grid-template-columns: 1fr; }
  .pay-step { border-left: 0; border-top: 1px solid var(--line-dark); }
  .pay-step:first-child { border-top: 0; }


  .sticky-cta  { display: block; }
  .site-footer { padding-bottom: 6.5rem; } /* clears the fixed bar */

  .footer-top { grid-template-columns: 1fr; gap: 2.2rem; }
  .map-wrap { aspect-ratio: 4 / 3; }

  /* The horizontal readability ramp does nothing at narrow widths, so the
     vertical scrim has to carry the contrast on its own. */
  .hero-veil {
    background: linear-gradient(180deg,
      rgba(10,16,23,.88) 0%, rgba(10,16,23,.74) 40%,
      rgba(10,16,23,.76) 66%, rgba(10,16,23,.94) 100%);
  }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .res-grid, .amen-grid { grid-template-columns: 1fr; }
  .res-card:last-child { grid-column: span 1; }
  .legacy-grid { grid-template-columns: 1fr; }
  .legacy-item { border-left: 0; border-bottom: 1px solid var(--line-dark); }
  .invest-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-actions .btn { width: 100%; min-width: 0; }
  .faq-a p { padding-right: 1rem; }
}

/* ---------- Motion & print --------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-mobile, .sticky-cta, .modal-overlay, .map-wrap { display: none !important; }
  body { background: #fff; color: #000; }
  .section-dark { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
