/* ============================================================
   Select Homes BC — Shared Stylesheet
   Brand: Deep Navy #0f1e35 · Gold #c9a84c · Cream #f8f4ef
   "Your Home. Our Priority."
   ============================================================ */

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

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

:root {
  --navy:       #0f1e35;
  --navy-mid:   #1a2e47;
  --navy-light: #243d5a;
  --gold:       #c9a84c;
  --gold-light: #e0bf6a;
  --gold-pale:  #f5e9c8;
  --cream:      #f8f4ef;
  --cream-dark: #ede8e0;
  --white:      #ffffff;
  --gray:       #6b7280;
  --gray-light: #9ca3af;
  --border:     #ddd5c8;
  --text:       #1f2937;
  --text-light: #4b5563;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; }

/* ── TOPBAR ── */
.topbar {
  background: var(--navy);
  color: #9ab0c8;
  font-size: 13px;
  padding: 8px 24px;
  text-align: center;
  letter-spacing: 0.2px;
}
.topbar a { color: #9ab0c8; margin: 0 14px; transition: color 0.2s; }
.topbar a:hover { color: var(--gold-light); }

/* ── NAVBAR ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(15,30,53,0.08);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 76px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 54px; width: auto; object-fit: contain; }
/* Fallback text logo when image not loaded */
.logo-text-fallback { display: flex; flex-direction: column; justify-content: center; }
.logo-text-fallback .brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 16px; color: var(--navy); line-height: 1.1;
}
.logo-text-fallback .brand em { color: var(--gold); font-style: normal; }
.logo-text-fallback .tagline { font-size: 9px; color: var(--gray); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 15px; font-size: 14px; font-weight: 500;
  border-radius: 6px; color: var(--navy); transition: all 0.2s;
}
.nav-links a:hover { background: var(--cream); color: var(--gold); }
.nav-cta {
  background: var(--navy) !important; color: var(--white) !important;
  padding: 10px 22px !important; border-radius: 6px !important;
  font-weight: 600 !important; border: 1px solid var(--navy-light) !important;
}
.nav-cta:hover { background: var(--gold) !important; border-color: var(--gold) !important; }

/* ── HERO (landing pages) ── */
.hero {
  position: relative; min-height: 500px; overflow: hidden;
  background: var(--navy); display: flex; align-items: flex-end;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,30,53,0.97) 0%, rgba(15,30,53,0.35) 55%, transparent 100%);
}
.hero-content {
  position: relative; max-width: 1200px;
  margin: 0 auto; width: 100%; padding: 64px 28px;
}
.breadcrumb { font-size: 13px; color: #6a8aaa; margin-bottom: 18px; }
.breadcrumb a { color: #6a8aaa; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.hero-badge {
  display: inline-block; padding: 5px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 16px;
}
.badge-selling { background: #16a34a; color: #fff; }
.badge-coming  { background: var(--gold); color: #fff; }
.badge-vip     { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 54px); font-weight: 700;
  color: var(--white); line-height: 1.12; margin-bottom: 10px;
}
.hero-sub { color: #8aa4be; font-size: 16px; margin-top: 6px; }
.hero-meta { display: flex; gap: 28px; margin-top: 20px; flex-wrap: wrap; }
.hero-meta-item { color: #b0c8e0; font-size: 14px; }

/* ── MAIN LAYOUT (landing pages) ── */
.main {
  max-width: 1200px; margin: 0 auto;
  padding: 64px 28px;
  display: grid; grid-template-columns: 1fr 390px; gap: 52px; align-items: start;
}
.content-section { margin-bottom: 52px; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.content-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 700; color: var(--navy); margin-bottom: 16px;
}
.content-section p { font-size: 15px; color: var(--text-light); line-height: 1.82; margin-bottom: 12px; }

/* Specs */
.specs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.spec-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px; text-align: center;
  box-shadow: 0 1px 4px rgba(15,30,53,0.05);
}
.spec-num { font-size: 22px; font-weight: 700; color: var(--navy); }
.spec-label { font-size: 12px; color: var(--gray); margin-top: 4px; }

/* Features */
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.feature-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); }
.feature-item::before { content: '✓'; color: var(--gold); font-weight: 700; font-size: 15px; flex-shrink: 0; margin-top: 1px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; margin-top: 22px; border-radius: 12px; overflow: hidden; height: 310px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-right { display: flex; flex-direction: column; gap: 8px; }
.gallery-right img { flex: 1; min-height: 0; }

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 90px; }
.register-card {
  background: var(--white); border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 28px rgba(15,30,53,0.10);
  padding: 30px; margin-bottom: 20px;
}
.register-card h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.price-display { font-size: 24px; font-weight: 700; color: var(--gold); margin: 10px 0 22px; }
.form-group { margin-bottom: 12px; }
.form-group input, .form-group select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: 'Inter', sans-serif;
  outline: none; background: var(--cream); transition: border-color 0.2s;
  color: var(--text);
}
.form-group input:focus, .form-group select:focus { border-color: var(--gold); background: var(--white); }
.form-submit {
  width: 100%; background: var(--navy); color: var(--white);
  border: none; padding: 14px; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.form-submit:hover { background: var(--gold); }
.form-note { font-size: 11px; color: var(--gray); text-align: center; margin-top: 10px; }

/* Quick info */
.quick-info { background: var(--cream); border: 1px solid var(--border); border-radius: 10px; padding: 22px; }
.quick-info h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.qi-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.qi-row:last-child { border-bottom: none; }
.qi-label { color: var(--gray); }
.qi-val { font-weight: 600; color: var(--navy); }

/* Agent strip */
.agent-strip { background: var(--navy); border-radius: 12px; padding: 22px; color: var(--white); margin-top: 20px; }
.agent-strip-inner { display: flex; gap: 16px; align-items: flex-start; }
.agent-strip img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--gold); }
.agent-strip-name { font-weight: 700; font-size: 17px; }
.agent-strip-title { font-size: 12px; color: var(--gold); margin-bottom: 10px; }
.agent-strip-contact a { display: block; color: #8aa4be; font-size: 13px; margin-bottom: 5px; transition: color 0.2s; }
.agent-strip-contact a:hover { color: var(--gold-light); }

/* Back banner */
.back-banner { background: var(--cream-dark); border-top: 1px solid var(--border); padding: 18px 28px; text-align: center; font-size: 14px; color: var(--gray); }
.back-banner a { color: var(--gold); font-weight: 600; }

/* Footer */
footer { background: var(--navy); color: #6a8aaa; font-size: 13px; padding: 32px 28px; text-align: center; }
footer a { color: #6a8aaa; margin: 0 10px; transition: color 0.2s; }
footer a:hover { color: var(--gold); }
footer .footer-tagline { color: var(--gold); font-style: italic; margin-bottom: 10px; font-size: 14px; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .main { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .gallery { height: 230px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .topbar { display: none; }
  .main { padding: 40px 16px; }
}
