/* Smartworld Elie Saab — "Night tide" theme
   Deep harbour slates, sea-glass for every action, couture typography (Bodoni Moda + Jost). */

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/BodoniModa-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../fonts/Jost-latin.woff2") format("woff2");
}

/* Neither family draws the rupee sign, so it comes from a 700-byte Montserrat subset */
@font-face {
  font-family: "Bodoni Moda";
  font-display: swap;
  src: url("../fonts/Rupee.woff2") format("woff2");
  unicode-range: U+20B9;
}

@font-face {
  font-family: "Jost";
  font-weight: 300 500;
  font-display: swap;
  src: url("../fonts/Rupee.woff2") format("woff2");
  unicode-range: U+20B9;
}

:root {
  --harbour: #11202a;
  --slate: #1d323d;
  --slate-line: #2c4652;
  --ink: #0b1820;
  --sea-glass: #9dc0b9;
  --sea-glass-hover: #b7d4ce;
  --fog: #dde5e3;
  --pearl: #f3f6f5;
  --text-on-dark: #f3f6f5;
  --muted-on-dark: #a9bac0;
  --text-on-light: #11202a;
  --muted-on-light: #4a5e66;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 10vw, 136px);
  --header-h: 76px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--harbour);
  color: var(--text-on-dark);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--sea-glass);
  outline-offset: 3px;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--sea-glass);
  color: var(--harbour);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-y) 0;
}

.section-light {
  background: var(--pearl);
  color: var(--text-on-light);
}

.section-fog {
  background: var(--fog);
  color: var(--text-on-light);
}

