/* ==========================================================================
   Chandak Sarvam — landing page styles
   Breakpoints: 1024px (single column), 860px (drawer nav), 640px (phone).
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
    --navy: #0f1c2e;
    --navy-2: #172a42;
    --navy-3: #0a1320;
    --gold: #b8925a;
    --gold-light: #d8c193;
    --gold-dark: #8c6c3c;
    --ivory: #f6f2ea;
    --warm-white: #fbf9f5;
    --cream: #f5f0e7;
    --charcoal: #1d1e20;
    --text: #2b2c2f;
    --muted: #6a6862;
    --line: rgba(29, 30, 32, .14);
    --line-strong: rgba(29, 30, 32, .3);
    --line-light: rgba(246, 242, 234, .16);
    --white: #fff;
    --error: #a33a2c;
    --success: #3f6b4f;
    --shadow: 0 30px 70px -30px rgba(10, 19, 32, .45);
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --fs-xs: .75rem;
    --fs-sm: .875rem;
    --fs-lead: clamp(1.02rem, .97rem + .3vw, 1.18rem);
    --fs-h2: clamp(1.85rem, 1.35rem + 1.8vw, 2.9rem);
    --fs-hero: clamp(2.3rem, 1.4rem + 3.3vw, 4.1rem);

    --section-y: clamp(3.5rem, 2.4rem + 4vw, 6rem);
    --gutter: clamp(1rem, .4rem + 2.6vw, 2.5rem);
    --container: 1280px;
    --header-h: 76px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--warm-white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; margin: 0; color: var(--charcoal); }
h2 { font-size: var(--fs-h2); line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }
h2 em, h1 em { font-style: normal; color: var(--gold-dark); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
h4 { font-size: 1.02rem; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.bg-cream { background: var(--cream); }
.bg-dark { background: var(--navy); }
.light, h2.light { color: var(--ivory); }
h2.light em { color: var(--gold-light); }
.light-text { color: rgba(246, 242, 234, .8); }
.muted { color: var(--muted); }
.center { text-align: center; }
.tiny { font-size: var(--fs-xs); opacity: .7; margin: 1.5rem 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Eyebrow: small gold caps behind a short rule */
.eyebrow { display: flex; align-items: center; gap: .75rem; width: fit-content; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 1.25rem; }
.eyebrow::before { content: ''; width: 2.25rem; height: 1px; background: currentColor; flex: none; }
.eyebrow.light { color: var(--gold-light); }

.section-head { text-align: center; max-width: 820px; margin: 0 auto clamp(2.25rem, 1.6rem + 2vw, 3.5rem); }
.section-head .eyebrow { margin-left: auto; margin-right: auto; }
.section-head h2 + .muted { margin: 1rem auto 0; max-width: 40rem; text-wrap: balance; font-size: var(--fs-lead); font-weight: 300; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.1rem; padding: .9rem 2rem; border: 1px solid transparent; border-radius: 0; font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; line-height: 1.2; text-align: center; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.btn-sm { min-height: 2.6rem; padding: .65rem 1.4rem; font-size: .7rem; }
.btn-block { display: flex; width: 100%; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-dark { background: var(--navy); color: var(--ivory); }
.btn-dark:hover { background: var(--navy-2); color: var(--gold-light); }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: var(--ivory); }
.btn[disabled] { opacity: .65; cursor: wait; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); display: flex; align-items: center; transition: background-color .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease); }
.site-header.scrolled { --header-h: 66px; background: var(--navy); box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; color: var(--ivory); }
/* Logo artwork is dark (#232020); render it white on the dark header/footer */
.brand-logo { height: 46px; width: auto; filter: brightness(0) invert(1); transition: height .3s var(--ease); }
.site-header.scrolled .brand-logo { height: 38px; }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a:not(.btn) { position: relative; color: var(--ivory); font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding-block: .4rem; }
.main-nav a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }
.main-nav .btn { margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ivory); margin: 6px 0; transition: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero {
    position: relative; display: flex; align-items: center;
    min-height: min(100svh, 940px);
    padding: calc(var(--header-h) + 2.5rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem);
    color: var(--ivory);
    background:
        linear-gradient(100deg, rgba(15, 28, 46, .94) 0%, rgba(15, 28, 46, .78) 45%, rgba(15, 28, 46, .4) 100%),
        url('../img/hero.webp'),
        var(--navy);
    background-size: cover; background-position: center;
}
.hero > .container { width: 100%; }
/* Copy is centred against the form; the form card stretches to the row height */
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.hero .eyebrow { color: var(--gold-light); margin-bottom: 1.75rem; }
.hero h1 { color: var(--ivory); font-size: var(--fs-hero); line-height: 1.06; margin-bottom: 1.1rem; }
.hero h1 em { display: block; color: var(--gold-light); }
.hero-sub { font-size: .82rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 2rem; }
.hero-points { list-style: none; padding: 0; margin: 0 0 2.5rem; display: flex; flex-wrap: wrap; gap: .7rem 2rem; max-width: 36rem; }
.hero-points li { position: relative; padding-left: 1.4rem; font-size: 1rem; font-weight: 300; color: rgba(246, 242, 234, .9); }
.hero-points li::before { content: ''; position: absolute; left: 0; top: .62em; width: .45rem; height: .45rem; border: 1px solid var(--gold-light); transform: rotate(45deg); }
.hero-price { display: flex; flex-direction: column; gap: .35rem; width: fit-content; padding-top: 1.4rem; border-top: 1px solid var(--line-light); }
.hero-price span { font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgba(246, 242, 234, .65); }
.hero-price strong { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--gold-light); }
.hero-price sup { font-size: .45em; margin-left: .1em; }

