/*
Theme Name: Mortgage Broker Pro
Theme URI: https://www.calgarymortgageshoppe.ca
Author: Your Agency
Description: Professional white-label mortgage broker theme. Charcoal + Red color scheme. Montserrat + Open Sans fonts. All brand content managed via Appearance > Customize.
Version: 1.2.0
License: GNU General Public License v2 or later
Text Domain: calgarymortgage
*/

/* =============================================
   CSS CUSTOM PROPERTIES (Brand Colors)
   Configurable via Appearance > Customize > Brand & Identity
   Primary:   Charcoal Black  #2b2b2b
   Accent:    CENTUM Red      #c1272d
   Secondary: Medium Gray     #555555
   ============================================= */
:root {
  /* === CENTUM BRAND PALETTE === */
  --color-navy:        #2b2b2b;   /* CENTUM charcoal — header, hero bg */
  --color-navy-dark:   #1a1a1a;   /* Darker charcoal — top bar, footer */
  --color-navy-light:  #3d3d3d;   /* Lighter charcoal — hover states */
  --color-teal:        #c1272d;   /* CENTUM red — primary accent, CTAs */
  --color-teal-light:  #d93a40;   /* Lighter red — hover on red buttons */
  --color-teal-pale:   #fdf0f0;   /* Pale red — card hover backgrounds */
  --color-gold:        #c1272d;   /* Same red — used for CTA emphasis */
  --color-gold-light:  #e84545;   /* Bright red — highlight text on dark bg */
  --color-white:       #ffffff;
  --color-off-white:   #f8f8f8;   /* Slightly warm off-white sections */
  --color-light-gray:  #e5e5e5;   /* Borders, dividers */
  --color-mid-gray:    #9a9a9a;   /* Muted text, meta */
  --color-dark-gray:   #555555;   /* Body text secondary */
  --color-text:        #2b2b2b;   /* Primary text — matches brand charcoal */
  --color-text-light:  #666666;   /* Secondary text */

  --font-heading: 'Montserrat', 'Segoe UI', sans-serif;
  --font-body:    'Open Sans', 'Segoe UI', sans-serif;
  --font-mono:    'Courier New', monospace;

  --radius-sm:  3px;
  --radius-md:  6px;
  --radius-lg:  12px;
  --radius-xl:  20px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.14);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.20);

  --transition: 0.25s ease;
  --max-width: 1180px;
  --section-pad: 80px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-teal-light); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

ul, ol { padding-left: 1.5rem; }

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-pad) 0; }
.section--gray { background: var(--color-off-white); }
.section--navy { background: var(--color-navy); color: var(--color-white); }
.section--teal { background: var(--color-teal); color: var(--color-white); }
.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--teal h1,
.section--teal h2,
.section--teal h3 { color: var(--color-white); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.text-center { text-align: center; }
.text-white  { color: var(--color-white) !important; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 12px;
}

.section-label--white { color: var(--color-gold-light); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
}

/* Short label hidden by default, shown only on small phones via media query */
.btn-label-short { display: none; }
.btn--primary:hover {
  background: var(--color-teal-light);
  border-color: var(--color-teal-light);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn--secondary:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-navy-dark);
  border-color: var(--color-gold);
}
.btn--gold:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-navy-dark);
  transform: translateY(-2px);
}

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

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
#masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-navy-light);
  box-shadow: 0 2px 16px rgba(0,0,0,0.22);
}

/* Mega menu anchors to the nav row */
.header-main {
  position: relative;
}

.header-top {
  background: var(--color-navy);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top-phone {
  color: var(--color-gold-light);
  font-size: 0.85rem;
  font-weight: 600;
}

.header-top-phone a {
  color: var(--color-gold-light);
  text-decoration: none;
}

.header-top-phone a:hover { color: var(--color-white); }

.header-top-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  margin-left: 20px;
  text-decoration: none;
}
.header-top-links a:hover { color: var(--color-white); }

.header-main {
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 12px;
}

.site-logo {
  flex-shrink: 0;
  min-width: 0;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.site-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.logo-tagline {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold-light);
}

