/* ───────────────────────────────────────────────
   SECTION 1: RESET + VARIABLES
─────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:        #b45309;
  --primary-dark:   #92400e;
  --primary-dim:    rgba(180,83,9,0.10);
  --primary-border: rgba(180,83,9,0.30);
  --primary-glow:   rgba(180,83,9,0.15);
  --bg:             #f8f7f4;
  --bg2:            #f3f2ef;
  --bg3:            #eae9e5;
  --border:         #e5e7eb;
  --border2:        #d1d5db;
  --text:           #111827;
  --muted:          #374151;
  --faint:          #9ca3af;
  --ink:            #0b1f3a;
  --ink2:           #1e3a5f;
  --white:          #ffffff;
  --surface:        #ffffff;
  --radius:         16px;
  --radius-sm:      12px;
  --radius-xs:      8px;

  --orange:         var(--primary);
  --orange-dim:     var(--primary-dim);
  --orange-mid:     var(--primary-border);
  --box-shadow-2:   0 4px 20px 0 rgba(15,15,15,0.06);
  --box-shadow-3:   0 4px 20px 0 rgba(15,15,15,0.14);
}

html, body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Mulish', sans-serif;
}

html {
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

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

body.all-pages {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.all-pages .container.main {
  margin-top: 32px;
}

/* ───────────────────────────────────────────────
   SECTION 2: TYPOGRAPHY
─────────────────────────────────────────────── */

h1 {
  font-family: 'Mulish', sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
}

h2, h3 {
  font-family: 'Mulish', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
}

h4, h5, h6 {
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

p {
  font-family: 'Mulish', sans-serif;
}

/* ───────────────────────────────────────────────
   SECTION 3: NAVIGATION
─────────────────────────────────────────────── */

.topbar {
  background: var(--ink);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-link {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  transition: color .15s;
}

.topbar-link:hover {
  color: rgba(255,255,255,0.85);
}

.topbar-right {
  font-size: 11.5px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}

nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 62px;
  gap: 16px;
}

/* Logo anchor — no class, fixed margin pushes nav into remaining space */
.nav-inner > a {
  flex-shrink: 0;
  margin-right: 36px;
  display: flex;
  align-items: center;
}

.logo {
  height: 28px;
  display: block;
}

.footer-logo {
  height: 24px;
  display: block;
}

/* Tab-underline nav links */
.nav-links {
  display: flex;
  gap: 0;
  flex: 0 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 0 11px;
  height: 62px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: color .15s, box-shadow .15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--primary);
}

/* More dropdown */
.nav-more {
  position: relative;
  flex-shrink: 0;
}

.nav-more-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 0 11px;
  height: 62px;
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, box-shadow .15s;
  line-height: 1;
}

.nav-more-btn:hover {
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--primary);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  margin-top: 8px;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--box-shadow-3);
  flex-direction: column;
  min-width: 200px;
  z-index: 200;
  padding: 6px 0;
}

/* Invisible bridge — keeps hover alive crossing the gap */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-more:hover .nav-dropdown,
.nav-more:focus-within .nav-dropdown {
  display: flex;
}

.nav-dropdown a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 9px 16px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.nav-dropdown a:hover {
  background: var(--bg);
  color: var(--ink);
}

.nav-cta {
  flex-shrink: 0;
  margin-left: auto;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .15s;
}

.nav-cta:hover {
  background: var(--ink2);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 12px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .25s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  background: var(--ink);
  flex-direction: column;
  z-index: 99;
  padding: 8px 0 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  max-height: calc(100vh - 62px);
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background .15s;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}

.m-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-radius: var(--radius-xs);
  margin: 8px 20px 0 !important;
  padding: 11px 20px !important;
  text-align: center;
  border: none !important;
}

/* ───────────────────────────────────────────────
   SECTION 4: LAYOUT CONTENT
─────────────────────────────────────────────── */

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

.section-hd {
  display: flex;
  align-items: flex-end;
  margin-bottom: 22px;
  padding-top: 56px;
}

