/* ============================================================
   AFR26 Theme Stylesheet — Answers For Real Estate
   ============================================================ */

/* ---- Design tokens ---------------------------------------- */
:root {
  --navy:        #012169;
  --navy-dark:   #01174A;
  --sky:         #418FDE;
  --black:       #14171A;
  --cream:       #FAF7F2;
  --cream-2:     #F5F1EA;
  --cream-3:     #EFE9DE;
  --ink:         #1A1F2C;
  --ink-muted:   #5A6170;
  --cement:      #E6DDD1;
  --grey:        #A7A9AC;
  --dark-grey:   #6E7277;
  --grey-15:     #DCDCDC;
  --amber:       #F4B124;
  --font-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --shadow-sm: 0 1px 2px rgba(1,33,105,0.04), 0 1px 1px rgba(1,33,105,0.03);
  --shadow-md: 0 4px 12px rgba(1,33,105,0.06), 0 2px 4px rgba(1,33,105,0.04);
  --shadow-lg: 0 12px 32px rgba(1,33,105,0.08), 0 4px 12px rgba(1,33,105,0.05);
}

/* ---- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

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

/* ---- Layout helpers --------------------------------------- */
.afr-container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 48px;
}

.afr-section {
  padding-block: 40px;
}

/* ============================================================
   ANNOUNCE BAR
   ============================================================ */
.afr-announce {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 48px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--cream-3);
  background: var(--cream);
}

.afr-announce-date {
  display: flex;
  align-items: center;
  gap: 8px;
}

.afr-announce-date::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-muted);
  flex-shrink: 0;
}

.afr-announce-tag {
  background: var(--navy);
  color: white;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-right: 6px;
}

.afr-announce-hyperlocal {
  color: var(--navy);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.afr-announce-hyperlocal:hover { color: var(--navy-dark); }

/* ============================================================
   HEADER
   ============================================================ */
.afr-header-wrap {
  background: var(--cream);
  border-bottom: 1px solid var(--cream-3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.afr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1280px;
  margin-inline: auto;
  padding: 20px 48px;
}

/* Logo */
.afr-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.afr-logo-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.afr-logo-sub {
  font-size: 9px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: italic;
  line-height: 1.3;
  max-width: 80px;
}

/* Nav */
.afr-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.afr-nav a {
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--r-sm);
  transition: background 0.15s;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.afr-nav a:hover { background: var(--cream-2); }
.afr-nav a.is-active { color: var(--navy); font-weight: 600; }
.afr-nav a.is-highlight { color: var(--navy); font-weight: 700; }

/* Header right */
.afr-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.afr-search-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cream-2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.15s;
}

.afr-search-btn:hover { background: var(--cement); }
.afr-search-btn svg { display: block; }

.afr-cta-pill {
  background: var(--navy);
  color: white;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.afr-cta-pill:hover { background: var(--navy-dark); color: white; }

/* Mobile nav toggle */
.afr-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

.afr-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.afr-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.afr-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search overlay */
.afr-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(1,23,74,0.85);
  z-index: 200;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}

.afr-search-overlay.is-open { display: flex; }

.afr-search-form {
  width: 100%;
  max-width: 640px;
  padding-inline: 24px;
}

.afr-search-input {
  width: 100%;
  padding: 20px 24px;
  font-size: 20px;
  font-family: var(--font-body);
  border: none;
  border-radius: var(--r-lg);
  outline: none;
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   PILLS & TAGS
   ============================================================ */
.afr-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
  line-height: 1;
}

.afr-pill-navy    { background: var(--navy);  color: white; }
.afr-pill-sky     { background: rgba(65,143,222,0.12); color: var(--navy); }
.afr-pill-cream   { background: var(--cream-2); color: var(--ink-muted); }
.afr-pill-outline { border: 1px solid var(--cement); color: var(--ink-muted); }
.afr-pill-frosted {
  background: rgba(255,255,255,0.18);
  color: white;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.afr-hero-wrap {
  padding: 20px 0 40px;
}

.afr-hero-wrap .afr-container {
  padding-block: 0;
}

.afr-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* Featured card */
.afr-hero-feature {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 460px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: var(--cement);
  background-size: cover;
  background-position: center;
  text-decoration: none;
  transition: transform 0.2s;
}

.afr-hero-feature:hover { transform: translateY(-2px); }

.afr-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1,23,74,0) 35%, rgba(1,23,74,0.88) 100%);
}