/* Primary Nav */
.primary-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
}

.primary-nav > ul > li {
  position: relative;
}

.primary-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 18px;
  height: 72px;
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  border-bottom: 3px solid transparent;
}

.primary-nav > ul > li > a:hover,
.primary-nav > ul > li.current-menu-item > a {
  color: var(--color-white);
  border-bottom-color: var(--color-teal-light);
}

/* =============================================
   STANDARD DROPDOWN (Tools, About, Contact)
============================================= */
.primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--color-teal);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  padding: 8px 0;
  z-index: 200;
}

.primary-nav li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav .sub-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--color-navy);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav .sub-menu li a:hover {
  background: var(--color-teal-pale);
  color: var(--color-teal);
  padding-left: 28px;
}

/* =============================================
   MEGA MENU (Mortgages)
============================================= */

/* Parent li sits in normal flow — mega-menu drops below header */
.primary-nav li.has-mega-menu {
  position: static;
}

/* The mega panel — fixed below the header, constrained to site width */
.mega-menu {
  position: absolute;
  top: 100% !important; /* prevent any inline style from creating a gap */
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 940px;
  max-width: calc(100vw - 48px);
  background: var(--color-white);
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  border-top: 3px solid var(--color-teal);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 500;
  padding: 0;
  overflow: hidden;
}

.primary-nav li.has-mega-menu:hover > .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Inner grid: [featured 2-col] | [divider] | [list] */
.mega-menu-inner {
  display: grid;
  grid-template-columns: 1fr 1px 260px;
  gap: 0;
  align-items: stretch;
}

/* Left column — 2×3 grid of featured items */
.mega-col-featured {
  padding: 28px 32px 28px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  align-content: start;
}

/* Vertical divider */
.mega-col-divider {
  background: var(--color-light-gray);
  width: 1px;
  margin: 20px 0;
}

/* Right column — stacked link list with grey bg */
.mega-col-list {
  padding: 28px 24px;
  background: var(--color-off-white);
  display: flex;
  flex-direction: column;
}

.mega-col-list-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-mid-gray);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-light-gray);
  white-space: nowrap;
}

/* Force list to stack vertically */
.mega-col-list ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.mega-col-list ul li {
  display: block !important;
  width: 100% !important;
}

.mega-col-list ul li a {
  display: block !important;
  width: 100% !important;
  padding: 8px 0 !important;
  color: var(--color-dark-gray) !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--color-light-gray) !important;
  transition: color var(--transition), padding-left var(--transition) !important;
  white-space: normal !important;
}

.mega-col-list ul li:last-child a {
  border-bottom: none !important;
}

.mega-col-list ul li a:hover {
  color: var(--color-teal) !important;
  padding-left: 6px !important;
}

/* Featured mega item */
.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition);
  color: inherit;
}

.mega-item:hover {
  background: var(--color-teal-pale);
}

.mega-item:hover .mega-item-title {
  color: var(--color-teal);
}

.mega-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.mega-item:hover .mega-item-icon {
  background: var(--color-teal);
  color: var(--color-white);
}

.mega-item-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 3px;
  transition: color var(--transition);
  display: block;
  line-height: 1.3;
}

.mega-item-desc {
  font-size: 0.7rem;
  color: var(--color-mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
  display: block;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-phone {
  color: var(--color-gold-light);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 50%, var(--color-navy-light) 100%);
  position: relative;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(42,127,111,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-gold), var(--color-teal));
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}

.hero-content { }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(42,127,111,0.2);
  border: 1px solid rgba(42,127,111,0.4);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-teal-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--color-gold-light);
}

.hero p {
  color: rgba(255,255,255,0.78);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Rate Slider Card in Hero ─────────────────────── */
.hero-rate-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
  overflow: hidden;
  position: relative;
}

/* Coloured top bar */
.hero-rate-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-teal), #1a8a7b);
}

/* ── Slider header area ──────────────────────────── */
.rsc-header {
  background: #eef5f4;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #dde9e7;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.rsc-header-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #6b8080;
  margin-bottom: 2px;
  white-space: nowrap;
}