.section-dark {
  background: var(--harbour);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head h2,
.section-title {
  font-size: clamp(2.25rem, 4.4vw, 3.6rem);
}

.section-head p {
  max-width: 54ch;
  margin: 0;
  color: var(--muted-on-dark);
}

.section-light .section-head p,
.section-fog .section-head p {
  color: var(--muted-on-light);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}

.btn-primary {
  background: var(--sea-glass);
  color: var(--harbour);
}

.btn-primary:hover {
  background: var(--sea-glass-hover);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn-ghost {
  border-color: currentColor;
  background: transparent;
}

.btn-ghost:hover {
  background: var(--harbour);
  border-color: var(--harbour);
  color: var(--pearl);
}

.section-dark .btn-ghost:hover,
.hero .btn-ghost:hover {
  background: var(--pearl);
  border-color: var(--pearl);
  color: var(--harbour);
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color 300ms var(--ease), box-shadow 300ms var(--ease);
}

.site-header.is-scrolled {
  background: rgb(17 32 42 / 92%);
  box-shadow: 0 1px 0 var(--slate-line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.brand img {
  width: 128px;
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 28px;
}

.site-nav a {
  position: relative;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--text-on-dark);
}

.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--sea-glass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms var(--ease);
}

.site-nav ul a:hover::after,
.site-nav ul a:focus-visible::after {
  transform: scaleX(1);
}

.nav-call,
.nav-enquire {
  display: none;
}

.nowrap {
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-phone {
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.header-actions .btn {
  min-height: 44px;
  padding: 0 20px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.nav-toggle-lines {
  position: relative;
  width: 22px;
  height: 10px;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 250ms var(--ease), top 250ms var(--ease);
}

.nav-toggle-lines::before {
  top: 0;
}

.nav-toggle-lines::after {
  top: 8px;
}

.nav-open .nav-toggle-lines::before {
  top: 4px;
  transform: rotate(45deg);
}

.nav-open .nav-toggle-lines::after {
  top: 4px;
  transform: rotate(-45deg);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: max(680px, 100svh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  animation: hero-settle 2600ms var(--ease) both;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(17 32 42 / 88%) 0%, rgb(17 32 42 / 55%) 45%, rgb(17 32 42 / 10%) 100%),
    linear-gradient(0deg, rgb(17 32 42 / 95%) 0%, rgb(17 32 42 / 0%) 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 4fr);
  gap: 48px;
  align-items: end;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: clamp(48px, 7vw, 88px);
}

/* hero choreography: headline lines rise out of a mask, then details, divider and form follow */
.hero-line {
  clip-path: inset(-0.3em -0.5em -0.2em -0.5em);
}

.hero-line > span {
  animation: line-rise 1500ms 250ms var(--ease) both;
}

.hero-line + .hero-line > span {
  animation-delay: 420ms;
}

.hero-lede {
  animation: hero-rise 1100ms 750ms var(--ease) both;
}

.hero-facts > div {
  animation: hero-rise 1000ms 950ms var(--ease) both;
}

.hero-facts > div:nth-child(2) {
  animation-delay: 1030ms;
}

.hero-facts > div:nth-child(3) {
  animation-delay: 1110ms;
}

.hero-rera,
.hero-cta-mobile {
  animation: hero-rise 1000ms 1200ms var(--ease) both;
}

.hero-title {
  font-size: clamp(3.4rem, 8.6vw, 8.4rem);
  line-height: 0.9;
  letter-spacing: -0.028em;
}

.hero-title span {
  display: block;
}

.hero-title span + span {
  padding-left: 0.42em;
}

.hero-lede {
  max-width: 40ch;
  margin: 28px 0 32px;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-on-dark);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin: 0;
  padding-top: 24px;
  position: relative;
}

.hero-facts::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgb(243 246 245 / 22%);
  transform-origin: left;
  animation: line-draw 1600ms 800ms var(--ease) both;
}

.hero-facts div {
  min-width: 0;
}

.hero-facts dt {
  font-size: 0.85rem;
  color: var(--muted-on-dark);
}

.hero-facts dd {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
}

.hero-rera {
  margin: 20px 0 0;
  font-size: 0.85rem;
  color: var(--muted-on-dark);
}

.hero-cta-mobile {
  display: none;
}

@keyframes hero-settle {
  from {
    transform: scale(1.08);
  }

  to {
    transform: scale(1);
  }
}

@keyframes line-rise {
  from {
    opacity: 0;
    transform: translateY(110%);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes line-draw {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- forms ---------- */
.lead-panel {
  padding: clamp(28px, 3vw, 40px);
  background: rgb(29 50 61 / 78%);
  border: 1px solid rgb(243 246 245 / 12%);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: hero-rise 1300ms 900ms var(--ease) both;
}

.lead-title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.85rem;
  line-height: 1.15;
}

.lead-note {
  margin: 0 0 24px;
  font-size: 0.95rem;
  color: var(--muted-on-dark);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--muted-on-dark);
}

.field input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid rgb(243 246 245 / 22%);
  border-radius: var(--radius);
  background: rgb(11 24 32 / 45%);
  color: var(--text-on-dark);
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}

.field input::placeholder {
  color: rgb(169 186 192 / 70%);
}

.field input:hover {
  border-color: rgb(243 246 245 / 40%);
}

.field input:focus {
  outline: none;
  border-color: var(--sea-glass);
  background: rgb(11 24 32 / 65%);
}

.field input:focus-visible {
  outline: 2px solid var(--sea-glass);
  outline-offset: 1px;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 20px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted-on-dark);
}

.consent input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--sea-glass);
}

.lead-panel .btn,
.visit-form .btn,
.modal .btn {
  width: 100%;
}

/* ---------- overview ---------- */
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}

.overview-media {
  position: relative;
}

.overview-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.overview-media figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted-on-light);
}

.overview-copy h2 {
  font-size: clamp(2.25rem, 4.4vw, 3.6rem);
  margin-bottom: 28px;
}

.overview-copy p {
  max-width: 60ch;
  color: var(--muted-on-light);
}

.overview-copy p a {
  color: var(--text-on-light);
  text-decoration-color: var(--sea-glass);
  text-underline-offset: 3px;
}

.overview-copy .btn {
  margin-top: 16px;
}

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(180px, 20vw, 280px);
  gap: 12px;
}

.gallery-item {
  position: relative;
  grid-column: span 2;
  overflow: hidden;
  background: var(--slate);
}

.gallery-item--feature {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery-item a {
  display: block;
  height: 100%;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}

.gallery-item a:hover img,
.gallery-item a:focus-visible img {
  transform: scale(1.04);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 20px 16px;
  font-size: 0.9rem;
  background: linear-gradient(0deg, rgb(11 24 32 / 80%), rgb(11 24 32 / 0%));
  pointer-events: none;
}

.gallery-note {
  margin: 20px 0 0;
  font-size: 0.85rem;
  color: var(--muted-on-dark);
}

/* ---------- amenities ---------- */
.amenities {
  padding-top: 0;
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 20px;
}

.amenity img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* stock photography graded towards the night-tide palette */
  filter: saturate(0.78) contrast(1.04) brightness(0.96);
}

