/* Look: dark green-charcoal sections, off-white ground, sage accents, Figtree throughout. */
:root {
    --ink: #1D2622;          /* dark sections, headings */
    --ink-2: #27322D;        /* cards on dark */
    --bg: #FBFCFA;
    --tint: #F0F3EC;         /* alternate light sections */
    --line: #DCE2D7;
    --text: #2B3430;
    --muted: #66716B;
    --sage: #B5C99A;         /* buttons, highlights */
    --sage-deep: #5F7A48;    /* sage readable on light ground */
    --on-dark: #EDF1EA;
    --on-dark-muted: #A7B3AC;
    --danger: #B4442F;
    --radius: 14px;
    --font: "Figtree", "Segoe UI", Helvetica, Arial, sans-serif;
    --shadow: 0 18px 40px -24px rgba(16, 24, 20, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--font); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { display: grid; gap: 10px; margin-bottom: clamp(32px, 4vw, 48px); max-width: 640px; }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; max-width: none; }

.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); }
.eyebrow.on-dark { color: var(--sage); }
.lede { color: var(--on-dark-muted); font-size: 1.08rem; max-width: 58ch; margin-top: 18px; }
.lede-dark { color: var(--muted); max-width: 52ch; margin-block: 14px 24px; }
.fine { font-size: .82rem; color: var(--muted); margin-block: 12px 20px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 8px; border: 0; font: 600 .95rem var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-sage { background: var(--sage); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-block { width: 100%; margin-top: 20px; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.round-btn:hover { background: var(--sage); border-color: var(--sage); }

/* Image placeholders: shown until the real file is added in public/ */
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px;
      background: repeating-linear-gradient(135deg, #DDE4D6 0 12px, #E6ECE0 12px 24px); color: #4C5A51; border: 1px dashed #A9B7A3; }
.ph-label { font-weight: 600; font-size: .9rem; }
.ph-path { font-size: .72rem; font-family: ui-monospace, Consolas, monospace; opacity: .8; overflow-wrap: anywhere; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(251, 252, 250, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.logo img { height: 40px; width: auto; }
.logo-mark { width: 30px; height: 26px; background: var(--sage-deep); clip-path: polygon(50% 0, 100% 42%, 100% 100%, 64% 100%, 64% 62%, 36% 62%, 36% 100%, 0 100%, 0 42%); }
.site-nav { display: flex; align-items: center; gap: 26px; font-weight: 500; font-size: .95rem; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--text); }
.site-nav a:not(.btn):hover { color: var(--sage-deep); }
.nav-cta { padding: 11px 20px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--ink); margin: auto; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
    .site-nav.open { display: flex; }
    .site-nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
    .nav-cta { margin-top: 14px; }
}

/* Hero */
.hero { position: relative; isolation: isolate; background: var(--ink); color: #fff; min-height: clamp(560px, 86vh, 820px); display: flex; overflow: hidden; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; border: 0; }
.hero-media.ph { background: repeating-linear-gradient(135deg, #26302B 0 14px, #2C3731 14px 28px); color: var(--on-dark-muted); justify-content: flex-start; padding-top: 40%; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 24, 21, .62) 0%, rgba(18, 24, 21, .2) 45%, rgba(18, 24, 21, .78) 100%); }
.hero-inner { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-block: clamp(48px, 7vw, 88px) 40px; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6.4vw, 5.4rem); font-weight: 600; max-width: 15ch; margin-top: 14px; letter-spacing: -.035em; }
.hero-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

.advisor { display: flex; align-items: center; gap: 14px; }
.advisor > div { display: grid; line-height: 1.35; }
.advisor strong { font-weight: 600; }
.advisor span { font-size: .85rem; color: var(--on-dark-muted); }
.advisor a { text-decoration: none; font-weight: 600; color: var(--sage); }
.advisor-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid rgba(255, 255, 255, .25); }
.advisor-photo.ph { padding: 4px; }
.advisor-photo .ph-path { display: none; }
.advisor-lg { margin-top: 36px; padding: 18px; border-radius: var(--radius); background: var(--ink-2); max-width: 380px; }

.dream-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 14px; border-radius: var(--radius); background: rgba(29, 38, 34, .82); backdrop-filter: blur(8px); max-width: 480px; width: 100%; border: 1px solid rgba(255, 255, 255, .08); }
.dream-img { width: 150px; height: 100%; min-height: 150px; object-fit: cover; border-radius: 10px; }
.dream-img .ph-path { display: none; }
.dream-body { display: grid; align-content: center; gap: 6px; }
.dream-body h2 { color: #fff; font-size: 1.5rem; }
.dream-body p { color: var(--on-dark-muted); font-size: .95rem; }
.dream-body p strong { color: #fff; }
.dream-body .btn { justify-self: start; margin-top: 6px; padding: 10px 18px; }
.status { justify-self: start; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--sage); padding: 3px 10px; border-radius: 999px; }
@media (max-width: 520px) {
    .dream-card { grid-template-columns: 1fr; }
    .dream-img { width: 100%; height: 160px; }
}

/* Project switcher */
.switcher { background: var(--bg); padding-block: 28px; border-bottom: 1px solid var(--line); }
.switcher .eyebrow { margin-bottom: 14px; }
.switcher-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.switch-card { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: #fff; transition: border-color .2s, box-shadow .2s; }
.switch-card:hover { border-color: var(--sage-deep); box-shadow: var(--shadow); }
.switch-card[aria-current="page"] { background: var(--ink); border-color: var(--ink); }
.switch-card[aria-current="page"] .switch-name { color: #fff; }
.switch-card[aria-current="page"] .switch-meta, .switch-card[aria-current="page"] .switch-price { color: var(--on-dark-muted); }
.switch-card[aria-current="page"] .switch-city { color: var(--sage); }
.switch-city { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-deep); }
.switch-name { font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.switch-meta, .switch-price { font-size: .85rem; color: var(--muted); }
@media (max-width: 1080px) {
    .switcher-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
    .switch-card { flex: 0 0 220px; scroll-snap-align: start; }
}

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-grid h2 { margin-top: 10px; }
.rera { margin-top: 24px; font-size: .88rem; color: var(--on-dark-muted); }
.rera span { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: rgba(255, 255, 255, .1); border-radius: var(--radius); overflow: hidden; }
.stats div { background: var(--ink-2); padding: 22px 22px 20px; }
.stats dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.stats dd { margin: 6px 0 0; font-size: 1.3rem; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* Amenities */
.amenity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.amenity { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: grid; gap: 10px; align-content: start; }
.amenity p { color: var(--muted); font-size: .95rem; }
.amenity-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--sage-deep); margin-bottom: 6px; }
.icon { width: 26px; height: 26px; }
.video-link { display: inline-flex; align-items: center; gap: 14px; margin-top: 32px; font-weight: 600; text-decoration: none; color: var(--ink); }
.play { width: 52px; height: 52px; border-radius: 50%; background: var(--sage); position: relative; }
.play::after { content: ""; position: absolute; left: 21px; top: 17px; border-left: 14px solid var(--ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
@media (max-width: 900px) { .amenity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .amenity-grid { grid-template-columns: 1fr; } }

/* Tabs (floor plans, location) */
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); font: 500 .92rem var(--font); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Floor plans */
.plan { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.plan-img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.plan-table { min-width: 0; }
.rooms { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rooms th, .rooms td { padding: 11px 0; text-align: left; border-bottom: 1px solid var(--line); }
.rooms td:last-child, .rooms th:last-child { text-align: right; }
.rooms thead th { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.rooms tfoot th, .rooms tfoot td { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--ink); }
@media (max-width: 860px) { .plan { grid-template-columns: 1fr; } }

/* Gallery */
.gallery-nav { display: flex; gap: 10px; }
.gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: max(clamp(16px, 4vw, 40px), calc((100vw - 1240px) / 2 + 40px)); padding-bottom: 8px; scrollbar-width: thin; }
.g-item { flex: 0 0 min(420px, 82vw); margin: 0; scroll-snap-align: start; }
.g-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.g-item figcaption { margin-top: 10px; font-weight: 500; color: var(--ink); }

/* Location */
.location-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.location-grid h2 { margin-top: 10px; }
.places { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.places li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.places li:last-child { border-bottom: 0; }
.places strong { color: var(--sage-deep); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .location-grid { grid-template-columns: 1fr; } }

/* EMI */
.emi-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.emi-grid h2 { margin-top: 10px; }
.emi-card { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.emi-result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.emi-result span { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.emi-result strong { font-size: 1.25rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.emi-main { grid-column: 1 / -1; }
.emi-main strong { font-size: 2.2rem; color: var(--sage-deep); }
@media (max-width: 860px) { .emi-grid { grid-template-columns: 1fr; } }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field-row { display: flex; justify-content: space-between; gap: 12px; }
.field label, .slots legend { font-size: .88rem; font-weight: 600; color: inherit; }
.field output { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.optional { font-weight: 400; opacity: .7; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
    width: 100%; font: inherit; font-size: .98rem; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
}
textarea { resize: vertical; }
input[aria-invalid="true"] { border-color: var(--danger); }
input[type="range"] { width: 100%; accent-color: var(--sage-deep); }
.err { color: var(--danger); font-size: .82rem; }
.section-dark .err { color: #F2A08E; }

.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-grid h2 { margin-top: 10px; }
.form-card { background: #fff; color: var(--text); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); }
.form-card .err { color: var(--danger); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.field-wide { grid-column: 1 / -1; }
.slots { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.slots legend { margin-bottom: 8px; padding: 0; }
.slot-row { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; }
.slot span { display: block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: .9rem; font-variant-numeric: tabular-nums; cursor: pointer; }
.slot input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.slot input:focus-visible + span { outline: 2px solid var(--sage-deep); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--sage-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-size: .95rem; }
.notice-ok { background: #E7F0DC; color: #2F4520; }
.notice-err { background: #F8E3DE; color: #7A2D1E; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* Marquee */
.marquee { background: var(--sage); color: var(--ink); overflow: hidden; padding-block: 18px; }
.marquee-track { display: flex; gap: 48px; width: max-content; font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }
.marquee-track span { white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
    .marquee-track { animation: marquee 40s linear infinite; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Footer */
.site-footer { background: #161D1A; color: var(--on-dark-muted); padding-block: 64px 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 40px; }
.footer-grid .eyebrow { margin-bottom: 12px; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.2rem; margin-bottom: 8px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--sage); }
.footer-projects { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-projects li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-projects span { font-size: .8rem; overflow-wrap: anywhere; }
.footer-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp button */
.whatsapp { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; background: #1F8F4E; color: #fff; text-decoration: none; font-weight: 600; padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .switch-card { transition: none; }
}
