/* ============================================================
   BRICKELL KEY REAL ESTATE — global.css
   Nautical palette: deep navy · warm gold · water teal
   ============================================================ */

:root {
  --navy:  #1A2B3C;
  --gold:  #C9A84C;
  --teal:  #2E6E7E;
  --lgray: #F2F2FA;
  --mgray: #666666;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  margin-top: 0;
}

a { color: var(--gold); text-decoration: none; }
a:hover { opacity: 0.8; }

img { max-width: 100%; height: auto; display: block; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Section backgrounds */
.section-white { background: #fff;          padding: 5rem 0; }
.section-light { background: var(--lgray);  padding: 5rem 0; }
.section-navy  { background: var(--navy);   padding: 5rem 0; color: white; }
.section-navy h2, .section-navy h3 { color: white; }
.section-teal  { background: var(--teal);   padding: 5rem 0; color: white; }

/* Page hero (inner pages) */
.page-hero { background: var(--navy); padding: 4rem 0 3rem; color: white; }
.page-hero h1 { color: white; margin-bottom: 0.5rem; }

/* Homepage hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  min-height: 85vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-h1 {
  color: #fff;
  font-size: 2.7rem;
  line-height: 1.2;
  max-width: 660px;
}
.hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 1rem 0 2rem;
}

/* Eyebrow + intro */
.section-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}
.section-intro { max-width: 680px; color: var(--mgray); margin-bottom: 2.5rem; }
.section-intro-white { max-width: 680px; color: rgba(255,255,255,0.8); margin-bottom: 2.5rem; }

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: white;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
  font-family: 'Inter', sans-serif;
}
.btn-primary:hover { opacity: 0.9; color: white; }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 0.75rem 1.75rem;
  border-radius: 2px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--gold); color: white; }

.btn-outline-white {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.7);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 2px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline-white:hover { border-color: var(--gold); color: var(--gold); }

/* Grids */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Stats strip */
.stats-strip { background: var(--gold); padding: 2rem 0; color: white; }
.stats-strip-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; text-align: center; }
.stats-strip .stat-number { font-size: 2rem; font-weight: 700; display: block; font-family: 'Playfair Display', serif; }
.stats-strip .stat-label  { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.88; }

/* Cards */
.card {
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body { padding: 1.25rem; }

/* Building grid */
.buildings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.building-card {
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.09);
  transition: transform 0.2s, box-shadow 0.2s;
}
.building-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,0.13); }
.building-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.building-card-body { padding: 1.25rem; }
.building-card-body h3 { margin: 0.35rem 0 0.25rem; font-size: 1.2rem; color: var(--navy); }
.building-card-body .meta { font-size: 0.82rem; color: var(--mgray); margin: 0 0 0.5rem; }
.building-card-body .price { font-weight: 600; color: var(--navy); font-size: 0.95rem; }

/* Badge */
.badge {
  display: inline-block;
  background: var(--lgray);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}
.badge-gold { background: var(--gold); color: white; }
.badge-teal { background: var(--teal); color: white; }

/* Pre-con spotlight */
.precon-spotlight {
  background: linear-gradient(120deg, var(--navy) 60%, var(--teal) 100%);
  border-radius: 6px;
  padding: 3rem;
  color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.precon-spotlight h2 { color: white; }
.precon-spotlight p { color: rgba(255,255,255,0.8); }

/* IDX embed */
.idx-embed-wrap {
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1.5rem;
}

/* Report cards */
.report-card {
  background: white;
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  border-left: 4px solid var(--gold);
}
.report-card h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--navy); }

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: white;
  border-radius: 4px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}
.filter-group { display: flex; align-items: center; gap: 0.5rem; }
.filter-group label { font-size: 0.82rem; color: var(--mgray); font-weight: 500; }
.filter-group select {
  border: 1px solid #D0D5DD;
  border-radius: 4px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  color: #333;
}

/* Form styles */
.contact-form label {
  display: block;
  font-weight: 500;
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: #333;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #D0D5DD;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: #333;
  background: #fff;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.form-note {
  font-size: 0.78rem;
  color: var(--mgray);
  margin-top: 1rem;
  line-height: 1.6;
}

/* Navigation */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}
.main-nav { display: flex; align-items: center; gap: 1.25rem; }
.main-nav a { color: rgba(255,255,255,0.85); font-size: 0.88rem; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: var(--gold); opacity: 1; }

/* Language switcher */
.lang-switcher {
  display: flex; gap: 0.5rem;
  margin-left: 0.75rem;
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 0.75rem;
}
.lang-btn { color: rgba(255,255,255,0.65); font-size: 0.78rem; font-weight: 600; }
.lang-btn.lang-active { color: var(--gold); }

