/* Waterside Residences landing page
   Palette follows the Waterside Residences logo: charcoal, silver and warm white,
   with one calm water-green accent. */
:root {
  --ink: #2b2d30;
  --slate: #5b6066;
  --silver: #b9bdc1;
  --line: #d9dcde;
  --paper: #f6f6f4;
  --mist: #ecedeb;
  --white: #ffffff;
  --lake: #35645e;
  --wa: #0e7a44;
  --err: #b3261e;
  --display: "Marcellus", "Times New Roman", Georgia, serif;
  --text: "Jost", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --r: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--text);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: .005em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--lake); outline-offset: 3px; }
.hdr:not(.is-solid) :focus-visible, .hero-copy :focus-visible, .sec--dark :focus-visible, .ftr :focus-visible { outline-color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.5rem;
  border: 1px solid transparent; border-radius: var(--r);
  font: 500 1rem/1 var(--text); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--mist); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #0a6337; }
.btn--line { border-color: currentColor; color: inherit; background: transparent; }
.btn--line:hover { background: rgba(127, 127, 127, .15); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff; transition: background-color .25s, color .25s, box-shadow .25s; }
.hdr.is-solid { background: rgba(246, 246, 244, .97); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 68px; }
.logo { display: block; }
.logo img { height: 46px; width: auto; filter: brightness(0) invert(1); transition: filter .25s; }
.hdr.is-solid .logo img { filter: none; }
.nav { display: none; gap: 1.5rem; font-size: .95rem; }
.nav a { text-decoration: none; opacity: .92; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.hdr-cta { display: flex; gap: .6rem; align-items: center; }
.hdr-cta .btn { min-height: 42px; padding: .5rem 1.05rem; font-size: .95rem; }
.hdr-cta .btn--line { display: none; }
@media (max-width: 859px) { .hdr-cta .btn--wa { display: none; } }
@media (min-width: 640px) { .hdr-cta .btn--line { display: inline-flex; } }
@media (min-width: 1040px) { .nav { display: flex; } }

/* Hero */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(100svh, 940px); display: flex; flex-direction: column; justify-content: flex-end; background: #1e2124; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 72%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 22, 24, .78) 0%, rgba(20, 22, 24, .45) 52%, rgba(20, 22, 24, .12) 100%),
    linear-gradient(0deg, rgba(20, 22, 24, .7) 0%, rgba(20, 22, 24, 0) 38%);
}
.hero-main { display: grid; gap: 2.5rem; align-items: center; padding: 7.5rem 0 2rem; }
.hero-copy { max-width: 40rem; }
.hero-copy h1 { margin-bottom: 1.25rem; }
.lede { font-size: 1.15rem; line-height: 1.6; max-width: 34rem; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-form { display: none; }
@media (min-width: 1000px) {
  .hero-main { grid-template-columns: minmax(0, 1fr) 400px; gap: 4rem; padding-top: 6rem; }
  .hero-form { display: block; padding: 1.4rem 1.5rem; }
  .hero-form .form-sub { display: none; }
  .hero-form .form-title { margin-bottom: .8rem; font-size: 1.4rem; }
  .hero-form .field { margin-bottom: .6rem; }
  .hero-form .field input { padding: .62rem .8rem; }
  .hero-form .field textarea { min-height: 58px; }
  .hero-form .consent { font-size: .78rem; margin: .2rem 0 .8rem; }
  .hero-form .form-alt { margin-top: .6rem; }
  .hero-form .form-note { margin-top: .6rem; font-size: .76rem; }
}
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .28); }
.facts > div { padding: 1.1rem 1rem 1.2rem 0; }
.facts dt { font-size: .88rem; opacity: .8; margin-bottom: .2rem; }
.facts dd { margin: 0; font: 400 clamp(1.15rem, 2.2vw, 1.55rem)/1.25 var(--display); }
.hero-foot { font-size: .8rem; opacity: .75; padding-bottom: 1.4rem; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } .facts > div + div { padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, .2); } }

