/* ============================================================
   Brigade Savia — Static Site Stylesheet
   ============================================================ */

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --primary:      #006CB6;
  --primary-dark: #000000;
  --accent:       #FFDF00;
  --accent-dark:  #e6c900;
  --text:         #222222;
  --text-light:   #555555;
  --bg-light:     #f5f7fa;
  --white:        #ffffff;
  --border:       #e0e0e0;
  --radius:       5px;
  --shadow:       0 2px 12px rgba(0,0,0,0.10);
  --transition:   0.25s ease;
  --max-w:        1200px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Roboto', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
a.content-link { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
a.content-link:hover { opacity: 0.75; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Roboto Slab', serif; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--primary); margin-bottom: 0.5em; }
h3 { font-size: 1.15rem; }
p  { margin-bottom: 1em; color: var(--text-light); }
p:last-child { margin-bottom: 0; }

/* ── Layout Helpers ──────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section    { padding: 40px 20px; max-width: var(--max-w); margin: 0 auto; }
.section-alt { background: var(--bg-light); }
.section-alt .section { background: var(--bg-light); }
.section-wrap { padding: 1px 0; }
.section-wrap.alt { background: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 24px; }
.section-title h2 { display: inline-block; position: relative; padding-bottom: 12px; }
.section-title h2::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px; background: var(--accent); border-radius: 2px;
}
.section-title p { max-width: 700px; margin: 12px auto 0; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition);
  text-align: center;
}
.btn-accent {
  background: var(--accent);
  color: #111;
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* ── Header ──────────────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: box-shadow var(--transition);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: 'Roboto Slab', serif;
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.site-logo span { color: var(--accent); }
nav#main-nav ul {
  display: flex;
  gap: 6px;
  align-items: center;
}
nav#main-nav a {
  color: rgba(255,255,255,0.88);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}
nav#main-nav a:hover,
nav#main-nav a.active { background: rgba(255,255,255,0.15); color: var(--white); }
nav#main-nav a.btn-accent,
#site-header.scrolled nav#main-nav a.btn-accent { color: #111; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #000;
}
#hero .hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero_backgaround.webp');
  background-size: cover;
  background-position: center;
}
#hero .hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.62);
}
#hero .hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
  padding: 40px 20px;
}
#hero h1 {
  color: var(--accent);
  font-size: clamp(3rem, 8vw, 4.8rem);
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin-bottom: 16px;
}
#hero .hero-sub {
  font-size: 25px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
  margin-bottom: 32px;
}
#hero .hero-tagline {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 32px;
  text-transform: uppercase;
}
#hero .hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Stats Bar ───────────────────────────────────────────── */
#stats {
  background: var(--primary);
  color: var(--white);
  padding: 0;
}
.stats-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
}
.stat-item {
  padding: 24px 12px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Roboto Slab', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.75); margin-top: 4px; }

/* ── Pricing Section ─────────────────────────────────────── */
.price-section { background: var(--primary) !important; }
.price-section-title { color: #fff !important; }
.price-section-intro { color: rgba(255,255,255,0.92); text-align: center; max-width: 820px; margin: 0 auto 2em; }

/* ── Pricing Cards ───────────────────────────────────────── */
.price-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}
.price-card {
  background: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  padding: 28px 28px 24px;
  text-align: center;
  flex: 0 0 calc(33.33% - 16px);
  max-width: 340px;
  min-width: 260px;
}
.price-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  transform: translateY(-4px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.price-card .bhk-label {
  display: inline-block;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 28px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.price-card .price-size { margin-bottom: 6px; color: var(--text); }
.price-card .price-amt { font-size: 1.35rem; font-weight: 400; color: var(--text); margin-bottom: 20px; }
.price-divider { border: none; border-top: 1px dashed #ccc; margin: 20px 0; }
.price-card .btn { width: 70%; }
.cost-sheet { text-align: center; padding: 16px 32px 32px; }
.cost-sheet-title {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.cost-sheet img { max-width: 600px; width: 100%; margin: 0 auto 20px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ── Gallery Grid ────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.gallery-grid .gal-item {
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-grid .gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid .gal-item:hover img { transform: scale(1.06); }

/* ── Tabs ────────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.tab-btn {
  padding: 10px 20px;
  border-radius: 6px 6px 0 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.tab-panel img { border-radius: var(--radius); box-shadow: var(--shadow); }
.tab-panel ul { padding-left: 0; }
.tab-panel ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}
.tab-panel ul li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}
.tab-panel .tab-cta { margin-top: 20px; }

/* ── Master Plan ─────────────────────────────────────────── */
.masterplan-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.masterplan-wrap img { border-radius: var(--radius); box-shadow: var(--shadow); }
.masterplan-wrap ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}
.masterplan-wrap ul li::before { content: '●'; position: absolute; left: 0; color: var(--accent); font-size: 0.6rem; top: 13px; }

/* ── Amenity Section ─────────────────────────────────────── */
.amenity-section { background: var(--primary) !important; }
.amenity-section-title { color: #fff !important; }
.amenity-section-intro {
  color: rgba(255,255,255,0.92);
  text-align: center;
  max-width: 860px;
  margin: 0 auto 2.5em;
}

/* ── Amenity Cards ───────────────────────────────────────── */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.amenity-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.amenity-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.amenity-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.amenity-card .amenity-name {
  padding: 14px 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
@media (max-width: 900px) {
  .amenity-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Location / Distance Tables ──────────────────────────── */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.dist-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.dist-table caption {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  text-align: left;
  padding: 0 0 10px;
}
.dist-table th {
  background: var(--primary);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.85rem;
}
.dist-table td { padding: 9px 14px; font-size: 0.88rem; border-bottom: 1px solid var(--border); color: var(--text-light); }
.dist-table tr:last-child td { border-bottom: none; }
.dist-table tr:nth-child(even) td { background: var(--bg-light); }
.location-intro { margin-bottom: 32px; }
.map-wrap { margin-top: 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { display: block; width: 100%; height: 360px; border: none; }

/* ── Invest Section ──────────────────────────────────────── */
.invest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.invest-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  border-top: 4px solid var(--accent);
}
.invest-card h3 { color: var(--primary); margin-bottom: 10px; }
.section-prose { margin-top: 40px; }
.section-prose h3 { color: var(--primary); margin: 28px 0 10px; }
.section-prose p { margin-bottom: 1em; }

/* ── FAQ Section ─────────────────────────────────────────── */
.faq-section { background: var(--primary) !important; }
.faq-section h2 { color: #fff !important; }
.faq-question-heading { margin: 0; font-size: inherit; font-weight: inherit; }

/* ── FAQ Accordion ───────────────────────────────────────── */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
}
.faq-q:hover { background: rgba(0,0,0,0.02); }
.faq-q .faq-icon { font-size: 0; flex-shrink: 0; margin-left: 16px; }
.faq-q .faq-icon::before { font-size: 1.5rem; font-weight: 700; color: var(--text); content: '+'; }
.faq-q[aria-expanded="true"] .faq-icon::before { content: '−'; }
.faq-q[aria-expanded="true"] .faq-icon { transform: none; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 22px;
  color: var(--text-light);
  font-size: 0.95rem;
  border-top: 1px solid transparent;
}
.faq-a.open { max-height: 300px; padding: 14px 22px; border-top-color: var(--border); }

/* ── Info / Text Section ─────────────────────────────────── */
.info-section { max-width: 820px; margin: 0 auto; }
.info-section h3 { color: var(--primary); margin: 24px 0 8px; }

/* ── Page Hero (subpages) ────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2563a8 100%);
  padding: 48px 20px;
  text-align: center;
  color: var(--white);
}
.page-hero h1 { color: var(--white); font-size: clamp(1.5rem, 4vw, 2.4rem); }
.page-hero p { color: rgba(255,255,255,0.85); margin-top: 8px; }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.breadcrumb a { color: var(--accent); }

/* ── Contact Form ────────────────────────────────────────── */
.form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  max-width: 520px;
}
.form-wrap h3 { color: var(--primary); margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  font-size: 0.92rem;
  transition: border-color var(--transition);
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 0.78rem; color: var(--text-light); margin-top: 8px; }

/* ── Floor Plan Section ──────────────────────────────────── */
.floorplan-img-wrap { text-align: center; }
.floorplan-img-wrap img { max-width: 600px; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ── Address Info ────────────────────────────────────────── */
.address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.address-info h3 { color: var(--primary); margin-bottom: 12px; }
.address-info p { margin-bottom: 8px; }
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ── Footer ──────────────────────────────────────────────── */
#site-footer {
  background: #353535;
  color: rgba(255,255,255,0.75);
  padding: 40px 20px 24px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
  margin-bottom: 20px;
}
.footer-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--accent); }
.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
}
.footer-copy { display: block; text-align: center; margin-top: 8px; }

/* ── Sticky Mobile Bar ───────────────────────────────────── */
#mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: #006CB6;
  border-top: 2px solid #FFDF00;
}
.mobile-bar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.mobile-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--white);
  transition: background var(--transition);
}
.mobile-bar-btn:first-child { background: #006CB6; color: #fff; border-right: 1px solid rgba(255,255,255,0.2); }.mobile-bar-btn:last-child { background: #FFDF00; color: #000; }
.mobile-bar-btn:hover { filter: brightness(1.1); }

/* ── Modal ───────────────────────────────────────────────── */
dialog#modal {
  border: none;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  padding: 0;
  max-width: 480px;
  width: 90%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  position: fixed;
}
dialog#modal::backdrop { background: rgba(0,0,0,0.55); }
.modal-header {
  background: var(--primary);
  color: var(--white);
  padding: 20px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px 12px 0 0;
  position: relative;
}
.modal-header h3 { color: var(--white); font-size: 1.1rem; margin: 0; }
.modal-close {
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 4px;
  transition: color var(--transition);
  position: absolute;
  right: 16px;
}
.modal-close:hover { color: var(--white); }
.modal-body { padding: 24px; }
.modal-note { font-size: 0.75rem; color: var(--text-light); margin-top: 16px; text-align: center; }

/* ── Lightbox ────────────────────────────────────────────── */
dialog#lightbox {
  border: none;
  background: rgba(0,0,0,0.9);
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  overflow: hidden;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  position: fixed;
}
dialog#lightbox::backdrop { background: rgba(0,0,0,0.8); }
dialog#lightbox img { display: block; max-width: 90vw; max-height: 88vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 10px; right: 14px;
  color: var(--white); font-size: 2rem; line-height: 1;
  background: rgba(0,0,0,0.5); border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}