.rsc-amount {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
  white-space: nowrap;
}

.rsc-slider-wrap {
  flex: 1;
  min-width: 0;
}

/* Range slider */
.rsc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(
    to right,
    var(--color-teal) 0%,
    var(--color-teal) var(--pct, 22%),
    #c8dedd var(--pct, 22%),
    #c8dedd 100%
  );
  margin-bottom: 6px;
}

.rsc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--color-teal);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.rsc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(42,127,111,0.35);
}
.rsc-slider::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--color-teal);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  cursor: pointer;
}

.rsc-slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #9bb0ad;
}

/* ── Rates table ─────────────────────────────────── */
.rsc-table {
  width: 100%;
  border-collapse: collapse;
}

.rsc-table thead tr {
  border-bottom: 1px solid #e8eeee;
}

.rsc-table th {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #7a9090;
  text-align: left;
  background: #fff;
}

.rsc-table th:nth-child(2) { text-align: center; }
.rsc-table th:nth-child(3) { text-align: right; }

.rsc-table td {
  padding: 13px 16px;
  font-size: 14px;
  color: #3a4a4a;
  border-bottom: 1px solid #f0f4f4;
  vertical-align: middle;
}

.rsc-table tr:last-child td { border-bottom: none; }

.rsc-table tr:hover td { background: #f7fbfa; }

/* Best row highlight */
.rsc-table tr.rsc-best td {
  background: #f2faf8;
  font-weight: 600;
}
.rsc-table tr.rsc-best:hover td { background: #eaf6f3; }

/* Term column */
.rsc-term {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.rsc-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  flex-shrink: 0;
  cursor: default;
}

/* Rate column */
.rsc-rate {
  text-align: center !important;
  font-weight: 700;
  color: var(--color-navy);
  font-size: 15px;
}

/* Payment column */
.rsc-payment {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

.rsc-pmt-val {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 15px;
}

.rsc-mo {
  font-size: 11px;
  color: #9ab0b0;
  margin-left: 2px;
}

/* Best badge */
.rsc-badge {
  display: inline-block;
  margin-left: 6px;
  background: var(--color-teal);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .05em;
  vertical-align: middle;
}

/* Footer disclaimer */
.rsc-footer {
  padding: 10px 16px 12px;
  border-top: 1px solid #f0f4f4;
  background: #fafcfc;
}

.rsc-disclaimer {
  font-size: 11px;
  color: #9ab0b0;
  margin: 0;
  line-height: 1.5;
}

/* =============================================
   TRUST BAR
   ============================================= */
.trust-bar {
  background: var(--color-teal);
  padding: 14px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  white-space: nowrap;
  padding: 6px 20px;
  flex-shrink: 0;
}

.trust-item svg {
  flex-shrink: 0;
  opacity: 0.9;
  width: 16px;
  height: 16px;
}

.trust-item-text {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.trust-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

/* =============================================
   SERVICES GRID
   ============================================= */
.service-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--color-light-gray);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-teal);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--color-teal-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-teal);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.service-card a.read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-card a.read-more:hover { gap: 10px; }

/* =============================================
   STATS SECTION
   ============================================= */
.stats-section {
  background: var(--color-navy);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item { }

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-gold-light);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* =============================================
   TWO COLUMN CONTENT
   ============================================= */
.feature-image-wrap {
  position: relative;
}

.feature-image-wrap img {
  border-radius: var(--radius-lg);
  object-fit: cover;
  width: 100%;
  height: 400px;
}

.feature-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.feature-image-badge strong {
  display: block;
  font-size: 1.75rem;
  font-family: var(--font-heading);
  color: var(--color-gold-light);
}

.feature-image-badge span {
  font-size: 0.8rem;
  opacity: 0.8;
}

.feature-text h2 { margin-bottom: 16px; }
.feature-text .section-label { }
.feature-text p { color: var(--color-text-light); margin-bottom: 20px; }

/* Broker team photo placeholder (shown until image uploaded via Customizer) */
.broker-photo-placeholder {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1a2e4a 0%, #2a4a6a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 2px dashed rgba(255,255,255,0.15);
}

.check-list {
  list-style: none;
  padding: 0;
  margin-bottom: 32px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-light-gray);
  font-size: 0.95rem;
  color: var(--color-dark-gray);
}

