/* ===========================================================
   Okanagan Home Group — Shared Stylesheet
   Brand palette: Cobalt / Chalk / Onyx / Slate / Seaglass / Coral / Legacy Blue / Aqua
   =========================================================== */

:root {
  --navy: #050e3d;
  --lake-blue: #05c0f9;
  --gold: #05c0f9;
  --sand: #252830;        /* dark card alt */
  --white: #ffffff;
  --charcoal: #e8e9ed;    /* light body text on dark bg */
  --grey: #9a9fad;        /* muted text */
  --light-grey: #2e3240;  /* borders on dark bg */
  --bg: #1a1c22;          /* main dark background */
  --bg-card: #22252f;     /* card/surface background */
  --aqua: #00fbf0;
  --radius: 6px;
  --max-width: 1180px;
  --shadow: 0 4px 24px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--charcoal);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--white);
  line-height: 1.25;
  margin-top: 0;
}

a { color: var(--lake-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}
.btn-primary {
  background: #05c0f9;
  color: var(--white);
  border-color: #05c0f9;
}
.btn-primary:hover {
  background: transparent;
  color: #05c0f9;
  border-color: #05c0f9;
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
  text-decoration: none;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: relative;
  background: #13151a;
  border-bottom: none;
  z-index: 100;
}
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(5, 192, 249, 0.7);
  box-shadow: 0 0 18px 4px rgba(5, 192, 249, 0.5);
  z-index: 101;
}
.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 8px 40px;
  max-width: 100%;
  margin: 0 auto;
}
.nav-wrap nav {
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: var(--navy); }
.logo .tagline { color: var(--navy); font-weight: 400; font-size: 0.95rem; }
@media (max-width: 760px) {
  .logo .tagline { display: none; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.nav-links a {
  color: var(--white);
  font-weight: 600;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--lake-blue);
  transition: width 0.2s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: #05c0f9;
  text-decoration: none;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; white-space: nowrap; }
.nav-cta .btn { padding: 10px 20px; font-size: 0.86rem; }
.nav-login { padding: 9px 18px; font-size: 0.86rem; flex-shrink: 0; white-space: nowrap; }
.nav-toggle { display: none; }

@media (max-width: 1180px) {
  .nav-cta a[href^="tel:"] { display: none; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
}

/* ---------- Account login modal (iframe) ---------- */
#rn-account-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 20, 0.72);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#rn-account-overlay.open {
  display: flex;
}
.rn-account-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 90vh;
  max-height: 640px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.rn-account-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.rn-account-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.08);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  color: #333;
}
.rn-account-close:hover {
  background: rgba(0, 0, 0, 0.16);
}
body.rn-modal-open {
  overflow: hidden;
}
@media (max-width: 600px) {
  .rn-account-modal {
    max-width: 100%;
    height: 92vh;
  }
}

/* ---------- Mobile header redesign ---------- */
.mobile-header-bar { display: none; }

@media (max-width: 760px) {
  .nav-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 22px 20px 18px;
    gap: 14px;
  }
  .nav-wrap nav { display: none; }
  .logo img {
    height: auto !important;
    max-height: 130px;
    width: auto;
    margin: 0 auto;
  }
  .nav-login { display: none; }

  .mobile-header-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 0 20px 22px;
    text-align: center;
  }
  .mobile-contact-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .mobile-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
  }
  .mobile-contact-link i {
    color: var(--lake-blue);
    font-size: 0.95rem;
  }
  .mobile-contact-link:hover { text-decoration: none; color: var(--lake-blue); }
  .mobile-social .social-icons { justify-content: center; }
  .mobile-account-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--white);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .mobile-account-link i { color: var(--lake-blue); }
  .mobile-account-link:hover { text-decoration: none; color: var(--lake-blue); }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(rgba(29,53,87,0.55), rgba(29,53,87,0.55)),
              url('kelowna-hero.png') center/cover no-repeat;
  color: var(--white);
  padding: 110px 24px;
  text-align: center;
}
.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  max-width: 760px;
  margin: 0 auto 16px;
}
.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Hero Search Bar ---------- */
.hero-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 60px;
  padding: 10px 10px 10px 28px;
  max-width: 760px;
  margin: 0 auto;
  gap: 0;
}
.hero-search-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.hero-search-field label {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 3px;
}
.hero-search-field select {
  background: transparent;
  border: none;
  color: var(--white);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}
