/* ═══════════════════════════════════════════════════════
   The Hamilton — Index Page Styles
   MSL Property Group
   ═══════════════════════════════════════════════════════ */

:root {
  --deep-navy: #1D2F4E;
  --navy-mid: #2D4565;
  --navy-light: #4A6282;
  --navy-300: #7A92A9;
  --navy-200: #B8C5D1;
  --navy-100: #E8ECF0;
  --gold: #DBBA5C;
  --gold-dark: #8B7340;
  --gold-light: #E5C97A;
  --gold-pale: #F5E6C4;
  --gold-tint: #FBF6EA;
  --rose: #C4A0A8;
  --cream: #F8F8F6;
  --warm-white: #FAFAF8;
  --stone: #F4F4F2;
  --charcoal: #1F1F1F;
  --grey-700: #374151;
  --grey-500: #6B7280;
  --grey-400: #9CA3AF;
  --grey-300: #D1D5DB;
  --grey-200: #E5E7EB;
  --text-light: #E5E7EB;
  --text-muted: #9CA3AF;
  --text-muted-dark: #6B7280;
  --divider: rgba(219,186,92,0.2);
  --green: #86EFAC;
  --green-bg: rgba(45,106,79,0.25);
  --green-border: rgba(45,106,79,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--deep-navy);
  color: var(--text-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── TOP BAR ─── */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
  background: linear-gradient(180deg, rgba(29,47,78,0.95) 0%, rgba(29,47,78,0) 100%);
  transition: all 0.4s ease;
}
.top-bar.scrolled {
  background: rgba(29,47,78,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--divider);
}
.logo-img {
  height: 32px;
  width: auto;
  opacity: 0.95;
}
.top-bar-right {
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-image {
  position: absolute; inset: 0; z-index: 0;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(29,47,78,0.5) 0%, rgba(29,47,78,0.15) 30%, rgba(29,47,78,0.3) 55%, rgba(29,47,78,0.94) 100%),
    linear-gradient(90deg, rgba(29,47,78,0.75) 0%, rgba(29,47,78,0) 55%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 48px;
  max-width: 900px;
  margin-top: 80px;
}
.hero-eyebrow {
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 6px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.8s ease 0.3s forwards;
}
.hero-eyebrow a {
  color: var(--gold); text-decoration: none;
  border-bottom: 1px solid rgba(201,169,110,0.3);
  transition: border-color 0.3s;
}
.hero-eyebrow a:hover { border-bottom-color: var(--gold); }
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.2rem, 7.5vw, 6rem);
  font-weight: 300; line-height: 1.05; color: #fff;
  margin-bottom: 16px;
  opacity: 0; animation: fadeUp 0.8s ease 0.5s forwards;
}
.hero-title em {
  font-style: italic; display: block;
  color: var(--gold); font-size: 0.5em; margin-top: 10px;
}
.hero-address {
  font-size: 0.78rem; font-weight: 300;
  letter-spacing: 1px; color: var(--text-muted);
  margin-bottom: 48px;
  opacity: 0; animation: fadeUp 0.8s ease 0.7s forwards;
}
.hero-stats {
  display: flex; gap: 44px;
  opacity: 0; animation: fadeUp 0.8s ease 0.9s forwards;
}
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hero-stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem; font-weight: 300;
  color: #fff; line-height: 1;
}
.hero-stat-label {
  font-size: 0.52rem; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold);
}

.hero-corner {
  position: absolute; bottom: 48px; right: 48px;
  width: 48px; height: 48px;
  border-right: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  z-index: 2;
  opacity: 0; animation: fadeIn 1s ease 1.2s forwards;
}
.scroll-cue {
  position: absolute; bottom: 48px; left: 48px; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  opacity: 0; animation: fadeIn 1s ease 1.4s forwards;
}
.scroll-cue-line {
  width: 36px; height: 1px; background: var(--gold);
  animation: pulse 2.5s ease infinite;
}
.scroll-cue-text {
  font-size: 0.5rem; letter-spacing: 4px;
  text-transform: uppercase; color: var(--text-muted);
}

/* ─── DIVIDER ─── */
.divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--divider), transparent);
}

/* ─── SECTION COMMON ─── */
.section-label {
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300; color: #fff; margin-bottom: 12px;
}
.section-text {
  font-size: 0.8rem; font-weight: 300;
  color: var(--text-muted); max-width: 580px;
  line-height: 1.9; margin-bottom: 56px;
}
.gold-line {
  width: 60px; height: 1px;
  background: var(--gold); margin: 24px 0;
}

