/* =====================================================
   Ryan O'Connell Realty — Fredericton, NB
   Design system & global styles
   ===================================================== */

:root {
  /* Palette */
  --charcoal: #1a1d1c;
  --charcoal-soft: #2a2e2c;
  --ink: #2c2f2e;
  --slate: #5a5f5d;
  --mist: #8a8f8d;
  --cream: #faf7f2;
  --paper: #f3eee5;
  --line: #e6e0d4;
  --gold: #b8975a;
  --gold-soft: #d4b97a;
  --gold-deep: #8e7340;
  --forest: #3f5e44;
  --forest-deep: #2a4530;
  --sage: #8aa386;
  --sage-soft: #c2d2bf;
  --rust: #b85c3c;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;

  /* Spacing & layout */
  --max: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(26, 29, 28, 0.06), 0 2px 8px rgba(26, 29, 28, 0.04);
  --shadow-md: 0 4px 14px rgba(26, 29, 28, 0.08), 0 12px 32px rgba(26, 29, 28, 0.06);
  --shadow-lg: 0 12px 40px rgba(26, 29, 28, 0.12);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--forest);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover { color: var(--gold-deep); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.eyebrow.gold { color: var(--gold-deep); }

.lead {
  font-size: 1.18rem;
  color: var(--slate);
  line-height: 1.6;
  max-width: 60ch;
}

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

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

section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 3rem 0;
}

.divider-leaf {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--forest);
  margin: 3rem 0;
}
.divider-leaf::before,
.divider-leaf::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.divider-leaf svg { width: 22px; height: 22px; opacity: 0.7; }

/* =====================================================
   Buttons
   ===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}
.btn-primary:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--cream);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline:hover {
  background: var(--charcoal);
  color: var(--cream);
}

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250, 247, 242, 0.5);
}
.btn-outline-light:hover {
  background: var(--cream);
  color: var(--charcoal);
  border-color: var(--cream);
}

.btn-forest {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}
.btn-forest:hover {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--forest);
  padding: 0.5rem 0;
  border: none;
  border-bottom: 1px solid var(--forest);
  border-radius: 0;
}
.btn-ghost:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

/* =====================================================
   Header / Navigation
   ===================================================== */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.site-header.scrolled {
  background: rgba(250, 247, 242, 0.98);
  box-shadow: 0 2px 14px rgba(26, 29, 28, 0.06);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  transition: transform .35s var(--ease);
}
.brand-mark img {
  height: 100%;
  width: auto;
  display: block;
}
.brand:hover .brand-mark {
  transform: scale(1.05) rotate(-2deg);
}
.site-header.scrolled .brand-mark {
  height: 34px;
}
.site-header {
  transition: padding .25s var(--ease);
}
.site-header.scrolled .nav-bar {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

/* ===== Hover lifts on cards (subtle, ease back) ===== */
.hood-card,
.blog-card,
.value-card,
.listing-card {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.hood-card:hover,
.blog-card:hover,
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 29, 28, 0.12);
}
.value-card:hover {
  transform: translateY(-3px);
}

/* ===== Image zoom on hood/blog card hover ===== */
.hood-card,
.blog-card {
  overflow: hidden;
}
.hood-card .image-frame,
.blog-card .image-frame,
.hood-card[style*="background-image"] {
  transition: transform .6s var(--ease);
}
.hood-card:hover .image-frame,
.blog-card:hover .image-frame {
  transform: scale(1.045);
}

/* ===== Hero portrait entrance ===== */
.hero-portrait img {
  animation: heroFadeIn 1.1s var(--ease) both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: scale(1.04) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== Buttons: arrow nudge on hover where applicable ===== */
.btn .arrow,
.read::after {
  display: inline-block;
  transition: transform .25s var(--ease);
}
a:hover .read::after,
.blog-card:hover .read::after {
  transform: translateX(3px);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--charcoal);
}
.brand-tag {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--charcoal);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.4rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-links a:hover { color: var(--forest); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--charcoal);
  margin: 5px auto;
  transition: all .25s var(--ease);
}

