/* ==========================================================================
   Builder project site — styles
   The accent color is set per project from Data/project.json (--accent).
   ========================================================================== */

:root {
  --accent: #1F6F5C;
  --ink: #12161C;
  --ink-deep: #0B0E12;
  --muted: #4A5260;
  --muted-light: #B7BEC8;
  --line: #E3E5E8;
  --line-strong: #A9B0B8;
  --soft: #F3F5F4;
  --success-bg: #EEF3F1;
  --white: #FFFFFF;
  --radius: 8px;
  --radius-sm: 6px;
  --font-display: "Archivo", "Helvetica Neue", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --header-h: 77px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--muted); }
p { margin: 0; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Layout helpers ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 900px; }
.section { padding: 96px 0; }
.section-tight { padding: 0 0 96px; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark a { color: var(--white); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split-even > * { flex: 1 1 420px; min-width: 0; }
.split-center { align-items: center; }
.split-body { flex: 999 1 480px; min-width: 0; }
.split-side { flex: 1 1 340px; min-width: 0; }
.split-media { flex: 1 1 420px; min-width: 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.section-head-row { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head-row > div:first-child { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Type ---------- */
.h1, .h2, .h3, .h4, .hero-title { font-family: var(--font-display); margin: 0; color: inherit; }
.h1 { font-weight: 800; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; }
.h2 { font-weight: 800; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.01em; }
.h3 { font-weight: 700; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
.h4 { font-weight: 700; font-size: 20px; line-height: 1.25; }
.lead { font-size: 17px; line-height: 1.7; color: var(--muted); }
.lead-light { color: var(--muted-light); }
.muted { color: var(--muted); }
.section-dark .muted { color: var(--muted-light); }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow-accent { color: var(--accent); }
.eyebrow-light { color: var(--muted-light); }
.link-strong { font-weight: 600; padding: 12px 0; }
.prose p { margin-bottom: 16px; color: var(--muted); }
.prose .h2 { margin: 12px 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: filter .15s, background-color .15s, color .15s;
  white-space: nowrap;
}
.btn-lg { min-height: 52px; font-size: 16px; padding: 0 26px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { color: var(--white); filter: brightness(1.12); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { color: var(--white); background: #262D36; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-white { background: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { color: var(--white); background: rgba(255, 255, 255, 0.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Image placeholders (shown when an image path is empty) ---------- */
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
  background: repeating-linear-gradient(135deg, #E6E9E8 0 12px, #F1F3F2 12px 24px);
  color: var(--muted); font: 500 13px/1.5 var(--font-mono); white-space: pre-line;
  border-radius: var(--radius);
}
.ph-dark {
  background: repeating-linear-gradient(135deg, #1B2129 0 14px, #222A33 14px 28px);
  color: var(--muted-light);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--white); flex: none;
}
.brand-logo { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.1; }
.brand-by { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 15px; }
.site-nav a { text-decoration: none; font-weight: 500; padding: 8px 0; }
.site-nav a:hover { text-decoration: underline; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone { font-size: 14px; text-decoration: none; padding: 12px 4px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); align-items: center; justify-content: center; cursor: pointer;
}

@media (max-width: 1100px) {
  .header-phone { display: none; }
  .site-nav { gap: 6px 18px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-inner { flex-wrap: wrap; }
  .header-cta { display: none; }
  .site-nav {
    display: none; width: 100%; flex-direction: column; gap: 0;
    border-top: 1px solid var(--line); padding-top: 8px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--white); }
.hero-inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 72px; padding-bottom: 56px; }
.hero-copy { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-title { font-weight: 800; font-size: clamp(44px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.02em; }
.hero-sub { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.25; }
.hero-summary { font-size: 17px; line-height: 1.6; color: var(--muted-light); max-width: 560px; }
.hero-rera { font-size: 13px; color: var(--muted-light); margin-top: 8px; }
.hero-form { flex: 1 1 340px; min-width: 0; color: var(--ink); }
.hero-media { padding-bottom: 72px; }
.hero-img { width: 100%; height: clamp(240px, 36vw, 440px); object-fit: cover; border-radius: var(--radius); }

/* ---------- Key facts ---------- */
.facts { border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fact { padding: 28px 24px 28px 0; display: flex; flex-direction: column; gap: 6px; }
.fact-value { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.25; }

/* ---------- Cards ---------- */
.card { background: var(--white); border-radius: var(--radius); padding: 28px; }
.card-soft { background: var(--soft); padding: 36px; }
.card-line { border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.card-dark { background: var(--ink); color: var(--white); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.card-dark a { color: var(--muted-light); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.highlight { display: flex; flex-direction: column; gap: 12px; }
.highlight-num { font-size: 14px; color: var(--accent); }
.rera-no { font-size: 16px; }

/* ---------- Overview ---------- */
.overview-img { width: 100%; height: 520px; object-fit: cover; border-radius: var(--radius); }
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-top: 8px;
}
.stat { background: var(--white); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.stat-plain { background: transparent; padding: 0; }
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.1; }
.stat-label { font-size: 14px; color: var(--muted); }
.dev-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px;
  padding-top: 20px; border-top: 1px solid var(--line);
}

/* ---------- Tabs (floor plans, nearby places) ---------- */
.pill-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--white); color: var(--ink);
  font-weight: 600; font-size: 15px; cursor: pointer;
}
.pill-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.pill:hover { border-color: var(--ink); }
.pill[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* ---------- Floor plans ---------- */
.plan-panel { display: flex; flex-wrap: wrap; gap: 40px; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.plan-panel[hidden] { display: none; }
.plan-img { flex: 1 1 460px; min-width: 0; height: 460px; object-fit: contain; background: var(--soft); border-radius: var(--radius-sm); }
.plan-body { flex: 999 1 360px; min-width: 0; }
.plan-title { font-weight: 800; margin-bottom: 8px; }
.spec-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
.spec-grid > div { background: var(--white); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.spec-grid dt { font-size: 13px; color: var(--muted); }
.spec-grid dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.feature-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Amenities ---------- */
.amenity-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.amenity { display: flex; flex-direction: column; gap: 12px; }
.amenity-img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-sm); }
.amenity-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gallery-item { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gallery-item figcaption { font-size: 14px; color: var(--muted); }
.gallery-img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius-sm); }
.gallery-open { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-sm); overflow: hidden; }
.gallery-open img { transition: transform .3s; }
.gallery-open:hover img { transform: scale(1.03); }

/* ---------- Virtual tour ---------- */
.tour { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 320px; display: flex; }
.tour-img { flex: 1; width: 100%; min-height: 320px; object-fit: cover; border-radius: var(--radius); }
.tour-overlay {
  position: absolute; left: 32px; right: 32px; bottom: 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--white);
}
.tour-overlay > div { display: flex; flex-direction: column; gap: 4px; }
.tour-title { font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.tour-text { font-size: 15px; color: var(--muted-light); }

/* ---------- Location ---------- */
.map-frame { width: 100%; height: 420px; border: 0; border-radius: var(--radius); background-color: var(--white); object-fit: cover; }
.map-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.nearby-list { list-style: none; margin: 0; padding: 0; }
.nearby-list[hidden] { display: none; }
.nearby-list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.nearby-list .mono { font-size: 14px; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq { background: var(--white); border-radius: var(--radius); }
.faq summary {
  list-style: none; display: flex; align-items: center; gap: 16px;
  min-height: 64px; padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-num { font-size: 14px; color: var(--accent); }
.faq-q { flex: 1; }
.faq-icon { width: 14px; height: 14px; position: relative; flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--ink); transition: transform .2s; }
.faq-icon::after { transform: rotate(90deg); }
.faq[open] .faq-icon::after { transform: rotate(0deg); }
.faq p { padding: 0 22px 22px 60px; color: var(--muted); line-height: 1.65; }

/* ---------- Forms ---------- */
.hero-form .h3, .enquire-card .h3 { font-size: 24px; margin-bottom: 8px; }
.hero-form > .muted { font-size: 15px; margin-bottom: 16px; }
.enquire-card { flex: 1 1 380px; min-width: 0; color: var(--ink); padding: 32px; }
.enquire-card a { color: var(--ink); }
.enq-fields { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select {
  height: 48px; width: 100%; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font: 16px var(--font-body); color: var(--ink); background: var(--white);
}
.field input:focus, .field select:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: #B42318; }
.field-error { font-size: 13px; color: #B42318; min-height: 0; }
.field-error:empty { display: none; }
.form-error { font-size: 14px; color: #B42318; }
.form-note { font-size: 12px; color: var(--muted); }
.form-note a { color: var(--muted); }
.form-success { padding: 20px; border-radius: var(--radius-sm); background: var(--success-bg); display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.form-success strong { font-family: var(--font-display); font-size: 20px; }
.form-success span { font-size: 15px; color: var(--muted); }
.enq-form.is-busy button[type="submit"] { opacity: .7; pointer-events: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--muted-light); padding: 64px 0 32px; }
.site-footer a { color: var(--muted-light); }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--white); }
.footer-col .eyebrow { color: var(--white); }
.disclaimer { padding-top: 24px; border-top: 1px solid #262D36; font-size: 12px; line-height: 1.6; }
.copyright { font-size: 12px; margin-top: 12px; }

/* ---------- Mobile quick-action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 64px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--white); border-top: 1px solid var(--line);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 56px; font-weight: 600; text-decoration: none; color: var(--ink); }
  .mobile-bar .mobile-bar-primary { background: var(--accent); color: var(--white); }
  .section { padding: 64px 0; }
  .section-tight { padding-bottom: 64px; }
  .plan-panel { padding: 20px; }
  .plan-img { height: 300px; }
  .overview-img { height: 320px; }
  .card-soft { padding: 24px; }
  .tour-overlay { left: 20px; right: 20px; bottom: 20px; }
  .faq p { padding-left: 22px; }
}

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(11, 14, 18, 0.72); }
.modal { width: min(440px, calc(100% - 32px)); border-radius: var(--radius); }
.modal-card { position: relative; padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.modal-card .muted { margin-bottom: 8px; }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--soft); }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(11, 14, 18, 0.95); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox-figure { margin: 0; max-width: min(1200px, calc(100% - 140px)); display: flex; flex-direction: column; gap: 12px; }
.lightbox-figure img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.lightbox-figure figcaption { color: var(--muted-light); text-align: center; }
.lightbox-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: var(--white); display: flex; align-items: center; justify-content: center;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 720px) {
  .lightbox-figure { max-width: calc(100% - 24px); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 24px; transform: none; }
}
