
/* =========================================================
   Greater Vancouver Homes — Unified Stylesheet
   Replace /css/style.css with this entire file
   ========================================================= */

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

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #111;
  background: #fff;
}

img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
p { margin: 0 0 1rem; }

/* ---------- Layout Helpers ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-content { min-height: 48vh; }

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  flex-wrap: wrap; /* allows wrapping on narrow widths */
}

/* Logo */
.logo a {
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* Nav base */
.site-nav { flex: 1 1 auto; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: 0.5rem 0.25rem;
  font-weight: 500;
  color: #333;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav li.active a {
  color: #000;
  border-bottom-color: #000;
}

/* Mobile toggle */
.mobile-nav-toggle {
  display: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

/* Mobile behavior */
@media (max-width: 768px) {
  .mobile-nav-toggle { display: block; order: 2; }
  .site-nav { width: 100%; order: 3; }
  .site-nav ul {
    display: none;                 /* hidden by default */
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0;
    border-top: 1px solid #eee;
  }
  .site-nav ul.open { display: flex; }
  .site-nav a { padding: 0.6rem 0; width: 100%; }
}

/* =========================================================
   HERO
   - Background image path: /assets/images/hero.png
   - Dark overlay plus translucent white text card
   - Watermark-safe positioning
   ========================================================= */
.hero {
  position: relative;
  min-height: clamp(380px, 58vh, 640px);
  background-image: url('/assets/images/hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Global dark overlay for overall contrast */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom right, rgba(0,0,0,0.35), rgba(0,0,0,0.25));
}

/* Text group with safe margins */
.hero-overlay {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end; /* bottom-left on desktop */
  justify-content: flex-start;
  padding: clamp(1rem, 4vw, 2.5rem);
}

/* Translucent white card behind text (the “white square”) */
.hero-text {
  max-width: min(760px, 92%);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  color: #111;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 3vw, 1.75rem);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

/* Headline and subhead */
.hero-text h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: 0.2px;
}

.hero-text p {
  margin: 0;
  font-size: clamp(0.95rem, 1.7vw, 1.0625rem);
  line-height: 1.7;
  color: #222;
}

/* Mobile centering for watermark safety */
@media (max-width: 768px) {
  .hero-overlay {
    align-items: flex-end;
    justify-content: center;
  }
  .hero-text {
    text-align: center;
  }
}

/* =========================================================
   HOMEPAGE — Intro Section
   ========================================================= */
.intro {
  padding: 2.5rem 0 2.75rem;
}
.intro .container { max-width: 960px; }
.intro h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.25;
  font-weight: 600;
}
.intro p { color: #242424; line-height: 1.8; }
.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid #111;
  border-radius: 10px;
  font-weight: 600;
}
.read-more:hover { background: #111; color: #fff; }

/* =========================================================
   ABOUT PAGE TYPOGRAPHY
   ========================================================= */
section.about { padding: 2rem 0; }
.about .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.about h1 {
  font-size: clamp(2rem, 2.6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: 0.2px;
  margin: 0 0 1.25rem;
}
.about h2 {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.25;
  margin: 2.25rem 0 0.75rem;
  font-weight: 600;
  text-rendering: optimizeLegibility;
}
.about p {
  font-size: 1rem;
  line-height: 1.8;
  color: #242424;
  margin: 0 0 1rem;
  text-wrap: pretty;
}
.about h2 + p { margin-top: 0.25rem; }
@media (min-width: 768px) {
  .about p { font-size: 1.0625rem; }
  .about h2 { margin-top: 2.5rem; }
}
section.about:first-of-type { padding-top: 1rem; }

/* =========================================================
   BLOG BASICS (Index and Posts)
   ========================================================= */
.blog-list { padding: 2rem 0; }
.blog-list .container { max-width: 960px; }
.post-card {
  padding: 1.25rem 0;
  border-bottom: 1px solid #eee;
}
.post-card:last-child { border-bottom: 0; }
.post-card h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 1.8vw, 1.375rem);
}
.post-card p { color: #333; }

/* Post body */
.post {
  padding: 2rem 0 3rem;
}
.post .container { max-width: 760px; }
.post h1 {
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  margin: 0 0 1rem;
}
.post p, .post li { line-height: 1.85; color: #242424; }
.post img { border-radius: 8px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid #eee;
  background: #fafafa;
  margin-top: 2rem;
}
.site-footer .container {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}
.footer-links a {
  margin-right: 1rem;
  color: #333;
  font-size: 0.95rem;
}
.footer-links a:last-child { margin-right: 0; }

/* Twitter icon sizing */
.footer-social img {
  width: 22px;
  height: 22px;
  display: block;
  opacity: 0.9;
}
.footer-social a:hover img { opacity: 1; }

.footer-copy {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  color: #555;
}

/* =========================================================
   BUTTONS / UTILITIES
   ========================================================= */
.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border: 1px solid #111;
  border-radius: 10px;
  font-weight: 600;
}
.btn:hover { background: #111; color: #fff; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }

/* =========================================================
   HERO ALIGNMENT FIX — Safe override for desktop centering
   ========================================================= */
@media (min-width: 769px) {
  .hero-overlay {
    justify-content: center !important;   /* center bubble horizontally */
    align-items: flex-end !important;     /* keep it toward bottom */
  }

  .hero-text {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
/* ===== Page Content Styling ===== */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #222;
}

.page-content h1,
.page-content h2,
.page-content h3 {
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.page-content p,
.page-content li {
  text-align: left;
  margin-bottom: 1.25rem;
}

.page-content img {
  max-width: 650px;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.page-content .caption {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  margin-top: -0.75rem;
  margin-bottom: 2rem;
}