.afr-hero-placeholder { background: var(--cement); }

.afr-hero-pills {
  position: absolute;
  top: 20px; left: 20px;
  display: flex; gap: 8px;
  z-index: 2;
}

.afr-hero-dots {
  position: absolute;
  left: 32px;
  top: 50%;
  display: flex; gap: 6px;
  z-index: 2;
}

.afr-dot {
  width: 6px; height: 6px;
  border-radius: 100px;
  background: rgba(255,255,255,0.5);
  transition: all 0.2s;
}

.afr-dot.is-active {
  width: 20px;
  background: white;
}

.afr-hero-content {
  position: relative;
  z-index: 2;
  padding: 28px 32px;
  color: white;
}

.afr-hero-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  text-wrap: balance;
  max-width: 620px;
}

.afr-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  opacity: 0.88;
  letter-spacing: 0.03em;
}

.afr-hero-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--cement);
  flex-shrink: 0;
}

/* Trending sidebar */
.afr-hero-trending {
  background: white;
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.afr-trending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cream-3);
}

.afr-trending-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
}

.afr-trending-week {
  font-size: 10px;
  font-weight: 600;
  color: var(--dark-grey);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.afr-trending-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cream-3);
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}

.afr-trending-item:last-of-type { border-bottom: none; }
.afr-trending-item:hover .afr-trending-item-title { color: var(--navy); }

.afr-trending-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  width: 28px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}

.afr-trending-info { flex: 1; }

.afr-trending-item-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 4px;
  transition: color 0.15s;
}

.afr-trending-meta {
  font-size: 11px;
  color: var(--ink-muted);
  display: flex;
  gap: 6px;
}

.afr-trending-cat { color: var(--navy); font-weight: 600; }

.afr-trending-thumb {
  width: 62px;
  height: 62px;
  border-radius: var(--r-sm);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.afr-trending-item {
  align-items: center;
}

.afr-trending-empty { font-size: 13px; color: var(--ink-muted); padding: 8px 0; }

/* ============================================================
   MARKET PULSE
   ============================================================ */
.afr-pulse-wrap {
  padding: 0 0 40px;
}

.afr-pulse-wrap .afr-container { padding-block: 0; }

.afr-pulse {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 28px 36px;
  color: white;
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr 1fr auto;
  gap: 32px;
  align-items: center;
}

.afr-pulse-county {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 4px;
}

.afr-pulse-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.afr-pulse-stat-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 6px;
}

.afr-pulse-stat-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.afr-pulse-number {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.afr-pulse-delta {
  font-size: 11px;
  font-weight: 600;
}

.afr-pulse-delta.is-pos { color: #A8E6C0; }
.afr-pulse-delta.is-neg { color: #FFB8B8; }

.afr-pulse-cta {
  background: white;
  color: var(--navy);
  border: none;
  padding: 12px 18px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: opacity 0.15s;
  display: inline-block;
}

.afr-pulse-cta:hover { opacity: 0.88; color: var(--navy); }

/* ============================================================
   SECTION LABEL
   ============================================================ */
.afr-section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.afr-section-label-text {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}

.afr-section-label-line {
  flex: 1;
  height: 1px;
  background: var(--cement);
}

.afr-section-label-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.afr-section-label-link:hover { color: var(--navy-dark); }

/* ============================================================
   ARTICLE GRID
   ============================================================ */
.afr-articles-wrap { padding-top: 8px; padding-bottom: 48px; }

/* Cards shared */
.afr-card { background: white; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.afr-card a { display: block; text-decoration: none; color: inherit; height: 100%; }
.afr-card:hover { box-shadow: var(--shadow-md); }

.afr-card-img {
  background-color: var(--cement);
  background-size: cover;
  background-position: center;
  position: relative;
}

.afr-card-placeholder {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg, transparent 0, transparent 12px,
    rgba(1,33,105,0.04) 12px, rgba(1,33,105,0.04) 13px
  );
}

.afr-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }

.afr-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.afr-card-excerpt {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.afr-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-muted);
  padding-top: 14px;
  border-top: 1px solid var(--cream-3);
  margin-top: auto;
}

.afr-card-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.afr-card-meta strong { color: var(--ink); }

.afr-card-byline { font-size: 11px; color: var(--ink-muted); }

/* Large 2-col grid */
.afr-grid-primary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.afr-card-lg .afr-card-img { height: 240px; }
.afr-card-lg .afr-card-title { font-size: 22px; }

/* Small 3-col grid */
.afr-grid-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.afr-card-sm .afr-card-img { height: 180px; }
.afr-card-sm .afr-card-img-sm { height: 180px; }
.afr-card-sm .afr-card-title-sm { font-size: 17px; }
.afr-card-title-sm { font-size: 17px; }

.afr-no-posts { color: var(--ink-muted); text-align: center; padding: 40px 0; }

/* ============================================================
   CTA WARM (Block A)
   ============================================================ */
.afr-cta-warm-wrap { padding: 24px 0; }
.afr-cta-warm-wrap .afr-container { padding-block: 0; }

.afr-cta-warm {
  background: var(--cement);
  border-radius: var(--r-xl);
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.afr-cta-warm-deco-1 {
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(1,33,105,0.06);
  pointer-events: none;
}

.afr-cta-warm-deco-2 {
  position: absolute;
  right: 100px; bottom: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(65,143,222,0.18);
  pointer-events: none;
}

.afr-cta-warm-left { position: relative; }

.afr-cta-warm-kicker { margin-bottom: 16px; }

.afr-cta-warm-headline {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 14px 0 16px;
  color: var(--navy);
  text-wrap: balance;
}

.afr-cta-warm-desc {
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 440px;
  margin: 0;
}

.afr-cta-warm-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.afr-cta-warm-card-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}

.afr-cta-form-label {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 6px;
  display: block;
}

.afr-cta-input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--cement);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}

