/* ==========================================================================
   Boulevard Towers by Kohinoor — Landing Page Styles
   Palette: Deep Teal #07596B · Olive Green #59633E · Warm Taupe #B68F78 · Off-White #F4F2ED
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable) ---------- */
/* Montserrat — the brochure's primary typeface (variable, 300–700) */
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
    --teal: #07596B;
    --teal-dark: #04404D;
    --teal-deep: #032F39;
    --olive: #59633E;
    --taupe: #B68F78;
    --taupe-dark: #9C7660;
    --taupe-light: #E6D6CB;
    --offwhite: #F4F2ED;
    --cream: #FBFAF7;
    --ink: #1E2A2D;
    --muted: #5E6B6E;
    --line: rgba(7, 89, 107, .14);
    --error: #B3261E;

    --font-heading: "Montserrat", "Segoe UI", Roboto, Arial, sans-serif;
    --font-sans: "Montserrat", "Segoe UI", Roboto, Arial, sans-serif;

    --radius: 4px;
    --radius-lg: 12px;
    --shadow-sm: 0 4px 14px rgba(3, 47, 57, .08);
    --shadow: 0 16px 40px rgba(3, 47, 57, .14);
    --ease: cubic-bezier(.22, .61, .36, 1);
    --header-h: 80px;
    --section-y: clamp(40px, 4.5vw, 64px);
    --gutter: 20px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--offwhite);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.modal-open, body.nav-open, body.lb-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .25s; }
a:hover { color: var(--taupe-dark); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .45em; line-height: 1.15; font-weight: 500; }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--taupe); outline-offset: 3px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* Grid/flex children may shrink below their content width (prevents horizontal overflow) */
.overview-grid > *, .amenity-panel > *, .location-grid > *, .contact-grid > *, .tabs, .tab-list { min-width: 0; }