/* ── Inline Info Boxes ───────────────────────────────────── */
.highlight-box {
  background: var(--bg-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.highlight-box p { color: var(--text); margin: 0; }

/* ── Overview ────────────────────────────────────────────── */
.overview-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: -0.25em;
  margin-bottom: 1.5em;
}

.overview-specs-card {
  background: #f2f4f7;
  border-radius: 10px;
  padding: 8px 24px;
  margin-bottom: 48px;
  box-shadow: var(--shadow);
}
.overview-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.spec-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}
.spec-item:nth-last-child(-n+3) { border-bottom: none; }
.spec-icon {
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.spec-info b { color: var(--text); margin-right: 4px; }
.spec-info { color: var(--text-light); }

.overview-bottom {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: center;
}
.overview-tagline { font-style: italic; margin-bottom: 1em; color: var(--text); }
.overview-images {
  position: relative;
  height: 420px;
}
.overview-img-top {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 1;
  object-fit: cover;
  height: 58%;
}
.overview-img-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 72%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  z-index: 2;
  object-fit: cover;
  height: 55%;
}

@media (max-width: 900px) {
  .overview-specs-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .spec-item:nth-last-child(-n+2) { border-bottom: none; }
  .overview-bottom { grid-template-columns: 1fr; }
  .overview-images { height: 340px; margin-top: 24px; }
}
@media (max-width: 540px) {
  .overview-specs-grid { grid-template-columns: 1fr; }
  .spec-item { border-bottom: 1px solid var(--border) !important; }
  .spec-item:last-child { border-bottom: none !important; }
}