.afr-cta-input:focus { border-color: var(--navy); }

.afr-home-value-street,
.afr-home-value-zip,
.afr-home-value-handoff {
  display: none;
}

.afr-cta-btn-full {
  width: 100%;
  padding: 14px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s;
  font-family: inherit;
}

.afr-cta-btn-full:hover { background: var(--navy-dark); }

.afr-cta-subtext {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 10px;
  text-align: center;
}

/* ============================================================
   CTA NEWSLETTER (Block B)
   ============================================================ */
.afr-newsletter-wrap { padding: 0 0 24px; }
.afr-newsletter-wrap .afr-container { padding-block: 0; }

.afr-newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--cement);
  border-bottom: 1px solid var(--cement);
}

.afr-newsletter-kicker {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

.afr-newsletter-headline {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

.afr-newsletter-form {
  display: flex;
  gap: 8px;
}

.afr-newsletter-input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--cement);
  border-radius: 100px;
  background: white;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.afr-newsletter-input:focus { border-color: var(--navy); }

.afr-newsletter-btn {
  padding: 14px 22px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
  white-space: nowrap;
}

.afr-newsletter-btn:hover { background: var(--navy-dark); }

/* ============================================================
   ARTICLE SINGLE PAGE
   ============================================================ */
.afr-breadcrumb-bar {
  padding: 0 48px;
  background: var(--cream);
}

.afr-breadcrumb {
  max-width: 1280px;
  margin-inline: auto;
  padding: 14px 0;
  border-bottom: 1px solid var(--cement);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-muted);
  flex-wrap: wrap;
}

.afr-breadcrumb a { color: var(--navy); font-weight: 600; }
.afr-breadcrumb a:hover { color: var(--navy-dark); }
.afr-breadcrumb-sep { color: var(--cement); }
.afr-breadcrumb-current { color: var(--ink); }

/* Article layout wrapper */
.afr-article-wrap {
  padding: 48px 48px 24px;
  background: var(--cream);
}

.afr-article-layout {
  max-width: 1180px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

/* Article column */
.afr-article-column { min-width: 0; }

.afr-article-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.afr-article-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 24px;
  color: var(--ink);
  text-wrap: balance;
}

.afr-article-lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0 0 32px;
}

/* Author row */
.afr-article-author-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--cement);
  border-bottom: 1px solid var(--cement);
  margin-bottom: 36px;
}

.afr-author-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--cement);
  flex-shrink: 0;
  overflow: hidden;
}

.afr-author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.afr-author-details { flex: 1; }

.afr-author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: block;
}

.afr-author-meta {
  font-size: 12px;
  color: var(--ink-muted);
}

.afr-article-actions {
  display: flex;
  gap: 8px;
}

.afr-action-btn {
  padding: 8px 14px;
  background: white;
  border: 1px solid var(--cement);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s;
  font-family: inherit;
}

.afr-action-btn:hover { border-color: var(--navy); color: var(--navy); }