/* ---------- Typography helpers ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 12px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
    color: var(--olive); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow-light { color: var(--taupe-light); }
.center .eyebrow::after { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .7; }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.1rem);
    font-weight: 600; letter-spacing: -.01em; line-height: 1.25; color: var(--teal-deep); margin-bottom: 0;
    text-wrap: balance;
}
@media (min-width: 1024px) {
    .section-title { white-space: nowrap; }
}
.section-title em { font-style: normal; font-weight: 500; color: var(--taupe-dark); }
.lead { font-size: 1.1rem; color: var(--teal-dark); }
.note { font-size: 12.5px; color: var(--muted); }

.section { padding: var(--section-y) 0; position: relative; }
.section-head { margin-bottom: clamp(20px, 2.6vw, 32px); }
.section-head.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
    --bg: var(--teal); --fg: #fff; --bd: var(--teal);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 0 28px;
    font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
    color: var(--fg); background: var(--bg); border: 1px solid var(--bd); border-radius: var(--radius);
    transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(3, 47, 57, .18); color: var(--fg); }
.btn-primary:hover { --bg: var(--teal-dark); --bd: var(--teal-dark); }
.btn-taupe { --bg: var(--taupe); --bd: var(--taupe); }
.btn-taupe:hover { --bg: var(--taupe-dark); --bd: var(--taupe-dark); }
.btn-block { width: 100%; }
.btn-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 900; height: var(--header-h);
    transition: background .35s var(--ease), box-shadow .35s, height .35s;
}
.site-header::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(3,47,57,.6), rgba(3,47,57,0));
    transition: opacity .35s;
}
.site-header.is-scrolled {
    --header-h: 68px;
    background: rgba(244, 242, 237, .97);
    box-shadow: 0 6px 24px rgba(3, 47, 57, .08);
    backdrop-filter: saturate(140%) blur(10px);
}
.site-header.is-scrolled::before { opacity: 0; }
.header-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { position: relative; display: block; height: calc(var(--header-h) - 16px); flex-shrink: 0; transition: height .35s; }
.brand-logo { height: 100%; width: auto; transition: opacity .35s; }
.brand-logo--dark { position: absolute; inset: 0; opacity: 0; }
.is-scrolled .brand-logo--light { opacity: 0; }
.is-scrolled .brand-logo--dark { opacity: 1; }

.main-nav ul { display: flex; gap: clamp(16px, 2vw, 32px); }
.main-nav a {
    position: relative; display: block; padding: 8px 0;
    font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #fff;
}
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--taupe); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.is-scrolled .main-nav a { color: var(--teal-deep); }
.main-nav a.is-active { color: var(--taupe-light); }
.is-scrolled .main-nav a.is-active { color: var(--taupe-dark); }

/* Hamburger button (shown at 1100px and below) */
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid rgba(255,255,255,.55); border-radius: var(--radius); }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: #fff; transition: transform .35s var(--ease), opacity .25s, background .3s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.is-scrolled .nav-toggle { border-color: var(--line); }
.is-scrolled .nav-toggle span { background: var(--teal); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Sidebar CTAs ---------- */
.side-cta {
    position: fixed; right: 0; top: 50%; z-index: 800;
    display: flex; flex-direction: column; gap: 6px;
    transform: translateY(-50%);
}
.side-cta-btn {
    padding: 12px 8px; border: 0; border-radius: var(--radius) 0 0 var(--radius);
    color: #fff; box-shadow: 0 6px 16px rgba(3, 47, 57, .18);
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
    transition: none;
}
.side-cta-enquire, .side-cta-enquire:hover { background: var(--taupe); }
.side-cta-brochure, .side-cta-brochure:hover { background: var(--teal); }

/* ---------- Hero banner slider ---------- */
.hero { position: relative; overflow: hidden; background: var(--teal-deep); }
.hero-track { position: relative; aspect-ratio: 16 / 9; max-height: 100vh; max-height: 100svh; width: 100%; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-arrow {
    position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -24px;
    display: grid; place-items: center; padding: 0 0 4px;
    border: 1px solid rgba(255,255,255,.6); border-radius: 50%;
    background: rgba(3,47,57,.25); color: #fff; font-size: 30px; line-height: 1;
    backdrop-filter: blur(4px); transition: background .3s, border-color .3s;
}
.hero-arrow:hover { background: var(--taupe); border-color: var(--taupe); }
/* arrows sit bottom-right, away from the left-aligned headline */
.hero-arrow { top: auto; bottom: 22px; margin-top: 0; }
.hero-prev { right: 112px; }
.hero-next { right: 56px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.hero-dots button { width: 28px; height: 3px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.55); transition: background .3s, width .3s; }
.hero-dots button.is-active { width: 44px; background: var(--taupe); }

/* Banner headline — one static overlay across all slides */
.hero-copy {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none;
    padding: 160px 0 clamp(56px, 6vw, 84px);
    background: linear-gradient(0deg, rgba(3, 47, 57, .62) 0%, rgba(3, 47, 57, .28) 55%, rgba(3, 47, 57, 0) 100%);
}
.hero-tagline {
    margin: 0; color: #fff;
    font-size: clamp(2.2rem, 1.3rem + 3.2vw, 4.2rem); font-weight: 600; line-height: 1.08; letter-spacing: -.015em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}
.hero-tagline span { color: var(--taupe-light); font-weight: 500; }

/* Banner offer pill (opens the Enquire Now popup) */
.hero-offer-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: clamp(16px, 2vw, 24px); }
.hero-offer {
    pointer-events: auto; /* .hero-copy ignores clicks so the slider stays swipeable; the offer itself is clickable */
    display: inline-flex; align-items: center; gap: .4em;
    padding: 12px 22px; border: 0; 
    /* border-radius: 40px; */
    background: var(--taupe); color: #fff; box-shadow: 0 10px 26px rgba(3, 47, 57, .3);
    font-size: clamp(.82rem, .72rem + .35vw, 1rem); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.hero-offer strong { font-weight: 700; }

/* ---------- Overview ---------- */
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.overview-media { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.overview-media img { width: 100%; height: 100%; object-fit: cover; }
.overview-text p { color: #3c4a4d; }
.overview-facts { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 20px; border-top: 1px solid var(--line); }
.overview-facts li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.overview-facts li:nth-child(odd) { padding-right: 14px; border-right: 1px solid var(--line); }
.overview-facts li:nth-child(even) { padding-left: 20px; }
.overview-facts span { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.overview-facts strong { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--teal); }

/* ---------- Highlights ---------- */
.highlights { background: var(--cream); padding-bottom: 0; }
.highlight-grid { display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; }
.highlight-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s; }
.highlight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.hc-media { aspect-ratio: 4 / 3; overflow: hidden; }
.hc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.highlight-card:hover .hc-media img { transform: scale(1.07); }
.hc-body { padding: 18px 20px 20px; }
.hc-body h3 { font-family: var(--font-heading); font-size: 1.08rem; font-weight: 600; line-height: 1.35; color: var(--teal-deep); }
.hc-body sup { font-size: .55em; }
.hc-body p { color: var(--muted); font-size: 15px; }

.legacy-band { margin-top: var(--section-y); background: var(--teal); color: #fff; padding: 32px 0; }
.legacy-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 24px; align-items: center; }
.legacy-intro .eyebrow { margin-bottom: 8px; }
.legacy-intro p { font-family: var(--font-heading); font-size: 1.02rem; font-weight: 500; line-height: 1.5; }
.legacy-stat { border-left: 1px solid rgba(255,255,255,.2); padding-left: 20px; }
.legacy-stat strong { display: block; font-family: var(--font-heading); font-size: 2.1rem; line-height: 1.1; font-weight: 600; color: var(--taupe-light); }
.legacy-stat span { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.82); }

/* ---------- Tabs ---------- */
.tab-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0 auto 28px; padding: 5px; width: fit-content; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 60px; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border: 0; border-radius: 40px; background: transparent; font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); white-space: nowrap; transition: background .3s, color .3s; }
.tab:hover { color: var(--taupe-dark); }
.tab.is-active { background: var(--teal); color: #fff; }
.tab.is-active img { filter: brightness(0) invert(1); }
.tab-panel.is-active { animation: fadeUp .5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Amenities ---------- */
.amenity-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.amenity-collage { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(340px, 36vw, 470px); }
.ac-img { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.ac-img-1 { grid-row: 1 / 3; }
.ac-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ac-img:hover img { transform: scale(1.06); }
.ac-img figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; background: linear-gradient(0deg, rgba(3,47,57,.75), transparent); color: #fff; font-size: 13px; letter-spacing: .06em; }
.amenity-info h3 { font-family: var(--font-heading); font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); font-weight: 600; color: var(--teal-deep); }
.amenity-info > p { color: var(--muted); }
.amenity-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; margin-top: 14px; }
.amenity-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(89, 99, 62, .3); font-weight: 500; color: var(--teal-deep); }
.amenity-list img { flex-shrink: 0; width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: #fff; border: 1px solid var(--taupe-light); }

/* ---------- Gallery slider ---------- */
.gallery { background: var(--cream); }
.slider-btn { position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin-top: -23px; display: grid; place-items: center; padding: 0 0 4px; border: 0; border-radius: 50%; background: #fff; color: var(--teal); font-size: 30px; line-height: 1; box-shadow: var(--shadow); transition: background .3s, color .3s; }
.slider-prev { left: -18px; }
.slider-next { right: -18px; }
.slider-btn:hover { background: var(--teal); color: #fff; }
.slider-btn:disabled { opacity: .35; pointer-events: none; }
.gallery-slider { position: relative; }
.gallery-track {
    --per-view: 3; --gap: 16px;
    display: flex; gap: var(--gap);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
    position: relative; flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
    aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg);
    scroll-snap-align: start; background: var(--taupe-light);
}
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,47,57,.7), transparent 50%); }
.gallery-slide:hover img { transform: scale(1.07); }
.gallery-cap { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; color: #fff; font-family: var(--font-heading); font-size: 1rem; font-weight: 600; line-height: 1.3; }
.slider-progress { height: 2px; margin-top: 20px; background: var(--line); border-radius: 2px; overflow: hidden; }
.slider-progress span { display: block; height: 100%; width: 0; background: var(--taupe); transition: width .4s var(--ease); }

/* ---------- Floor plan ---------- */

/* ---------- Location ---------- */
.location { color: #fff; background: linear-gradient(rgba(3,47,57,.93), rgba(3,47,57,.93)), url("../images/location/location-bg.jpg") center / cover no-repeat; }
.location .section-title { color: #fff; }
.location .section-title em { color: var(--taupe-light); }
.location-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: stretch; }
.distance-panel { background: var(--offwhite); color: var(--ink); border-radius: var(--radius-lg); padding: 24px; }
.distance-panel .tab-list { justify-content: flex-start; margin: 0 0 12px; border-radius: var(--radius-lg); width: 100%; }
.tab-list-sm .tab { padding: 9px 13px; font-size: 11.5px; letter-spacing: .08em; }
.distance-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px dashed rgba(7,89,107,.2); }
.distance-list strong { flex-shrink: 0; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: var(--teal); line-height: 1; }
.distance-list small { font-family: var(--font-sans); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.site-address { display: flex; gap: 12px; margin-top: 16px; padding: 14px 16px; background: #fff; border-radius: var(--radius-lg); border-left: 3px solid var(--taupe); }
.site-address img { flex-shrink: 0; }
.site-address p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.site-address strong { display: block; color: var(--teal-deep); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 2px; }
.distance-panel .note { margin: 10px 0 0; }
.distance-panel .tab-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 2px; }
.distance-panel .tab-list::-webkit-scrollbar { display: none; }
.distance-panel .tab { flex: 0 0 auto; gap: 6px; padding: 8px 9px; font-size: 10.5px; letter-spacing: .04em; }
@media (min-width: 1101px) { .distance-panel .tab img { display: none; } }
.map-wrap { display: flex; flex-direction: column; gap: 10px; }
.map-frame { flex: 1; width: 100%; min-height: 400px; border: 0; border-radius: var(--radius-lg); background: var(--teal-dark); }
.map-link { align-self: flex-end; color: var(--taupe-light); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; }
.map-link:hover { color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.contact-panel { position: relative; display: flex; overflow: hidden; border-radius: var(--radius-lg); background: var(--teal-deep); color: #fff; box-shadow: var(--shadow); }
.contact-panel-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,47,57,.94) 30%, rgba(3,47,57,.55)); }
.contact-panel-body { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; padding: clamp(22px, 3.5vw, 36px); }
.contact-logo { width: 110px; margin-bottom: auto; padding-bottom: 24px; }
.contact-panel-body > p { color: rgba(255,255,255,.88); font-size: 1.05rem; }
.contact-points { display: grid; gap: 8px; margin: 14px 0 18px; }
.contact-points li { position: relative; padding-left: 26px; font-weight: 500; }
.contact-points li::before { content: ""; position: absolute; left: 0; top: 5px; width: 15px; height: 8px; border-left: 2px solid var(--taupe-light); border-bottom: 2px solid var(--taupe-light); transform: rotate(-45deg); }
.contact-meta { font-size: 12px; letter-spacing: .06em; color: rgba(255,255,255,.65); }
.contact-card { background: #fff; padding: clamp(22px, 3.5vw, 36px); border-radius: var(--radius-lg); box-shadow: var(--shadow); border-top: 4px solid var(--taupe); }
.contact-card h3 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; color: var(--teal-deep); }

/* ---------- Forms ---------- */
.enquiry-form { display: grid; gap: 14px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); }
.form-group label span { color: var(--taupe-dark); }
.enquiry-form input[type="text"], .enquiry-form input[type="tel"], .enquiry-form input[type="email"] {
    width: 100%; height: 48px; padding: 0 14px;
    font: inherit; font-size: 16px; color: var(--ink);
    background: var(--cream); border: 1px solid rgba(7, 89, 107, .2); border-radius: var(--radius);
    transition: border-color .25s, box-shadow .25s, background .25s;
    -webkit-appearance: none; appearance: none;
}
.enquiry-form input:focus { outline: none; border-color: var(--teal); background-color: #fff; box-shadow: 0 0 0 3px rgba(7, 89, 107, .12); }
/* Country picker (intl-tel-input) on the mobile fields */
.enquiry-form .iti { display: block; width: 100%; }
.enquiry-form .iti__selected-flag { background: var(--taupe-light); border-radius: var(--radius) 0 0 var(--radius); }
.enquiry-form .iti__selected-dial-code { color: var(--teal-deep); font-weight: 500; }
/* the country list must sit above the popups (z-index 1200) */
/* Country list: drawn on <body> (dropdownContainer), above the popups (.modal is 1200) */
.iti--container { z-index: 1310; font-family: var(--font-sans); }
.iti__country-list { max-width: min(340px, 88vw); max-height: 240px; border-radius: 8px; border-color: var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.iti__country { display: flex; align-items: center; white-space: nowrap; padding: 8px 12px; font-size: 14px; }
.iti__country-name { overflow: hidden; text-overflow: ellipsis; }
.iti__dial-code { flex-shrink: 0; }
.form-check { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; }
.form-check input[type="checkbox"] {
    -webkit-appearance: none; appearance: none; flex-shrink: 0;
    width: 16px; height: 16px; margin: 1px 0 0; cursor: pointer;
    border: 1.5px solid var(--teal); border-radius: 3px; background: #fff;
    display: grid; place-items: center;
}
.form-check input[type="checkbox"]::after { content: ""; width: 8px; height: 4px; margin-top: -2px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0); transition: transform .15s; }
.form-check input[type="checkbox"]:checked { background: var(--teal); }
.form-check input[type="checkbox"]:checked::after { transform: rotate(-45deg) scale(1); }
.form-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--taupe); outline-offset: 2px; }
.form-check label { margin: 0; font-size: 11.5px; line-height: 1.45; cursor: pointer; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--muted); }
/* Error messages written by assets/js/ajax-contact.js (it toggles display inline) */
.form-group label.error {
    display: none; margin: 4px 0 0; cursor: default;
    font-size: 12px; font-weight: 400; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--error);
}
.form-check label.error { grid-column: 1 / -1; }