/* ─── BUILDING CARDS ─── */
.buildings-section {
  padding: 100px 48px;
  max-width: 1200px; margin: 0 auto;
}
.building-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.building-card {
  background: linear-gradient(155deg, rgba(45,69,101,0.8) 0%, rgba(29,47,78,0.9) 100%);
  border: 1px solid var(--divider);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  gap: 12px;
  transition: all 0.4s ease;
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
  cursor: pointer;
  min-height: 240px;
}
.building-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.4s ease;
}
.building-card:hover {
  border-color: rgba(201,169,110,0.5);
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.3);
}
.building-card:hover::before { opacity: 1; }

.building-card.inactive {
  opacity: 0.45;
  cursor: default;
  border-style: dashed;
}
.building-card.inactive:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--divider);
}
.building-card.inactive:hover::before { opacity: 0; }

.card-building-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; color: var(--gold); opacity: 0.5;
}
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 500; color: #fff;
  line-height: 1.3;
}
.card-status-badge {
  display: inline-flex; align-items: center;
  gap: 6px; padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  width: fit-content;
}
.badge-sold-out {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-border);
}
.badge-active {
  background: rgba(219,186,92,0.15);
  color: var(--gold);
  border: 1px solid rgba(219,186,92,0.35);
}
.badge-inactive {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.badge-dot.green { background: var(--green); }
.badge-dot.gold { background: var(--gold); animation: pulseDot 2s ease infinite; }
.badge-dot.grey { background: rgba(255,255,255,0.3); }

@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 0 0 rgba(201,169,110,0); }
  50% { box-shadow: 0 0 8px 2px rgba(201,169,110,0.4); }
}

.card-progress {
  margin-top: 8px;
}
.progress-bar-bg {
  width: 100%; height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px; overflow: hidden;
  margin-bottom: 6px;
}
.progress-bar-fill {
  height: 100%; border-radius: 2px;
  transition: width 1.5s ease;
}
.progress-bar-fill.gold { background: var(--gold); }
.progress-bar-fill.green { background: var(--green); }
.progress-label {
  font-size: 0.6rem; color: var(--text-muted);
  letter-spacing: 0.5px;
}

.card-cta {
  display: inline-flex; align-items: center;
  gap: 10px; font-size: 0.6rem; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-top: auto; padding-top: 8px;
}
.card-cta .arrow {
  display: inline-block; transition: transform 0.3s ease;
}
.building-card:hover .card-cta .arrow { transform: translateX(6px); }

/* ─── PROJECT OVERVIEW ─── */
.overview-section {
  padding: 100px 48px;
  max-width: 1200px; margin: 0 auto;
}
.overview-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.overview-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300; color: #fff;
  margin-bottom: 24px; line-height: 1.3;
}
.overview-text {
  font-size: 0.82rem; font-weight: 300;
  line-height: 2; color: var(--text-light);
}
.overview-text p + p { margin-top: 16px; }
.overview-text a {
  color: var(--gold); text-decoration: none;
  border-bottom: 1px solid rgba(201,169,110,0.3);
  transition: border-color 0.3s;
}
.overview-text a:hover { border-bottom-color: var(--gold); }

.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.detail-item {
  background: linear-gradient(145deg, rgba(45,69,101,0.5) 0%, rgba(29,47,78,0.6) 100%);
  border: 1px solid rgba(201,169,110,0.1);
  padding: 20px; border-radius: 4px;
}
.detail-label {
  font-size: 0.55rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.detail-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.12rem; color: #fff;
}
.detail-value a {
  color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s;
}
.detail-value a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--divider);
  padding: 40px 48px; margin-top: 40px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center;
}
.footer-logo { height: 24px; opacity: 0.7; }
.footer-info {
  text-align: right; font-size: 0.68rem;
  color: var(--text-muted); line-height: 1.8;
}
.footer-legal {
  max-width: 1200px; margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
  text-align: center;
  font-size: 0.58rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.5px;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes pulse {
  0%,100% { opacity: 0.3; } 50% { opacity: 1; }
}
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Stagger */
.building-card:nth-child(1) { transition-delay: 0s; }
.building-card:nth-child(2) { transition-delay: 0.08s; }
.building-card:nth-child(3) { transition-delay: 0.16s; }
.building-card:nth-child(4) { transition-delay: 0.24s; }
.building-card:nth-child(5) { transition-delay: 0.32s; }
.building-card:nth-child(6) { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1000px) {
  .building-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .top-bar { padding: 14px 24px; }
  .hero-content { padding: 0 24px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .buildings-section, .overview-section { padding: 64px 24px; }
  .overview-grid { grid-template-columns: 1fr; gap: 40px; }
  .detail-grid { grid-template-columns: 1fr; }
  footer { padding: 32px 24px; }
  .hero-corner, .scroll-cue { display: none; }
}
@media (max-width: 640px) {
  .building-cards { grid-template-columns: 1fr; }
  .logo-img { height: 26px; }
}