/* ==========================================================
   JESSICA FURMAH REAL ESTATE — Brand System
   Palette:
     #0E2725  Forest (deep evergreen — primary ink)
     #99AAAF  Mist (cool blue-grey accent)
     #B3BBAA  Sage (warm muted green secondary)
     #D2CCBE  Stone (warm beige neutral)
     #FBF8EF  Cream (off-white base)
   ========================================================== */

:root {
  --forest: #0E2725;
  --forest-soft: #1a3835;
  --forest-deep: #081816;
  --mist: #99AAAF;
  --sage: #B3BBAA;
  --sage-soft: #c8cfc1;
  --stone: #D2CCBE;
  --stone-soft: #e0dcd1;
  --cream: #FBF8EF;
  --cream-pure: #ffffff;

  /* Functional */
  --ink: var(--forest);
  --bg: var(--cream);
  --bg-elev: var(--cream-pure);
  --muted: rgba(14, 39, 37, 0.6);
  --muted-strong: rgba(14, 39, 37, 0.78);
  --line: rgba(14, 39, 37, 0.12);
  --line-soft: rgba(14, 39, 37, 0.06);
  --accent: var(--forest);

  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 20px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 0.25s;
  --t-base: 0.45s;
  --t-slow: 0.8s;

  --container: 1280px;
  --container-narrow: 920px;
  --container-text: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--forest); color: var(--cream); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.5rem); font-weight: 400; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.7rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 2.15rem); }
h4 { font-size: 1.3rem; font-weight: 500; letter-spacing: 0; }
h1 em, h2 em, h3 em {
  font-style: italic;
  font-family: var(--serif);
  font-weight: 400;
}

.script {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted-strong);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  line-height: 1.5;
  font-weight: 400;
  color: var(--muted-strong);
  max-width: 60ch;
}
.lede em { font-style: italic; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }
.container-text { max-width: var(--container-text); margin: 0 auto; padding: 0 24px; }

section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
section.tight { padding: clamp(40px, 6vw, 80px) 0; }

/* Section tones */
.tone-cream { background: var(--cream); color: var(--ink); }
.tone-stone { background: var(--stone); color: var(--ink); }
.tone-sage  { background: var(--sage);  color: var(--ink); }
.tone-mist  { background: var(--mist);  color: var(--ink); }
.tone-forest{ background: var(--forest);color: var(--cream); }
.tone-forest h1, .tone-forest h2, .tone-forest h3, .tone-forest h4 { color: var(--cream); }
.tone-forest .eyebrow { color: rgba(251, 248, 239, 0.7); }
.tone-forest .lede { color: rgba(251, 248, 239, 0.85); }

/* ---------- Nav (transparent over hero, opaque on scroll) ---------- */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
/* DEFAULT (non-home pages OR home after scroll): opaque cream nav */
nav.site-nav,
nav.site-nav.scrolled {
  background: rgba(251, 248, 239, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
/* HOME page, before scroll: fully transparent over video */
body.page-home nav.site-nav:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
}
nav.site-nav.scrolled { padding: 14px 40px; }

/* Logo swap: dark when nav is opaque (over cream), light when transparent (over video) */
.nav-brand { display: flex; align-items: center; position: relative; z-index: 2; }
.nav-brand img {
  height: 56px;
  width: auto;
  transition: transform var(--t-base) var(--ease), opacity 0.3s var(--ease);
  display: block;
}
.nav-brand .nav-logo-light { display: none; }
body.page-home nav.site-nav:not(.scrolled) .nav-brand .nav-logo-dark { display: none; }
body.page-home nav.site-nav:not(.scrolled) .nav-brand .nav-logo-light { display: block; }
.nav-brand:hover img { transform: scale(1.02); }
nav.site-nav.scrolled .nav-brand img { height: 48px; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-strong);
  padding: 14px 18px;
  position: relative;
  transition: color var(--t-fast) var(--ease);
  font-family: var(--sans);
}
.nav-links > li.has-mega > a::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.55;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-links > li.has-mega:hover > a::after,
.nav-links > li.has-mega:focus-within > a::after {
  transform: rotate(225deg) translateY(2px);
  opacity: 1;
}
.nav-links > li > a:hover,
.nav-links > li.has-mega:focus-within > a { color: var(--forest); }
.nav-links > li > a.active { color: var(--forest); }
.nav-links > li > a.active::before {
  content: '';
  position: absolute;
  bottom: 6px; left: 18px; right: 18px;
  height: 1px;
  background: var(--forest);
}