/* ---------- Footer ---------- */
.site-footer { color: rgba(255,255,255,.8); font-size: 14.5px; }
.footer-top { padding: 52px 0 40px; background-color: var(--teal-deep); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1.4fr; gap: 32px; }
.footer-brand img { width: 130px; height: auto; margin-bottom: 14px; }
.footer-col h3 { font-family: var(--font-heading); font-size: 1.02rem; font-weight: 600; color: #fff; margin-bottom: 12px; }
.footer-col li { margin-bottom: 6px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--taupe-light); }
.rera-box { display: flex; gap: 16px; align-items: flex-start; }
.rera-box img { flex-shrink: 0; width: 110px; height: 110px; padding: 6px; background: #fff; border-radius: 6px; image-rendering: pixelated; }
.rera-box p { font-size: 13.5px; line-height: 1.5; margin-bottom: 8px; overflow-wrap: anywhere; }
.rera-no strong { color: var(--taupe-light); letter-spacing: .06em; font-size: 15px; }
.footer-bottom { background: #021F26; padding: 20px 0 22px; font-size: 12px; color: rgba(255,255,255,.55); }
.footer-bottom .disclaimer { line-height: 1.6; margin-bottom: 10px; }
.back-to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 820;
    display: grid; place-items: center; width: 46px; height: 46px;
    border-radius: 50%; background: var(--taupe); color: #fff;
    box-shadow: 0 8px 20px rgba(3, 47, 57, .28);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .3s, visibility .3s, transform .3s var(--ease), background .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--teal); color: #fff; }
.back-to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Mobile sticky bar ---------- */
.mobile-cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 850; display: none; padding-bottom: env(safe-area-inset-bottom); background: #fff; box-shadow: 0 -6px 20px rgba(3,47,57,.14); }
.mobile-cta-bar > * { flex: 1 1 50%; min-width: 0; display: flex; align-items: center; justify-content: center; height: 52px; padding: 0 8px; border: 0; background: var(--teal); color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.mobile-cta-bar .cta-primary { background: var(--taupe); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .35s var(--ease), visibility 0s linear .35s; }
.modal.is-open { visibility: visible; opacity: 1; transition: opacity .35s var(--ease); }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 31, 38, .72); backdrop-filter: blur(4px); }
.modal-dialog { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; width: 100%; max-width: 740px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); background: var(--offwhite); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); transform: translateY(24px) scale(.97); transition: transform .45s var(--ease); }
.modal.is-open .modal-dialog { transform: none; }
.modal-close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--teal); font-size: 26px; line-height: 1; transition: background .3s, color .3s, transform .3s; }
.modal-close:hover { background: var(--teal); color: #fff; transform: rotate(90deg); }
.modal-media { position: relative; min-height: 100%; }
.modal-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,47,57,.92), rgba(3,47,57,.1) 70%); }
.modal-media-text { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 1; color: #fff; }
.modal-media-text img { width: 110px; margin-bottom: 14px; }
.modal-media-text li { position: relative; padding-left: 16px; margin-bottom: 4px; font-size: 14px; color: rgba(255,255,255,.9); }
.modal-media-text li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 1px; background: var(--taupe-light); }
.modal-body { padding: 24px 26px 22px; overflow-y: auto; }
.modal-body .eyebrow { margin-bottom: 4px; font-size: 11px; }
.modal-body h2 { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 600; color: var(--teal-deep); margin-bottom: 14px; }
.modal-body .enquiry-form { gap: 10px; }
.modal-body .enquiry-form input:not([type="checkbox"]) { height: 44px; }
/* labels stay for screen readers; placeholders carry the visible hint */
.modal-body .form-group:not(.form-check) > label:not(.error) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.modal-body .form-group label.error { margin-top: 2px; }
.modal-body .btn { min-height: 46px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; background: rgba(2, 20, 25, .95); visibility: hidden; opacity: 0; transition: opacity .35s, visibility 0s linear .35s; }
.lightbox.is-open { visibility: visible; opacity: 1; transition: opacity .35s; }
.lb-figure { max-width: min(1400px, 90vw); text-align: center; }
.lb-figure img { max-width: 100%; max-height: 80vh; max-height: 80dvh; margin: 0 auto; border-radius: 6px; transition: opacity .3s; background: #fff; }
.lb-figure img.is-loading { opacity: .2; }
.lb-figure figcaption { display: flex; justify-content: space-between; gap: 20px; margin-top: 12px; color: rgba(255,255,255,.8); font-size: 14px; }
#lbCounter { color: var(--taupe-light); white-space: nowrap; }
.lb-close, .lb-nav { position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; border-radius: 50%; transition: background .3s; }
.lb-close:hover, .lb-nav:hover { background: var(--taupe); }
.lb-close { top: 16px; right: 16px; width: 46px; height: 46px; font-size: 30px; line-height: 1; }
.lb-nav { top: 50%; width: 52px; height: 52px; margin-top: -26px; font-size: 34px; line-height: 1; padding-bottom: 4px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lightbox.is-single .lb-nav, .lightbox.is-single #lbCounter { display: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
    .highlight-grid {
         /* grid-template-columns: repeat(2, 1fr);  */
        }
    .legacy-grid { grid-template-columns: repeat(4, 1fr); }
    .legacy-intro { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
    :root { --header-h: 68px; }
    /* backdrop-filter would trap the fixed menu drawer inside the header box, so drop it here */
    .site-header.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--offwhite); }
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed; top: 0; right: 0; bottom: 0; z-index: -1;
        width: min(340px, 86vw); padding: calc(var(--header-h) + 12px) 24px 24px;
        background: var(--offwhite); box-shadow: -20px 0 60px rgba(3,47,57,.2);
        overflow-y: auto; transform: translateX(100%); visibility: hidden;
        transition: transform .45s var(--ease), visibility 0s linear .45s;
    }
    .nav-open .main-nav { transform: none; visibility: visible; transition: transform .45s var(--ease); }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { color: var(--teal-deep) !important; padding: 13px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
    .main-nav a::after { display: none; }
    .main-nav a.is-active { color: var(--taupe-dark) !important; }
    .nav-open .site-header, .nav-open .site-header.is-scrolled { background: transparent; box-shadow: none; }
    .nav-open .site-header::before { opacity: 0; }
    /* hide the logo while the menu is open */
    .nav-open .brand { visibility: hidden; }
    .nav-open .nav-toggle { border-color: var(--line); }
    .nav-open .nav-toggle span { background: var(--teal); }
    .nav-backdrop { position: fixed; inset: 0; z-index: 850; background: rgba(2,31,38,.5); }

    .overview-grid, .amenity-panel, .contact-grid, .location-grid { grid-template-columns: 1fr; }
    .overview-media { aspect-ratio: 16 / 9; }
    .gallery-track { --per-view: 2; }
}

