/* =========================================================
   Phoenix One Bangalore West — Design System
   Source: DESIGN.md — "Ultra-Prime Architectural Luxury"
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Core palette */
  --obsidian-base: #0B111A;
  --slate-surface: #121A26;
  --slate-elevated: #182333;
  --slate-border: #223247;
  --gold-light: #E2C882;
  --gold-base: #C8A75B;
  --gold-rich: #D4AF37;
  --bronze-muted: #997B4D;
  --bronze-dark: #594425;
  --canvas-cream: #F9F6F0;
  --text-muted: #8E9CAE;
  --text-subtle: #5A697D;
  --success-emerald: #2E7D5B;
  --error-crimson: #B23B3B;

  /* Functional roles */
  --bg-canvas: var(--obsidian-base);
  --bg-card: var(--slate-surface);
  --bg-card-elevated: var(--slate-elevated);
  --border-hairline: rgba(200, 167, 91, 0.12);
  --border-hairline-strong: rgba(200, 167, 91, 0.35);
  --text-primary: var(--canvas-cream);
  --text-secondary: var(--text-muted);
  --text-accent: var(--gold-base);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  --gutter-mobile: 1rem;
  --gutter-desktop: 2rem;
  --margin-mobile: 1.25rem;
  --margin-tablet: 2.5rem;
  --margin-desktop: 5rem;
  --max-width-content: 1360px;
  --max-width-editorial: 840px;
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); font-weight: 400; color: var(--text-primary); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* -------------------- Type scale -------------------- */
.display-hero { font-size: 44px; line-height: 1.15; letter-spacing: 0.02em; }
.headline-xl { font-size: 34px; line-height: 1.2; letter-spacing: 0.02em; }
.headline-lg { font-size: 28px; font-weight: 500; line-height: 1.3; letter-spacing: 0.01em; }
.headline-md { font-size: 22px; font-weight: 500; line-height: 1.35; }
.headline-sm { font-size: 19px; font-weight: 600; line-height: 1.4; }
.title-editorial {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-base);
}
.body-lg { font-size: 17px; font-weight: 300; line-height: 1.65; color: var(--text-secondary); }
.body-md { font-size: 15px; line-height: 1.7; color: var(--text-secondary); }
.body-sm { font-size: 13px; line-height: 1.55; color: var(--text-subtle); }
.label-caps {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.label-md { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; }

@media (min-width: 1024px) {
  .display-hero { font-size: 64px; line-height: 76px; }
  .headline-xl { font-size: 44px; line-height: 54px; }
}

/* -------------------- Layout -------------------- */
.container {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--margin-mobile);
}
@media (min-width: 768px) { .container { padding: 0 var(--margin-tablet); } }
@media (min-width: 1200px) { .container { padding: 0 var(--margin-desktop); } }

.section { padding: var(--space-2xl) 0; }
@media (min-width: 1024px) { .section { padding: var(--space-3xl) 0; } }
.section--tight { padding: var(--space-xl) 0; }
.section--alt { background: var(--slate-surface); }

.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.eyebrow { display: flex; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-sm); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold-base); display: inline-block; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: 16px 32px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease, color .35s ease, transform .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gold-base); color: var(--obsidian-base); }
.btn-primary:hover { background: var(--gold-light); box-shadow: 0 0 20px rgba(200, 167, 91, 0.35); }
.btn-secondary { background: transparent; border-color: var(--gold-base); color: var(--gold-base); }
.btn-secondary:hover { background: rgba(200, 167, 91, 0.08); border-color: var(--gold-light); color: var(--gold-light); }
.btn-ghost { background: transparent; color: var(--canvas-cream); padding: 8px 0; position: relative; letter-spacing: 0.12em; }
.btn-ghost::after {
  content: ''; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px; background: var(--gold-base);
  transition: left .35s ease, right .35s ease;
}
.btn-ghost:hover::after { left: 0; right: 0; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* -------------------- Header / Nav -------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 17, 26, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-sm) 0;
  gap: var(--space-md);
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 19px; color: var(--text-primary); letter-spacing: 0.02em; }
.brand__tag { font-size: 10px; letter-spacing: 0.18em; color: var(--gold-base); text-transform: uppercase; margin-top: 3px; }

.nav-links { display: none; align-items: center; gap: var(--space-lg); }
.nav-links a { font-size: 13px; letter-spacing: 0.04em; color: var(--text-secondary); transition: color .25s ease; }
.nav-links a:hover, .nav-links a.is-active { color: var(--gold-base); }
@media (min-width: 1024px) { .nav-links { display: flex; } }