/* ── Key Features ────────────────────────────────────────── */
.key-features {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.key-features-title {
  text-align: center;
  color: var(--text);
  margin-bottom: 0.75em;
}
.key-features-intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.5em;
}
.key-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 48px;
}
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  font-size: 2rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4em;
}
.feature-content p { font-size: 0.9rem; margin: 0; }
@media (max-width: 900px) {
  .key-features-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 540px) {
  .key-features-grid { grid-template-columns: 1fr; }
}

/* ── Gallery 4-column flat grid ─────────────────────────── */
.gallery-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.gallery-4col .gal-item {
  aspect-ratio: 3/2;
  border-radius: 0;
  overflow: hidden;
}
.gallery-4col .gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-4col .gal-item:hover img { transform: scale(1.06); }

/* ── Blue specs container ────────────────────────────────── */
.specs-blue-box {
  background: var(--primary);
  border-radius: 12px;
  padding: 28px 32px 32px;
}
.specs-blue-box .tab-nav {
  border-bottom: none;
  justify-content: center;
  gap: 8px;
  padding-bottom: 24px;
  flex-wrap: wrap;
}
.specs-blue-box .tab-btn {
  background: #fff;
  color: #111;
  border: none;
  border-radius: 20px;
  padding: 8px 22px;
  border-bottom: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.specs-blue-box .tab-btn:hover {
  background: rgba(255,255,255,0.85);
  color: #111;
}
.specs-blue-box .tab-btn.active {
  background: #000;
  color: #fff;
  border-bottom: none;
}
.specs-blue-box h3 {
  color: #fff !important;   /* overrides inline style="color:var(--primary)" */
  text-decoration: underline;
  text-underline-offset: 4px;
}
.specs-blue-box .spec-check-list li {
  color: rgba(255,255,255,0.92);
  border-bottom-color: rgba(255,255,255,0.15);
}
.specs-blue-box .spec-check-list li::before { color: #fff; }

/* ── Floor Plan Image Cards ──────────────────────────────── */
.plan-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.plan-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
.plan-card-img-wrap {
  position: relative;
}
.plan-card-img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  filter: blur(3px);
}
.plan-view-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}
.plan-card-label {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 14px;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Roboto Slab', serif;
}