.amenity p {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.25;
}

/* ---------- floor plans ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  background: var(--pearl);
}

.plan-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 444 / 358;
}

.plan-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(0.7);
  transform: scale(1.06);
}

.plan-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(17 32 42 / 28%);
}

.plan-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  padding: 22px 22px 24px;
}

.plan-body h3 {
  font-size: 1.5rem;
}

.plan-body .btn {
  margin-top: auto;
  min-height: 46px;
  color: var(--text-on-light);
}

/* ---------- prices ---------- */
.price-group + .price-group {
  margin-top: clamp(56px, 7vw, 88px);
}

.price-group h3 {
  margin-bottom: 20px;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th {
  padding: 0 16px 12px 0;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted-on-light);
  border-bottom: 1px solid rgb(17 32 42 / 25%);
}

.price-table td {
  padding: 22px 16px 22px 0;
  border-bottom: 1px solid rgb(17 32 42 / 12%);
  vertical-align: middle;
}

.price-table .price-type {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.2;
}

.price-table .price-value {
  font-family: var(--serif);
  font-size: 1.6rem;
  white-space: nowrap;
}

.price-table td:last-child {
  padding-right: 0;
  text-align: right;
}

.price-table .btn {
  min-height: 44px;
  padding: 0 20px;
}

.price-footnote {
  margin: 24px 0 0;
  font-size: 0.85rem;
  color: var(--muted-on-light);
}

/* ---------- location ---------- */
.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}

.location-map a {
  display: block;
  cursor: zoom-in;
}

.location-map img {
  width: 100%;
  border-radius: var(--radius);
}

.location-map figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted-on-dark);
}

.drive-list li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--slate-line);
}

.drive-list li:first-child {
  border-top: 1px solid var(--slate-line);
}

.drive-time {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.2;
  white-space: nowrap;
}

.drive-place {
  color: var(--muted-on-dark);
  align-self: center;
}

.location-subtitle {
  margin: 48px 0 16px;
  font-size: 1.5rem;
}

.neighbourhood-list li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--muted-on-dark);
}

.neighbourhood-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 10px;
  height: 1px;
  background: var(--sea-glass);
}

/* ---------- FAQ ---------- */
.faq_list {
  border-top: 1px solid rgb(17 32 42 / 22%);
}

.faq_item {
  border-bottom: 1px solid rgb(17 32 42 / 22%);
}

.faq_item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
}

.faq_item summary::-webkit-details-marker {
  display: none;
}

.faq_item summary::after {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--text-on-light), var(--text-on-light)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--text-on-light), var(--text-on-light)) center / 1.5px 100% no-repeat;
  transition: transform 250ms var(--ease);
}

.faq_item[open] summary::after {
  transform: rotate(45deg);
}

.faq_item summary:focus-visible {
  outline-offset: -2px;
}

.faq_question {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.3;
}

.faq_answer {
  padding: 0 48px 26px 0;
}

.faq_answer p {
  max-width: 72ch;
  margin: 0;
  color: var(--muted-on-light);
}

.faq_answer a {
  color: var(--text-on-light);
  text-decoration-color: var(--harbour);
  text-underline-offset: 3px;
}

/* ---------- site visit / developer ---------- */
.visit {
  background: var(--slate);
}

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(320px, 5fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}

.visit-copy h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 24px;
}

.visit-copy > p {
  max-width: 52ch;
  color: var(--muted-on-dark);
}

.visit-phone {
  display: inline-block;
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  text-decoration: none;
  border-bottom: 1px solid var(--sea-glass);
}

.developer {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 32px;
  border-top: 1px solid var(--slate-line);
}

.developer h3 {
  margin-bottom: 14px;
  font-size: 1.5rem;
}

.developer p {
  max-width: 64ch;
  font-size: 0.95rem;
  color: var(--muted-on-dark);
}

.visit-form {
  padding: clamp(28px, 3vw, 40px);
  background: var(--harbour);
  border: 1px solid var(--slate-line);
}

/* ---------- footer ---------- */
.site-footer {
  padding: 64px 0 40px;
  background: var(--ink);
  color: var(--muted-on-dark);
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--slate-line);
}