/* Article hero image */
.afr-article-hero {
  width: 100%;
  height: 420px;
  border-radius: var(--r-lg);
  margin-bottom: 12px;
  background-color: var(--cement);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.afr-article-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.afr-article-caption {
  font-size: 12px;
  color: var(--ink-muted);
  font-style: italic;
  margin-bottom: 36px;
}

/* Article body */
.afr-article-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  font-family: var(--font-body);
}

.afr-article-body p { margin: 0 0 20px; }

.afr-article-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 800;
  color: var(--navy);
  float: left;
  line-height: 0.9;
  margin-right: 10px;
  margin-top: 6px;
  letter-spacing: -0.04em;
}

.afr-article-body h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
  color: var(--ink);
}

.afr-article-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 32px 0 12px;
  color: var(--ink);
}

.afr-article-body img {
  width: 100%;
  border-radius: var(--r-lg);
  margin: 24px 0;
}

/* Pullquote */
.afr-article-body blockquote,
.afr-pullquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: white;
  border-radius: var(--r-lg);
  border-left: 4px solid var(--navy);
  box-shadow: var(--shadow-sm);
}

.afr-pullquote p,
.afr-article-body blockquote p {
  font-family: Georgia, serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.35;
  color: var(--navy);
  margin: 0 0 10px;
}

.afr-pullquote cite,
.afr-article-body blockquote cite {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-style: normal;
}

/* Share row */
.afr-article-share {
  margin-top: 40px;
  padding: 22px 0;
  border-top: 1px solid var(--cement);
  border-bottom: 1px solid var(--cement);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.afr-share-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.afr-share-buttons {
  display: flex;
  gap: 8px;
}

.afr-share-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--cement);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}

.afr-share-btn:hover { border-color: var(--navy); color: var(--navy); }

/* Prev / Next */
.afr-article-nav {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.afr-article-nav-item {
  background: white;
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s;
}

.afr-article-nav-item:hover { box-shadow: var(--shadow-md); }
.afr-article-nav-item.is-next { text-align: right; }

.afr-nav-dir {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
  display: block;
}

.afr-nav-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ============================================================
   ARTICLE SIDEBAR
   ============================================================ */
.afr-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Home value card */
.afr-sidebar-hv {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 22px;
  color: white;
}

.afr-sidebar-hv-kicker {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 10px;
}

.afr-sidebar-hv-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
  text-wrap: balance;
}

.afr-sidebar-input {
  width: 100%;
  padding: 11px 13px;
  border: none;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-family: inherit;
  margin-bottom: 8px;
  outline: none;
}

.afr-sidebar-btn {
  width: 100%;
  padding: 11px;
  background: white;
  color: var(--navy);
  border: none;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  font-family: inherit;
}

.afr-sidebar-btn:hover { opacity: 0.88; }

/* TOC card */
.afr-sidebar-toc {
  background: white;
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.afr-sidebar-toc-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}

.afr-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.afr-toc-item {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--cream-3);
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
}

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

.afr-toc-item a { color: inherit; transition: color 0.15s; }
.afr-toc-item a:hover { color: var(--navy); }

.afr-toc-num {
  color: var(--navy);
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}

/* Author card */
.afr-sidebar-author {
  background: white;
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.afr-sidebar-author-avatar {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--cement);
  margin: 0 auto 12px;
  overflow: hidden;
}

.afr-sidebar-author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.afr-sidebar-author-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}

.afr-sidebar-author-role {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.afr-sidebar-author-bio {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.afr-sidebar-call-btn {
  width: 100%;
  padding: 10px;
  background: var(--cream-2);
  border: none;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.afr-sidebar-call-btn:hover { background: var(--cream-3); color: var(--navy); }

/* ============================================================
   RELATED ARTICLES
   ============================================================ */
.afr-related-wrap { background: var(--cream); }

.afr-related-heading {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--ink);
}

.afr-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.afr-card-related .afr-card-img-related { height: 200px; }
.afr-card-title-related { font-size: 18px; }

/* ============================================================
   ARCHIVE PAGE
   ============================================================ */
.afr-archive-header {
  background: var(--navy);
  color: white;
  padding: 48px;
}

.afr-archive-header-inner {
  max-width: 1280px;
  margin-inline: auto;
}

.afr-archive-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 10px;
}

.afr-archive-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 12px;
}

.afr-archive-count { font-size: 14px; opacity: 0.65; }