@media (max-width: 980px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    padding: 1.5rem var(--gutter) 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-open .nav-cta .btn { display: inline-flex; }
  .nav-open .nav-cta {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    padding: 0 var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(180px);
  }
}

/* =====================================================
   Hero
   ===================================================== */

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--cream);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 70% 30%, rgba(184, 151, 90, 0.18), transparent 70%),
    radial-gradient(60% 50% at 20% 80%, rgba(63, 94, 68, 0.25), transparent 70%),
    linear-gradient(180deg, #1a1d1c 0%, #2a2e2c 100%);
  z-index: 0;
}
.hero-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero-copy h1 { color: var(--cream); }
.hero-copy h1 em {
  font-style: italic;
  color: var(--gold-soft);
  font-weight: 400;
}
.hero-copy .lead { color: rgba(250, 247, 242, 0.78); }
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hero-portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--forest) 0%, var(--charcoal-soft) 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.hero-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(184, 151, 90, 0.4);
  border-radius: var(--radius-lg);
  pointer-events: none;
}
.hero-credentials {
  position: absolute;
  bottom: 20px; left: 20px;
  background: var(--cream);
  color: var(--charcoal);
  padding: 0.9rem 1.2rem;
  border-left: 3px solid var(--forest);
  box-shadow: var(--shadow-md);
  max-width: calc(100% - 40px);
  width: max-content;
}
.hero-credentials strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}
.hero-credentials span {
  font-size: 0.82rem;
  color: var(--slate);
  letter-spacing: 0.04em;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-portrait { max-width: 380px; margin: 0 auto; }
}

/* =====================================================
   Sections — generic
   ===================================================== */

.section-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head.left { text-align: left; margin-left: 0; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.value-card {
  background: var(--paper);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: all .3s var(--ease);
  position: relative;
}
.value-card:hover {
  transform: translateY(-3px);
  border-color: var(--forest);
  box-shadow: var(--shadow-md);
}
.value-card .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: var(--cream);
  border-radius: 50%;
  margin-bottom: 1.4rem;
}
.value-card .icon svg { width: 22px; height: 22px; }
.value-card h3 { margin-bottom: 0.6rem; }
.value-card p { color: var(--slate); font-size: 0.96rem; margin: 0; }

/* =====================================================
   Listing cards
   ===================================================== */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.listing-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.listing-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--forest) 0%, var(--charcoal-soft) 100%);
  position: relative;
  background-size: cover;
  background-position: center;
}
.listing-status {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--forest);
  color: var(--cream);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--radius);
  font-weight: 600;
}
.listing-status.gold { background: var(--gold); color: var(--charcoal); }
.listing-status.sold { background: var(--rust); }
.listing-body {
  padding: 1.4rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.listing-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.2rem;
}
.listing-address {
  font-size: 0.95rem;
  color: var(--slate);
  margin-bottom: 1rem;
}
.listing-meta {
  display: flex;
  gap: 1.1rem;
  font-size: 0.85rem;
  color: var(--slate);
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  margin-top: auto;
}
.listing-meta span strong {
  color: var(--charcoal);
  font-weight: 600;
  margin-right: 0.3rem;
}

/* =====================================================
   Map / Listings panel
   ===================================================== */

.map-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  min-height: 400px;
  display: grid;
  place-items: center;
}
.map-panel iframe {
  width: 100%;
  height: 600px;
  border: 0;
  border-radius: var(--radius);
}
.map-fallback {
  padding: 3rem 1rem;
  color: var(--slate);
}
.map-fallback h3 { color: var(--charcoal); }

/* =====================================================
   Stats / Numbers
   ===================================================== */