/* ---------- Cards and forms ---------- */
.card { background: var(--warm-white); color: var(--text); padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); border-top: 3px solid var(--gold); box-shadow: var(--shadow); }
.hero-form { display: flex; flex-direction: column; justify-content: center; padding: 1.75rem 2rem 1.9rem; }
.hero-form .form-head { margin-bottom: 1.1rem; }
.hero-form .form-fields { row-gap: .9rem; }
.hero-form .consent { margin-top: 1.15rem; }
.hero-form .js-submit { margin-top: 1.15rem; }
.form-head { display: grid; gap: .3rem; margin-bottom: 1.4rem; }
.form-head .eyebrow { margin-bottom: .6rem; }
.form-head h3 { font-size: 1.3rem; }
.form-head .muted { font-size: var(--fs-sm); margin: 0; }

.lead-form { display: grid; }
.form-fields { display: grid; gap: 1.1rem; }
/* Split: Mobile and Email share a row */
.lead-form--split .form-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.25rem; }
.lead-form--split .field--name, .lead-form--split .field--msg { grid-column: 1 / -1; }
.field { display: grid; gap: .2rem; min-width: 0; align-content: start; }
.field > label { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--charcoal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req { color: var(--gold-dark); }
.lead-form input[type=text], .lead-form input[type=email], .lead-form input[type=tel] {
    width: 100%; height: 2.5rem; padding: 0; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
    background: transparent; font-size: .95rem; color: var(--charcoal); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.lead-form ::placeholder { color: #a29e95; }
.lead-form input:focus { outline: none; border-bottom-color: var(--gold); box-shadow: 0 1px 0 0 var(--gold); }
.lead-form input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px var(--warm-white) inset; }
.lead-form .invalid { border-bottom-color: var(--error) !important; box-shadow: 0 1px 0 0 var(--error) !important; }
.phone-wrap { display: flex; align-items: stretch; border-bottom: 1px solid var(--line-strong); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.phone-wrap span { display: flex; align-items: center; flex: none; padding-right: .7rem; margin-right: .7rem; border-right: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.lead-form .phone-wrap input { border-bottom: 0; box-shadow: none; }
.phone-wrap:focus-within { border-bottom-color: var(--gold); box-shadow: 0 1px 0 0 var(--gold); }
.phone-wrap:has(.invalid) { border-bottom-color: var(--error); box-shadow: 0 1px 0 0 var(--error); }
.lead-form .phone-wrap .invalid { box-shadow: none !important; }
.err { display: block; color: var(--error); font-size: var(--fs-xs); line-height: 1.45; margin-top: .3rem; }
.err:empty { display: none; }

/* Consent: round checkbox, text collapsed to one line with Read more beneath */
.consent { display: grid; grid-template-columns: 1.15rem minmax(0, 1fr); column-gap: .75rem; align-items: start; margin: 1.4rem 0 0; }
.consent input { appearance: none; -webkit-appearance: none; width: 1.15rem; height: 1.15rem; margin: 0; border: 1.5px solid rgba(29, 30, 32, .45); border-radius: 50%; background: var(--white); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.consent input::before { content: ''; width: .3rem; height: .55rem; margin-top: -.1rem; border: solid var(--white); border-width: 0 1.75px 1.75px 0; transform: rotate(45deg) scale(0); transition: transform .15s var(--ease); }
.consent input:checked { background: var(--navy); border-color: var(--navy); }
.consent input:checked::before { transform: rotate(45deg) scale(1); }
.consent input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.consent-body { min-width: 0; }
/* First line of text centred on the 1.15rem circle */
.consent-text { display: block; padding-top: max(0px, calc((1.15rem - 1.55em) / 2)); font-size: .7rem; line-height: 1.55; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.consent-more { margin-top: .15rem; padding: 0; border: 0; background: none; font-size: .68rem; font-weight: 600; letter-spacing: .02em; color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.consent-more:hover { color: var(--charcoal); }
.consent.open .consent-text { white-space: normal; }
.err--consent { margin: .35rem 0 0 1.9rem; }
.lead-form .js-submit { margin-top: 1.4rem; }
.form-msg { margin: .8rem 0 0; font-size: var(--fs-sm); text-align: center; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--success); }
.form-msg.fail { color: var(--error); }
.alert { background: #f8e7e3; color: var(--error); padding: .7rem 1rem; font-size: var(--fs-sm); margin: 0 0 1rem; border-left: 3px solid var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Stats ---------- */
.stats { background: var(--navy-2); color: var(--ivory); padding: clamp(1.75rem, 1.4rem + 1vw, 2.5rem) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; }
.stats-grid div { display: grid; gap: .45rem; padding: .25rem 1rem; border-right: 1px solid var(--line-light); }
.stats-grid div:last-child { border-right: 0; }
.stats-grid strong { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); font-weight: 600; letter-spacing: -.02em; color: var(--gold-light); line-height: 1; }
.stats-grid span { font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(246, 242, 234, .7); }

/* Project images (official renders, hosted in assets/img/) */
.img-elevation { background-image: url('../img/elevation.webp'); }
.img-elevation-wide { background-image: url('../img/hero.webp'); background-position: center 40% !important; }
.img-living    { background-image: url('../img/living-room.webp'); }
.img-balcony   { background-image: url('../img/balcony.webp'); }
.img-pool      { background-image: url('../img/infinity-pool.webp'); }
.img-elevation, .img-elevation-wide, .img-living, .img-balcony, .img-pool { background-color: var(--navy-2); background-size: cover; background-position: center; }

/* ---------- Overview ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: center; }
/* Image stretches to the text height so both columns line up */
#overview .two-col { align-items: stretch; }
.overview-img { position: relative; min-height: 440px; margin: 0 1.5rem 1.5rem 0; }
.overview-img .zoom { position: absolute; inset: 0; box-shadow: var(--shadow); }
.overview-img::after { content: ''; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; border: 1px solid var(--gold); z-index: -1; transition: inset .5s var(--ease); }
.overview-img:hover::after { inset: 1rem -1rem -1rem 1rem; }
#overview h2 { margin-bottom: 1.4rem; }
#overview p { color: var(--muted); }
.highlight-list { margin: 1.75rem 0 2.25rem; display: grid; border-top: 1px solid var(--line); }
.hl { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0 1rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.hl-num { font-size: .75rem; font-weight: 600; letter-spacing: .2em; color: var(--gold-dark); }
.hl h4 { margin-bottom: .2rem; }
#overview .hl p { margin: 0; font-size: var(--fs-sm); }

/* Image hover zoom: the photo scales inside a fixed frame */
.zoom { overflow: hidden; }
.zoom::before { content: ''; position: absolute; inset: 0; background: inherit; background-size: cover; background-position: center; transition: transform .8s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.zoom:hover::before { transform: scale(1.06); }

/* ---------- Configurations ---------- */
.config-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 1rem + 1vw, 2rem); align-items: stretch; }
.config-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.config-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.config-card.featured { border-color: var(--gold); }
/* Blurred preview: the clear image is only shown in the popup */
.config-media { position: relative; display: block; width: 100%; height: 220px; padding: 0; border: 0; overflow: hidden; cursor: pointer; background: var(--navy-2); }
.config-media img { width: 100%; height: 100%; object-fit: cover; filter: blur(8px); transform: scale(1.12); transition: filter .3s; }
.config-media:hover img { filter: blur(6px); }
.unlock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; background: rgba(15, 28, 46, .4); color: var(--ivory); font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.unlock svg { width: 2.6rem; height: 2.6rem; padding: .7rem; border-radius: 50%; background: var(--gold); fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ribbon { position: absolute; top: 1rem; right: 1rem; z-index: 2; background: var(--gold); color: var(--navy); font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding: .45rem .8rem; }
.config-body { display: flex; flex-direction: column; flex: 1; padding: 1.75rem 1.75rem 1.9rem; }
.config-card h3 { font-size: 1.9rem; letter-spacing: -.02em; }
.config-body > .muted { margin: .35rem 0 1.25rem; font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); }
.config-card table { width: 100%; border-collapse: collapse; margin-bottom: 1.75rem; }
.config-card th { text-align: left; font-size: .65rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-bottom: .65rem; border-bottom: 1px solid var(--line-strong); }
.config-card td { text-align: left; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.config-card th:last-child, .config-card td:last-child { text-align: right; }
.config-card td:last-child { font-weight: 600; color: var(--charcoal); white-space: nowrap; }
.config-card sup { font-size: .6em; }
.config-body .btn { margin-top: auto; }
.jodi-note { margin-top: clamp(1.25rem, 1rem + 1vw, 2rem); padding: 1.6rem clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--navy); color: var(--ivory); display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; }
.jodi-note strong { font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); font-weight: 500; letter-spacing: -.01em; }

/* ---------- Amenities ---------- */
.amenity-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, .8rem + .8vw, 1.5rem); }
.amenity { background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.amenity:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.amenity-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream); }
.amenity-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.amenity:hover .amenity-img img { transform: scale(1.05); }
.amenity-label { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.15rem; }
.amenity svg { flex: none; width: 1.4rem; height: 1.4rem; fill: none; stroke: var(--gold-dark); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.amenity span { font-size: .92rem; font-weight: 500; color: var(--charcoal); line-height: 1.3; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 18vw, 290px); gap: clamp(.75rem, .5rem + .6vw, 1rem); }
.g-item { position: relative; overflow: hidden; cursor: pointer; }
.g-wide { grid-column: span 2; }
.g-item span { position: absolute; z-index: 1; inset: auto 0 0; padding: 4rem 1.5rem 1.4rem; color: var(--ivory); font-size: 1rem; font-weight: 500; background: linear-gradient(transparent, rgba(10, 19, 32, .85)); transition: padding .4s var(--ease); }
.g-item span::after { content: ''; display: block; width: 0; height: 1px; margin-top: .6rem; background: var(--gold-light); transition: width .4s var(--ease); }
.g-item:hover span { padding-bottom: 1.75rem; }
.g-item:hover span::after { width: 3rem; }
#gallery .tiny { color: rgba(246, 242, 234, .7); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .zoom::before, .g-item span, .g-item span::after, .overview-img::after, .config-card, .amenity, .amenity-img img { transition: none; }
}

/* ---------- Location ---------- */
.loc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto 1fr; gap: 0 clamp(2rem, 4vw, 4rem); }
.loc-tabs { display: flex; flex-wrap: wrap; gap: 0 1.4rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); grid-column: 1; }
.loc-tab { position: relative; padding: .9rem 0; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s; }
.loc-tab:hover { color: var(--charcoal); }
.loc-tab.active { color: var(--charcoal); border-bottom-color: var(--gold); }
.loc-list { display: none; list-style: none; margin: 0; padding: 0; grid-column: 1; grid-row: 2; }
.loc-list.active { display: block; }
.loc-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.loc-list span { color: var(--text); }
.loc-list strong { font-size: var(--fs-sm); font-weight: 600; color: var(--gold-dark); white-space: nowrap; }
.map { grid-column: 2; grid-row: 1 / span 2; min-height: 400px; box-shadow: var(--shadow); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 400px; border: 0; }

