/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #1c1813;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== CSS VARIABLES ===== */
:root {
  /* Dark palette — warm charcoal (matches guide aesthetic) */
  --navy:        #1c1813;   /* rich warm charcoal */
  --navy2:       #2d2820;   /* medium charcoal */
  --navy3:       #231f17;   /* deep charcoal */
  --charcoal:    #1c1813;
  --charcoal2:   #2d2820;
  --charcoal3:   #231f17;

  /* Gold palette — Century 21 champagne gold */
  --gold:        #beb18b;
  --gold2:       #cdc09d;
  --gold3:       #d8ccaf;
  --gold-light:  #f5f1e8;
  --gold-border: rgba(190,177,139,0.35);

  /* Light palette — warm, not stark */
  --white:       #ffffff;
  --offwhite:    #faf8f3;
  --cream:       #f4f0e8;
  --light:       #ede9df;
  --border:      #ddd8cc;
  --border2:     #e8e3d8;

  /* Text */
  --text:        #1c1813;
  --text2:       #3d3830;
  --muted:       #7a7268;

  /* Accent */
  --red:         #c0392b;

  /* Transitions */
  --ease:        0.22s ease;
}

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.12;
  color: var(--text);
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
p { color: var(--text2); line-height: 1.78; }

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 96px 24px; }
.divider { width: 44px; height: 2px; background: var(--gold); margin: 12px 0 24px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all var(--ease);
  cursor: pointer;
  border: none;
  position: relative;
}
.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
  box-shadow: 0 2px 12px rgba(190,177,139,0.3);
}
.btn-gold:hover {
  background: var(--gold2);
  box-shadow: 0 4px 20px rgba(190,177,139,0.45);
  transform: translateY(-1px);
  color: var(--charcoal);
}
.btn-navy { background: var(--charcoal); color: var(--white); }
.btn-navy:hover { background: var(--charcoal2); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.45);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.85);
}
.btn-outline-navy {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid rgba(28,24,19,0.4);
}
.btn-outline-navy:hover {
  background: var(--charcoal);
  color: #fff;
  border-color: var(--charcoal);
}
.btn-lg { padding: 18px 40px; font-size: 0.88rem; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--charcoal) !important;
  padding: 8px 24px !important;
  font-size: 0.77rem !important;
  font-family: 'Inter', sans-serif !important;
  color: rgba(255,255,255,0.5) !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.top-bar span { font-size: 0.77rem !important; font-family: 'Inter', sans-serif !important; }
.top-bar a { color: rgba(255,255,255,0.65) !important; font-size: 0.77rem !important; font-family: 'Inter', sans-serif !important; transition: color var(--ease); }
.top-bar a:hover { color: var(--gold) !important; }
.top-bar-right { display: flex; gap: 22px; align-items: center; }
.top-bar-social { display: flex; gap: 14px; align-items: center; }
.top-bar-social a { display: flex; align-items: center; color: rgba(255,255,255,0.5) !important; transition: color var(--ease); }
.top-bar-social a:hover { color: var(--gold) !important; }
.top-bar-divider { width: 1px; height: 14px; background: rgba(255,255,255,0.15); }

/* ===== HEADER ===== */
header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: var(--white) !important;
  border-bottom: 1px solid var(--border2) !important;
  box-shadow: 0 1px 24px rgba(0,0,0,0.07) !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}
.header-inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  display: flex !important;
  align-items: center !important;
  height: 72px !important;
  gap: 28px !important;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 46px;
  height: 46px;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 0.88rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  position: relative;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(201,162,39,0.3);
}
/* Logo image */
.header-logo {
  height: 40px;
  width: auto;
  display: block;
  /* Invert white logo to near-black for the white header */
  filter: brightness(0);
}
.footer-logo {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 14px;
  /* White logo on dark footer — no filter */
}
.logo-text { line-height: 1.1; }
.logo-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}
.logo-brokerage {
  font-size: 0.6rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: var(--muted) !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
}