/* Sections */
.sec { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.sec--mist { background: var(--mist); }
.sec--dark { background: var(--ink); color: #f1f2f2; }
.sec-head { max-width: 44rem; margin-bottom: 2.5rem; }
.sec-head p { margin-top: 1rem; color: var(--slate); }
.sec--dark .sec-head p { color: #c9cccf; }
.note { font-size: .84rem; line-height: 1.55; color: var(--slate); }
.sec--dark .note { color: #b9bdc1; }
.cap { font-size: .8rem; color: var(--slate); margin-top: .5rem; }
.tag-link { display: inline-block; margin-top: 1.5rem; }
figure { margin: 0; }
.ph { border-radius: var(--r); overflow: hidden; background: var(--mist); }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* Lakeside */
.lake { display: grid; gap: 1rem; }
.lake-text { padding-bottom: 1.25rem; }
.lake-text p { margin-top: 1.1rem; color: var(--slate); max-width: 34rem; }
.lake .ph { aspect-ratio: 16 / 10; }
@media (min-width: 900px) {
  .lake { grid-template-columns: repeat(12, 1fr); gap: 1.25rem; align-items: start; }
  .lake-text { grid-column: 1 / 6; padding: 1rem 1rem 0 0; }
  .lake-a { grid-column: 6 / 13; }
  .lake-b { grid-column: 1 / 7; }
  .lake-c { grid-column: 7 / 13; }
}

/* Credentials */
.cred { display: grid; gap: 2.5rem; align-items: center; }
.cred .ph { aspect-ratio: 4 / 3; }
.rows { margin: 1.75rem 0 0; padding: 0; }
.rows > div { display: grid; gap: .2rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { font: 400 1.15rem/1.3 var(--display); }
.rows dd { margin: 0; color: var(--slate); font-size: 1rem; }
@media (min-width: 900px) {
  .cred { grid-template-columns: 5fr 6fr; gap: 4rem; }
  .rows > div { grid-template-columns: 11rem 1fr; gap: 1.5rem; }
}

/* Residences */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 1.05rem .75rem 1.05rem 0; text-align: left; border-top: 1px solid var(--line); vertical-align: baseline; }
.tbl thead th { font-weight: 500; font-size: .9rem; color: var(--slate); border-top: 0; padding-top: 0; }
.tbl tbody th { font: 400 1.2rem/1.3 var(--display); }
.tbl td.num { white-space: nowrap; }
.tbl td.price { font-weight: 500; white-space: nowrap; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 1px solid var(--line); }
.res-grid { display: grid; gap: 2rem; }
.res-grid > *, .cred > *, .loc > *, .club > *, .enq > *, .amen > *, .plan-panel > *, .lake > * { min-width: 0; }
.res-side { display: grid; gap: 1.25rem; align-content: start; }
.res-side .ph { aspect-ratio: 4 / 5; }
.plan-line { margin-top: 1.5rem; padding: 1.1rem 1.25rem; border-left: 3px solid var(--lake); background: var(--white); }
@media (max-width: 600px) {
  .tbl tbody th { font-size: 1.05rem; }
  .tbl th, .tbl td { padding: .9rem .5rem .9rem 0; }
  .tbl td.num { white-space: normal; }
}
@media (min-width: 980px) { .res-grid { grid-template-columns: 7fr 4fr; gap: 4rem; } }

/* Floor plans */
.tabs { display: flex; gap: 1.5rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 1.75rem; scrollbar-width: thin; }
.tab { flex: none; padding: .75rem 0; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font: 500 1rem/1.2 var(--text); color: var(--slate); cursor: pointer; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.plan-panel { display: grid; gap: 1.5rem; align-items: start; }
.plan-panel[hidden] { display: none; }
.plan-img { background: var(--white); border-radius: var(--r); padding: 1rem; border: 0; cursor: zoom-in; width: 100%; }
.plan-img img { margin: 0 auto; max-height: 72vh; width: auto; }
.plan-meta { display: grid; gap: .75rem; }
.plan-meta h3 { margin-bottom: .25rem; }
.spec { margin: 0; padding: 0; }
.spec > div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.spec dt { color: var(--slate); }
.spec dd { margin: 0; font-weight: 500; }
@media (min-width: 900px) { .plan-panel { grid-template-columns: 7fr 4fr; gap: 3rem; } }

/* Location */
.loc { display: grid; gap: 2rem; }
.loc-list { margin: 0; padding: 0; list-style: none; }
.loc-list li { padding: 1rem 0; border-top: 1px solid var(--line); }
.loc-list li:last-child { border-bottom: 1px solid var(--line); }
.loc-list strong { display: block; font: 400 1.15rem/1.3 var(--display); margin-bottom: .1rem; }
.loc-list span { color: var(--slate); }
.map { border-radius: var(--r); overflow: hidden; background: var(--mist); min-height: 320px; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }
@media (min-width: 900px) { .loc { grid-template-columns: 5fr 6fr; gap: 4rem; } .map iframe { min-height: 100%; } }

/* Amenities */
.amen { display: grid; gap: 2.5rem; }
.amen h3 { margin-bottom: 1rem; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: .7rem 0; border-top: 1px solid var(--line); }
.list li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .amen { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* Video facade */
.video { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1a1d21, #2c3035); border-radius: var(--r); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-btn { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; font: inherit; }
.video-btn img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s; }
.video-btn:hover img { opacity: .95; }
.play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center; border-radius: 50%; background: rgba(20, 22, 24, .72); border: 1px solid rgba(255, 255, 255, .7); }
.play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-label { position: absolute; left: 1rem; bottom: .9rem; font-size: .95rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }

/* Cascades */
.club { display: grid; gap: 2.5rem; align-items: center; }
.club p + p { margin-top: 1rem; }
.club-lede { font-size: 1.15rem; color: #dfe1e3; }
@media (min-width: 900px) { .club { grid-template-columns: 5fr 6fr; gap: 4rem; } }

/* Gallery */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-top: 2.5rem; }
.gitem { padding: 0; border: 0; background: var(--mist); border-radius: var(--r); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gitem:hover img { transform: scale(1.03); }
@media (min-width: 900px) {
  .gal { grid-template-columns: repeat(6, 1fr); gap: .8rem; }
  .gitem { grid-column: span 2; }
  .gitem--wide { grid-column: span 3; aspect-ratio: 16 / 9; }
}
dialog.lb { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; width: auto; overflow: visible; }
dialog.lb::backdrop { background: rgba(14, 16, 18, .9); }
.lb img { max-width: 94vw; max-height: 86vh; width: auto; height: auto; margin: 0 auto; border-radius: 2px; }
.lb-cap { color: #e3e5e6; text-align: center; font-size: .9rem; margin-top: .6rem; }
.lb-close { position: absolute; right: 0; top: -2.75rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lb-close:hover { background: rgba(255, 255, 255, .28); }

/* Enquire */
.enq { display: grid; gap: 2.5rem; align-items: start; }
.enq-text p { margin-top: 1rem; color: var(--slate); max-width: 30rem; }
.next { margin: 1.75rem 0 0; padding: 0; list-style: none; max-width: 30rem; }
.next li { padding: .85rem 0; border-top: 1px solid var(--line); }
.next li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .enq { grid-template-columns: 5fr 5fr; gap: 5rem; } }

/* Forms */
.card { background: var(--white); color: var(--ink); border-radius: var(--r); padding: 1.75rem; box-shadow: 0 18px 50px rgba(20, 22, 24, .18); }
.form-title { font: 400 1.55rem/1.2 var(--display); margin-bottom: .35rem; }
.form-sub { color: var(--slate); font-size: .98rem; margin-bottom: 1.1rem; }
.field { margin-bottom: .85rem; }
.field label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: .3rem; }
.field .opt { font-weight: 400; color: var(--slate); }
.field input, .field textarea { width: 100%; padding: .75rem .85rem; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--silver); border-radius: var(--r); }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { border-color: var(--lake); outline: 2px solid var(--lake); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--err); }
.field-err { color: var(--err); font-size: .85rem; margin-top: .25rem; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-size: .84rem; line-height: 1.5; color: var(--slate); margin: .4rem 0 1rem; }
.consent input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--ink); }
.lead-form .btn--primary { width: 100%; }
.form-status { font-size: .9rem; margin-top: .7rem; color: var(--err); }
.form-alt { margin-top: .8rem; text-align: center; font-size: .9rem; color: var(--slate); }
.form-alt a { color: var(--wa); font-weight: 500; }
.form-note { font-size: .8rem; color: var(--slate); margin-top: .9rem; line-height: 1.5; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.done h3 { margin-bottom: .6rem; }
.done p { color: var(--slate); margin-bottom: 1.1rem; }
.done .btn { width: 100%; }
[hidden] { display: none !important; }

/* Footer */
.ftr { background: #222427; color: #c9cccf; padding: 3.5rem 0 6.5rem; font-size: .92rem; }
.ftr-top { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.ftr .logo img { height: 52px; }
.ftr h3 { color: #fff; font-size: 1.1rem; margin-bottom: .6rem; }
.ftr p + p { margin-top: .75rem; }
.ftr-legal { padding-top: 1.75rem; font-size: .8rem; line-height: 1.65; color: #a5a9ad; max-width: 62rem; }
.ftr-legal p + p { margin-top: .8rem; }
.ftr-links { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.25rem; }
.ftr a { color: #e6e8e9; }
@media (min-width: 860px) { .ftr { padding-bottom: 3.5rem; } .ftr-top { grid-template-columns: 1fr 2fr; gap: 4rem; } }

/* Floating WhatsApp + mobile bar */
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 45; display: none; width: 58px; height: 58px; place-items: center; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
@media (min-width: 860px) { .wa-float { display: grid; } }
.mbar { position: fixed; inset: auto 0 0 0; z-index: 45; display: flex; gap: .6rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom, 0px)); background: rgba(246, 246, 244, .97); border-top: 1px solid var(--line); transition: transform .25s; }
.mbar .btn { flex: 1; min-height: 46px; padding: .6rem .8rem; }
.mbar.is-hidden { transform: translateY(110%); }
@media (min-width: 860px) { .mbar { display: none; } }
.devbar { position: fixed; left: .75rem; bottom: 4.9rem; z-index: 90; max-width: 260px; padding: .5rem .75rem; border: 0; text-align: left; cursor: pointer; background: var(--err); color: #fff; font: 400 .75rem/1.4 var(--text); border-radius: var(--r); }
@media (min-width: 860px) { .devbar { bottom: .9rem; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Map and video fallbacks */
.map-wrap { display: grid; gap: .9rem; align-content: start; }
.map-open { justify-self: start; }
.video-alt { margin: .75rem 0 0; font-size: .95rem; }
.video-alt a { color: inherit; }
.sec--dark .video-alt a, .video-alt--club a { color: #fff; }

/* Cascades Club gallery and facilities */
.club-gal { margin-top: 3rem; }
.club-fac { display: grid; gap: 1.75rem 2.5rem; margin-top: 3rem; grid-template-columns: 1fr; }
.club-fac h3 { font: 400 1.2rem/1.3 var(--display); margin-bottom: .6rem; }
.club-fac ul { list-style: none; margin: 0; padding: 0; }
.club-fac li { padding: .6rem 0; border-top: 1px solid rgba(255, 255, 255, .2); color: #dfe1e3; font-size: .98rem; }
@media (min-width: 640px) { .club-fac { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .club-fac { grid-template-columns: repeat(4, 1fr); } }

/* Construction update */
.prog { display: grid; gap: 2rem; }
.prog > * { min-width: 0; }
.prog-photos { display: grid; gap: .75rem; align-content: start; }
.prog-tbl td { width: 22%; }
.pct { display: block; position: relative; padding-bottom: .5rem; font-variant-numeric: tabular-nums; }
.pct::before, .pct::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 2px; }
.pct::before { width: 100%; background: var(--line); }
.pct::after { width: var(--p); background: var(--lake); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
address { font-style: normal; }
@media (min-width: 900px) { .prog { grid-template-columns: 5fr 6fr; gap: 3rem; align-items: start; } }

.prog-photos .gitem { aspect-ratio: 16 / 10; }
.ftr address { margin: 1rem 0; }

/* Mobile number with a fixed +91 prefix */
.phone-wrap { display: flex; align-items: stretch; background: var(--paper); border: 1px solid var(--silver); border-radius: var(--r); }
.phone-wrap .cc { display: grid; place-items: center; padding: 0 .75rem; color: var(--slate); border-right: 1px solid var(--line); }
.phone-wrap input { flex: 1; min-width: 0; border: 0; background: transparent; }
.phone-wrap input:focus { outline: none; }
.phone-wrap:focus-within { border-color: var(--lake); outline: 2px solid var(--lake); }
.phone-wrap:has([aria-invalid="true"]) { border-color: var(--err); }

.phone-wrap select { flex: none; width: auto; max-width: 46%; padding: 0 .4rem 0 .75rem; font: inherit; color: var(--ink); background: transparent; border: 0; border-right: 1px solid var(--line); border-radius: 0; cursor: pointer; }
.phone-wrap select:focus { outline: none; }