.footer-top strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-on-dark);
}

.footer-legal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}

.footer-legal a {
  color: var(--text-on-dark);
  text-underline-offset: 3px;
}

.footer-legal label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 1em;
}

.footer-legal input {
  flex-shrink: 0;
  margin-top: 4px;
  accent-color: var(--sea-glass);
}

.footer-legal strong {
  color: var(--text-on-dark);
  font-weight: 500;
}

/* ---------- mobile action bar ---------- */
.action-bar {
  display: none;
}

/* ---------- modal (replaces Bootstrap's modal CSS; behaviour still comes from bootstrap.min.js) ---------- */
.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

.modal-dialog {
  position: relative;
  width: auto;
  max-width: 880px;
  min-height: calc(100% - 3rem);
  margin: 1.5rem auto;
  display: flex;
  align-items: center;
  padding: 0 16px;
  pointer-events: none;
}

.modal.fade .modal-dialog {
  transform: translateY(24px);
  transition: transform 400ms var(--ease);
}

.modal.show .modal-dialog {
  transform: none;
}

.fade {
  transition: opacity 300ms linear;
}

.fade:not(.show) {
  opacity: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: var(--ink);
}

.modal-backdrop.show {
  opacity: 0.82;
}

.modal-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  width: 100%;
  overflow: hidden;
  background: var(--slate);
  border: 1px solid var(--slate-line);
  pointer-events: auto;
}

.modal-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding: 32px;
  isolation: isolate;
}

.modal-aside img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgb(17 32 42 / 92%) 10%, rgb(17 32 42 / 20%) 70%);
}

.modal-brand {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1.05;
}

.modal-aside p:last-child {
  margin: 0;
  color: var(--muted-on-dark);
}

.modal-body {
  padding: 40px 36px 32px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-on-dark);
  cursor: pointer;
}

/* ---------- thank-you page ---------- */
.thanks {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgb(17 32 42 / 92%) 20%, rgb(17 32 42 / 60%)),
    var(--harbour) url("../img/Elie-Saab-Hero-Image-1280.webp") center 30% / cover no-repeat;
}

.thanks-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  border: 1px solid var(--sea-glass);
  border-radius: 50%;
  color: var(--sea-glass);
}

.thanks h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 20px;
}

.thanks p {
  max-width: 46ch;
  font-size: 1.15rem;
  font-weight: 300;
}

.thanks .btn {
  margin-top: 16px;
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .site-nav ul {
    gap: 20px;
  }

  .header-phone {
    display: none;
  }
}