/* Mobile hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: white; border-radius: 1px; }

/* Logo */
.site-logo {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}
.site-logo span { display: block; font-size: 0.65rem; font-weight: 400; color: rgba(255,255,255,0.6); font-family: 'Inter', sans-serif; letter-spacing: 0.06em; text-transform: uppercase; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
  font-size: 0.85rem;
  line-height: 1.8;
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; font-size: 0.78rem; }
.footer-disclaimer { font-size: 0.72rem; color: rgba(255,255,255,0.4); margin-top: 0.5rem; max-width: 800px; margin-left: auto; margin-right: auto; line-height: 1.5; }

/* WhatsApp float */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  background: #25D366; border-radius: 50%;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s;
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.08); opacity: 1; }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

/* Why Miami section */
.why-list { display: flex; flex-direction: column; gap: 2rem; }
.why-item { display: flex; gap: 1.5rem; align-items: flex-start; }
.why-num {
  font-size: 2rem; font-weight: 700; color: var(--gold);
  font-family: 'Playfair Display', serif; flex-shrink: 0; line-height: 1;
  min-width: 2.5rem;
}
.why-item h3 { color: white; margin-bottom: 0.4rem; font-size: 1.05rem; }
.why-item p  { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin: 0; }

/* Sticky bottom bar */
.sticky-bar {
  position: fixed; bottom: 5.5rem; left: 0; right: 0;
  background: var(--navy); border-top: 2px solid var(--gold);
  padding: 0.75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  z-index: 90; box-shadow: 0 -2px 12px rgba(0,0,0,0.25);
  transform: translateY(100%); transition: transform 0.35s ease;
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-bar-label { color: white; font-size: 0.85rem; }
.sticky-bar-ctas { display: flex; gap: 0.75rem; flex-shrink: 0; }
.sticky-bar-outline {
  display: inline-block; border: 1px solid rgba(255,255,255,0.5);
  color: white; padding: 0.5rem 1.25rem; border-radius: 2px;
  font-size: 0.85rem; font-weight: 500; text-decoration: none;
}
.sticky-bar-outline:hover { border-color: var(--gold); color: var(--gold); opacity: 1; }

/* Exit popup */
.exit-modal {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.65); align-items: center; justify-content: center;
}
.exit-modal.open { display: flex; }
.exit-modal-box {
  background: white; border-radius: 6px; padding: 2rem;
  max-width: 440px; width: 90%; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.exit-modal-close {
  position: absolute; top: 0.75rem; right: 1rem;
  font-size: 1.5rem; background: none; border: none; cursor: pointer; color: var(--mgray); line-height: 1;
}

/* AI search box */
.ai-search-box {
  background: white;
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex; gap: 0.75rem;
}
.ai-search-box input {
  flex: 1; border: 1px solid #D0D5DD; border-radius: 4px;
  padding: 0.7rem 1rem; font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}
.ai-search-box input:focus { outline: none; border-color: var(--gold); }

/* Fact strip (single building page) */
.fact-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; text-align: center; padding: 2rem 0;
  border-bottom: 1px solid #E8E8E8;
}
.fact-strip .fact-num { font-size: 1.8rem; font-weight: 700; color: var(--navy); display: block; font-family: 'Playfair Display', serif; }
.fact-strip .fact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mgray); }

/* Amenities list */
.amenities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem 1rem; list-style: none; margin: 0; padding: 0; }
.amenities-grid li::before { content: "✓ "; color: var(--gold); font-weight: 700; }

/* Answer box */
.answer-box {
  background: var(--lgray);
  border-left: 4px solid var(--gold);
  border-radius: 0 4px 4px 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.answer-box h2 { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--navy); }
.answer-box p { margin: 0; font-size: 0.95rem; color: #333; }

/* ========================
   MOBILE (max-width: 768px)
   ======================== */
@media (max-width: 768px) {
  .grid-2col, .grid-3col, .grid-4col,
  .buildings-grid, .stats-strip-grid,
  .footer-grid, .precon-spotlight { grid-template-columns: 1fr; }

  .hero-h1 { font-size: 1.85rem; max-width: 100%; }
  .section-white, .section-light, .section-navy, .section-teal { padding: 3rem 0; }
  .page-hero { padding: 2.5rem 0 2rem; }
  .precon-spotlight { padding: 2rem; }

  .fact-strip { grid-template-columns: 1fr 1fr; }
  .amenities-grid { grid-template-columns: 1fr 1fr; }

  .main-nav {
    display: none; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.nav-open { display: flex; }
  .main-nav a { padding: 0.6rem 0; font-size: 1rem; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .lang-switcher { border-left: none; padding-left: 0; margin-left: 0; padding-top: 0.75rem; }
  .nav-toggle { display: flex; }

  .whatsapp-float { width: 48px; height: 48px; bottom: 1.25rem; right: 1.25rem; }
  .whatsapp-float svg { width: 24px; height: 24px; }

  .sticky-bar { flex-direction: column; align-items: flex-start; bottom: 4.5rem; padding: 0.75rem 1rem; }
  .sticky-bar-ctas { gap: 0.5rem; }

  .filter-bar { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .filter-group { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .fact-strip, .amenities-grid { grid-template-columns: 1fr; }
}