.afr-archive-grid {
  padding: 40px 0;
}

.afr-archive-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================================
   GENERIC PAGE
   ============================================================ */
.afr-page-content-wrap {
  max-width: 840px;
  margin-inline: auto;
  padding: 48px;
}

.afr-page-content-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

/* ============================================================
   HOME VALUE PAGE
   ============================================================ */
.afr-has-home-value .afr-page-content-wrap {
  max-width: 1160px;
  padding: 40px 48px 64px;
}

.afr-has-home-value .wp-block-post-title {
  max-width: 12ch;
  margin-bottom: 12px;
}

.afr-has-home-value .wp-block-post-content > h1:first-child {
  display: none;
}

.afr-has-home-value .wp-block-post-content > p:first-child {
  color: var(--ink-muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 64ch;
}

.afr-has-home-value #8b-errorMessage {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(187, 61, 44, 0.18);
  background: rgba(187, 61, 44, 0.08);
  color: #8a2b1d !important;
}

.afr-has-home-value .home-value {
  background: white;
  border: 1px solid var(--cream-3);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}

.afr-has-home-value .ask_for_address form,
.afr-has-home-value .user_info_form form {
  display: grid;
  gap: 16px;
}

.afr-has-home-value .ask_for_address form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.afr-has-home-value .ask_for_address .form_item_text {
  margin: 0;
}

.afr-has-home-value .ask_for_address .form_item_submit {
  margin: 0;
}

.afr-has-home-value .home-value label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.afr-has-home-value .home-value input[type="text"],
.afr-has-home-value .home-value input[type="email"],
.afr-has-home-value .home-value input[type="tel"] {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--cement);
  border-radius: var(--r-md);
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.afr-has-home-value .home-value input[type="text"]:focus,
.afr-has-home-value .home-value input[type="email"]:focus,
.afr-has-home-value .home-value input[type="tel"]:focus {
  border-color: var(--navy);
  outline: 2px solid rgba(65,143,222,0.18);
  outline-offset: 0;
}

.afr-has-home-value .home-value input[type="submit"],
.afr-has-home-value .home-value .button-primary.submit {
  min-height: 54px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.afr-has-home-value .home-value input[type="submit"]:hover,
.afr-has-home-value .home-value .button-primary.submit:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

.afr-has-home-value .address_found,
.afr-has-home-value .address_not_found {
  display: grid;
  gap: 22px;
}

.afr-has-home-value .address_found > p:first-child,
.afr-has-home-value .address_not_found > p:first-child {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.afr-has-home-value .street_view {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--cream-2);
  box-shadow: var(--shadow-sm);
}

.afr-has-home-value .street_view img,
.afr-has-home-value .street_view iframe {
  display: block;
  width: 100%;
  min-height: 340px;
  border: 0;
  object-fit: cover;
}

.afr-has-home-value .user_info_form {
  padding: 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(250,247,242,0.9), rgba(245,241,234,0.95));
  border: 1px solid var(--cream-3);
}

