/* ═══════════════════════════════════════════════════════════
   Indy Property Guide — indypropertyguide.com
   Shared Stylesheet
   Brand: Your Realty Link | yourrealtylink.com
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --red:       #c03926;
  --red-dark:  #9e2e1e;
  --red-light: #f5ede9;
  --gray:      #6e6e70;
  --dark:      #1b3a5c;
  --mid:       #2a4a6c;
  --light:     #f5f8fc;
  --border:    #d6e3f0;
  --white:     #ffffff;
  --green:     #2e7d32;
  --navy:      #1b3a5c;
  --navy-dark: #132a44;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --radius: 8px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow: 0 2px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 6px 28px rgba(0,0,0,.13);
  --max: 1100px;
  --transition: .2s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .35em; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}
/* Editorial headings use the display serif; UI/label headings stay sans */
h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.22;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.8rem, 4.2vw, 2.5rem); margin-bottom: 1rem; letter-spacing: -0.018em; }
h2 { font-size: clamp(1.35rem, 2.7vw, 1.8rem); margin: 2.4rem 0 .85rem; color: var(--red); }
h3 { font-size: 1.22rem; margin: 1.6rem 0 .5rem; }
/* Small card/UI titles: keep sans for legibility at small sizes */
.city-card h3, .local-post-card h3, .home-city-card h3, .home-feature-card h3 {
  font-family: var(--font-sans);
  letter-spacing: 0;
}
p  { margin-bottom: 1rem; }

/* ── LAYOUT ── */
.container { max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 24px; }
.section    { padding: 72px 0; }
.section-alt { background: var(--light); }

/* ── HEADER ── */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid #e5e5e5;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-logo img { height: 40px; width: auto; }
.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-logo-text .site-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: .03em;
}
.site-logo-text .site-tagline {
  font-size: 11px;
  color: #6e6e70;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a, .nav-item-dropdown > a {
  font-size: 13px;
  font-weight: 500;
  color: #444;
  padding: 6px 10px;
  border-radius: 5px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.site-nav > a:hover, .nav-item-dropdown > a:hover { color: var(--red); background: rgba(0,0,0,.04); text-decoration: none; }

/* ── NAV DROPDOWNS ── */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-item-dropdown > a::after {
  content: ' ▾';
  font-size: 9px;
  opacity: .6;
  letter-spacing: 0;
}
.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  min-width: 210px;
  padding: 10px 0 6px;
  z-index: 300;
  border: 1px solid rgba(0,0,0,.08);
  border-top: none;
}
/* Bridge: invisible hover zone fills any sub-pixel gap */
.nav-submenu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.nav-item-dropdown:hover .nav-submenu { display: block; }
.nav-submenu a {
  display: block !important;
  padding: 9px 16px !important;
  color: var(--dark) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  background: none !important;
  border-radius: 0 !important;
  white-space: nowrap;
}
.nav-submenu a:hover { background: var(--light) !important; color: var(--red) !important; text-decoration: none !important; }
.nav-submenu-divider { height: 1px; background: var(--border); margin: 4px 0; }

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 7px 14px !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.hamburger:hover { background: rgba(0,0,0,.05); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #444;
  transition: var(--transition);
  pointer-events: none;
}