.s-eye {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.section-hd h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.5px;
}

.s-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-left: auto;
  border-bottom: 1.5px solid #fde68a;
  padding-bottom: 1px;
  white-space: nowrap;
}

.s-all:hover {
  color: var(--primary);
}

.pb-56 {
  padding-bottom: 56px;
}

/* ── HERO ── */
.hero {
  background: var(--ink);
  padding: 64px 28px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -200px;
  top: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(180,83,9,0.15) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  left: -100px;
  bottom: 0;
  width: 400px;
  height: 300px;
  background: radial-gradient(circle, rgba(30,58,95,0.6) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: #f59e0b;
  flex-shrink: 0;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.06;
  letter-spacing: -2px;
  margin-bottom: 14px;
  max-width: 700px;
}

.hero h1 em {
  font-style: normal;
  color: #fcd34d;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 48px;
}

/* Journey tiles */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
}

.journey-tile {
  padding: 28px 24px 32px;
  border-right: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background .2s;
  position: relative;
}

.journey-tile:last-child {
  border-right: none;
}

.journey-tile:hover {
  background: rgba(255,255,255,0.06);
}

.jt-buying          { background: rgba(180,83,9,0.18); }
.jt-buying:hover    { background: rgba(180,83,9,0.28); }
.jt-renting         { background: rgba(15,40,80,0.6); }
.jt-selling         { background: rgba(5,30,60,0.7); }
.jt-owning          { background: rgba(8,25,50,0.8); }

.jt-icon  { font-size: 28px; line-height: 1; }
.jt-stage { font-size: 10px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.jt-title { font-size: 18px; font-weight: 800; color: var(--white); line-height: 1.2; }
.jt-desc  { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.55; }
.jt-arrow { font-size: 13px; font-weight: 700; color: #fcd34d; margin-top: auto; display: flex; align-items: center; gap: 5px; }

.jt-active-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #f59e0b;
}

/* ── MORTGAGE STRIP ── */
.mortgage-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.mortgage-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.mortgage-strip-inner::-webkit-scrollbar {
  display: none;
}

.ms-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--faint);
  flex-shrink: 0;
  margin-right: 24px;
}

.ms-items {
  display: flex;
  flex: 1;
}

.ms-item {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  border-right: 1px solid var(--border);
  text-decoration: none;
  flex-shrink: 0;
  transition: background .15s;
}

.ms-item:first-child {
  padding-left: 0;
}

.ms-item:last-child {
  border-right: none;
}

.ms-item:hover .ms-item-title {
  color: var(--ink);
}

.ms-item-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--faint);
  margin-bottom: 3px;
}

.ms-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.3;
  transition: color .15s;
}

/* ── SPLIT LEAD ── */
.split-lead {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}

.lead-hero-card {
  background: var(--ink);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: opacity .15s;
}

.lead-hero-card:hover {
  opacity: .92;
}

.lhc-top {
  background: linear-gradient(145deg, var(--ink2), var(--ink));
  padding: 32px 32px 0;
  position: relative;
}

.lhc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f59e0b;
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.lhc-top h3, .lhc-heading {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -.5px;
  margin-bottom: 12px;
  display: block;
}

.lhc-top p, .lhc-text {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  display: block;
}

.lhc-vis {
  height: 100px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-right: 32px;
  font-size: 72px;
  line-height: 1;
  margin-top: 16px;
}

.lhc-bottom {
  background: #152d4f;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lhc-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.lhc-read {
  font-size: 13px;
  font-weight: 700;
  color: #fcd34d;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lead-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ls-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  padding: 20px 22px;
  text-decoration: none;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all .15s;
}

.ls-card:hover {
  border-color: var(--ink);
  box-shadow: 0 4px 20px rgba(11,31,58,0.08);
}

.ls-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--border);
  flex-shrink: 0;
  line-height: 1;
  min-width: 32px;
}

.ls-body {
  flex: 1;
  min-width: 0;
  display: block;
}

.ls-eye {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
  display: block;
}

.ls-body h4, .ls-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  display: block;
}