.hero-search-field select option {
  background: var(--bg-card);
  color: var(--charcoal);
}
.hero-search-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  margin: 0 20px;
  flex-shrink: 0;
}
.hero-search-btn {
  border-radius: 50px !important;
  padding: 13px 24px !important;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .hero-search {
    flex-direction: column;
    border-radius: 16px;
    padding: 20px;
    gap: 14px;
    align-items: stretch;
  }
  .hero-search-divider { display: none; }
  .hero-search-btn { width: 100%; text-align: center; justify-content: center; }
}

/* ---------- Search bar ---------- */
.search-bar {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 920px;
  margin: -54px auto 0;
  position: relative;
  z-index: 5;
  border: 1px solid var(--light-grey);
}
.search-bar select, .search-bar input {
  flex: 1;
  min-width: 140px;
  padding: 12px 14px;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--charcoal);
}
.search-bar .btn { flex: 0 0 auto; }

/* ---------- Section helpers ---------- */
.section { padding: 80px 24px; }
.section-narrow { padding: 60px 24px; }
.section-tight { padding-top: 100px; }
.section-alt { background: var(--bg-card); }
.section-navy { background: #0f1117; color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.eyebrow {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Grids & Cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-grey);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(29,53,87,0.16); }
.card img { width: 100%; height: 210px; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h3 { margin-bottom: 6px; font-size: 1.1rem; }
.card-price {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  color: var(--lake-blue);
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.card-meta {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--grey);
  display: flex;
  gap: 14px;
  margin-top: 10px;
}
.tag {
  display: inline-block;
  background: rgba(5, 192, 249, 0.12);
  color: var(--lake-blue);
  border: 1px solid rgba(5, 192, 249, 0.25);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* ---------- Stats ---------- */
.stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  text-align: center;
}
.stat-num {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
}
.stat-label {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}
.testimonial p { font-style: italic; color: var(--charcoal); }
.testimonial .name {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  color: var(--white);
  font-style: normal;
  margin-top: 12px;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

label {
  display: block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--charcoal);
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--bg);
}
textarea { resize: vertical; min-height: 120px; }

.form-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--light-grey);
}

/* ---------- Map placeholder ---------- */
.map-placeholder {
  background: var(--light-grey) url('https://images.unsplash.com/photo-1524813686514-a57563d77965?auto=format&fit=crop&w=1200&q=50') center/cover no-repeat;
  border-radius: var(--radius);
  height: 320px;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.map-placeholder::after {
  content: "Map placeholder — embed Google Maps / IDX map widget here";
  display: block;
  width: 100%;
  background: rgba(29,53,87,0.78);
  color: var(--white);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
}


/* ---------- Floating CTA ---------- */
.float-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
}
.float-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lake-blue);
  color: #fff;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(5,192,249,0.4);
  text-decoration: none;
  transition: all 0.2s ease;
}
.float-cta a:hover {
  background: #03a8da;
  box-shadow: 0 6px 28px rgba(5,192,249,0.55);
  text-decoration: none;
}

/* ---------- Social Icons ---------- */
.social-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.social-icons a:hover {
  background: var(--lake-blue);
  border-color: var(--lake-blue);
  color: var(--bg);
  text-decoration: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0f1117;
  color: var(--grey);
  padding: 56px 24px 28px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  max-width: var(--max-width);
  margin: 0 auto;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.site-footer a { color: var(--grey); }
.site-footer a:hover { color: var(--lake-blue); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- Page header banner (interior pages) ----------*/
.page-banner {
  background: linear-gradient(rgba(29,53,87,0.72), rgba(29,53,87,0.72)),
              url('https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1600&q=60') center/cover no-repeat;
  color: var(--white);
  padding: 70px 24px;
  text-align: center;
}
.page-banner h1 { color: var(--white); margin-bottom: 8px; }
.page-banner p { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--grey);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--lake-blue); }

/* ---------- Misc ---------- */
.divider {
  height: 1px;
  background: var(--light-grey);
  margin: 60px 0;
  opacity: 0.4;
}
.center { text-align: center; }
.note {
  font-size: 0.85rem;
  color: var(--grey);
  font-style: italic;
}
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}