.check-list li:last-child { border-bottom: none; }

.check-list li::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--color-teal);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath fill='white' d='M1 5l3 3 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-section {
  background: var(--color-off-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-light-gray);
  position: relative;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: var(--color-gold);
  font-size: 1rem;
}

.testimonial-text {
  font-size: 0.925rem;
  color: var(--color-dark-gray);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--color-light-gray);
  padding-top: 16px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-teal);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-navy);
}

.testimonial-location {
  font-size: 0.8rem;
  color: var(--color-mid-gray);
}

/* =============================================
   PROCESS STEPS
   ============================================= */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--color-teal);
  opacity: 0.3;
}

.process-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--color-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 0 auto 24px;
  border: 4px solid var(--color-teal);
}

.process-step h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* =============================================
   CALCULATOR SECTION
   ============================================= */
.calculator-section {
  background: var(--color-navy);
}

.calculator-section h2,
.calculator-section p { color: var(--color-white); }
.calculator-section p { color: rgba(255,255,255,0.75); }

.calculator-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.calc-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select {
  padding: 12px 16px;
  border: 2px solid var(--color-light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-teal);
}

.calc-result {
  grid-column: span 2;
  background: var(--color-navy);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  color: var(--color-white);
}

.calc-result-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.calc-result-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold-light);
  margin-bottom: 4px;
}

.calc-result-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

/* =============================================
   CONTACT / CTA BAND
   ============================================= */
.cta-band {
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-light) 100%);
  padding: 64px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta-band p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

/* CTA band buttons — white & white-outline so they pop on the red background */
.cta-band .btn--gold {
  background: #ffffff;
  color: var(--color-teal);
  border-color: #ffffff;
  font-size: 1rem;
  padding: 16px 40px;
  font-weight: 700;
}
.cta-band .btn--gold:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #ffffff;
  transform: translateY(-2px);
}

.cta-band .btn--secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.6);
  font-size: 1rem;
  padding: 16px 40px;
}
.cta-band .btn--secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: #ffffff;
  color: #ffffff;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   FOOTER
   ============================================= */
#colophon {
  background: var(--color-navy);
  color: rgba(255,255,255,0.7);
}

.footer-main {
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-brand .logo-name { font-size: 1.4rem; margin-bottom: 4px; }
.footer-brand .logo-tagline { margin-bottom: 16px; }

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.footer-social__link:hover {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--color-teal-light); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.875rem;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-teal-light);
}

.footer-contact-item a {
  color: rgba(255,255,255,0.7);
}

.footer-contact-item a:hover { color: var(--color-white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.footer-bottom a:hover { color: var(--color-white); }

.footer-legal-links {
  display: flex;
  gap: 24px;
}

/* =============================================
   BLOG / CARD GRID
   ============================================= */
.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-light-gray);
  transition: all var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.blog-card-img {
  height: 200px;
  background: var(--color-light-gray);
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img { transform: scale(1.05); }

.blog-card-body {
  padding: 24px;
}

.blog-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-teal);
  margin-bottom: 8px;
}

.blog-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.35;
}

.blog-card-body h3 a {
  color: var(--color-navy);
  text-decoration: none;
}

.blog-card-body h3 a:hover { color: var(--color-teal); }

.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--color-mid-gray);
}

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-section {
  background: var(--color-off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }

.contact-info p { color: var(--color-text-light); margin-bottom: 32px; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--color-teal-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  flex-shrink: 0;
}

.contact-detail-text strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-mid-gray);
  margin-bottom: 2px;
}

.contact-form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form-wrap h3 {
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--color-light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  resize: vertical;
  min-height: 120px;
  transition: border-color var(--transition);
  width: 100%;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--color-teal);
}

.form-group.full-width { grid-column: span 2; }