/* ── BREADCRUMBS ── */
.breadcrumbs {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 12px;
  color: var(--gray);
}
.breadcrumbs a { color: var(--gray); }
.breadcrumbs a:hover { color: var(--red); text-decoration: none; }
.breadcrumbs span { margin: 0 6px; color: #bbb; }

/* ── HERO ── */
.page-hero {
  background:
    radial-gradient(1100px 420px at 12% -10%, rgba(255,255,255,.08), transparent 62%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 76px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c03926' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
/* Hero photo support.
   Pages get `.has-photo` + a `--hero-img` custom property from set-hero.py.
   Anything without it keeps the navy gradient above — so photos can be added
   one page at a time with no breakage. The dark scrim is what keeps the white
   headline readable over an arbitrary photo; don't lighten it much. */
.page-hero.has-photo {
  background-image:
    linear-gradient(100deg, rgba(19,42,68,.95) 0%, rgba(19,42,68,.86) 42%, rgba(19,42,68,.48) 100%),
    var(--hero-img);
  background-size: cover, cover;
  background-position: center, var(--hero-pos, center 55%);
  background-repeat: no-repeat, no-repeat;
}
/* On narrow screens the text sits over the middle of the photo, so the
   directional scrim stops working — go to a flat vertical one instead. */
@media (max-width: 760px) {
  .page-hero.has-photo {
    background-image:
      linear-gradient(180deg, rgba(19,42,68,.93) 0%, rgba(19,42,68,.88) 55%, rgba(19,42,68,.94) 100%),
      var(--hero-img);
  }
}
.page-hero .container { position: relative; }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin-bottom: 1rem;
  max-width: 24ch;
}
.page-hero h1 em { color: var(--red); font-style: normal; }
.page-hero .hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  line-height: 1.65;
  max-width: 660px;
  margin-bottom: 1.5rem;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 1.5rem; }
.hero-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.85);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: .01em;
  backdrop-filter: blur(2px);
}
/* hide any empty hero badges */
.hero-badge:empty { display: none; }

/* ── CONTENT LAYOUT ── */
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
}
.content-main { min-width: 0; }
.content-sidebar { position: sticky; top: 80px; }

/* ── SIDEBAR CARDS ── */
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card-header {
  background: var(--red);
  color: var(--white);
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.sidebar-card-body { padding: 18px; }
.sidebar-card-body p { font-size: 14px; color: var(--mid); margin-bottom: .85rem; }
.contact-list { list-style: none; padding: 0; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child { border: none; margin-bottom: 0; }
.contact-list .icon { font-size: 14px; margin-top: 1px; }

/* ── CTA BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .012em;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 2px 10px rgba(192,57,38,.24);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); text-decoration: none; color: var(--white); box-shadow: 0 6px 18px rgba(192,57,38,.30); }
.btn-outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline:hover { background: var(--red); color: var(--white); text-decoration: none; }
.btn-white {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.btn-white:hover { background: var(--light); text-decoration: none; }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--red); text-decoration: none; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; margin-bottom: 10px; }

/* ── CTA BLOCK ── */
.cta-block {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px 36px;
  margin: 40px 0;
  text-align: center;
}
.cta-block h2 { color: var(--white); font-size: 1.75rem; margin-bottom: .75rem; margin-top: 0; }
.cta-block h3 { color: var(--white); font-size: 1.3rem; margin-bottom: .5rem; margin-top: 0; }
.cta-block p { color: rgba(255,255,255,.88); font-size: 15px; margin-bottom: 1.75rem; max-width: 580px; margin-left: auto; margin-right: auto; }
.cta-block .btn-group, .cta-block .cta-buttons, .cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-block .btn-outline { color: var(--white); border: 2px solid var(--white); }
.cta-block .btn-outline:hover { background: var(--white); color: var(--red); border-color: var(--white); }

.cta-block.cta-light,
.cta-block-light {
  background: var(--light);
  border: 1px solid var(--border);
  color: var(--dark);
}
.cta-block.cta-light h3,
.cta-block-light h3 { color: var(--dark); }
.cta-block.cta-light p,
.cta-block-light p { color: var(--gray); }
.btn-red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); text-decoration: none; color: var(--white); }

/* ── FAQ ── */
.faq-section { margin: 2.5rem 0; }
.faq-section h2 { color: var(--dark); }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
details.faq-item summary {
  list-style: none;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  transition: background var(--transition);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--red);
  flex-shrink: 0;
  margin-left: 12px;
}
details.faq-item[open] summary::after { content: '−'; }
details.faq-item[open] summary { background: var(--red-light); color: var(--red); }
.faq-answer {
  padding: 16px 20px 20px;
  font-size: 14px;
  color: var(--mid);
  border-top: 1px solid var(--border);
  background: #fafafa;
}