@media (max-width: 991px) {
  :root {
    --header-h: 68px;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .header-actions {
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    margin: 0;
    padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
    background: var(--harbour);
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms var(--ease), visibility 0s 300ms;
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transition: opacity 300ms var(--ease);
  }

  .site-nav ul {
    flex-direction: column;
    gap: 6px;
  }

  .site-nav ul a {
    font-family: var(--serif);
    font-size: clamp(2rem, 7vw, 2.8rem);
    letter-spacing: 0;
    line-height: 1.25;
  }

  .site-nav ul a::after {
    display: none;
  }

  .site-nav .nav-call {
    display: inline-block;
    font-size: 1.05rem;
    color: var(--sea-glass);
  }

  .site-nav .nav-enquire {
    display: inline-flex;
  }

  .nav-open {
    overflow: hidden;
  }

  .nav-open .site-header {
    background: var(--harbour);
    /* backdrop-filter would make the header the containing block of the fixed menu */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hero-grid,
  .overview-grid,
  .location-grid,
  .visit-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    display: block;
    min-height: 0;
  }

  .hero-grid {
    padding-top: calc(var(--header-h) + 34vh);
    gap: 40px;
  }

  .hero-media {
    height: 82svh;
    min-height: 520px;
  }

  .hero-veil {
    height: 82svh;
    min-height: 520px;
    background: linear-gradient(0deg, var(--harbour) 0%, rgb(17 32 42 / 75%) 30%, rgb(17 32 42 / 15%) 70%, rgb(17 32 42 / 55%) 100%);
  }

  .lead-panel {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--slate);
  }

  .amenity-grid,
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .modal-aside {
    min-height: 200px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 1rem;
    padding-bottom: 64px;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-cta-mobile {
    display: inline-flex;
    margin-top: 28px;
  }

  .hero-facts {
    gap: 14px 28px;
  }

  .hero-facts dd {
    font-size: 1.3rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 44vw;
    gap: 8px;
  }

  .gallery-item,
  .gallery-item--feature {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item--feature {
    grid-column: span 2;
  }

  .gallery-item figcaption {
    padding: 28px 12px 10px;
    font-size: 0.8rem;
  }

  .amenity-grid {
    gap: 28px 12px;
  }

  .amenity p {
    font-size: 1.1rem;
  }

  .plan-grid {
    gap: 12px;
  }

  .plan-body {
    padding: 16px;
  }

  .plan-body h3 {
    font-size: 1.2rem;
  }

  .plan-body .btn {
    padding: 0 12px;
    font-size: 0.85rem;
  }

  /* price table becomes stacked rows */
  .price-table thead {
    display: none;
  }

  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table td {
    display: block;
    width: 100%;
  }

  .price-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgb(17 32 42 / 12%);
  }

  .price-table td {
    padding: 0;
    border: 0;
  }

  .price-table td:last-child {
    grid-column: 1 / -1;
    text-align: left;
    margin-top: 12px;
  }

  .price-table .price-size {
    grid-column: 1;
    grid-row: 2;
    color: var(--muted-on-light);
    font-size: 0.92rem;
  }

  .price-table .price-value-cell {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    text-align: right;
  }

  .price-table .price-value {
    font-size: 1.35rem;
  }

  .price-table .btn {
    width: 100%;
  }

  .drive-list li {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 14px;
  }

  .drive-time {
    font-size: 1.25rem;
  }

  .faq_answer {
    padding-right: 0;
  }

  .footer-top,
  .footer-legal {
    grid-template-columns: minmax(0, 1fr);
  }

  .action-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    height: 64px;
    background: var(--ink);
    border-top: 1px solid var(--slate-line);
  }

  .action-bar a,
  .action-bar button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    background: none;
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    color: var(--text-on-dark);
    cursor: pointer;
  }

  .action-bar a + a {
    border-left: 1px solid var(--slate-line);
  }

  .action-bar .action-primary {
    background: var(--sea-glass);
    color: var(--harbour);
    font-weight: 500;
  }

  .modal-dialog {
    padding: 0 10px;
  }

  .modal-aside {
    display: none;
  }

  .modal-body {
    padding: 48px 22px 24px;
  }
}

/* ---------- motion ----------
   Hidden "before" states only apply once js/motion.js has added .motion to <html>
   and tagged an element with data-reveal, so content is never lost if scripts fail. */

/* header settles in on load */
.site-header {
  animation: header-in 1000ms 150ms var(--ease) both;
}

/* opacity only: a transform here would trap the fixed mobile menu inside the header */
@keyframes header-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* nav underline follows the section in view */
.site-nav ul a.is-active::after {
  transform: scaleX(1);
}

/* hero deepens as it scrolls away (desktop parallax sets --hero-p) */
.hero-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--harbour);
  opacity: calc(var(--hero-p, 0) * 0.6);
}

.hero-media,
.hero-copy {
  will-change: translate;
}

/* shared reveal: rise and fade */
.motion [data-reveal="up"] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 1000ms var(--ease) var(--reveal-delay, 0ms),
    transform 1200ms var(--ease) var(--reveal-delay, 0ms);
}

.motion [data-reveal="up"].is-revealed {
  opacity: 1;
  transform: none;
}

/* headings rise out of a mask, echoing the hero headline */
.motion [data-reveal="mask"] {
  clip-path: inset(-0.2em -0.3em -0.28em -0.3em);
}

.motion [data-reveal="mask"] .reveal-mask {
  display: block;
  opacity: 0;
  transform: translateY(115%);
  transition:
    opacity 900ms var(--ease) var(--reveal-delay, 0ms),
    transform 1300ms var(--ease) var(--reveal-delay, 0ms);
}

.motion [data-reveal="mask"].is-revealed .reveal-mask {
  opacity: 1;
  transform: none;
}

/* images are unveiled upward while they settle */
.motion [data-reveal="wipe"] {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1400ms var(--ease) var(--reveal-delay, 0ms);
}