/* Main Nav */
.main-nav { display: flex; align-items: stretch; gap: 0; flex: 1; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
  letter-spacing: 0.03em !important;
  color: var(--text2) !important;
  padding: 0 13px !important;
  height: 72px !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: color var(--ease);
  border-bottom: 2px solid transparent !important;
  margin-bottom: -1px !important;
}
.nav-item > a:hover,
.nav-item > a.active { color: var(--charcoal) !important; border-bottom-color: var(--gold) !important; }
.chevron { font-size: 0.5rem; opacity: 0.4; }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border2);
  border-top: 2px solid var(--gold);
  box-shadow: 0 12px 48px rgba(0,0,0,0.14);
  z-index: 999;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 11px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text2);
  border-bottom: 1px solid var(--border2);
  transition: background var(--ease), color var(--ease), padding var(--ease);
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover {
  background: var(--offwhite);
  color: var(--charcoal);
  padding-left: 22px;
}
.dropdown-map-link {
  background: var(--gold-light) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  border-top: 1px solid var(--gold-border) !important;
}
.dropdown-map-link:hover {
  background: var(--cream) !important;
  padding-left: 22px;
}

/* Mega Dropdown */
.mega-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  max-width: calc(100vw - 40px);
  background: var(--white);
  border: 1px solid var(--border2);
  border-top: 2px solid var(--gold);
  box-shadow: 0 16px 48px rgba(0,0,0,0.16);
  z-index: 999;
  flex-direction: column;
}
.nav-item:hover .mega-dropdown { display: flex; }
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.mega-col {
  padding: 20px 18px;
  border-right: 1px solid var(--border);
}
.mega-col:last-child { border-right: none; }
.mega-col-heading {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  padding-bottom: 6px;
  margin-bottom: 4px;
  margin-top: 14px;
  border-bottom: 1px solid var(--border);
}
.mega-col-heading:first-child { margin-top: 0; }
.mega-dropdown .mega-col a {
  display: block;
  font-size: 0.78rem;
  color: var(--text2);
  padding: 3px 0;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  background: none;
  transition: color var(--ease);
}
.mega-dropdown .mega-col a:hover { color: var(--navy); background: none; padding-left: 0; }
.mega-footer {
  display: flex;
  gap: 20px;
  padding: 10px 18px;
  background: var(--offwhite);
  border-top: 1px solid var(--border);
}
.mega-footer a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.mega-footer a:hover { color: var(--gold); }

/* Nav CTA */
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-phone {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--ease);
}
.nav-phone:hover { color: var(--gold); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 22px; height: 1.5px; background: var(--charcoal); border-radius: 2px; transition: all 0.3s; }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--charcoal);
  z-index: 9999;
  flex-direction: column;
  padding: 80px 32px 40px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
}
.mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  color: rgba(255,255,255,0.8);
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--ease);
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav-cta { margin-top: 28px; }
.mobile-nav-cta .btn { display: flex; justify-content: center; text-align: center; }

/* ===== HERO ===== */
.hero {
  min-height: 92vh;
  background: linear-gradient(150deg, #100e0a 0%, #1c1813 45%, #251f14 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(16,14,10,0.97) 0%, rgba(28,24,19,0.90) 55%, rgba(28,24,19,0.78) 100%);
}
/* Subtle gold glow top-right */
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,162,39,0.07) 0%, transparent 65%);
  pointer-events: none;
}
/* Ghost logo watermark in hero */
@keyframes ghostFadeIn {
  from { opacity: 0; transform: translateY(-50%) scale(0.96); }
  to   { opacity: 0.11; transform: translateY(-50%) scale(1); }
}
.hero-logo-ghost {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  animation: ghostFadeIn 1.8s ease-out forwards;
  width: 680px;
  height: 680px;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: 0.11;
}
.hero-logo-ghost img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 1024px) {
  .hero-logo-ghost { width: 440px; height: 440px; right: -40px; animation: none; opacity: 0.08; }
}
@media (max-width: 768px) {
  .hero-logo-ghost { width: 280px; height: 280px; right: -20px; top: auto; bottom: -40px; transform: none; animation: none; opacity: 0.07; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,162,39,0.12);
  border: 1px solid rgba(201,162,39,0.35);
  color: var(--gold);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 16px;
  margin-bottom: 28px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  margin-bottom: 20px;
  max-width: 700px;
  line-height: 1.1;
  font-weight: 800;
}
.hero h1 span { color: var(--gold); }
.hero-sub {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.65);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }

/* Search Bar */
.hero-search {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  padding: 22px 24px;
  max-width: 640px;
}
.hero-search-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}
.hero-search-row { display: flex; gap: 0; }
.hero-search-input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  background: rgba(255,255,255,0.94);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
}
.hero-search-input::placeholder { color: var(--muted); }
.hero-search-btn {
  background: var(--gold);
  color: var(--charcoal);
  border: none;
  padding: 14px 26px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ease);
  white-space: nowrap;
}
.hero-search-btn:hover { background: var(--gold2); }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--gold);
  padding: 0;
  position: relative;
}
.stats-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0,0,0,0.1);
}
.stats-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 30px 24px;
  text-align: center;
  border-right: 1px solid rgba(0,0,0,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--charcoal);
  line-height: 1;
}
.stat-label {
  font-size: 0.69rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(28,24,19,0.65);
  margin-top: 6px;
}

/* ===== PROPERTY CARDS ===== */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.property-card {
  background: var(--white);
  border: 1px solid var(--border2);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}
.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.property-photo {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #c8c0b0, #b0a898);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.property-photo img { width: 100%; height: 100%; object-fit: cover; }
.property-photo-placeholder {
  font-size: 2.5rem;
  opacity: 0.25;
}
.property-status {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 11px;
}
.property-status.sold { background: var(--charcoal); color: #fff; }
.property-status.new { background: #2a7a4a; color: #fff; }
.property-body { padding: 22px; }
.property-price {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.property-address {
  font-size: 0.86rem;
  color: var(--text2);
  margin-bottom: 12px;
}
.property-specs {
  display: flex;
  gap: 16px;
  font-size: 0.79rem;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--border2);
}
.property-spec { display: flex; align-items: center; gap: 4px; font-weight: 600; }

/* ===== HOME VALUATION ===== */
.home-val {
  background: var(--charcoal);
  padding: 96px 24px;
  position: relative;
  overflow: hidden;
}
.home-val::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,162,39,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.home-val-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.home-val h2 { color: #fff; margin-bottom: 16px; }
.home-val p { color: rgba(255,255,255,0.62); margin-bottom: 24px; }
.home-val-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.home-val-perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
}
.home-val-perks li::before {
  content: '—';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Val Form */
.val-form {
  background: var(--white);
  padding: 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}
.val-form h3 { color: var(--charcoal); margin-bottom: 6px; font-size: 1.4rem; }
.val-form p { font-size: 0.85rem; color: var(--muted); margin-bottom: 24px; }

/* Forms */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--ease);
  border-radius: 0;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-submit {
  width: 100%;
  padding: 15px;
  background: var(--gold);
  color: var(--charcoal);
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}
.form-submit:hover {
  background: var(--gold2);
  transform: translateY(-1px);
}

/* ===== NEIGHBOURHOOD CARDS ===== */
.neighbourhood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.neighbourhood-card {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, #2a2318, #1a1610);
  display: flex;
  align-items: flex-end;
}
.neighbourhood-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.neighbourhood-card:hover img { transform: scale(1.06); }
.neighbourhood-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16,12,8,0.92) 0%, transparent 55%);
  transition: opacity 0.3s;
}
.neighbourhood-info {
  position: relative;
  z-index: 1;
  padding: 24px;
  width: 100%;
}
.neighbourhood-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 4px;
}
.neighbourhood-meta { font-size: 0.74rem; color: rgba(255,255,255,0.6); }

/* ===== AGENT CARDS ===== */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.agent-card {
  display: flex;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: box-shadow 0.22s, transform 0.22s;
  text-decoration: none;
  color: inherit;
}
.agent-card:hover {
  box-shadow: 0 10px 32px rgba(0,0,0,0.13);
  transform: translateY(-3px);
}
.agent-photo {
  width: 185px;
  min-height: 260px;
  flex-shrink: 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.agent-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.agent-photo-initials {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.45;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.agent-info {
  flex: 1;
  padding: 26px 30px;
  display: flex;
  flex-direction: column;
}
.agent-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.2;
}
.agent-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--gold);
  margin-bottom: 14px;
}
.agent-bio {
  color: var(--text2);
  font-size: 0.87rem;
  line-height: 1.72;
  flex: 1;
  margin-bottom: 18px;
}
.agent-contacts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.agent-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 3px;
  text-decoration: none;
  transition: opacity 0.18s;
  white-space: nowrap;
}
.agent-contacts a:hover { opacity: 0.82; }
.agent-socials {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.agent-socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--offwhite);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.agent-socials a:hover {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}
.agent-contact { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.agent-contact a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 13px;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 3px;
  text-decoration: none;
  background: var(--navy);
  color: #fff;
  transition: opacity 0.18s;
  white-space: nowrap;
}
.agent-contact a:first-child { background: var(--gold); color: var(--navy); }
.agent-contact a:hover { opacity: 0.82; }
.agent-contact-book {
  background: transparent !important;
  color: var(--navy) !important;
  border: 1.5px solid var(--navy);
}
@media (max-width: 960px) {
  .agent-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .agent-card { flex-direction: column; }
  .agent-photo { width: 100%; min-height: 0; height: 220px; }
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border2);
  border-top: 2px solid var(--gold);
  padding: 32px;
}
.testimonial-stars {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 0.93rem;
  color: var(--text2);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-author { font-weight: 700; font-size: 0.85rem; color: var(--charcoal); }
.testimonial-location { font-size: 0.74rem; color: var(--muted); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ===== AWARD BANNER ===== */
.award-banner {
  background: var(--gold);
  padding: 44px 24px;
  text-align: center;
}
.award-banner h3 { color: var(--charcoal); font-size: 1.05rem; margin-bottom: 4px; }
.award-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--charcoal);
}