/* Cream-coloured nav links when transparent over hero */
body.page-home nav.site-nav:not(.scrolled) .nav-links > li > a { color: rgba(251, 248, 239, 0.92); }
body.page-home nav.site-nav:not(.scrolled) .nav-links > li > a:hover,
body.page-home nav.site-nav:not(.scrolled) .nav-links > li.has-mega:focus-within > a { color: var(--cream); }
body.page-home nav.site-nav:not(.scrolled) .nav-links > li > a.active::before { background: var(--cream); }

/* ----- Mega menu panel ----- */
/* ----- Mega menu panel -----
   NOTE: panels are inline-hidden in HTML as a fallback in case external CSS
   is stale/cached. The desktop rules below override those inline styles
   with !important so the hover behavior still works.

   Positioning: we use `top: var(--nav-height)` (set dynamically by JS) so the
   panel sits flush under the nav regardless of whether the nav has
   backdrop-filter applied (which would otherwise create a new containing
   block and break `top: 100%`). */
@media (min-width: 961px) {
  .mega-panel {
    position: fixed !important;
    top: var(--nav-height, 90px) !important;
    left: 0 !important; right: 0 !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    background: var(--cream-pure);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 24px 50px -28px rgba(14, 39, 37, 0.18);
    padding: 50px 60px 60px;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-8px);
    /* HIDE transition has a delay so cursor has time to cross the gap
       between the nav item and the panel without it vanishing. */
    transition:
      opacity 0.22s var(--ease) 0.18s,
      transform 0.22s var(--ease) 0.18s,
      visibility 0s linear 0.4s;
    z-index: 99;
    pointer-events: none !important;
  }
  /* Invisible "bridge" that extends the hoverable area upward into the gap,
     so moving from nav link → panel never enters dead space. */
  .mega-panel::before {
    content: '';
    position: absolute;
    top: -20px; left: 0; right: 0;
    height: 20px;
  }
  /* SHOW: no delay, panel appears immediately on hover */
  .has-mega:hover > .mega-panel,
  .has-mega:focus-within > .mega-panel,
  .mega-panel:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
    pointer-events: auto !important;
    transition:
      opacity 0.22s var(--ease) 0s,
      transform 0.22s var(--ease) 0s,
      visibility 0s linear 0s;
  }

  /* Slightly extend the hover-trigger area on nav items so moving down
     toward the panel doesn't leave the hover zone prematurely. */
  .nav-links > li.has-mega {
    padding-bottom: 12px;
    margin-bottom: -12px;
  }
}
.mega-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 60px;
  grid-template-columns: repeat(3, 1fr);
}
.mega-grid.mega-cols-2 { grid-template-columns: 1.2fr 1fr; }
.mega-grid.mega-cols-feature { grid-template-columns: 0.9fr 1fr 1fr; }
.mega-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.mega-col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mega-col ul li a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--forest);
  transition: color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
  letter-spacing: -0.005em;
}
.mega-col ul li a:hover {
  color: var(--forest-deep);
  padding-left: 8px;
}
.mega-col ul li a .mega-sub {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}
.mega-col ul li a { flex-direction: column; align-items: flex-start; gap: 0; }
.mega-feature {
  padding-right: 40px;
  border-right: 1px solid var(--line-soft);
}
.mega-feature .mega-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.mega-feature h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--forest);
}
.mega-feature p {
  font-size: 14px;
  color: var(--muted-strong);
  line-height: 1.6;
  margin-bottom: 20px;
}
.mega-feature .mega-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
  border-bottom: 1px solid var(--forest);
  padding-bottom: 4px;
  transition: gap var(--t-base) var(--ease);
}
.mega-feature .mega-cta:hover { gap: 12px; }
.mega-portrait {
  aspect-ratio: 4/5;
  background: var(--stone-soft);
  margin-bottom: 22px;
  overflow: hidden;
}
.mega-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse at center, black 65%, transparent 100%);
          mask-image: radial-gradient(ellipse at center, black 65%, transparent 100%);
}