.stats-strip {
  background: var(--charcoal);
  color: var(--cream);
  padding: 4rem 0;
  position: relative;
}
.stats-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 100% at 50% 0%, rgba(63, 94, 68, 0.22), transparent 80%);
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 500;
  color: var(--gold-soft);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.8);
}

/* =====================================================
   Testimonials & quotes
   ===================================================== */

.quote-card {
  background: var(--paper);
  padding: 2.5rem 2rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  position: relative;
}
.quote-card p {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.5;
}
.quote-attr {
  font-size: 0.85rem;
  color: var(--forest);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 1rem;
}

/* =====================================================
   Forms
   ===================================================== */

.form {
  display: grid;
  gap: 1.1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(63, 94, 68, 0.12);
}
.field textarea { resize: vertical; min-height: 130px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* =====================================================
   Footer
   ===================================================== */

.site-footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(250, 247, 242, 0.12);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .brand-name { color: var(--cream); }
.footer-brand .brand-tag { color: var(--gold-soft); }
.footer-brand p {
  color: rgba(250, 247, 242, 0.7);
  font-size: 0.95rem;
  margin-top: 1rem;
  max-width: 32ch;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.footer a {
  color: rgba(250, 247, 242, 0.78);
  font-size: 0.92rem;
}
.footer a:hover { color: var(--gold-soft); }

.newsletter {
  display: grid;
  gap: 0.8rem;
}
.newsletter p {
  color: rgba(250, 247, 242, 0.7);
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}
.newsletter form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.newsletter input[type="email"] {
  flex: 1;
  min-width: 180px;
  padding: 0.78rem 1rem;
  background: rgba(250, 247, 242, 0.08);
  border: 1px solid rgba(250, 247, 242, 0.18);
  border-radius: var(--radius);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.newsletter input[type="email"]::placeholder {
  color: rgba(250, 247, 242, 0.5);
}
.newsletter input[type="email"]:focus {
  outline: none;
  border-color: var(--gold-soft);
  background: rgba(250, 247, 242, 0.12);
}
.newsletter button {
  padding: 0.78rem 1.3rem;
  background: var(--gold);
  color: var(--charcoal);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background .2s var(--ease);
}
.newsletter button:hover { background: var(--gold-soft); }
.newsletter .form-note {
  font-size: 0.78rem;
  color: rgba(250, 247, 242, 0.5);
  margin-top: 0.4rem;
}
.newsletter .success {
  color: var(--sage-soft);
  font-size: 0.92rem;
  background: rgba(138, 163, 134, 0.12);
  border: 1px solid rgba(138, 163, 134, 0.3);
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  margin-top: 0.6rem;
}

.socials {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.4rem;
}
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(250, 247, 242, 0.08);
  border: 1px solid rgba(250, 247, 242, 0.16);
  transition: all .25s var(--ease);
}
.socials a:hover {
  background: var(--forest);
  border-color: var(--forest);
  transform: translateY(-2px);
}
.socials svg { width: 18px; height: 18px; fill: var(--cream); }

.footer-base {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(250, 247, 242, 0.55);
}
.footer-base a { color: rgba(250, 247, 242, 0.7); }
.footer-base .legal-links {
  display: flex;
  gap: 1.5rem;
}

/* =====================================================
   Pagehead (interior pages)
   ===================================================== */

.pagehead {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--forest-deep) 100%);
  color: var(--cream);
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.pagehead::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 80% 20%, rgba(184, 151, 90, 0.18), transparent);
}
.pagehead .container { position: relative; }
.pagehead h1 { color: var(--cream); margin-bottom: 1rem; }
.pagehead h1 em { color: var(--gold-soft); font-style: italic; font-weight: 400; }
.pagehead .lead { color: rgba(250, 247, 242, 0.85); }
.pagehead .eyebrow { color: var(--gold-soft); }
.breadcrumbs {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.4rem;
  color: rgba(250, 247, 242, 0.6);
}
.breadcrumbs a { color: rgba(250, 247, 242, 0.85); }
.breadcrumbs a:hover { color: var(--gold-soft); }