/* ===== SPLIT SECTION ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split-content {
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-visual {
  background: linear-gradient(135deg, #2d2820 0%, #1c1813 100%);
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.split-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ===== BLOG CARDS ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card {
  background: var(--white);
  border: 1px solid var(--border2);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.blog-photo {
  height: 260px;
  background: linear-gradient(135deg, #ddd, #bbb);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0.4;
}
.blog-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}
.blog-body { padding: 22px; }
.blog-tag {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}
.blog-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--charcoal);
  margin-bottom: 8px;
  line-height: 1.35;
}
.blog-excerpt { font-size: 0.83rem; color: var(--muted); line-height: 1.65; }

/* ===== CTA STRIP ===== */
.cta-strip {
  background: var(--charcoal);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,162,39,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.cta-strip h2 { color: #fff; margin-bottom: 14px; }
.cta-strip p { color: rgba(255,255,255,0.58); max-width: 500px; margin: 0 auto 36px; }
.cta-strip-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
footer { background: #130f0b; color: rgba(255,255,255,0.7); }
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 56px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand p {
  font-size: 0.84rem;
  line-height: 1.85;
  margin-top: 16px;
  max-width: 280px;
  color: rgba(255,255,255,0.45);
}
.footer-logo-mark {
  width: 50px;
  height: 50px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--charcoal);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col li a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--ease);
}
.footer-col li a:hover { color: rgba(255,255,255,0.85); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.28);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.28); transition: color var(--ease); }
.footer-bottom a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 8px; }
.social-btn {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  transition: background var(--ease), color var(--ease);
}
.social-btn:hover { background: var(--gold); color: var(--charcoal); }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(150deg, #110e0b 0%, #1c1813 60%, #231f17 100%);
  padding: 80px 24px 68px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201,162,39,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero-content { max-width: 1200px; margin: 0 auto; text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.6); max-width: 520px; font-size: 1rem; }

/* ===== FLOATING PHONE ===== */
.float-phone {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 500;
  background: var(--charcoal);
  color: var(--gold);
  padding: 14px 22px;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  transition: transform var(--ease), background var(--ease);
  border: 1px solid rgba(201,162,39,0.25);
}
.float-phone:hover {
  background: var(--gold);
  color: var(--charcoal);
  transform: translateY(-2px);
}

/* ===== PROCESS STEPS ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.process-step {
  background: var(--offwhite);
  padding: 36px 28px;
  border-top: 2px solid var(--gold);
  transition: box-shadow var(--ease), transform var(--ease);
}
.process-step:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.process-num {
  width: 46px;
  height: 46px;
  background: var(--charcoal);
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.process-step h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.process-step p { font-size: 0.88rem; color: var(--text2); }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.step-card {
  background: var(--offwhite);
  padding: 36px 28px;
  position: relative;
  border-bottom: 2px solid transparent;
  transition: border-color var(--ease);
}
.step-card:hover { border-bottom-color: var(--gold); }
.step-number {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 3rem;
  color: rgba(201,162,39,0.18);
  line-height: 1;
  margin-bottom: 12px;
}
.step-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.step-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }

/* ===== RESOURCE CARDS ===== */
.resource-card {
  background: var(--white);
  border: 1px solid var(--border2);
  border-top: 2px solid var(--gold);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.resource-icon { font-size: 1.8rem; margin-bottom: 16px; }
.resource-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.resource-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

/* ===== NEIGHBOURHOOD PAGE ===== */
.neighbourhood-hero {
  min-height: 460px;
  background: linear-gradient(135deg, #110e0b 0%, #2a2318 100%);
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}
.neighbourhood-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}
.neighbourhood-hero-content {
  position: relative;
  z-index: 1;
  padding: 56px 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.neighbourhood-stats { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 24px; }
.n-stat { text-align: left; }
.n-stat-num {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--gold);
}
.n-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
}