@media (max-width: 767px) {
    :root { --gutter: 16px; --header-h: 64px; --section-y: 44px; }
    body { font-size: 15.5px; padding-bottom: 54px; }
    .side-cta { display: none; }
    .mobile-cta-bar { display: flex; }
    .back-to-top { right: 14px; bottom: calc(66px + env(safe-area-inset-bottom)); width: 42px; height: 42px; }

    /* full screen above the sticky bottom bar */
    .hero-track { aspect-ratio: auto; height: calc(100vh - 52px); height: calc(100svh - 52px - env(safe-area-inset-bottom)); min-height: 520px; max-height: none; }
    /* vertically centred on the left/right edges (headline + offer sit at the bottom on phones) */
    .hero-arrow { width: 38px; height: 38px; top: 50%; bottom: auto; margin-top: -19px; font-size: 24px; padding-bottom: 3px; }
    .hero-prev { left: 12px; right: auto; }
    .hero-next { right: 12px; }
    .hero-dots { bottom: 14px; }
    .hero-copy { padding: 140px 0 48px; }
    .hero-tagline { font-size: clamp(2.2rem, 1.5rem + 3.4vw, 2.7rem); text-align: center; }
    .hero-offer-wrap { align-items: center; }
    .hero-offer { padding: 10px 16px; font-size: .74rem; letter-spacing: .05em; white-space: nowrap; }

    .section-title { font-size: clamp(1.3rem, 1rem + 2.2vw, 1.6rem); }
    .slider-btn { width: 38px; height: 38px; margin-top: -19px; font-size: 24px; }
    .slider-prev { left: 6px; }
    .slider-next { right: 6px; }

    .overview-facts li { padding: 10px 0; }
    .overview-facts li:nth-child(even) { padding-left: 14px; }
    .overview-facts strong { font-size: .95rem; }

    .highlight-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .hc-body { padding: 12px 12px 14px; }
    .hc-body h3 { font-size: .92rem; }
    .hc-body p { font-size: 13px; line-height: 1.5; }
    .legacy-band { padding: 30px 0; }
    .legacy-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
    .legacy-intro p { font-size: .95rem; }
    .legacy-stat { padding-left: 12px; }
    .legacy-stat strong { font-size: 1.7rem; }
    .legacy-stat span { font-size: 10.5px; }

    .tab-list { flex-wrap: nowrap; justify-content: flex-start; width: 100%; overflow-x: auto; scrollbar-width: none; border-radius: var(--radius-lg); margin-bottom: 20px; }
    .tab-list::-webkit-scrollbar { display: none; }
    .tab { flex: 0 0 auto; padding: 10px 16px; font-size: 11.5px; }
    .amenity-collage { height: 300px; gap: 8px; }
    .amenity-list { grid-template-columns: 1fr 1fr; gap: 0 10px; }
    .amenity-list li { gap: 8px; font-size: 13px; padding: 8px 0; }
    .amenity-list img { width: 30px; height: 30px; padding: 5px; }

    .gallery-track { --per-view: 1.15; --gap: 10px; }
    .gallery-cap { font-size: .92rem; }
    .slider-progress { margin-top: 14px; }

    .distance-panel { padding: 16px; }
    .distance-list li { padding: 9px 0; font-size: 14.5px; }
    .distance-list strong { font-size: 1rem; }
    .map-frame { min-height: 280px; }

    .contact-card h3 { font-size: 1.25rem; }
    .contact-grid { gap: 16px; }
    .contact-panel { min-height: 300px; }
    .contact-logo { width: 90px; }

    .footer-top { padding: 36px 0 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-brand img { width: 110px; }
    .rera-box img { width: 96px; height: 96px; }

    .modal { padding: 16px; place-items: center; }
    .modal-dialog { grid-template-columns: 1fr; grid-template-rows: auto 1fr; max-width: 420px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); border-radius: var(--radius-lg); }
    .modal-media { min-height: 0; height: 104px; }
    .modal-media::after { background: linear-gradient(90deg, rgba(3,47,57,.9), rgba(3,47,57,.35)); }
    .modal-media-text { left: 18px; right: 60px; top: 50%; bottom: auto; transform: translateY(-50%); }
    .modal-media-text img { width: 92px; margin: 0; }
    .modal-media-text ul { display: none; }
    .modal-body { padding: 18px 18px 18px; }
    .modal-body h2 { font-size: 1.3rem; margin-bottom: 12px; }
    .modal-body .enquiry-form { gap: 9px; }
    .modal-body .enquiry-form input:not([type="checkbox"]) { height: 44px; }

    .lb-nav { top: auto; bottom: 20px; margin: 0; width: 46px; height: 46px; }
    .lb-prev { left: calc(50% - 56px); }
    .lb-next { right: calc(50% - 56px); }
    .lb-figure { max-width: 94vw; }
    .lb-figure figcaption { padding: 0 4px 70px; font-size: 13px; }
}

@media (max-width: 380px) {
    .highlight-grid { grid-template-columns: 1fr; }
    .amenity-list { grid-template-columns: 1fr; }
    .mobile-cta-bar > * { font-size: 11px; letter-spacing: .03em; }
}

@media (max-width: 359px) {
    /* very narrow phones: let the offer wrap instead of overflowing */
    .hero-offer { white-space: normal; flex-wrap: wrap; justify-content: center; text-align: center; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}

@media print {
    .site-header, .side-cta, .mobile-cta-bar, .modal, .lightbox, .hero-arrow, .hero-dots { display: none !important; }
}