/* CTA button — softens when over video */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: var(--forest);
  color: var(--cream);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--forest);
  transition: all var(--t-fast) var(--ease);
  font-family: var(--sans);
  position: relative;
  z-index: 2;
}
.nav-cta:hover { background: transparent; color: var(--forest); }
body.page-home nav.site-nav:not(.scrolled) .nav-cta {
  background: transparent;
  color: var(--cream);
  border-color: rgba(251, 248, 239, 0.55);
}
body.page-home nav.site-nav:not(.scrolled) .nav-cta:hover {
  background: var(--cream);
  color: var(--forest);
  border-color: var(--cream);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  width: 48px;
  height: 48px;
  padding: 0;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 110;
  transition: border-color var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.mobile-toggle span {
  display: block;
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--forest);
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease), top var(--t-base) var(--ease);
}
.mobile-toggle span:nth-child(1) { top: 16px; }
.mobile-toggle span:nth-child(2) { top: 23px; }
.mobile-toggle span:nth-child(3) { top: 30px; }
nav.site-nav.menu-open .mobile-toggle { border-color: var(--forest); }
nav.site-nav.menu-open .mobile-toggle span:nth-child(1) { top: 23px; transform: rotate(45deg); }
nav.site-nav.menu-open .mobile-toggle span:nth-child(2) { opacity: 0; }
nav.site-nav.menu-open .mobile-toggle span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  nav.site-nav, nav.site-nav.scrolled,
  body.page-home nav.site-nav:not(.scrolled) {
    padding: 12px 20px;
    background: var(--cream);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--line-soft);
  }
  /* On mobile, always show dark logo */
  body.page-home nav.site-nav:not(.scrolled) .nav-brand .nav-logo-dark { display: block; }
  body.page-home nav.site-nav:not(.scrolled) .nav-brand .nav-logo-light { display: none; }
  body.page-home nav.site-nav:not(.scrolled) .nav-links > li > a { color: var(--forest); }

  .nav-links, .nav-cta { display: none; }
  .mobile-toggle { display: flex; }
  .nav-brand img { height: 50px; }

  /* Mega panels: hidden on mobile (links stay simple) */
  .mega-panel { display: none !important; }
  .nav-links > li.has-mega > a::after { display: none; }

  nav.site-nav.menu-open { background: var(--cream); }
  nav.site-nav.menu-open .nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--cream);
    padding: 100px 28px 140px;
    gap: 0;
    z-index: 105;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  nav.site-nav.menu-open .nav-links li {
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  nav.site-nav.menu-open .nav-links > li > a {
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 20px 0;
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--forest);
  }
  nav.site-nav.menu-open .nav-links a::after { display: none; }
  nav.site-nav.menu-open .nav-cta {
    display: inline-flex !important;
    position: fixed;
    left: 24px; right: 24px; bottom: 28px;
    z-index: 106;
    justify-content: center;
    padding: 20px;
    background: var(--forest);
    color: var(--cream);
    border-color: var(--forest);
    min-height: 60px;
  }
  body.menu-open { overflow: hidden; touch-action: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: var(--cream);
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
}
.btn:hover {
  background: transparent;
  color: var(--forest);
  gap: 16px;
}
.btn-ghost {
  background: transparent;
  color: var(--forest);
}
.btn-ghost:hover { background: var(--forest); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.btn-cream:hover { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-large { padding: 20px 36px; font-size: 13px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--forest);
  border-bottom: 1px solid var(--forest);
  padding-bottom: 4px;
  transition: gap var(--t-base) var(--ease);
}
.link-arrow:hover { gap: 14px; }
.tone-forest .link-arrow { color: var(--cream); border-bottom-color: var(--cream); }

/* ---------- Hero (Video Background) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--forest);
  padding: 0;
  margin-top: 0;
  color: var(--cream);
  /* Pull the hero up so the nav floats over the video */
  z-index: 1;
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Subtle motion smoothing */
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* Layered tints: warm forest gradient + subtle stone sheen for brand cohesion */
    linear-gradient(135deg,
      rgba(14, 39, 37, 0.78) 0%,
      rgba(14, 39, 37, 0.55) 45%,
      rgba(14, 39, 37, 0.75) 100%),
    linear-gradient(180deg,
      rgba(14, 39, 37, 0.45) 0%,
      rgba(14, 39, 37, 0) 35%,
      rgba(14, 39, 37, 0.5) 100%);
}
/* Subtle sage colour multiply for extra brand cohesion */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--forest);
  mix-blend-mode: color;
  opacity: 0.18;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-content {
  max-width: 880px;
  color: var(--cream);
}
.hero-content .eyebrow {
  color: rgba(251, 248, 239, 0.85);
  margin-bottom: 32px;
}
.hero-content .eyebrow::before { background: var(--cream); opacity: 0.7; }
.hero-title {
  color: var(--cream);
  font-size: clamp(2.8rem, 7.5vw, 6.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--stone);
}
.hero-lede {
  color: rgba(251, 248, 239, 0.92);
  max-width: 580px;
  margin-bottom: 0;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
}
.hero-cta-row .btn {
  background: var(--cream);
  color: var(--forest);
  border-color: var(--cream);
}
.hero-cta-row .btn:hover {
  background: transparent;
  color: var(--cream);
}
.hero-cta-row .btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(251, 248, 239, 0.55);
}
.hero-cta-row .btn-ghost:hover {
  background: var(--cream);
  color: var(--forest);
  border-color: var(--cream);
}
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--cream);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.hero-scroll-hint::after {
  content: '';
  width: 1px;
  height: 36px;
  background: var(--cream);
  opacity: 0.6;
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 0.8; }
}
@media (max-width: 760px) {
  .hero { min-height: 88vh; height: auto; padding: 140px 0 100px; }
  .hero-title { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .hero-scroll-hint { display: none; }
}

/* ---------- Section header ---------- */
.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}
@media (max-width: 760px) {
  .section-header { grid-template-columns: 1fr; gap: 24px; }
}
.section-header .eyebrow { margin-bottom: 20px; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 36px 32px;
  transition: transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--forest); }