.form-submit {
  margin-top: 8px;
}

/* =============================================
   PAGE HEADER (interior pages)
   ============================================= */
.page-header {
  background: linear-gradient(135deg, var(--color-navy-dark), var(--color-navy));
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-gold));
}

.page-header h1 { color: var(--color-white); }

.page-header p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 580px;
  margin-top: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--color-white); }

.breadcrumb-sep { opacity: 0.4; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .grid-4, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-steps::before { display: none; }
}

/* =============================================
   MOBILE NAV — triggers at 1024px so landscape
   phones and small tablets get the hamburger
   ============================================= */
@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .menu-toggle { display: flex; }

  /* Compact the CTA button on tablets */
  .header-cta .btn {
    font-size: 0.78rem;
    padding: 8px 14px;
    white-space: nowrap;
    letter-spacing: 0.02em;
  }
}

/* On small phones shrink further and hide logo tagline */
@media (max-width: 480px) {
  .header-inner { gap: 8px; }

  .header-cta .btn {
    font-size: 0.7rem;
    padding: 7px 10px;
    letter-spacing: 0;
  }

  /* Show short label, hide full label */
  .btn-label-full  { display: none; }
  .btn-label-short { display: inline; }

  /* Stop logo tagline from pushing width */
  .logo-tagline { display: none; }
  .logo-name    { font-size: 1rem; }
}

@media (max-width: 768px) {
  :root { --section-pad: 56px; }

  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .hero-rate-card { display: block; }
  .rsc-table th:nth-child(2), .rsc-table td:nth-child(2) { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .calc-form { grid-template-columns: 1fr; }
  .calc-result { grid-column: span 1; }

  /* Mega menu collapses to simple list on mobile */
  .mega-menu {
    position: static !important;
    box-shadow: none;
    border-top: none;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: none;
  }
  .has-mega-menu.is-open .mega-menu { display: block; }
  .mega-menu-inner { grid-template-columns: 1fr; }
  .mega-col-divider { display: none; }
  .mega-col-featured { grid-template-columns: 1fr; padding: 0; }
  .mega-col-list { padding: 16px 0; background: none; margin: 0; }
  .mega-item { padding: 10px 0; }

  .primary-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-navy);
    padding: 100px 24px 40px;
    overflow-y: auto;
    z-index: 999;
  }

  .primary-nav.is-open ul {
    flex-direction: column;
    gap: 0;
  }

  .primary-nav.is-open > ul > li > a {
    height: auto;
    padding: 16px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .trust-bar-inner { gap: 24px; }
  .trust-divider { display: none; }

  .header-top { display: none; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-legal-links { flex-wrap: wrap; justify-content: center; }
}

/* Landscape phones — also show hamburger */
@media (max-height: 500px) and (orientation: landscape) {
  .primary-nav { display: none; }
  .menu-toggle { display: flex; }

  .primary-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--color-navy);
    padding: 70px 24px 24px;
    overflow-y: auto;
    z-index: 999;
  }

  .primary-nav.is-open ul { flex-direction: column; gap: 0; }

  .primary-nav.is-open > ul > li > a {
    height: auto;
    padding: 10px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
}

/* =============================================
   RECAPTCHA v3
   Badge hidden — disclosure text shown in form
   per Google's display requirements.
   ============================================= */
.grecaptcha-badge {
  visibility: hidden !important;
}

.recaptcha-disclosure {
  font-size: 0.75rem;
  color: var(--color-mid-gray);
  margin-top: 10px;
  text-align: center;
  line-height: 1.5;
}

.recaptcha-disclosure a {
  color: var(--color-mid-gray);
  text-decoration: underline;
}

.recaptcha-disclosure a:hover {
  color: var(--color-teal);
}

/* =============================================
   ELEMENTOR COMPATIBILITY
   ============================================= */

/* Prevent Elementor containers from inheriting
   theme section padding unintentionally */
.elementor-section,
.elementor-container,
.e-container {
  max-width: 100% !important;
}

/* Ensure Elementor pages respect theme font variables */
.elementor-widget-container {
  font-family: var(--font-body);
  color: var(--color-text);
}