/* ===== GUIDE-STYLE CONTENT BLOCKS ===== */

/* Pro Tip box — gold-tinted callout */
.pro-tip {
  background: var(--gold-light);
  border-left: 3px solid var(--gold);
  padding: 18px 22px;
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.7;
  margin: 32px 0;
}
.pro-tip strong { color: var(--charcoal); }

/* Checklist */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 16px 0;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.55;
}
.checklist li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* FAQ items */
.faq-item {
  border-bottom: 1px solid var(--border2);
  padding: 22px 0;
}
.faq-item:first-of-type { border-top: 1px solid var(--border2); }
.faq-q {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--charcoal);
  margin-bottom: 10px;
  line-height: 1.35;
}
.faq-a {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.75;
}

/* Quote block */
.quote-block {
  border-left: 3px solid var(--gold);
  padding: 20px 28px;
  margin: 28px 0;
}
.quote-block p {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.65;
}

/* Commission table */
.commission-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}
.commission-table th {
  background: var(--charcoal);
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
}
.commission-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border2);
  color: var(--text2);
}
.commission-table tr:nth-child(even) td { background: var(--offwhite); }
.commission-table tr:hover td { background: var(--gold-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .nav-phone { display: none; }
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero { min-height: auto; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid rgba(0,0,0,0.08); }
  .home-val-inner { grid-template-columns: 1fr; gap: 40px; }
  .neighbourhood-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-visual { min-height: 280px; }
  .split-content { padding: 48px 24px; }
  .blog-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .agent-grid { gap: 12px; }
  .listings-grid { grid-template-columns: 1fr; }
  .float-phone { bottom: 16px; right: 16px; font-size: 0.8rem; padding: 12px 16px; }
  .val-form { padding: 28px 24px; }
  .split-content { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .hero-search-row { flex-direction: column; }
  .hero-search-btn { width: 100%; padding: 13px; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .neighbourhood-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .agent-grid { gap: 12px; }
  .header-inner { padding: 0 16px; gap: 12px; }
}

/* ===== MOBILE ENHANCEMENTS ===== */
@media (max-width: 768px) {
  /* Top bar: hide right side — too crowded on small screens */
  .top-bar-right { display: none; }

  /* Reduce section padding */
  .section-pad { padding: 60px 20px; }
  .home-val { padding: 60px 20px; }
  .page-hero { padding: 52px 20px 44px; }
  .hero-content { padding: 56px 20px; }

  /* Fix 2-col stats bar — remove orphan right border */
  .stat-item:nth-child(2n) { border-right: none; }

  /* Stack inline 2-col grids (large content+form pairs) */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Stack inline 3-col grids */
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Stack inline repeat-2 grids */
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns:repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* 4-col inline grids → 2-col */
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Reduce large gaps in newly stacked grids */
  [style*="gap:64px"] { gap: 36px !important; }
  [style*="gap:48px"] { gap: 28px !important; }
}

@media (max-width: 480px) {
  /* Further reduce padding */
  .section-pad { padding: 48px 16px; }
  .home-val { padding: 48px 16px; }
  .page-hero { padding: 40px 16px 36px; }
  .hero-content { padding: 40px 16px; }

  /* 4-col → 1-col on very small screens */
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Reduce remaining gaps */
  [style*="gap:32px"] { gap: 20px !important; }
  [style*="gap:36px"] { gap: 20px !important; }
}

/* ===== NEIGHBOURHOOD + BLOG PAGE MOBILE ===== */
@media (max-width: 768px) {
  /* Blog posts: stack content + sidebar */
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Inline sections with 88px or 80px vertical padding */
  [style*="padding:88px"] {
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }
  [style*="padding:80px"] {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
}

@media (max-width: 480px) {
  [style*="padding:88px"] {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }
  [style*="padding:80px"] {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
}

/* ===== MOBILE POLISH — PHASE 2 ===== */

@media (max-width: 768px) {

  /* --- Top bar: hide on mobile (right links already hidden, left text is redundant) --- */
  .top-bar { display: none; }

  /* --- Testimonials widget: lock to a fixed height so the page doesn't
       jump up/down as testimonials of different lengths cycle through.
       Adjust this value up if testimonials are getting clipped on your device. --- */
  #TestimonialTree_Widget_71145 {
    height: 480px;
    overflow: hidden;
  }

  /* --- Logo: hide brokerage line on small screens to keep header clean --- */
  .logo-brokerage { display: none; }

  /* --- Hamburger: pull slightly away from the right edge --- */
  .hamburger { margin-right: 16px; }

  /* --- Hero: better mobile proportions --- */
  .hero-content { padding: 52px 20px 44px; }
  .hero-sub { font-size: 0.9rem; max-width: 100%; }
  .hero-badge { font-size: 0.63rem; padding: 6px 14px; }

  /* Hero CTA buttons: full width so they're easy to tap */
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Hero search box: full width */
  .hero-search { max-width: 100%; }

  /* --- Stats bar: fix 5-star emoji overflowing 2-col grid --- */
  .stat-number { font-size: 1.6rem; }
  .stat-item { padding: 18px 10px; }
  .stat-label { font-size: 0.62rem; letter-spacing: 0.08em; }

  /* --- Blog photo: reduce height and show top of image instead of center --- */
  .blog-photo { height: 200px; }
  .blog-photo img { object-position: center top; }

  /* --- Neighbourhood cards: consistent aspect ratio on 2-col --- */
  .neighbourhood-card { aspect-ratio: 3/2; }

  /* --- Agent cards: reduce padding so text isn't cramped --- */
  .agent-info { padding: 20px 18px; }
  .agent-bio { font-size: 0.83rem; -webkit-line-clamp: 4; }

  /* --- Agent photo: shift crop window so faces appear near the top on mobile ---
       center top (0%) shows too low for portrait shots in a landscape container;
       25% skips past headroom and places faces in the upper portion of the frame --- */
  .agent-photo img { object-position: center 40%; }

  /* --- Agent contact buttons: stack vertically for cleaner tap targets --- */
  .agent-contact {
    flex-direction: column;
    gap: 8px;
  }
  .agent-contact a {
    text-align: center;
    justify-content: center;
    white-space: normal;
  }

  /* --- Remove top padding on stacked grid columns (e.g. FAQ second column on sell page) --- */
  [style*="padding-top:72px"] { padding-top: 0 !important; }

  /* --- Inline flex rows with gap:32px that don't stack well --- */
  [style*="gap:32px;flex-wrap:wrap"],
  [style*="gap: 32px; flex-wrap: wrap"] {
    gap: 16px !important;
  }

  /* --- BTN-LG: reduce padding on mobile so buttons don't look oversized --- */
  .btn-lg { padding: 15px 28px; font-size: 0.84rem; }

  /* --- Section-inner: ensure full-width padding on narrow screens --- */
  .section-inner { padding: 0 20px; }

  /* --- Team photo: reduce fixed height so object-fit:cover doesn't over-crop sides --- */
  [style*="height:480px"] { height: 280px !important; }

  /* --- Page hero: left-align text on mobile --- */
  .page-hero-content { text-align: left; }
  .page-hero p { max-width: 100%; }
}

@media (max-width: 480px) {

  /* --- Hero: tighter on very small phones --- */
  .hero-content { padding: 40px 16px 36px; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }

  /* --- Stats: single column on very narrow phones --- */
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 1.4rem; }

  /* --- Team photo: even smaller on very narrow phones --- */
  [style*="height:480px"] { height: 220px !important; }

  /* --- Blog photo smaller on very small screens --- */
  .blog-photo { height: 170px; }

  /* --- Agent card photo height on column layout --- */
  .agent-photo { height: 200px; }

  /* --- Section inner tighter padding --- */
  .section-inner { padding: 0 16px; }

  /* --- Footer: ensure wrapping looks ok --- */
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .footer-bottom .footer-social { justify-content: center; }

  /* --- CTA strip buttons: full width stack --- */
  .cta-strip-btns { flex-direction: column; }
  .cta-strip-btns .btn { width: 100%; justify-content: center; }

  /* --- Float phone: slightly bigger tap target --- */
  .float-phone { padding: 13px 18px; }
}