/* ---------- Enquire ---------- */
.enquire { background:
    linear-gradient(rgba(15, 28, 46, .92), rgba(15, 28, 46, .92)),
    url('../img/open-amenities.webp'),
    var(--navy); background-size: cover; background-position: center; }
/* Both columns start on one line: the eyebrow sits level with the form heading inside the card */
.enquire .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
.enquire-intro { padding-top: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); }
.enquire-intro h2 { margin-bottom: 1.25rem; }
.enquire .light-text { font-size: var(--fs-lead); font-weight: 300; max-width: 32rem; margin-bottom: 2rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; color: var(--ivory); }
.check-list li { position: relative; padding-left: 2.1rem; }
.check-list li::before { content: ''; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border: 1px solid var(--gold-light); border-radius: 50%; }
.check-list li::after { content: ''; position: absolute; left: .47rem; top: calc(.2em + .3rem); width: .32rem; height: .58rem; border: solid var(--gold-light); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-3); color: rgba(246, 242, 234, .7); padding: clamp(3rem, 2.4rem + 2vw, 4.5rem) 0 2rem; font-size: var(--fs-sm); text-align: center; }
.footer-top { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding-bottom: 2rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--line-light); }
.site-footer .brand-logo { height: 56px; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin: 0; font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.footer-meta span + span { padding-left: 1.5rem; border-left: 1px solid var(--line-light); }
/* Disclaimer spans the full container width */
.disclaimer { width: 100%; margin: 0 0 1.75rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--line-light); font-size: .74rem; line-height: 1.75; text-align: left; }
.disclaimer p { margin: 0; color: rgba(246, 242, 234, .6); }
.disclaimer strong { color: rgba(246, 242, 234, .85); font-weight: 600; }
.disclaimer [hidden] { display: none; }
.read-more { display: inline; margin-left: .35rem; white-space: nowrap; color: var(--gold-light); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.read-more:hover { color: var(--ivory); }
.clamp { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; }
.clamp.is-open { display: block; -webkit-line-clamp: unset; line-clamp: none; }
.clamp + .read-more { display: inline-block; margin: .35rem 0 0; }
.disclaimer-label { margin: 0 0 .6rem; font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.disclaimer-body p + p { margin-top: .75rem; }
.disclaimer-body a { color: rgba(246, 242, 234, .85); text-decoration: underline; text-underline-offset: 3px; }
.disclaimer-body:not(.is-open) p:not(:first-child) { display: none; }
.disclaimer-body:not(.is-open) p:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disclaimer-body + .read-more { display: inline-block; margin: .6rem 0 0; }
.copy { margin: 0; font-size: var(--fs-xs); color: rgba(246, 242, 234, .55); }
.copy a { color: rgba(246, 242, 234, .85); text-decoration: underline; text-underline-offset: 3px; }
.copy a:hover { color: var(--gold-light); }

/* ---------- Popup ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 19, 32, .78); backdrop-filter: blur(3px); animation: fade .3s var(--ease); }
.modal-box { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 2rem); overflow-y: auto; overflow-x: hidden; background: var(--warm-white); border-top: 3px solid var(--gold); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); animation: pop .35s var(--ease); }
.modal-content { padding: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.modal-close { position: absolute; top: .75rem; right: .75rem; z-index: 2; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; color: var(--muted); transition: color .2s, background-color .2s; }
.modal-close span, .modal-close span::after { display: block; width: 1.1rem; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.modal-close span::after { content: ''; transform: rotate(90deg); }
.modal-close:hover { color: var(--charcoal); background: rgba(29, 30, 32, .06); }
.modal-content .form-head { padding-right: 2rem; }
/* Residence popup: clear image beside the form */
.modal-box.has-media { max-width: 920px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.modal-box.has-media .modal-close { color: var(--muted); }
.modal-media { background: var(--navy-2); min-height: 100%; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Thank-you page ---------- */
.ty-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--warm-white); }
.ty-page .site-header { position: sticky; background: var(--navy); }
.ty-main { flex: 1; display: flex; align-items: center; padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0; }
.ty { max-width: 40rem; margin: 0 auto; }
.ty-icon { width: 3.5rem; height: 3.5rem; margin-bottom: 2rem; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; }
.ty-icon::before { content: ''; width: .55rem; height: 1rem; margin-top: -.2rem; border: solid var(--gold-dark); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.ty h1 { font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem); margin-bottom: 1.25rem; }
.ty .lead { font-size: var(--fs-lead); font-weight: 300; color: var(--charcoal); margin-bottom: .9rem; }
.ty-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.ty-page .site-footer { padding-top: 2rem; }

/* Mobile CTA */
.mobile-cta { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .hero { min-height: 0; }
    .hero-inner, .two-col, .enquire .two-col { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    /* Single column: centre the copy blocks and forms */
    .hero-copy, .two-col > div:not(.card):not(.overview-img) { text-align: center; align-items: center; }
    .hero-copy .eyebrow, .two-col .eyebrow { margin-left: auto; margin-right: auto; }
    .hero-points { justify-content: center; }
    .hero-price { margin: 0 auto; align-items: center; }
    .highlight-list { max-width: 30rem; margin-left: auto; margin-right: auto; text-align: left; }
    .check-list { width: fit-content; margin: 0 auto; text-align: left; }
    .enquire .light-text { margin-left: auto; margin-right: auto; }
    .enquire-intro { padding-top: 0; }
    .hero-form, .enquire .card { width: 100%; max-width: 560px; margin: 0 auto; }
    .amenity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .config-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .overview-img { min-height: 360px; }
}
@media (max-width: 860px) {
    .nav-toggle { display: block; position: relative; z-index: 60; }
    .main-nav { position: fixed; top: 0; right: 0; bottom: 0; width: 290px; flex-direction: column; align-items: flex-start; gap: 1.6rem; background: var(--navy); padding: 6rem 2rem 2rem; transform: translateX(100%); transition: transform .35s var(--ease); }
    .main-nav.open { transform: none; box-shadow: -20px 0 40px rgba(0, 0, 0, .35); }
    .main-nav .btn { margin: .5rem 0 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
    .loc-wrap { grid-template-columns: minmax(0, 1fr); }
    .loc-tabs { justify-content: center; }
    .map { grid-column: 1; grid-row: auto; margin-top: 2rem; }
    /* Flex rows so an incomplete last row (e.g. 25+) sits centred */
    .stats-grid { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 1.5rem; }
    .stats-grid div { flex: 0 0 33.333%; }
    .stats-grid div:nth-child(3) { border-right: 0; }
    .jodi-note { justify-content: center; text-align: center; }
}
@media (max-width: 640px) {
    body { font-size: 15px; padding-bottom: 56px; }
    :root { --header-h: 64px; }
    .section-head { margin-bottom: 2rem; }
    /* Mobile hero: the copy block carries the square elevation photo as its background, at least
       as tall as the photo's 1:1 shape so the building is not cropped; the form follows below. */
    .hero { display: block; padding: calc(var(--header-h) + .5rem) 0 2rem; background: var(--navy); }
    .hero-inner { gap: 1.75rem; }
    .hero-copy {
        margin: 0 calc(-1 * var(--gutter)); padding: 2rem var(--gutter); min-height: 100vw;
        background:
            linear-gradient(rgba(15, 28, 46, .55), rgba(15, 28, 46, .75)),
            url('../img/elevation.webp');
        background-size: cover; background-position: center;
    }
    .hero h1 { font-size: 2.2rem; }
    .hero-points { gap: .5rem 1.25rem; margin-bottom: 1.75rem; }
    .hero-points li { font-size: .95rem; }
    .lead-form--split .form-fields { grid-template-columns: minmax(0, 1fr); }
    .config-grid { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin: 0 auto; }
    .amenity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .amenity-label { padding: .8rem .9rem; gap: .6rem; }
    .amenity svg { width: 1.15rem; height: 1.15rem; }
    .amenity span { font-size: .82rem; }
    .modal-box.has-media { grid-template-columns: minmax(0, 1fr); }
    .modal-media { height: 200px; min-height: 0; }
    .brand-logo { height: 38px; }
    .site-header.scrolled .brand-logo { height: 34px; }
    .gallery-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 220px; }
    .g-wide { grid-column: auto; }
    .stats-grid div { flex-basis: 50%; border-right: 0; }
    .overview-img { margin: 0; }
    .overview-img::after { display: none; }
    .footer-meta span + span { padding-left: 0; border-left: 0; }
    .mobile-cta { display: grid; grid-template-columns: 1fr; position: fixed; inset: auto 0 0; z-index: 40; }
    .mobile-cta a, .mobile-cta button { padding: 1.05rem; text-align: center; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; border: 0; cursor: pointer; }
    .mobile-cta a { background: var(--navy); color: var(--ivory); }
    .mobile-cta button { background: var(--gold); color: var(--navy); }
}


/* ---------------------------------------------------------------
   Google Ads compliance: advertiser identity (added 21 Oct 2026)
   --------------------------------------------------------------- */
.site-header .brand { gap: 10px; text-decoration: none; }
.brand-tag { font-size: 11px; line-height: 1.25; letter-spacing: .02em; color: rgba(246, 242, 234, .72); max-width: 230px; }

.cps-disclosure {
    margin-top: var(--header-h);
    background: #fff8e6;
    border-bottom: 1px solid #e8d9a8;
    color: #4a3f20;
    font-size: 13px;
    line-height: 1.6;
    padding: 12px 20px;
    text-align: center;
}
.cps-disclosure a { color: #8a6d1f; text-decoration: underline; }

@media (max-width: 1024px) {
    .brand-tag { display: none; }
}

.cps-attribution { background: var(--cream); border-bottom: 1px solid var(--line); padding: .9rem 0; text-align: center; }
.cps-attribution p { margin: 0; font-size: var(--fs-xs); line-height: 1.65; color: var(--muted); }
.cps-attribution p + p { margin-top: .25rem; }
.cps-attribution strong { color: var(--text); font-weight: 600; }
.cps-attribution a { color: var(--gold-dark); text-decoration: underline; }

@media (max-width: 640px) {
    .cps-attribution { text-align: left; padding: .85rem 0; }
}

.site-footer .cps-disclosure {
    margin: 0 0 1.75rem;
    padding: 0 0 1.75rem;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line-light);
    color: rgba(246, 242, 234, .62);
    font-size: .74rem;
    line-height: 1.75;
    text-align: left;
}
.site-footer .cps-disclosure strong { color: rgba(246, 242, 234, .85); font-weight: 600; }
.site-footer .cps-disclosure a { color: rgba(246, 242, 234, .85); text-decoration: underline; }

.footer-meta { text-transform: none; letter-spacing: .04em; font-size: .75rem; }

/* Footer: logo + key facts */
.footer-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; width: 100%; margin: 0; text-align: left; }
.footer-facts dt { margin-bottom: .3rem; font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
.footer-facts dd { margin: 0; font-size: .85rem; font-weight: 500; line-height: 1.5; color: rgba(246, 242, 234, .9); }
.footer-facts small { display: block; margin-top: .15rem; font-size: .74rem; font-weight: 400; color: rgba(246, 242, 234, .6); }
@media (min-width: 900px) {
    .footer-top { flex-direction: row; justify-content: space-between; align-items: center; gap: 3rem; }
    .footer-facts { grid-template-columns: 1.6fr repeat(3, auto); width: auto; flex: 1; max-width: 860px; gap: 2.5rem; }
}
@media (max-width: 480px) {
    .footer-facts { grid-template-columns: minmax(0, 1fr); }
}

.footer-contact { width: 100%; margin: 0 0 1.75rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--line-light); font-size: .78rem; line-height: 1.8; }
.footer-contact h4 { margin: 0 0 .5rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(246, 242, 234, .85); }
.footer-contact p { margin: 0 0 .65rem; }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-links a { white-space: nowrap; }

@media (max-width: 640px) {
    .cps-disclosure { font-size: 12px; padding: 10px 14px; text-align: left; }
}

/* ---------- Legal pages (privacy-policy.php, terms-and-conditions.php) ---------- */
.legal { flex: 1; padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; }
.legal-card { max-width: 48rem; margin: 0 auto; }
.legal-card h1 { font-size: clamp(2rem, 1.6rem + 1.8vw, 3rem); margin-bottom: .5rem; }
.legal-card h2 { font-size: 1.15rem; margin: 2rem 0 .6rem; }
.legal-card p, .legal-card li { color: var(--text); }
.legal-card ul { padding-left: 1.25rem; }
.legal-card a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { font-size: var(--fs-xs); color: var(--muted) !important; margin-bottom: 1.5rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin: 0 0 1rem; font-size: .78rem; }
.footer-legal a { color: rgba(246, 242, 234, .85); text-decoration: none; }
.footer-legal a:hover { color: var(--gold-light); text-decoration: underline; }