.motion [data-reveal="wipe"].is-revealed {
  clip-path: inset(0 0 0 0);
}

.motion [data-reveal="wipe"] img,
.motion img[data-reveal="wipe"] {
  scale: 1.14;
  transition:
    clip-path 1400ms var(--ease) var(--reveal-delay, 0ms),
    scale 1800ms var(--ease) var(--reveal-delay, 0ms),
    transform 900ms var(--ease),
    filter 800ms var(--ease);
}

.motion [data-reveal="wipe"].is-revealed img,
.motion img[data-reveal="wipe"].is-revealed {
  scale: 1;
}

/* dividing lines draw themselves */
.motion .drive-list li[data-reveal] {
  position: relative;
  border-bottom-color: transparent;
}

.motion .drive-list li[data-reveal]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--slate-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1300ms var(--ease) calc(var(--reveal-delay, 0ms) + 150ms);
}

.motion .drive-list li[data-reveal].is-revealed::after {
  transform: scaleX(1);
}

.motion .visit-phone[data-reveal] {
  border-bottom-color: transparent;
  background: linear-gradient(var(--sea-glass), var(--sea-glass)) left bottom / 0 1px no-repeat;
  transition:
    opacity 1000ms var(--ease) var(--reveal-delay, 0ms),
    transform 1200ms var(--ease) var(--reveal-delay, 0ms),
    background-size 1200ms var(--ease) calc(var(--reveal-delay, 0ms) + 500ms);
}

.motion .visit-phone[data-reveal].is-revealed {
  background-size: 100% 1px;
}

/* primary buttons: a slow sheen on hover */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 45%) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 900ms var(--ease);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

/* amenities regain full colour on hover */
.amenity img {
  transition: filter 800ms var(--ease);
}

.amenity:hover img {
  filter: none;
}

/* floor plans: the blur eases as you approach */
.plan-media img {
  transition: filter 900ms var(--ease), transform 1200ms var(--ease);
}

.plan-card:hover .plan-media img {
  filter: blur(2.5px) saturate(0.85);
  transform: scale(1.1);
}

/* price rows */
.price-table tbody tr {
  transition: background-color 400ms var(--ease);
}

.price-table tbody tr:hover {
  background-color: rgb(17 32 42 / 3.5%);
}

/* FAQ: the question leans in on hover; answers open smoothly (height animated in motion.js) */
.faq_question {
  transition: transform 500ms var(--ease);
}

.faq_item summary:hover .faq_question {
  transform: translateX(6px);
}

.faq_answer {
  overflow: hidden;
}

/* gallery caption settles on hover */
.gallery-item figcaption {
  transition: transform 700ms var(--ease);
}

.gallery-item:hover figcaption {
  transform: translateY(-4px);
}

/* enquiry popup: the image settles as the dialog rises */
.modal .modal-aside img {
  transform: scale(1.1);
  transition: transform 1800ms var(--ease);
}

.modal.show .modal-aside img {
  transform: none;
}

/* mobile menu: links arrive one after another */
@media (max-width: 991px) {
  .site-nav li,
  .site-nav .nav-call,
  .site-nav .nav-enquire {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 500ms var(--ease), transform 700ms var(--ease);
  }

  .nav-open .site-nav li,
  .nav-open .site-nav .nav-call,
  .nav-open .site-nav .nav-enquire {
    opacity: 1;
    transform: none;
  }

  .nav-open .site-nav li:nth-child(1) { transition-delay: 80ms; }
  .nav-open .site-nav li:nth-child(2) { transition-delay: 130ms; }
  .nav-open .site-nav li:nth-child(3) { transition-delay: 180ms; }
  .nav-open .site-nav li:nth-child(4) { transition-delay: 230ms; }
  .nav-open .site-nav li:nth-child(5) { transition-delay: 280ms; }
  .nav-open .site-nav li:nth-child(6) { transition-delay: 330ms; }
  .nav-open .site-nav li:nth-child(7) { transition-delay: 380ms; }
  .nav-open .site-nav .nav-call { transition-delay: 450ms; }
  .nav-open .site-nav .nav-enquire { transition-delay: 500ms; }
}

/* printing must never capture a half-revealed page */
@media print {
  .motion [data-reveal],
  .motion [data-reveal] .reveal-mask,
  .motion [data-reveal] img {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    scale: 1 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