.card h3 { margin-bottom: 14px; }
.card p { color: var(--muted-strong); }

.tone-forest .card {
  background: var(--forest-soft);
  border-color: rgba(251, 248, 239, 0.12);
}
.tone-forest .card:hover { border-color: var(--cream); }
.tone-forest .card p { color: rgba(251, 248, 239, 0.78); }

.card-numbered::before {
  content: attr(data-number);
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--forest);
  opacity: 0.5;
  margin-bottom: 18px;
}
.tone-forest .card-numbered::before { color: var(--cream); opacity: 0.5; }

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--forest);
}
.tone-forest .stat-num { color: var(--cream); }
.stat-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-strong);
}
.tone-forest .stat-label { color: rgba(251, 248, 239, 0.7); }

/* ---------- Neighbourhood grid ---------- */
.hood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
}
.hood-tile {
  background: var(--cream);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--t-base) var(--ease);
  cursor: pointer;
}
.hood-tile:hover { background: var(--stone-soft); }
.hood-tile h3 {
  font-size: 1.5rem;
  line-height: 1.15;
}
.hood-tile .hood-meta {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.hood-tile .hood-desc {
  font-size: 14px;
  color: var(--muted-strong);
  flex: 1;
}

/* ---------- About / Bio ---------- */
.bio-split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .bio-split { grid-template-columns: 1fr; gap: 32px; }
}
.bio-image {
  /* No sticky — let the portrait scroll naturally with the page */
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  width: 100%;
}
.bio-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Soft CSS feather on top of the in-image vignette, for extra blending */
  -webkit-mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
          mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
}
/* On mobile, cap the portrait width and center it so it doesn't dominate
   the screen or run edge-to-edge over the bio text below */
@media (max-width: 760px) {
  .bio-image {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}
.bio-text p { margin-bottom: 22px; color: var(--muted-strong); }
.bio-text p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 4.6rem;
  line-height: 0.88;
  float: left;
  margin: 8px 14px 0 0;
  color: var(--forest);
  font-weight: 500;
}
.bio-text p.lede:first-of-type::first-letter {
  font-size: 5.2rem;
  margin: 4px 16px -4px 0;
}