/* Elementor headings inherit brand fonts */
.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3,
.elementor-widget-heading h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
}

/* Stop Elementor from adding extra margin to first section */
.elementor-section:first-child {
  margin-top: 0;
}

/* Make Elementor buttons match theme button style when using primary color */
.elementor-button.elementor-button-link {
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Elementor full-width sections sit correctly under sticky header */
.elementor-location-single .site-content,
.elementor-page .site-content {
  padding-top: 0;
}

/* ==============================================
   FEATURED REALTORS SECTION
   ============================================== */
.realtor-section {
  background: var(--color-off-white);
}

/* Stack cards vertically — each card is full-width horizontal */
.realtors-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Card: photo LEFT, details RIGHT ── */
.realtor-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-light-gray);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.realtor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* ── Photo column (fixed width, full card height) ── */
.realtor-photo-wrap {
  position: relative;
  width: 260px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-navy) 0%, #2a7f6f 100%);
}

.realtor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.realtor-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  letter-spacing: 2px;
}

.realtor-brokerage-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  color: rgba(255,255,255,0.92);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 32px 14px 10px;
  letter-spacing: 0.04em;
}

/* ── Details column (right side) ── */
.realtor-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.realtor-name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.realtor-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 4px;
  line-height: 1.15;
}

.realtor-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.realtor-ext-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--color-light-gray);
  color: var(--color-text-light);
  flex-shrink: 0;
  margin-top: 2px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-decoration: none;
}
.realtor-ext-link:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
  background: var(--color-teal-pale);
}

/* Bio — show up to 3 lines */
.realtor-bio {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Specialty tags */
.realtor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.realtor-tag {
  background: var(--color-teal-pale);
  color: var(--color-teal);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

/* Contact rows */
.realtor-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  margin-bottom: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--color-light-gray);
}

.realtor-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
}
a.realtor-contact-item:hover { color: var(--color-teal); }

.realtor-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-teal);
}

/* Office spans both columns */
.realtor-office {
  grid-column: span 2;
  cursor: default;
}

/* CTA button */
.realtor-cta-btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 11px 28px;
}

/* ── Responsive: stack photo above details on mobile ── */
@media (max-width: 700px) {
  .realtor-card { flex-direction: column; }
  .realtor-photo-wrap { width: 100%; height: 260px; }
  .realtor-photo-placeholder { min-height: 260px; }
  .realtor-body { padding: 20px; }
  .realtor-contact { grid-template-columns: 1fr; }
  .realtor-office { grid-column: span 1; }
  .realtor-cta-btn { align-self: stretch; text-align: center; justify-content: center; }
}

/* =============================================
   LEGAL PAGES (Privacy Policy, Terms of Use)
   ============================================= */
.container--narrow { max-width: 820px; }
.legal-page-content { font-size: 1rem; line-height: 1.75; color: var(--color-text); }
.legal-page-content h2 { font-size: 1.35rem; margin-top: 2.5rem; margin-bottom: 0.75rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--color-light-gray); color: var(--color-navy); }
.legal-page-content h3 { font-size: 1.05rem; margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--color-navy); }
.legal-page-content p { margin-bottom: 1rem; }
.legal-page-content ul { margin: 0.5rem 0 1rem 1.5rem; }
.legal-page-content ul li { margin-bottom: 0.4rem; }
.legal-updated { font-size: 0.85rem; color: var(--color-mid-gray); font-style: italic; margin-bottom: 1.5rem !important; }
.legal-contact-block { background: var(--color-off-white); border-left: 4px solid var(--color-teal); border-radius: var(--radius-md); padding: 20px 24px; margin-top: 1rem; line-height: 2; }
.legal-contact-block a { color: var(--color-teal); }
.page-hero--simple { background: var(--color-navy); padding: 60px 0 50px; text-align: center; }
.page-hero--simple h1 { color: var(--color-white); margin-bottom: 0.5rem; }
.page-hero--simple p { color: rgba(255,255,255,0.7); font-size: 1.05rem; margin: 0; }