/* =====================================================
   Two-column content
   ===================================================== */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.two-col.flip > :nth-child(1) { order: 2; }
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col.flip > :nth-child(1) { order: 0; }
}

.image-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--forest) 0%, var(--charcoal-soft) 100%);
  background-size: cover;
  background-position: center;
}
.image-frame.tall { aspect-ratio: 3/4; }

/* =====================================================
   Process steps
   ===================================================== */

.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 3px solid var(--forest);
  padding: 1.6rem 1.8rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: start;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 600;
}
.step h4 { margin-bottom: 0.3rem; }
.step p { margin: 0; color: var(--slate); }

/* =====================================================
   Calculator
   ===================================================== */

.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
}
@media (max-width: 880px) {
  .calc-wrap { grid-template-columns: 1fr; }
}
.calc-result {
  background: var(--charcoal);
  color: var(--cream);
  padding: 2.2rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.calc-result h3 { color: var(--gold-soft); }
.payment {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  color: var(--cream);
  font-weight: 500;
  margin: 1rem 0 0.3rem;
}
.payment-meta {
  font-size: 0.85rem;
  color: rgba(250, 247, 242, 0.7);
  letter-spacing: 0.04em;
}
.calc-breakdown {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(250, 247, 242, 0.15);
  display: grid;
  gap: 0.8rem;
  font-size: 0.92rem;
}
.calc-breakdown div {
  display: flex;
  justify-content: space-between;
  color: rgba(250, 247, 242, 0.78);
}
.calc-breakdown strong { color: var(--gold-soft); }

/* =====================================================
   Blog
   ===================================================== */

.blog-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  background: var(--paper);
  padding: 2.5rem;
  border-radius: var(--radius);
  margin-bottom: 4rem;
}
@media (max-width: 880px) {
  .blog-feature { grid-template-columns: 1fr; padding: 1.5rem; }
}
.blog-feature .image-frame { aspect-ratio: 4/3; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 2rem;
}
.blog-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .3s var(--ease);
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--forest);
}
.blog-card .image-frame {
  border-radius: 0;
  aspect-ratio: 16/10;
  margin: 0;
}
.blog-card .body {
  padding: 1.4rem 1.5rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-meta {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.blog-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.blog-card p {
  color: var(--slate);
  font-size: 0.95rem;
  flex: 1;
}
.blog-card .read {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
  margin-top: 0.8rem;
  letter-spacing: 0.04em;
}

/* Blog post */
.post {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.post-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 1.6rem;
  letter-spacing: 0.04em;
}
.post-meta .pill {
  padding: 0.3rem 0.8rem;
  background: var(--sage-soft);
  color: var(--forest-deep);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.post img.cover {
  width: 100%;
  border-radius: var(--radius);
  margin: 1rem 0 2rem;
}
.post h2 { margin-top: 2.2rem; }
.post h3 { margin-top: 1.6rem; }
.post blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.4rem;
  margin: 1.6rem 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-style: italic;
  color: var(--charcoal);
}
.post ul, .post ol { padding-left: 1.4rem; }
.post li { margin-bottom: 0.5rem; }

/* =====================================================
   Neighbourhood cards
   ===================================================== */

.hood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}
.hood-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--forest) 0%, var(--charcoal-soft) 100%);
  background-size: cover;
  background-position: center;
  transition: transform .3s var(--ease);
}
.hood-card:hover { transform: translateY(-3px); }
.hood-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(26, 29, 28, 0.85));
}
.hood-card .body {
  position: absolute;
  bottom: 0;
  padding: 1.4rem 1.5rem;
  color: var(--cream);
}
.hood-card h3 {
  color: var(--cream);
  margin-bottom: 0.2rem;
  font-size: 1.4rem;
}
.hood-card span {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* =====================================================
   Contact / banner CTAs
   ===================================================== */

.cta-banner {
  background:
    linear-gradient(135deg, rgba(26, 29, 28, 0.92) 0%, rgba(63, 94, 68, 0.85) 100%),
    var(--charcoal);
  color: var(--cream);
  padding: clamp(3rem, 6vw, 5rem) 0;
  text-align: center;
}
.cta-banner h2 { color: var(--cream); }
.cta-banner h2 em { color: var(--gold-soft); font-style: italic; font-weight: 400; }
.cta-banner .lead { color: rgba(250, 247, 242, 0.85); margin: 0 auto 2rem; }
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =====================================================
   Utility
   ===================================================== */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }
.bg-charcoal { background: var(--charcoal); color: var(--cream); }
.bg-charcoal h1, .bg-charcoal h2, .bg-charcoal h3 { color: var(--cream); }
.tag-forest {
  display: inline-block;
  background: var(--sage-soft);
  color: var(--forest-deep);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Subtle reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: all .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =====================================================
   Long-form article body (.article)
   ===================================================== */

.article {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}
.article h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin-top: 2.6rem;
  margin-bottom: 0.8rem;
  color: var(--charcoal);
}
.article h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-top: 1.8rem;
  margin-bottom: 0.4rem;
  color: var(--forest-deep);
}
.article p { margin: 0 0 1.1rem; }
.article ul, .article ol { padding-left: 1.4rem; margin: 0 0 1.4rem; }
.article ul li, .article ol li { margin-bottom: 0.5rem; }
.article a {
  color: var(--forest-deep);
  text-decoration: underline;
  text-decoration-color: rgba(63, 94, 68, 0.4);
  text-underline-offset: 3px;
}
.article a:hover {
  text-decoration-color: var(--forest);
}
.article strong { color: var(--charcoal); }
.article em { font-style: italic; color: var(--charcoal); }

/* =====================================================
   Contact grid (3-up)
   ===================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0.8rem 0 0.6rem;
  color: var(--charcoal);
}
.contact-card p { margin: 0 0 0.6rem; color: var(--slate); }

/* =====================================================
   Generic outline button (light bg)
   ===================================================== */

.btn-outline {
  background: transparent;
  color: var(--forest-deep);
  border: 1px solid var(--forest);
}
.btn-outline:hover {
  background: var(--forest);
  color: var(--cream);
}

/* ===== Brokerage logo + real photo treatments (added round 2) ===== */
.brand-broker {
  display: inline-flex;
  align-items: center;
  margin-left: .9rem;
  padding-left: .9rem;
  border-left: 1px solid rgba(0,0,0,.12);
  height: 28px;
}
.brand-broker img { height: 22px; width: auto; opacity: .85; }
@media (max-width: 900px) {
  .brand-broker { display: none; }
}

.brokerage-line {
  margin-top: .4rem;
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--gold-soft);
  text-transform: uppercase;
}
.brokerage-line span { opacity: .7; }
.brokerage-line strong { color: var(--cream); font-weight: 600; letter-spacing: .03em; }

.footer-broker-logo {
  display: block;
  height: 36px;
  width: auto;
  margin-top: .6rem;
  margin-bottom: .8rem;
  opacity: .9;
}

/* Real-photo hero override */
.hero-portrait img[src$=".jpg"] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg, 24px);
  display: block;
}

/* Listing iframe wrapper for /listings/ */
.realtor-embed {
  position: relative;
  width: 100%;
  background: var(--charcoal);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 60px -30px rgba(0,0,0,.4);
}
.realtor-embed iframe {
  display: block;
  width: 100%;
  height: 1100px;
  border: 0;
}
@media (max-width: 720px) {
  .realtor-embed iframe { height: 1500px; }
}

.footer-contact {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--cream);
  opacity: 0.85;
}
.footer-contact a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px dotted rgba(244, 237, 227, 0.4);
}
.footer-contact a:hover { opacity: 1; border-bottom-color: var(--gold); }