/* ── MORTGAGE GRID ── */
.mortgage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mort-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  padding: 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .15s;
}

.mort-card:hover {
  border-color: var(--ink);
  box-shadow: 0 6px 24px rgba(11,31,58,0.08);
  transform: translateY(-2px);
}

.mort-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
}

.mort-card h4, .mort-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  display: block;
}

.mort-card p, .mort-text {
  font-size: 13px;
  color: var(--faint);
  line-height: 1.55;
  flex: 1;
  min-width: 0;
  display: block;
}

.mort-arrow {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}

/* ── MARKET BAND ── */
.market-band {
  background: linear-gradient(135deg, #451a03, #92400e, #b45309);
  border-radius: 20px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
  margin-top: 56px;
}

.mb-left .s-eye {
  color: #fde68a;
  margin-bottom: 12px;
}

.mb-left h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -.5px;
  margin-bottom: 12px;
}

.mb-left p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 24px;
}

.mb-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: #92400e;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 10px;
  transition: all .15s;
}

.mb-cta:hover {
  background: #fef3c7;
  color: #92400e;
}

.mb-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mb-link {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  text-decoration: none;
  transition: background .15s;
}

.mb-link:hover {
  background: rgba(255,255,255,0.16);
}

.mb-link-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fde68a;
  margin-bottom: 5px;
  display: block;
}

.mb-link-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  display: block;
}

/* ── CATEGORY GRID ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cat-card {
  border-radius: var(--radius);
  padding: 26px 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 140px;
  transition: all .15s;
  position: relative;
  overflow: hidden;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.cat-card-icon { font-size: 28px; line-height: 1; }
.cat-card-name { font-size: 15px; font-weight: 800; color: var(--white); line-height: 1.2; }
.cat-card-sub  { font-size: 11.5px; color: rgba(255,255,255,0.6); line-height: 1.4; }

.cc-buy    { background: linear-gradient(145deg, #0c2340, #1e3a5f); }
.cc-rent   { background: linear-gradient(145deg, #1a2e1a, #15803d); }
.cc-sell   { background: linear-gradient(145deg, #3b0a0a, #b91c1c); }
.cc-mort   { background: linear-gradient(145deg, #1c1917, #44403c); }
.cc-own    { background: linear-gradient(145deg, #1e1b4b, #4338ca); }
.cc-market { background: linear-gradient(145deg, #422006, #92400e); }
.cc-assist { background: linear-gradient(145deg, #052e16, #059669); }
.cc-land   { background: linear-gradient(145deg, #2d1b4e, #7c3aed); }
.cc-reloc  { background: linear-gradient(145deg, #0c3d4a, #0891b2); }
.cc-tech   { background: linear-gradient(145deg, #111827, #374151); }

/* ── FOUR-COL DEEP READS ── */
.four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.fcol-hd {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #fde68a;
}

.fcol-items {
  display: flex;
  flex-direction: column;
}

.fcol-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  transition: padding-left .15s;
}

.fcol-item:last-child {
  border-bottom: none;
}

.fcol-item:hover {
  padding-left: 4px;
}

.fcol-item:hover .fi-title {
  color: var(--primary);
}

.fcol-item:hover .fi-dot {
  background: var(--primary);
}

.fi-dot {
  width: 6px;
  height: 6px;
  background: #fcd34d;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
  transition: background .15s;
}

.fi-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  transition: color .15s;
}

/* ── SELLING SECTION ── */
.selling-section {
  background: var(--ink);
  border-radius: 20px;
  padding: 48px 40px;
  margin-top: 56px;
}

.selling-hd {
  display: flex;
  align-items: flex-end;
  margin-bottom: 28px;
}

.selling-hd-left .s-eye {
  color: #f59e0b;
  margin-bottom: 8px;
}

.selling-hd-left h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.5px;
}

.selling-all {
  font-size: 13px;
  font-weight: 700;
  color: #fcd34d;
  text-decoration: none;
  margin-left: auto;
  border-bottom: 1.5px solid rgba(252,211,77,0.3);
  padding-bottom: 1px;
}