.afr-has-home-value .show_value {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.afr-has-home-value .hv_address,
.afr-has-home-value .hv_value,
.afr-has-home-value .hv_range {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
}

.afr-has-home-value .hv_address {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.afr-has-home-value .hv_value {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.afr-has-home-value .hv_range {
  height: 1px;
  background: var(--cement);
  margin-top: -4px;
}

.afr-has-home-value .hv_half,
.afr-has-home-value .hv_third {
  margin: 0;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--cream);
  border: 1px solid var(--cream-3);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.afr-has-home-value .hv_half {
  grid-column: span 3;
}

.afr-has-home-value .hv_third {
  grid-column: span 2;
}

.afr-has-home-value .hv_half span,
.afr-has-home-value .hv_third span {
  display: inline-block;
  margin-top: 6px;
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.afr-has-home-value .no_address {
  background: white;
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.afr-hv-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.afr-has-home-value .afr-hv-status-copy,
.afr-has-home-value .afr-hv-manual-state {
  display: grid;
  gap: 14px;
}

.afr-has-home-value .afr-hv-status-kicker {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.afr-has-home-value .afr-hv-status-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.afr-has-home-value .afr-hv-status-address {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.afr-has-home-value .afr-hv-status-note {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.7;
}

.afr-has-home-value .afr-hv-status-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.afr-has-home-value .afr-hv-status-card {
  padding: 18px 20px;
  border: 1px solid var(--cream-3);
  border-radius: var(--r-lg);
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.afr-has-home-value .afr-hv-status-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.afr-has-home-value .afr-hv-status-card span {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.afr-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 56px 48px 32px;
  margin-top: 64px;
}

.afr-footer-inner {
  max-width: 1280px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.afr-footer-logo-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}

.afr-footer-tagline {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  max-width: 300px;
  margin: 0 0 20px;
  line-height: 1.6;
}

.afr-footer-socials {
  display: flex;
  gap: 8px;
}

.afr-social-circle {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}

.afr-social-circle:hover { border-color: rgba(255,255,255,0.6); color: white; }

.afr-footer-col h4 {
  font-family: var(--font-display);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
  color: white;
  font-weight: 700;
}

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

.afr-footer-col li {
  margin-bottom: 9px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

.afr-footer-col li a {
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}

.afr-footer-col li a:hover { color: white; }

.afr-footer-phone {
  color: white !important;
  font-weight: 600 !important;
}

.afr-footer-bottom {
  max-width: 1280px;
  margin: 22px auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.afr-footer-bottom strong { color: rgba(255,255,255,0.65); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .afr-pulse {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .afr-pulse-cta { grid-column: 1 / -1; text-align: center; display: block; }

  .afr-cta-warm { padding: 40px; gap: 32px; }
}

@media (max-width: 768px) {
  .afr-container { padding-inline: 20px; }
  .afr-section { padding-block: 32px; }

  /* Header */
  .afr-header { padding: 16px 20px; gap: 16px; }
  .afr-announce { padding: 8px 20px; }
  .afr-nav-toggle { display: flex; }

  .afr-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--cream-3);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 0;
    box-shadow: var(--shadow-md);
  }

  .afr-nav.is-open { display: flex; }
  .afr-nav a { padding: 12px 16px; }

  .afr-header-right .afr-cta-pill { display: none; }

  .afr-header-wrap { position: sticky; top: 0; z-index: 100; }

  /* Hero */
  .afr-hero-grid { grid-template-columns: 1fr; }
  .afr-hero-feature { min-height: 320px; }
  .afr-hero-title { font-size: 24px; }

  /* Pulse */
  .afr-pulse {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px 20px;
    border-radius: var(--r-md);
  }
  .afr-pulse-label { grid-column: 1 / -1; }
  .afr-pulse-cta { grid-column: 1 / -1; }

  /* Grids */
  .afr-grid-primary { grid-template-columns: 1fr; }
  .afr-grid-secondary { grid-template-columns: 1fr; }
  .afr-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* CTA */
  .afr-cta-warm { grid-template-columns: 1fr; padding: 32px 24px; }
  .afr-cta-warm-deco-1, .afr-cta-warm-deco-2 { display: none; }
  .afr-newsletter { grid-template-columns: 1fr; gap: 24px; }

  /* Article */
  .afr-article-wrap { padding: 24px 20px; }
  .afr-article-layout { grid-template-columns: 1fr; }
  .afr-sidebar { position: static; }
  .afr-breadcrumb-bar { padding: 0 20px; }
  .afr-article-hero { height: 240px; }
  .afr-article-body p:first-of-type::first-letter { font-size: 40px; }
  .afr-article-nav { grid-template-columns: 1fr; }

  /* Related */
  .afr-related-grid { grid-template-columns: 1fr; }
  .afr-archive-posts { grid-template-columns: 1fr; }
  .afr-has-home-value .afr-page-content-wrap { padding: 24px 20px 48px; }
  .afr-has-home-value .ask_for_address form { grid-template-columns: 1fr; }
  .afr-has-home-value .user_info_form { padding: 18px; }
  .afr-has-home-value .show_value { grid-template-columns: 1fr 1fr; }
  .afr-has-home-value .hv_half,
  .afr-has-home-value .hv_third { grid-column: span 1; }
  .afr-has-home-value .afr-hv-status-notes { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .afr-hero-feature { min-height: 260px; }
  .afr-footer-inner { grid-template-columns: 1fr; }
  .afr-footer-bottom { flex-direction: column; gap: 6px; }
  .afr-article-share { flex-direction: column; gap: 16px; }
  .afr-has-home-value .show_value { grid-template-columns: 1fr; }
  .afr-has-home-value .hv_half,
  .afr-has-home-value .hv_third { grid-column: 1 / -1; }
  .afr-has-home-value .home-value { padding: 20px; }
}