/* ── Specifications Tab Content ─────────────────────────── */
.spec-tab-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 32px 0;
}
.spec-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.spec-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.95rem;
}
.spec-check-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}
.spec-room-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 5/4;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .tab-panel.active     { grid-template-columns: 1fr; }
  .masterplan-wrap      { grid-template-columns: 1fr; }
  .overview-grid        { grid-template-columns: 1fr; }
  .location-grid        { grid-template-columns: 1fr; }
  .address-grid         { grid-template-columns: 1fr; }
  .stats-grid           { grid-template-columns: repeat(3, 1fr); }
  .stats-grid .stat-item:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,0.15); }
}

@media (max-width: 700px) {
  .plan-card-grid    { grid-template-columns: 1fr; }
  .spec-tab-content  { grid-template-columns: 1fr; }
  .gallery-4col      { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hamburger         { display: flex; }
  nav#main-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--primary-dark);
    padding: 12px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  nav#main-nav.open  { display: block; }
  nav#main-nav ul    { flex-direction: column; gap: 0; }
  nav#main-nav a     { padding: 12px 24px; border-radius: 0; display: block; color: var(--white); }
  #site-header.scrolled nav#main-nav a { color: var(--white); }
  #mobile-bar        { display: block; }
  body               { padding-bottom: 58px; }
  .stats-grid        { grid-template-columns: repeat(2, 1fr); }
  .price-card        { flex: 0 0 100%; max-width: 360px; }
  .tab-nav           { gap: 4px; }
  .tab-btn           { padding: 8px 12px; font-size: 0.82rem; }
  .hero-btns         { flex-direction: column; align-items: center; }
}

/* ── Brochure Page ───────────────────────────────────────── */
.brochure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 700px) {
  .brochure-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ── Scroll-in animations ────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }

/* ── Header scroll state ─────────────────────────────────── */
#site-header { transition: box-shadow 0.3s ease, background 0.3s ease; }
#site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.98);
}
#site-header.scrolled .site-logo { color: var(--primary); }
#site-header.scrolled .site-logo span { color: #c9a800; }
#site-header.scrolled nav#main-nav a { color: var(--text); }
#site-header.scrolled nav#main-nav a:hover,
#site-header.scrolled nav#main-nav a.active { background: rgba(0,106,182,0.1); color: var(--primary); }
#site-header.scrolled .hamburger span { background: var(--primary); }
@media (max-width: 640px) {
  #site-header.scrolled nav#main-nav a { color: var(--white); }
}

/* ── Back to top ─────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 88px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 998;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { transform: translateY(-3px); background: #005a9e; }