.sell-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.sell-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background .15s;
}

.sell-card:hover {
  background: rgba(255,255,255,0.1);
}

.sell-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f59e0b;
}

.sell-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.sell-card-arrow {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-top: auto;
}

/* ── RENTER STRIP ── */
.renter-strip {
  background: var(--white);
  border-radius: 20px;
  border: 2px solid var(--border);
  padding: 36px 40px;
  margin-top: 24px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: center;
}

.rs-left .s-eye {
  margin-bottom: 8px;
}

.rs-left h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.3px;
  line-height: 1.2;
}

.rs-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.rs-link {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-decoration: none;
  transition: all .15s;
}

.rs-link:hover {
  border-color: var(--ink);
  background: var(--white);
}

.rs-link-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 5px;
  display: block;
}

.rs-link-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  display: block;
}

/* ───────────────────────────────────────────────
   SECTION 5: FOOTER
─────────────────────────────────────────────── */

footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 56px 28px 32px;
  margin-top: 64px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 52px;
  margin-bottom: 44px;
}

.footer-brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.5px;
  margin-bottom: 4px;
}

.footer-brand-name span {
  color: #fcd34d;
}

.footer-brand-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.25);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  margin-bottom: 9px;
  transition: color .15s;
}

.footer-col a:hover {
  color: #fcd34d;
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin-bottom: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.25);
}

.footer-bottom a {
  color: rgba(255,255,255,0.25);
  transition: color .15s;
}

.footer-bottom a:hover {
  color: #fcd34d;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 12.5px;
  color: rgba(255,255,255,0.25);
  font-weight: 600;
  transition: color .2s;
}

.footer-links a:hover {
  color: #fcd34d;
}

.footer-copy {
  width: 100%;
  font-size: 11px;
  color: rgba(255,255,255,0.18);
  line-height: 1.6;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.footer-disclaimer {
  max-width: 600px;
  font-size: 11px;
  color: rgba(255,255,255,0.14);
  line-height: 1.6;
  margin-top: 16px;
}

/* ───────────────────────────────────────────────
   SECTION 6: CONTACT FORM
─────────────────────────────────────────────── */

.contact {
  max-width: 560px;
  margin: 0 auto;
}

.contact p {
  margin: 0 0 12px;
}

.contact input,
.contact textarea,
.contact select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Mulish', sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

.contact input:focus,
.contact textarea:focus,
.contact select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

.contact textarea {
  min-height: 120px;
  resize: vertical;
}

.contact button[type="submit"] {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  font-family: 'Mulish', sans-serif;
  padding: 13px 24px;
  border-radius: var(--radius-xs);
  border: none;
  cursor: pointer;
  transition: background .15s;
}

.contact button[type="submit"]:hover {
  background: var(--primary-dark);
}

/* ───────────────────────────────────────────────
   SECTION 7: WIDGETS
─────────────────────────────────────────────── */

/* SUBLIST widget */
.item-sublist .sublist.card {
  border: none !important;
  box-shadow: var(--box-shadow-2);
  transition: box-shadow .2s, transform .2s;
}

.item-sublist .sublist.card:hover {
  box-shadow: var(--box-shadow-3);
  transform: translateY(-2px);
  color: var(--primary-dark);
}

/* BUBBLES widget */
.item-bubbles {
  width: 100%;
}

.bubbles-chip {
  width: 100%;
}

.bubbles-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.bubbles-link .bubbles-outer {
  height: auto;
  padding: 3px 0;
}

.bubbles-outer {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  transition: all .15s;
  position: relative;
}

.bubbles-outer::after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  line-height: 1;
}

.bubbles-outer:hover {
  padding-left: 20px;
  background: var(--primary-dim);
  border-color: var(--primary-border);
}

.bubbles-chip-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.sibling.link-button {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: auto !important;
  min-height: 0 !important;
}

repeat {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
}

.col-gap:has(> .item-bubbles)::before {
  display: none !important;
}