.header-actions { display: flex; align-items: center; gap: var(--space-md); }
.header-phone { display: none; font-size: 13px; letter-spacing: 0.02em; color: var(--text-primary); }
.header-phone strong { color: var(--gold-base); font-weight: 600; }
@media (min-width: 1024px) { .header-phone { display: block; } }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; background: transparent; border: none; padding: 6px;
}
.nav-toggle span { width: 22px; height: 1px; background: var(--canvas-cream); display: block; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none; flex-direction: column; gap: var(--space-md);
  padding: var(--space-lg) var(--margin-mobile) var(--space-xl);
  background: var(--slate-surface);
  border-top: 1px solid var(--border-hairline);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { font-size: 15px; color: var(--text-primary); }
.mobile-nav .header-phone { display: block; }

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  background-color: var(--slate-elevated);
  background-size: cover;
  background-position: center;
  padding-top: var(--space-3xl);
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,17,26,.35) 0%, rgba(11,17,26,.55) 45%, rgba(11,17,26,.96) 100%);
}
.hero__content { position: relative; z-index: 2; padding-bottom: var(--space-2xl); width: 100%; }
.hero__badges { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
.badge {
  display: flex; align-items: center; gap: var(--space-2xs);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(24, 35, 51, 0.6);
  border: 1px solid var(--slate-border);
  font-size: 12px; color: var(--text-secondary);
}
.badge strong { color: var(--text-primary); font-weight: 600; }

.page-banner {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  background-color: var(--slate-elevated);
  background-size: cover;
  background-position: center;
}
.page-banner__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,17,26,.3) 0%, rgba(11,17,26,.9) 100%);
}
.page-banner__content { position: relative; z-index: 2; padding: var(--space-2xl) 0; }

/* -------------------- Media placeholder frames -------------------- */
.media {
  background-color: var(--slate-elevated);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  width: 100%;
}
.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--card { aspect-ratio: 4 / 3; }
.media__frame { border: 1px solid var(--border-hairline); }

/* -------------------- Cards -------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--slate-border);
  padding: var(--space-lg);
}
.card--elevated {
  background: var(--bg-card-elevated);
  border-color: var(--border-hairline-strong);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.7), 0 0 24px -4px rgba(200,167,91,0.08);
}
.amenity-card { background: var(--bg-card); border: 1px solid var(--slate-border); }
.amenity-card__body { padding: var(--space-md); }
.amenity-card__title { font-family: var(--font-display); font-size: 18px; margin-bottom: var(--space-3xs); }

.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
@media (min-width: 768px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { border-left: 1px solid var(--slate-border); padding-left: var(--space-sm); }
.stat__value { font-family: var(--font-display); font-size: 26px; color: var(--gold-base); }
.stat__label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-subtle); margin-top: 4px; }

/* -------------------- Chips -------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.chip {
  padding: var(--space-2xs) var(--space-sm);
  border: 1px solid var(--slate-border);
  background: rgba(24, 35, 51, 0.6);
  font-size: 12px;
  color: var(--text-secondary);
  transition: all .25s ease;
}
.chip.is-active, .chip:hover {
  background: rgba(200, 167, 91, 0.15);
  border-color: var(--gold-base);
  color: var(--text-primary);
}

/* -------------------- Forms -------------------- */
.form-field { position: relative; margin-bottom: var(--space-md); }
.form-field label {
  display: block; font-family: var(--font-body);
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: var(--space-2xs);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--slate-surface);
  border: none;
  border-bottom: 1px solid #3B4C63;
  color: var(--text-primary);
  font-size: 14px;
  padding: 12px 4px;
  outline: none;
  transition: border-color .25s ease;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-subtle); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-bottom-color: var(--gold-base); }
.form-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-base) 50%), linear-gradient(135deg, var(--gold-base) 50%, transparent 50%); background-position: calc(100% - 12px) 20px, calc(100% - 6px) 20px; background-size: 6px 6px; background-repeat: no-repeat; }
.form-note { font-size: 11px; color: var(--text-subtle); margin-top: var(--space-2xs); }
.form-status { font-size: 13px; margin-top: var(--space-sm); display: none; }
.form-status.is-success { display: block; color: var(--success-emerald); }
.form-status.is-error { display: block; color: var(--error-crimson); }

.lead-panel {
  background: var(--slate-surface);
  border: 1px solid var(--border-hairline);
  padding: var(--space-lg);
}
.lead-panel__label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze-muted); margin-bottom: var(--space-sm); }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--slate-surface); border-top: 1px solid var(--slate-border); padding-top: var(--space-2xl); }
.footer-columns { display: grid; gap: var(--space-lg); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-columns { grid-template-columns: repeat(4, 1fr); } }
.footer-columns h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-base); margin-bottom: var(--space-sm); }
.footer-columns li { margin-bottom: var(--space-2xs); font-size: 13px; color: var(--text-secondary); }
.footer-legal {
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--slate-border);
  padding: var(--space-lg) 0;
  display: flex; flex-wrap: wrap; gap: var(--space-sm);
  justify-content: space-between;
  font-size: 11px; color: var(--text-subtle);
}
.trust-band { display: flex; flex-wrap: wrap; gap: var(--space-lg); align-items: center; padding: var(--space-lg) 0; border-top: 1px solid var(--slate-border); }
.trust-band__item { display: flex; align-items: center; gap: var(--space-2xs); font-size: 12px; color: var(--bronze-muted); }
.rera-strip { background: var(--obsidian-base); border-top: 1px solid var(--slate-border); border-bottom: 1px solid var(--slate-border); padding: var(--space-2xs) 0; font-size: 11px; color: var(--text-subtle); text-align: center; }

/* -------------------- Utility -------------------- */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-lg { margin-bottom: var(--space-lg); }
.text-center { text-align: center; }
.text-gold { color: var(--gold-base); }
.max-editorial { max-width: var(--max-width-editorial); }
.divider { height: 1px; background: var(--slate-border); border: none; margin: var(--space-xl) 0; }

.map-embed { border: 1px solid var(--slate-border); filter: grayscale(0.3) invert(0.92) contrast(0.9); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.icon-circle {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--gold-base);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-base); flex-shrink: 0;
}