/* ── CITY GRID (county hub) ── */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
  gap: 16px;
  margin: 1.25rem 0 2rem;
}
.city-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px 16px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 1px 3px rgba(27,58,92,.05);
  overflow: hidden;
}
.city-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .2s ease;
}
.city-card:hover::before { transform: scaleY(1); }
.city-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 5px;
  line-height: 1.2;
  padding-right: 24px;
}
.city-card p {
  font-size: .78rem;
  color: var(--gray);
  margin: 0;
  font-weight: 400;
  line-height: 1.4;
}
.city-card .arrow {
  position: absolute;
  top: 18px;
  right: 16px;
  color: var(--red);
  font-size: 14px;
  opacity: .5;
  transition: opacity var(--transition), transform var(--transition);
}
.city-card:hover {
  border-color: #d9dde2;
  box-shadow: 0 12px 28px rgba(27,58,92,.13);
  text-decoration: none;
  transform: translateY(-3px);
}
.city-card:hover h3 { color: var(--red); }
.city-card:hover .arrow { opacity: 1; transform: translateX(3px); }
.city-card .cprice { display: block; font-size: .82rem; color: var(--red); font-weight: 700; margin-top: 6px; }
/* Reusable Indiana map (areas page + county hub sidebars) */
.areas-map { max-width: 440px; margin: 6px auto 34px; }
.areas-map .inmap { width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 22px rgba(27,58,92,.14)); }
.sidebar-map-card .inmap { width: 100%; height: auto; display: block; }
.inmap-caption { font-size: .78rem; color: var(--gray); text-align: center; margin: 10px 0 0; }
.county-shape-map { max-width: 540px; margin: 10px auto 26px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 18px 12px; box-shadow: 0 2px 12px rgba(27,58,92,.06); }
.county-shape-map .cmap2 { width: 100%; height: auto; display: block; }
/* Pin map (real map image + clickable pins) */
.pinmap { position: relative; max-width: 840px; margin: 12px auto 8px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 18px rgba(27,58,92,.10); background: #fff; line-height: 0; }
.pinmap > img { width: 100%; height: auto; display: block; }
.pin { position: absolute; transform: translate(-50%, -100%); text-decoration: none; z-index: 2; line-height: normal; }
.pin-marker { display: block; width: 30px; height: 30px; background: #c03926; border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 3px 7px rgba(0,0,0,.45); transition: background .12s ease, transform .12s ease; position: relative; }
.pin-marker::after { content: ''; position: absolute; top: 50%; left: 50%; width: 11px; height: 11px; background: #fff; border-radius: 50%; transform: translate(-50%,-50%); }
.pin-label { position: absolute; top: calc(100% + 7px); left: 50%; transform: translateX(-50%); background: #1b3a5c; color: #fff; font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s ease; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.pin:hover { z-index: 6; }
.pin:hover .pin-marker { background: #1b3a5c; transform: rotate(-45deg) scale(1.2); }
.pin:hover .pin-label { opacity: 1; }

/* Lead-magnet & thank-you hero headings sit on dark/photo backgrounds — keep them
   white (the global serif-heading color rule would otherwise make them navy). */
.lm-hero h1, .ty-hero h1 { color: #fff; }

/* ── Glossary term list ── */
.gl-list { margin: 26px 0 8px; }
.gl-item { padding: 14px 0; border-top: 1px solid #eaeef3; }
.gl-item:last-child { border-bottom: 1px solid #eaeef3; }
.gl-item dt { font-family: var(--font-sans); font-weight: 700; font-size: 1rem; color: var(--navy); margin: 0 0 4px; }
.gl-item dt a { color: var(--red); text-decoration: none; }
.gl-item dt a:hover { text-decoration: underline; }
.gl-item dd { margin: 0; font-size: .95rem; line-height: 1.65; color: #3a4652; }

/* ── Content data / comparison tables (guides, comparisons) ── */
.data-table { width: 100%; border-collapse: collapse; margin: 22px 0 26px; font-size: .94rem; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.data-table thead th { background: var(--navy); color: #fff; font-family: var(--font-sans); font-weight: 600; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; text-align: left; padding: 12px 14px; }
.data-table td, .data-table th { padding: 12px 14px; border-bottom: 1px solid #eaeef3; vertical-align: top; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:nth-child(even) { background: #f8fafc; }
.data-table td strong { color: var(--navy); }
.data-table a { font-weight: 600; }
@media (max-width: 620px) {
  .data-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ── Feature/hub cards (shared — also inlined on the homepage) ── */
.home-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin: 28px 0 8px; }
.home-feature-grid .home-feature-card { background: #fff; border: 1px solid #e8eaed; border-radius: 16px; padding: 28px 26px; text-decoration: none; display: block; position: relative; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.home-feature-grid .home-feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(27,58,92,.13); border-color: #d9dde2; }
.home-feature-grid .home-feature-card h3 { font-size: 1.16rem; color: var(--navy); margin: 0 0 8px; }
.home-feature-grid .home-feature-card p { font-size: .92rem; color: var(--gray); line-height: 1.65; margin: 0; }
.home-feature-grid .home-feature-card .arrow { position: absolute; top: 26px; right: 24px; color: var(--red); font-size: 1.2rem; }

/* ── "At a Glance" AI-answer / quick-facts block ── */
.quick-answer { background: linear-gradient(180deg,#f7f9fc,#ffffff); border: 1px solid #e3e8ef; border-left: 4px solid #c03926; border-radius: 12px; padding: 22px 24px; margin: 0 0 30px; box-shadow: 0 2px 12px rgba(27,58,92,.05); }
.quick-answer .qa-heading { font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #c03926; margin: 0 0 10px; }
.qa-lead { font-size: 1.07rem; line-height: 1.6; color: #24303f; margin: 0 0 18px; }
.qa-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 30px; margin: 0; }
.qa-facts > div { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-top: 1px solid #eaeef3; }
.qa-facts dt { font-size: .71rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #6e6e70; }
.qa-facts dd { margin: 0; font-size: .98rem; font-weight: 600; color: #1b3a5c; }
.qa-facts dd a { color: #c03926; text-decoration: none; font-weight: 700; }
.qa-facts dd a:hover { text-decoration: underline; }
@media (max-width:560px){ .qa-facts { grid-template-columns: 1fr; } }

/* ── INFO BOX ── */
.info-box {
  background: var(--red-light);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 1.5rem 0;
  font-size: 14px;
}
.info-box strong { color: var(--red); }

/* ── STATS ROW ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 1.75rem 0;
}
.stat-item {
  background: var(--light);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--border);
}
.stat-item .stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
  display: block;
}
.stat-item .stat-label {
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
}

/* ── AUTHOR BOX (blog) ── */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 40px;
}
.author-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}
.author-info h4 { font-size: 15px; margin-bottom: 2px; margin-top: 0; }
.author-info .author-title { font-size: 13px; color: var(--red); font-weight: 600; margin-bottom: 6px; }
.author-info p { font-size: 13px; color: var(--mid); margin-bottom: 0; }

/* ── POST META ── */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.post-meta .category-badge {
  background: var(--red);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── YOAST FIELDS BLOCK (admin reference) ── */
.yoast-ref {
  background: #fffbea;
  border: 1px solid #f0e06a;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 13px;
}
.yoast-ref h4 { margin: 0 0 10px; font-size: 13px; color: #856404; text-transform: uppercase; letter-spacing: .05em; }
.yoast-ref dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.yoast-ref dt { font-weight: 600; color: #856404; }
.yoast-ref dd { color: #555; }

/* ── FOOTER ── */
.site-footer {
  background: var(--light);
  color: var(--mid);
  padding: 56px 0 24px;
  border-top: 3px solid var(--red);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { height: 36px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: #6e6e70; line-height: 1.6; margin-bottom: 12px; }
.footer-col h4 {
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: #6e6e70; font-size: 13px; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--red); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #e2e2e2;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #999;
}
.footer-bottom a { color: #999; }
.footer-bottom a:hover { color: var(--red); text-decoration: none; }
.social-links { display: flex; gap: 10px; margin-top: 12px; }
.social-links a {
  width: 30px; height: 30px;
  background: #e8e8e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 13px;
  transition: all var(--transition);
}
.social-links a:hover { background: var(--red); color: var(--white); text-decoration: none; }

/* ── DIVIDER ── */
hr.divider { border: none; border-top: 2px solid var(--border); margin: 2.5rem 0; }

/* ── RESPONSIVE ── */

/* Tablet — sidebar collapses, footer 2-col */
@media (max-width: 960px) {
  .content-wrap { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile nav — hamburger replaces full nav */
@media (max-width: 960px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--dark);
    padding: 80px 24px 48px;
    z-index: 99;
    gap: 0;
    overflow-y: auto;
  }
  .site-nav.open > a {
    font-size: 18px;
    padding: 14px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .site-nav.open .nav-item-dropdown {
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255,255,255,.07);
    width: 100%;
  }
  .site-nav.open .nav-item-dropdown > a {
    font-size: 18px;
    padding: 14px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    width: 100%;
  }
  .site-nav.open .nav-item-dropdown > a::after { content: ' ›'; }
  .site-nav.open .nav-item-dropdown.open > a::after { content: ' ↓'; }
  .site-nav.open .nav-submenu {
    display: none;
    position: static;
    background: rgba(255,255,255,.06);
    border-radius: 8px;
    box-shadow: none;
    border: none;
    width: 100%;
    margin-bottom: 8px;
    padding: 4px 0;
  }
  .site-nav.open .nav-item-dropdown.open .nav-submenu { display: block; }
  .site-nav.open .nav-submenu a {
    color: #ccc !important;
    font-size: 15px !important;
    padding: 12px 16px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
  }
  .site-nav.open .nav-submenu a:hover { color: var(--white) !important; background: rgba(255,255,255,.08) !important; }
  .site-nav.open .nav-cta {
    margin-top: 16px;
    justify-content: center;
    font-size: 16px !important;
    padding: 14px 24px !important;
    border-radius: var(--radius) !important;
  }
  .hamburger { display: flex; }
}

/* Small mobile */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-block { padding: 28px 20px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .btn { padding: 13px 20px; min-height: 44px; }
  .page-hero { padding: 40px 0 32px; }
  .section { padding: 40px 0; }
  h2 { font-size: 1.3rem; }
}

/* Extra small */
@media (max-width: 400px) {
  .stats-row { grid-template-columns: 1fr; }
  .city-grid { grid-template-columns: 1fr; }
}

/* ── LEAD CAPTURE FORMS ── */
.ipg-lead-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}
.ipg-lead-form input,
.ipg-lead-form select,
.ipg-lead-form textarea {
  display: block;
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font-sans);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--dark);
  margin-bottom: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.ipg-lead-form input:focus,
.ipg-lead-form select:focus,
.ipg-lead-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,57,38,.12);
}
.ipg-lead-form textarea { resize: vertical; min-height: 90px; }
.ipg-lead-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ipg-lead-form button[type="submit"] {
  display: block;
  width: 100%;
  padding: 13px 24px;
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 4px;
}
.ipg-lead-form button[type="submit"]:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}
.ipg-lead-form button[type="submit"]:disabled {
  opacity: .65;
  cursor: not-allowed;
}
.ipg-lead-form .form-note {
  font-size: 11px;
  color: var(--gray);
  margin-top: 10px;
  text-align: center;
}
.form-success {
  text-align: center;
  padding: 28px 16px;
}
.form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e8f5e9;
  color: var(--green);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}
.form-success strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.form-success p {
  font-size: 14px;
  color: var(--gray);
}
.form-error {
  color: #c62828;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}

/* Sidebar form variant */
.sidebar-card .ipg-lead-form input,
.sidebar-card .ipg-lead-form select {
  padding: 9px 12px;
  font-size: 13px;
  margin-bottom: 10px;
}
.sidebar-card .ipg-lead-form label { font-size: 12px; }
.sidebar-card .ipg-lead-form button[type="submit"] {
  padding: 10px 18px;
  font-size: 13px;
}
.sidebar-card .form-success { padding: 18px 12px; }

/* Contact page full form */
.contact-form-block {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 36px;
}
.contact-form-block h2 {
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 6px;
  margin-top: 0;
}
.contact-form-block > p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 20px;
}

/* CTA form (bottom of service pages) */
.cta-form-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 56px 0;
  text-align: center;
}
.cta-form-section h2 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: .5rem;
  margin-top: 0;
}
.cta-form-section > .container > p {
  color: #ccc;
  max-width: 540px;
  margin: 0 auto 28px;
}
.cta-form-section .ipg-lead-form {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}
.cta-form-section .ipg-lead-form label { color: #ccc; }
.cta-form-section .ipg-lead-form input,
.cta-form-section .ipg-lead-form select,
.cta-form-section .ipg-lead-form textarea {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  color: var(--white);
}
.cta-form-section .ipg-lead-form input::placeholder,
.cta-form-section .ipg-lead-form textarea::placeholder { color: rgba(255,255,255,.4); }
.cta-form-section .ipg-lead-form input:focus,
.cta-form-section .ipg-lead-form select:focus,
.cta-form-section .ipg-lead-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,57,38,.25);
}
.cta-form-section .form-note { color: rgba(255,255,255,.5); }

@media (max-width: 600px) {
  .ipg-lead-form .form-row { grid-template-columns: 1fr; }
  .contact-form-block { padding: 24px 18px; }
}

/* ═══════════════════════════════════════════════════════════
   STICKY BOTTOM BAR CTA
   ═══════════════════════════════════════════════════════════ */
.sticky-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
  background: var(--dark); color: #fff;
  transform: translateY(100%); transition: transform .4s ease;
  box-shadow: 0 -2px 16px rgba(0,0,0,.25);
}
.sticky-cta-bar.visible { transform: translateY(0); }
.sticky-cta-bar.dismissed { transform: translateY(100%); }
.sticky-cta-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px;
}
.sticky-cta-text { flex: 1; font-size: 14px; line-height: 1.4; }
.sticky-cta-actions { display: flex; gap: 10px; flex-shrink: 0; }
.sticky-btn {
  display: inline-block; padding: 10px 18px; border-radius: 6px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  white-space: nowrap; transition: background .2s, color .2s;
}
.sticky-btn-primary { background: var(--red); color: #fff; }
.sticky-btn-primary:hover { background: var(--red-dark); }
.sticky-btn-phone { background: rgba(255,255,255,.12); color: #fff; }
.sticky-btn-phone:hover { background: rgba(255,255,255,.2); }
.sticky-cta-close {
  background: none; border: none; color: rgba(255,255,255,.5);
  font-size: 22px; cursor: pointer; padding: 4px 8px; line-height: 1;
}
.sticky-cta-close:hover { color: #fff; }

@media (max-width: 768px) {
  .sticky-cta-inner { flex-direction: column; text-align: center; gap: 10px; padding: 14px 16px; }
  .sticky-cta-text { font-size: 13px; }
  .sticky-cta-actions { width: 100%; justify-content: center; }
  .sticky-cta-close { position: absolute; top: 6px; right: 10px; }
  .sticky-cta-bar { position: fixed; }
}

/* ═══════════════════════════════════════════════════════════
   EXIT-INTENT POPUP
   ═══════════════════════════════════════════════════════════ */
.exit-popup-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.exit-popup-overlay.visible { opacity: 1; visibility: visible; }
.exit-popup {
  background: #fff; border-radius: 12px; max-width: 520px; width: 92%;
  padding: 36px 32px; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  transform: translateY(20px); transition: transform .3s;
}
.exit-popup-overlay.visible .exit-popup { transform: translateY(0); }
.exit-popup-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; font-size: 26px;
  color: #999; cursor: pointer; line-height: 1;
}
.exit-popup-close:hover { color: #333; }
.exit-popup h2 { margin: 0 0 8px; font-size: 24px; color: var(--dark); }
.exit-popup p { color: var(--mid); font-size: 15px; margin: 0 0 20px; line-height: 1.5; }
.exit-popup-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.exit-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 14px; border-radius: 8px;
  border: 2px solid var(--border); text-decoration: none;
  text-align: center; transition: border-color .2s, box-shadow .2s;
}
.exit-card:hover { border-color: var(--red); box-shadow: 0 4px 12px rgba(192,57,38,.12); }
.exit-card-icon { font-size: 28px; margin-bottom: 8px; }
.exit-card-label { font-weight: 600; color: var(--dark); font-size: 15px; margin-bottom: 4px; }
.exit-card-action { color: var(--red); font-size: 13px; font-weight: 500; }
.exit-popup-alt { text-align: center; padding-top: 8px; border-top: 1px solid var(--border); }
.exit-phone { color: var(--mid); font-size: 14px; text-decoration: none; }
.exit-phone:hover { color: var(--red); }

@media (max-width: 500px) {
  .exit-popup { padding: 28px 20px; }
  .exit-popup h2 { font-size: 20px; }
  .exit-popup-cards { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   BLOG INLINE CTA
   ═══════════════════════════════════════════════════════════ */
.blog-inline-cta {
  margin: 28px 0; padding: 0;
}
.blog-inline-cta-inner {
  background: linear-gradient(135deg, #fdf6f5, #f7f7f7);
  border: 2px solid var(--red);
  border-radius: 10px; padding: 24px 28px;
}
.blog-inline-cta-text {
  font-size: 15px; color: var(--dark); margin: 0 0 14px; line-height: 1.5;
}
.blog-inline-cta-buttons {
  display: flex; flex-wrap: wrap; gap: 10px;
}
@media (max-width: 500px) {
  .blog-inline-cta-inner { padding: 18px 16px; }
  .blog-inline-cta-buttons { flex-direction: column; }
  .blog-inline-cta-buttons .btn { text-align: center; }
}

/* ── Local posts (tagged blog content surfaced on geo pages) ── */
.local-posts { margin: 36px 0 8px; }
.local-posts > h2 { color: var(--dark, #1a1a1a); font-size: 1.4rem; margin-bottom: 6px; }
.local-posts .lp-sub { color: var(--mid, #6e6e70); font-size: .92rem; margin-bottom: 20px; }
.local-posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.local-post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border, #e5e5e5); border-radius: 10px; overflow: hidden; text-decoration: none; transition: box-shadow .15s, transform .15s, border-color .15s; }
.local-post-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.09); transform: translateY(-2px); border-color: var(--red, #c03926); }
.local-post-img { height: 130px; background-size: cover; background-position: center; background-color: #1b3a5c; }
.local-post-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.local-post-cat { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red, #c03926); margin-bottom: 5px; }
.local-post-card h3 { font-size: .96rem; line-height: 1.35; color: var(--navy, #1b3a5c); margin: 0 0 7px; }
.local-post-card p { font-size: .83rem; line-height: 1.5; color: var(--mid, #6e6e70); margin: 0 0 12px; flex: 1; }
.local-post-more { font-size: .8rem; font-weight: 600; color: var(--red, #c03926); }
.local-posts-all { margin-top: 16px; font-size: .88rem; }
.local-posts-all a { color: var(--red, #c03926); font-weight: 600; text-decoration: none; }