/* ── CARD OVERFLOW PREVENTION ── */
.journey-grid > *,
.mortgage-grid > *,
.cat-grid > *,
.sell-grid > *,
.four-col > *,
.lead-stack > *,
.rs-links > *,
.mb-links > * { min-width: 0; }

.journey-tile,
.mort-card,
.lead-hero-card,
.ls-card,
.cat-card,
.sell-card,
.rs-link,
.mb-link { overflow: hidden; }

.jt-title,
.cat-card-name,
.sell-card-title,
.mort-title,
.ls-title,
.lhc-heading {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* ───────────────────────────────────────────────
   SECTION 8: LAYOUT RESET (CRITICAL)
─────────────────────────────────────────────── */

/* Hero full-width = YES */
body.home-page .container.main {
  width: 100%;
  max-width: 100% !important;
  padding: 0;
}

.container.layout {
  max-width: 100%;
  padding: 0 !important;
}

.container.layout .row.layout {
  margin: 0 !important;
}

body.home-page .container.layout .row.layout > .cols {
  padding: 0 !important;
}

body.home-page .container.layout .col-gap {
  padding: 0 !important;
}

/* Always-include */
body.all-pages .content .container.main {
  padding: 24px 16px;
}

.dir-content {
  max-width: 1140px !important;
  margin: 0 auto !important;
  padding: 52px 48px;
  background: var(--bg);
}

.container.main {
  max-width: 1600px !important;
}

/* ───────────────────────────────────────────────
   SECTION 9: RESPONSIVE
─────────────────────────────────────────────── */

/* Tablet ≤1199px */
@media (max-width: 1199.98px) {
  .nav-inner { padding: 0 20px; }
  .topbar-inner { padding: 0 20px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 48px 20px 0; }
  .journey-grid { grid-template-columns: repeat(2, 1fr); }
  .split-lead { grid-template-columns: 1fr; }
  .mortgage-grid { grid-template-columns: repeat(2, 1fr); }
  .market-band { grid-template-columns: 1fr; padding: 36px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .four-col { grid-template-columns: repeat(2, 1fr); }
  .sell-grid { grid-template-columns: repeat(2, 1fr); }
  .renter-strip { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  footer { padding: 40px 20px 28px; }
  .mortgage-strip-inner { padding: 14px 20px; }
}

/* Mobile ≤767px */
@media (max-width: 767.98px) {
  .topbar { display: none; }
  .nav-inner { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-more { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .wrap { padding: 0 16px; }
  .hero { padding: 40px 16px 0; }
  .hero h1 { font-size: 34px; letter-spacing: -1px; }
  .hero-sub { font-size: 15px; margin-bottom: 32px; }
  .section-hd { padding-top: 40px; }
  .section-hd h2 { font-size: 22px; }

  .journey-grid { grid-template-columns: 1fr; }
  .mortgage-grid { grid-template-columns: 1fr; }
  .split-lead { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .four-col { grid-template-columns: 1fr; }
  .sell-grid { grid-template-columns: 1fr; }
  .renter-strip { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .rs-links { grid-template-columns: 1fr 1fr; }
  .market-band { padding: 28px; }
  .mb-links { grid-template-columns: 1fr; }
  .selling-section { padding: 32px 20px; }

  footer { padding: 32px 16px 24px; margin-top: 40px; text-align: center; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; margin-bottom: 28px; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-col a { text-align: center; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 8px; }
  .footer-links { gap: 10px; justify-content: center; }
  .footer-copy { text-align: center; }
  .footer-disclaimer { text-align: center; margin: 16px auto 0; }

  .mortgage-strip-inner { padding: 12px 16px; }
  .ms-label { display: none; }
}

/* Small mobile ≤374px */
@media (max-width: 374px) {
  .hero h1 { font-size: 28px; }
  .jt-icon { font-size: 22px; }
  .jt-title { font-size: 16px; }
  .cat-card { min-height: 120px; padding: 18px 14px; }
  .cat-card-icon { font-size: 22px; }
  .lhc-top h3, .lhc-heading { font-size: 22px; }
}