/* ---------- Listings CTA / Map preview ---------- */
.listings-cta {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--forest);
  color: var(--cream);
  min-height: 480px;
}
@media (max-width: 900px) { .listings-cta { grid-template-columns: 1fr; min-height: auto; } }
.listings-cta-text {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.listings-cta-text h2 { color: var(--cream); margin-bottom: 20px; }
.listings-cta-text p { color: rgba(251, 248, 239, 0.8); margin-bottom: 32px; }
.listings-cta-image {
  position: relative;
  background: var(--stone-soft);
  min-height: 380px;
  overflow: hidden;
}
.guelph-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--stone-soft);
}
/* Tone Leaflet's tiles to match the brand */
.listings-cta-image .leaflet-tile-pane {
  filter: saturate(0.6) hue-rotate(-8deg) brightness(1.02);
}
.listings-cta-image .leaflet-container {
  background: var(--stone-soft);
  font-family: var(--sans);
}
.listings-cta-image .leaflet-control-attribution {
  background: rgba(251, 248, 239, 0.85);
  color: var(--muted-strong);
  font-size: 9px;
  letter-spacing: 0.04em;
  padding: 2px 8px;
}
.listings-cta-image .leaflet-control-attribution a { color: var(--forest); }
/* Click-through overlay button */
.map-overlay-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  z-index: 400;
  pointer-events: auto;
  background: linear-gradient(180deg,
    rgba(14, 39, 37, 0) 60%,
    rgba(14, 39, 37, 0.25) 100%);
  transition: background var(--t-base) var(--ease);
}
.map-overlay-link:hover { background: linear-gradient(180deg, rgba(14, 39, 37, 0.05) 0%, rgba(14, 39, 37, 0.45) 100%); }
.map-overlay-cta {
  background: var(--forest);
  color: var(--cream);
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--forest);
  transition: gap var(--t-base) var(--ease), background var(--t-fast) var(--ease);
  box-shadow: 0 4px 16px -4px rgba(14, 39, 37, 0.25);
}
.map-overlay-link:hover .map-overlay-cta {
  background: var(--cream);
  color: var(--forest);
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.06); }
}

/* ---------- Testimonials ---------- */
.testimonial {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  font-weight: 300;
  line-height: 1.45;
  font-style: italic;
  color: var(--ink);
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  letter-spacing: -0.01em;
}
.testimonial::before {
  content: '"';
  display: block;
  font-size: 5rem;
  line-height: 0.6;
  color: var(--forest);
  opacity: 0.25;
  margin-bottom: 16px;
}
.testimonial-attr {
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-strong);
  font-style: normal;
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-meta-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
}
.contact-meta a, .contact-meta {
  display: block;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  transition: padding-left var(--t-base) var(--ease);
}
.contact-meta a:hover { padding-left: 8px; }
.contact-meta .cm-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-meta .cm-value {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--forest);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 18px 0 12px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--forest);
  transition: border-color var(--t-fast) var(--ease);
  border-radius: 0;
  outline: none;
}
.field textarea { resize: vertical; min-height: 100px; padding-top: 22px; }
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.field label {
  position: absolute;
  top: 18px;
  left: 0;
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
  transition: all var(--t-fast) var(--ease);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: -4px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
}
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--forest); }
.hp-field { display: none !important; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--forest);
  color: var(--cream);
  padding: 90px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 70px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand img { height: 86px; width: auto; margin-bottom: 24px; }
.footer-brand p {
  color: rgba(251, 248, 239, 0.7);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.footer-brand a {
  color: var(--cream);
  border-bottom: 1px solid rgba(251, 248, 239, 0.3);
  transition: border-color var(--t-fast) var(--ease);
}
.footer-brand a:hover { border-bottom-color: var(--cream); }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(251, 248, 239, 0.6);
  margin-bottom: 22px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 14px;
  color: rgba(251, 248, 239, 0.85);
  transition: color var(--t-fast) var(--ease);
}
.footer-col a:hover { color: var(--stone); }

.footer-share {
  border-top: 1px solid rgba(251, 248, 239, 0.12);
  padding: 26px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.footer-share .fs-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(251, 248, 239, 0.6);
  margin-right: 6px;
}
.fs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(251, 248, 239, 0.2);
  background: transparent;
  color: rgba(251, 248, 239, 0.85);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.fs-btn:hover { border-color: var(--cream); color: var(--cream); transform: translateY(-1px); }
.fs-btn.copied { background: var(--cream); color: var(--forest); border-color: var(--cream); }

.footer-legal {
  border-top: 1px solid rgba(251, 248, 239, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(251, 248, 239, 0.5);
}
.footer-legal a { color: var(--stone); border-bottom: 1px solid transparent; transition: border-color var(--t-fast) var(--ease); }
.footer-legal a:hover { border-bottom-color: var(--stone); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Blog ---------- */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--line);
  transition: transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  overflow: hidden;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--forest); }
.post-card-thumb {
  aspect-ratio: 16/10;
  background: var(--stone-soft);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.post-card-thumb::after { display: none; }
.post-card-thumb::before {
  /* Subtle forest tint for brand cohesion */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 39, 37, 0) 50%, rgba(14, 39, 37, 0.15) 100%);
  pointer-events: none;
}
.post-card-body { padding: 28px 28px 32px; }
.post-card-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.post-card-meta .sep::before { content: '·'; margin-right: 12px; }
.post-card h3 {
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: 12px;
}
.post-card p {
  font-size: 14px;
  color: var(--muted-strong);
  margin-bottom: 20px;
}

/* ---------- Article styles ---------- */
.article-hero {
  padding: 180px 0 50px;
  background: var(--cream);
  text-align: center;
}
.article-hero .article-meta {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-strong);
  margin-bottom: 28px;
}
.article-hero h1 {
  max-width: 900px;
  margin: 0 auto;
}
.article-hero .lede {
  margin: 28px auto 0;
  max-width: 720px;
  text-align: center;
}

/* Featured photo below the article hero — full-bleed, capped height */
.article-featured-image {
  margin: 0 auto;
  max-width: 1280px;
  padding: 0 32px 50px;
}
.article-featured-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
@media (max-width: 760px) {
  .article-featured-image { padding: 0 0 32px; }
  .article-featured-image img { aspect-ratio: 4/3; }
}

.article-body {
  padding: 10px 0 60px;
}
.article-image-credit {
  margin-top: 56px !important;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px !important;
  color: var(--muted) !important;
  font-style: italic;
  letter-spacing: 0.02em;
}
.article-image-credit a {
  color: var(--muted-strong);
  border-bottom: 1px solid var(--line);
  transition: color var(--t-fast) var(--ease);
}
.article-image-credit a:hover { color: var(--forest); }
.article-body .container-text > * { margin-bottom: 22px; }
.article-body h2 { margin-top: 56px; margin-bottom: 18px; }
.article-body h3 { margin-top: 36px; margin-bottom: 12px; }
.article-body p { font-size: 17px; line-height: 1.75; color: var(--ink); }
.article-body p strong { font-weight: 600; color: var(--forest); }
.article-body ul, .article-body ol { padding-left: 28px; margin-bottom: 24px; }
.article-body li { margin-bottom: 8px; line-height: 1.7; }
.article-body blockquote {
  border-left: 3px solid var(--forest);
  padding: 4px 0 4px 28px;
  margin: 36px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--forest);
}

.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 48px 0 40px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.share-bar .share-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--forest);
  margin-right: 6px;
}
.share-bar .fs-btn {
  border-color: var(--line);
  color: var(--muted-strong);
}
.share-bar .fs-btn:hover { border-color: var(--forest); color: var(--forest); }
.share-bar .fs-btn.copied { background: var(--forest); color: var(--cream); border-color: var(--forest); }

.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--forest);
  width: 0;
  z-index: 200;
  transition: width 0.15s linear;
}

/* ---------- FAQ / Accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--forest);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 28px;
  font-weight: 300;
  color: var(--forest);
  transition: transform var(--t-base) var(--ease);
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 0 28px;
  color: var(--muted-strong);
  max-width: 720px;
}

/* ---------- Misc ---------- */
.divider-mark {
  width: 56px;
  height: 1px;
  background: var(--forest);
  margin: 0 0 24px;
}

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  counter-reset: step-counter;
}
.process-step {
  position: relative;
  padding: 32px 24px 28px;
  background: var(--cream);
  border-top: 2px solid var(--forest);
}
.process-step::before {
  counter-increment: step-counter;
  content: "0" counter(step-counter);
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--forest);
  opacity: 0.5;
  margin-bottom: 14px;
}
.process-step h4 { margin-bottom: 10px; font-family: var(--serif); font-size: 1.2rem; }
.process-step p { font-size: 14px; color: var(--muted-strong); }

@media (max-width: 900px) {
  .listings-cta-text { padding: 48px 32px; }
}
