/* ==========================================================
   Franchise-City — lean, consolidated stylesheet
   ========================================================== */

/* ---------- 0) Design tokens ---------- */
:root{
  --fc-primary:#C6AA58;           /* gold */
  --fc-primary-dk:#1e40af;        /* deep blue (for gold→blue gradient) */
  --fc-secondary:#10b981;         /* emerald */
  --fc-secondary-dk:#059669;
  --fc-card:#ffffff;
  --fc-muted:#f8fafc;
  --fc-text:#0f172a;
  --fc-radius:18px;
  --fc-shadow:0 6px 22px rgba(0,0,0,.08);
  --fc-shadow-lg:0 12px 28px rgba(0,0,0,.12);

  /* Card sizing */
  --card-img-h: 230px;            /* hero image area on each card */
  --card-cta-h: 56px;             /* min height of CTA button */
  --card-cta-gap: 1rem;           /* gap from CTA to card edge/content */

  /* Hero knobs (set both to 0px to disable overhang) */
  --hero-overhang-left: 0px;      /* e.g. 150px to hang copy left */
  --hero-overhang-right: 0px;     /* e.g. 160px to hang video right */
  --hero-video-height: 520px;     /* desktop video height */
}

@media (min-width:768px){
  :root{ --card-img-h: 240px; }
}

/* ---------- 1) Page shell ---------- */
.single-franchise-city main.wrap.franchise-city{
  max-width:1280px;
  margin-inline:auto;
  padding:0 1.25rem 5rem;
  color:var(--fc-text);
}

/* ---------- 2) HERO (full-bleed bg, grid content) ---------- */
.single-franchise-city .city-hero{
  position:relative;
  /* content aligned to the same width as cards */
  max-width:1280px;
  margin-inline:auto;
  padding:4rem max(1.25rem, env(safe-area-inset-left))
          2rem  max(1.25rem, env(safe-area-inset-right));
  display:grid;
  gap:2rem;
  grid-template-areas:
    "copy"
    "cta"
    "media";                       /* mobile order */
  color:#fff;
  overflow:visible;                /* allow bg + overhangs */
  margin-bottom:3rem;
}

/* Paint a truly full-bleed background (edge-to-edge) */
.single-franchise-city .city-hero::before,
.single-franchise-city .city-hero::after{
  content:"";
  position:absolute;
  top:0;
  left:50%;
  width:100vw;                     /* full viewport width */
  height:100%;
  transform:translateX(-50%) scale(1.05); /* center + hide blur edges */
  pointer-events:none;
}
.single-franchise-city .city-hero::before{
  z-index:-2;
  background:url("http://franchise-opportunities.org/wp-content/uploads/2026/03/metaeditor_heroheader.jpg")
             center/cover no-repeat;
  filter:blur(7px);
}
.single-franchise-city .city-hero::after{
  z-index:-1;
  background:rgba(0,0,0,.55);
}

/* Map areas */
.single-franchise-city .hero-copy{    grid-area:copy; }
.single-franchise-city .hero-buttons{ grid-area:cta;  }
.single-franchise-city .hero-media{   grid-area:media;}

@media (min-width:1000px){
  .single-franchise-city .city-hero{
    grid-template-columns:1fr 1fr;     /* mirrors the 2-up card grid */
    grid-template-areas:
      "copy  media"
      "cta   media";
    column-gap:2rem;
    align-items:start;
    padding-bottom:4rem;
  }
  /* Optional editorial “overhang” look */
  .single-franchise-city .hero-copy{
    margin-left:calc(-1 * var(--hero-overhang-left));
  }
  .single-franchise-city .hero-buttons{
    margin-left:calc(-1 * var(--hero-overhang-left));
  }
  .single-franchise-city .hero-media iframe{
    width:calc(100% + var(--hero-overhang-right)) !important;
    margin-right:calc(-1 * var(--hero-overhang-right)) !important;
  }
}

/* Hero text */
.single-franchise-city .hero-copy h1{
  margin:0 0 1rem;
  line-height:1.1;
  font-weight:800;
  font-size:clamp(2rem,4vw,3.25rem);
}
.single-franchise-city .hero-copy .city-desc{
  margin:0;
  max-width:65ch;
  line-height:1.6;
  font-size:1.0625rem;
}

/* Hero buttons (modern pills) */
.single-franchise-city .hero-buttons{
  display:flex; gap:1rem; flex-wrap:wrap; max-width:28rem; margin-top:.9rem;
}
.single-franchise-city .hero-btn{
  flex:1; padding:1rem 1.25rem; border-radius:999px;
  font:700 1.05rem/1.2 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  text-decoration:none; text-align:center; color:#fff;
  background:linear-gradient(135deg,var(--fc-primary),var(--fc-primary-dk));
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 12px 28px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.25);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.single-franchise-city .hero-btn.secondary{
  background:linear-gradient(135deg,var(--fc-secondary),var(--fc-secondary-dk));
  box-shadow:0 12px 28px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.25);
}
.single-franchise-city .hero-btn:hover{ transform:translateY(-3px); filter:saturate(1.06); box-shadow:var(--fc-shadow-lg); }

/* Hero media (video) */
.single-franchise-city .hero-media iframe{
  width:100%; height:240px; border:0; border-radius:16px; display:block;
}
@media (min-width:900px){
  .single-franchise-city .hero-media iframe{ height:var(--hero-video-height); }
}

/* ---------- 3) Franchise grid (2 per row on desktop) ---------- */
.single-franchise-city .franchise-grid{
  max-width:1280px; margin:2rem auto 4rem;
  display:grid; gap:2rem; grid-template-columns:1fr;
}
@media (min-width:768px){
  .single-franchise-city .franchise-grid{ grid-template-columns:repeat(2,1fr); }
}

/* ---------- 4) Franchise card ---------- */
.single-franchise-city .franchise-card{
  position:relative;
  background:var(--fc-card);
  border-radius:var(--fc-radius);
  box-shadow:var(--fc-shadow);
  overflow:hidden;
  display:flex; flex-direction:column;
  transition:transform .2s ease, box-shadow .2s ease;
  /* reserve room so the pinned CTA never covers content */
  padding-bottom:calc(var(--card-cta-h) + var(--card-cta-gap) + .5rem);
}
.single-franchise-city .franchise-card:hover{
  transform:translateY(-6px); box-shadow:var(--fc-shadow-lg);
}

/* Card image (full-bleed at top) */
.single-franchise-city .franchise-logo{
  width:100%; height:var(--card-img-h) !important; object-fit:cover; display:block;
}

/* Dark overlay only if image exists (supports :has or .has-image) */
.single-franchise-city .franchise-card:has(.franchise-logo)::before,
.single-franchise-city .franchise-card.has-image::before{
  content:""; position:absolute; left:0; right:0; top:0; height:var(--card-img-h);
  background:linear-gradient(to bottom, rgba(0,0,0,.66) 0%, rgba(0,0,0,.40) 38%, rgba(0,0,0,0) 80%);
  border-top-left-radius:var(--fc-radius); border-top-right-radius:var(--fc-radius);
  pointer-events:none; z-index:1;
}

/* Name centered on the photo when image exists */
.single-franchise-city .franchise-card:has(.franchise-logo) .franchise-name,
.single-franchise-city .franchise-card.has-image .franchise-name{
  position:absolute; z-index:2; top:18px; left:50%; transform:translateX(-50%);
  margin:0; max-width:calc(100% - 32px); text-align:center; color:#fff;
  font-weight:800; line-height:1.1; text-shadow:0 3px 14px rgba(0,0,0,.55);
  font-size:clamp(1.9rem, 2.4vw, 2.6rem);
}

/* Name in normal flow (no image case) */
.single-franchise-city .franchise-card:not(:has(.franchise-logo)) .franchise-name{
  position:static; transform:none; margin:1rem 1.5rem .5rem; color:var(--fc-text);
  text-shadow:none; font-weight:800; font-size:1.6rem; text-align:left;
}

/* Inner spacing for dynamic content */
.single-franchise-city .franchise-card > *:not(.franchise-logo):not(.franchise-name){
  padding-inline:1.5rem;
}
.single-franchise-city .franchise-card p.franchise-blurb{
  margin-top:1.25rem; margin-bottom:1rem; line-height:1.55; font-size:1.05rem;
}

/* Metrics mini-table (pill rows) */
.single-franchise-city .fr-metrics{
  width:100%; border-collapse:separate; border-spacing:0 .5rem; font-size:.95rem;
  margin-bottom:max(4rem, calc(var(--card-cta-h) + var(--card-cta-gap)));
}
.single-franchise-city .fr-metrics thead td{ font-weight:700; color:#475569; padding:.5rem .75rem; border:none; }
.single-franchise-city .fr-metrics tr{ background:var(--fc-muted); border-radius:12px; }
.single-franchise-city .fr-metrics td{ border:none; padding:.65rem .85rem; }
.single-franchise-city .fr-metrics td.label{ font-weight:600; color:#334155; width:48%; }

/* Pinned CTA (matches the reserved space so it never overlaps) */
.single-franchise-city .franchise-cta{
  position:absolute; left:1.5rem; right:1.5rem; bottom:var(--card-cta-gap);
  min-height:var(--card-cta-h); display:block; padding:.9rem 1.25rem;
  border-radius:12px; text-align:center; text-decoration:none;
  color:#fff; font-weight:700; font-size:1.05rem;
  background:linear-gradient(135deg,var(--fc-primary),var(--fc-primary-dk));
  box-shadow:0 10px 22px rgba(0,0,0,.18);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.single-franchise-city .franchise-cta:hover{ transform:translateY(-2px); filter:saturate(1.05); box-shadow:0 14px 28px rgba(0,0,0,.2); }

/* ---------- 5) Injected CTA block (spans both columns) ---------- */
.single-franchise-city .cta-grid-block{
  grid-column:1/-1; background:var(--fc-muted); border-radius:var(--fc-radius);
  box-shadow:var(--fc-shadow); padding:2.5rem 2rem; text-align:center;
  display:flex; flex-direction:column; gap:1.25rem; align-items:center;
}
.single-franchise-city .cta-grid-block h2{ margin:0; font-size:2rem; font-weight:800; }
.single-franchise-city .cta-grid-block .subtitle{ margin:0; font-size:1.1rem; color:#334155; }
.single-franchise-city .cta-grid-block .cta-btns{ display:flex; flex-direction:column; gap:1rem; width:100%; max-width:24rem; }
.single-franchise-city .cta-grid-block .cta-btns .btn{
  padding:1rem 1.25rem; border-radius:999px; font-weight:700; text-decoration:none; text-align:center; color:#fff;
  background:linear-gradient(135deg,var(--fc-primary),var(--fc-primary-dk));
}
.single-franchise-city .cta-grid-block .cta-btns .btn.secondary{
  background:linear-gradient(135deg,var(--fc-secondary),var(--fc-secondary-dk));
}

/* ---------- 6) Factors & tables (unchanged) ---------- */
.single-franchise-city .factors-heading{ font-size:1.75rem; font-weight:800; margin:0 auto 1.25rem; text-align:center; }
.single-franchise-city .factors-desc{ max-width:60ch; margin:0 auto 3rem; line-height:1.65; font-size:1.0625rem; }

.single-franchise-city .dual-tables{
  display:flex; flex-wrap:wrap; gap:2.5rem; justify-content:center;
  max-width:1280px; margin:3rem auto 0;
}
.single-franchise-city .data-table{
  flex:1 1 320px; max-width:520px; border-collapse:collapse; background:#fff; border:1px solid #000;
}
.single-franchise-city .data-table thead{ background:#f5f5f7; }
.single-franchise-city .data-table th,
.single-franchise-city .data-table td{ border:1px solid #000; padding:.9rem 1rem; }
.single-franchise-city .data-table tr:nth-child(even) td{ background:#fafafa; }

/* ---------- 7) Disclaimer ---------- */
.single-franchise-city .disclaimer{ font-size:.9rem; color:#666; text-align:center; max-width:72ch; margin:2rem auto 0; }

/* ================== PATCH: hero overhang + buttons + card title ================== */

/* 1) Desktop overhang amounts (set to taste). Mobile stays normal. */
@media (min-width:1000px){
  :root{
    --hero-overhang-left: 150px;   /* copy & buttons hang this far to the left */
    --hero-overhang-right: 160px;  /* video hangs this far to the right */
  }
}

/* 2) Buttons belong under the description even if they’re inside .hero-media */
.single-franchise-city .hero-buttons{ grid-area: cta; }        /* always the CTA area */
.single-franchise-city .hero-media{ display: contents; }       /* flatten wrapper */
.single-franchise-city .hero-media iframe{
  grid-area: media;                                            /* keep video on the right */
}

/* Re-assert the “overhang right” video sizing (so left edge stays on col 2) */
@media (min-width:1000px){
  .single-franchise-city .hero-media iframe{
    width: calc(100% + var(--hero-overhang-right)) !important;
    margin-right: calc(-1 * var(--hero-overhang-right)) !important;
    height: var(--hero-video-height);
    border-radius: 16px;
    align-self: start;
  }
}

/* === Franchise title: lower it ~30px from the previous spot === */
:root{ --card-title-top: 48px; }  /* was ~18px; 18+30 = 48px */

/* With image */
.single-franchise-city
  .franchise-card:has(.franchise-logo) .franchise-name,
.single-franchise-city
  .franchise-card.has-image .franchise-name{
  top: var(--card-title-top) !important;  /* lower */
  bottom: auto !important;
  left: 50%;
  transform: translateX(-50%) !important; /* stay horizontally centered */
}

/* If you use the CSS fallback image (no <img>): match the same position */
.single-franchise-city
  .franchise-card:not(:has(.franchise-logo)) .franchise-name{
  position: absolute;
  z-index: 2;
  top: var(--card-title-top) !important;
  left: 50%;
  transform: translateX(-50%) !important;
  margin: 0;
  color: #fff;
  text-shadow: 0 3px 14px rgba(0,0,0,.55);
}


/* ===== Bridge CTA (between hero and grid) ===== */
.bridge-cta{
  max-width:1280px;
  margin: 1.75rem auto 1.25rem;
  padding: 0.7rem 0.55rem;
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 40%, #f7f7ff 100%);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.bridge-line{
  margin:0;
  line-height:1.25;
  display:flex; flex-wrap:wrap; gap:.6ch;
  align-items: center; justify-content: center;
}

/* “Book a free call” — bold block text with red marker highlight */
.marker-word{
  position: relative;
  display: inline;                 /* lets the highlight wrap naturally */
  padding: .1em .4em;              /* space inside the highlight */
  font-weight: 900;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  letter-spacing: .2px;
  color: #111;
  z-index: 0;
  /* keep the highlight on each wrapped line */
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
.marker-word::before{
  content: "";
  position: absolute;
  inset: .15em -.3em .15em -.3em; /* marker thickness & width */
  background: #ff4b4b;            /* red marker */
  border-radius: 8px;
  transform: rotate(-2deg);        /* hand-drawn feel */
  box-shadow: 0 2px 0 rgba(0,0,0,.04) inset, 0 3px 12px rgba(0,0,0,.12);
  z-index: -1;                     /* behind the text */
}

/* The rest of the sentence — readable “handwritten-ish” without loading fonts */
.script-rest{
  font-family: ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* If you later load a script font, put it first in this list */
  font-weight: 600;
  font-size: clamp(1.1rem, 2.1vw, 1.55rem);
  color: #111;
  letter-spacing: .15px;
}

/* Small-screen tweaks */
@media (max-width: 560px){
  .bridge-cta{ padding: .9rem .9rem; border-radius: 12px; }
  .marker-word{ display: inline; } /* no forced line break */
}

.sticky-cta{
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: .75rem max(1rem, env(safe-area-inset-left))
           calc(.75rem + env(safe-area-inset-bottom))
           max(1rem, env(safe-area-inset-right));
  background: #0f172a;            /* dark bar */
  display: flex; justify-content: center;
  z-index: 1000; box-shadow: 0 -8px 20px rgba(0,0,0,.15);
}

/* Red-marker “pen” highlight style */
.sticky-cta__btn{
  position: relative;
  display: inline;                /* lets marker wrap across lines if needed */
  padding: .2em .6em;             /* tap area + space inside highlight */
  font-weight: 900;
  font-size: clamp(1rem, 4.5vw, 1.25rem);
  letter-spacing: .2px;
  color: #111;                    /* dark text on red highlight */
  text-decoration: none;
  background: none; border: 0; border-radius: 0; /* remove pill look */
  cursor: pointer;

  /* keep the highlight on each wrapped line */
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

/* the “marker” behind the text */
.sticky-cta__btn::before{
  content: "";
  position: absolute;
  inset: .18em -.35em .18em -.35em;       /* marker thickness & width */
  background: #ff4b4b;                    /* red pen */
  border-radius: 10px;
  transform: rotate(-2deg);                /* hand-drawn feel */
  box-shadow: 0 2px 0 rgba(0,0,0,.05) inset, 0 6px 18px rgba(0,0,0,.18);
  z-index: -1;                             /* behind the text */
}

/* micro-interactions */
.sticky-cta__btn:active{ transform: translateY(1px); }
.sticky-cta__btn:focus-visible{
  outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px;
}

@media (min-width: 900px){
  .sticky-cta{ display: none; }  /* mobile-only (optional) */
}


/* Author byline box (inserted after the 2nd franchise card) */
.cta-box-with-image {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background-color: #f0f4f8;
  border-left: 5px solid #0073aa;
  padding: 20px;
  margin: 40px 0;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  flex-wrap: wrap;
  position: relative;
}

/* FORCE the author box to occupy a full row inside the franchise grid */
.franchise-grid > .franchise-insert {
  /* If the container is CSS Grid */
  grid-column: 1 / -1;

  /* If the container is Flexbox */
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}

.cta-content { flex: 1 1 60%; min-width: 260px; }

.cta-title { font-size: 20px; font-weight: bold; color: #0073aa; margin-bottom: 6px; }

.cta-subtitle { font-size: 14px; color: #556070; margin-bottom: 6px; line-height: 1.3; }

/* Press mentions */
.cta-press { font-size: 13px; color: #475569; margin-bottom: 12px; }
.cta-press a { color: #0f5e86; text-decoration: none; border-bottom: 1px dotted #0f5e86; }
.cta-press a:hover { border-bottom-style: solid; }
.cta-press .dot { margin: 0 6px; color: #94a3b8; }

.cta-text { font-size: 16px; color: #333; margin-bottom: 20px; }

.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.cta-button {
  display: inline-block;
  background-color: #0073aa;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s;
}
.cta-button:hover { background-color: #005177; }

.cta-button.secondary { background-color: #444; }
.cta-button.secondary:hover { background-color: #222; }

.cta-image-wrapper { flex: 1 1 30%; text-align: right; position: relative; min-width: 120px; }
.cta-image-wrapper img {
  max-width: 220px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  top: -50px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@media (max-width: 640px) {
  .cta-image-wrapper img { top: -20px; max-width: 180px; }
}

/* Broker disclosure directly under the bridge CTA */
.single-franchise-city .bridge-cta + .disclosure-note{
  /* match CTA block width + centering */
  max-width:1280px;
  margin:.6rem auto 1rem;
  padding:0 1.25rem;           /* aligns text with CTA’s inner padding */
  text-align:center;

  /* slightly smaller type */
  font-size:.95rem;
  line-height:1.55;
  color:#334155;
}
.single-franchise-city .bridge-cta + .disclosure-note a{
  text-decoration:underline;
  color:inherit;
}
@media (min-width:1024px){
  .single-franchise-city .bridge-cta + .disclosure-note{ font-size:.92rem; }
}

/* ===== City Highlights (scoped styles) ===== */
.city-highlights-wrap {
  --ch-bg: #fff;
  --ch-text: #111;
  --ch-muted: #667085;
  --ch-border: rgba(0,0,0,.08);
  --ch-shadow: 0 4px 18px rgba(0,0,0,.05);
  --ch-shadow-hover: 0 10px 28px rgba(0,0,0,.10);
  --ch-radius: 16px;
  --ch-gap: clamp(12px, 2vw, 20px);
  --ch-pad: 16px 18px;
  margin: 28px 0 36px;
  color: var(--ch-text);
}

.city-highlights-wrap .city-highlights-heading{
  margin: 0 0 10px;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2;
}

/* Grid */
.city-highlights-wrap .city-highlights{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--ch-gap);
}

/* Card */
.city-highlights-wrap .city-card{
  grid-column: span 6;
  background: var(--ch-bg);
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  padding: var(--ch-pad);
  box-shadow: var(--ch-shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.city-highlights-wrap .city-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--ch-shadow-hover);
  border-color: rgba(0,0,0,.12);
}

/* Header row */
.city-highlights-wrap .city-heading{
  display:flex; align-items:center; gap:10px;
  margin: 0 0 6px; font-weight: 650;
}
.city-highlights-wrap .city-emoji{
  font-size: 18px; line-height: 1;
  display:inline-flex; width:22px; justify-content:center;
}
.city-highlights-wrap .city-title{ font-size: 1rem; }

/* Badge */
.city-highlights-wrap .badge{
  margin-left: auto; /* pushes badge to the end on wide screens */
  display:inline-flex; align-items:center; gap:6px;
  font-size:.75rem; padding:4px 8px; border-radius:999px;
  background:#f3f4f6; color:#374151; border:1px solid #e5e7eb;
  white-space: nowrap;
}

/* Body + meta */
.city-highlights-wrap .city-insight{
  color:#333; font-size:.98rem; line-height:1.4; margin: 0;
}
.city-highlights-wrap .city-meta{
  margin-top:10px; font-size:.85rem; color: var(--ch-muted);
  display:flex; gap:12px; flex-wrap:wrap;
}

/* Responsive */
@media (max-width: 900px){
  .city-highlights-wrap .city-card{ grid-column: span 12; }
  .city-highlights-wrap .badge{ margin-left: 0; }
}

/* Optional: subtle left accents per type (data-type set in PHP) */
.city-highlights-wrap .city-card[data-type="retail-corridor"]{ border-left: 4px solid #7c3aed; }
.city-highlights-wrap .city-card[data-type="major-corridor-access"]{ border-left: 4px solid #2563eb; }
.city-highlights-wrap .city-card[data-type="university"]{ border-left: 4px solid #059669; }
.city-highlights-wrap .city-card[data-type="industry-snapshot"]{ border-left: 4px solid #ea580c; }

/* Dark mode */
@media (prefers-color-scheme: dark){
  .city-highlights-wrap{
    --ch-bg: #111418;
    --ch-text: #e8eaed;
    --ch-muted: #a1a7b3;
    --ch-border: rgba(255,255,255,.12);
    --ch-shadow: 0 4px 18px rgba(0,0,0,.4);
    --ch-shadow-hover: 0 10px 28px rgba(0,0,0,.55);
  }
  .city-highlights-wrap .badge{
    background: #1f242b; color:#d5d9e1; border-color: rgba(255,255,255,.14);
  }
  .city-highlights-wrap .city-insight{ color:#d8dbe0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .city-highlights-wrap .city-card{ transition: none; }
}

/* Print (flatten) */
@media print{
  .city-highlights-wrap .city-card{
    box-shadow: none; transform: none; border-color: #cfd4dc;
  }
}


/* --- METHODOLOGY SECTION CSS (E-E-A-T Step Cards) --- */

/* 1. Variables for Consistency */
:root {
  --primary-color: #0056b3;  /* Deep Blue (Authority Color) */
  --secondary-bg: #f9f9f9;   /* Light grey background for the steps */
  --text-color: #333;       /* Dark grey for readability */
  --shadow-color: rgba(0, 0, 0, 0.05);
}

/* 2. Container and Grid Layout */
.methodology-container {
  padding: 40px 0;
  margin: 40px 0;
}

.methodology-list {
  display: grid;
  /* Adjust minmax() for your site's specific breakpoints, 280px is a good minimum */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 3. The Step Cards */
.methodology-step {
  background-color: var(--secondary-bg);
  border-radius: 8px;
  /* Top padding is increased to account for the number element being pulled up */
  padding: 30px 20px 20px 20px; 
  box-shadow: 0 4px 12px var(--shadow-color);
  border-top: 5px solid var(--primary-color); 
  position: relative; /* Essential for positioning the step number */
  transition: transform 0.2s;
  height: 100%; /* Ensures all cards stretch to the same height */
}

.methodology-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 4. Step Numbering */
.step-number {
  position: absolute;
  top: 0;
  left: 20px;
  transform: translateY(-50%);
  
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--primary-color);
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  border: 4px solid #ffffff; 
}

/* 5. Headings (Visual only, using DIV) */
.step-heading {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-top: 15px; /* Space below the number/top border */
  margin-bottom: 10px;
}

.methodology-step p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* Consultant note styles */
.thomas-take-note-container {
  background-color: #eaf6fa;
  border: 2px dashed #a7d9ee;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  color: #333;
}
.thomas-take-note-container h3 {
  font-size: 1.3em;
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.thomas-take-note-container h3::before {
  content: "\1F50D"; /* magnifying glass */
  font-size: 1.2em;
  margin-right: 10px;
  color: #3498db;
}
.thomas-take-note-container p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 0;
}

.localcomp-note-container {
  margin: 24px 0 28px;
  padding: 18px 20px;
  border-left: 4px solid #1f2937;
  background: #f9fafb;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.localcomp-note-container h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #111827;
}

.localcomp-note-container h3::before { content: "📍 "; }

.localcomp-note-container .note-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: #374151;
}

.localcomp-note-container .note-body p { margin: 0 0 10px; }
.localcomp-note-container .note-body p:last-child { margin-bottom: 0; }
.localcomp-note-container .note-body ul { margin: 10px 0 10px 18px; padding: 0; }
.localcomp-note-container .note-body li { margin-bottom: 6px; }


/* Franchise Sources Styling */
.franchise-sources {
  font-size: 0.9em;
  opacity: 0.85;
}

.franchise-sources strong {
  font-weight: 600;
}

.franchise-sources a {
  text-decoration: underline;
}

.franchise-sources a:hover {
  opacity: 0.7;
}

.franchise-sources {
  display: block;
  margin-top: 10px;
  font-size: 0.85em;
  color: #666;
}

.franchise-sources strong {
  font-weight: 600;
  margin-right: 4px;
}

.franchise-sources a {
  color: #666;
  text-decoration: underline;
}

.franchise-sources a:hover {
  color: #000;
}


.city-desc-wrap {
  position: relative;
}

.city-desc {
  position: relative;
  overflow: hidden;
  transition: max-height 250ms ease;
}


/* =========================================
   City Description – Mask-Based Fade (Premium)
========================================= */

.city-desc-wrap {
  position: relative;
  max-width: 760px;
}

.city-desc {
  overflow: hidden;
  position: relative;
  transition: max-height 450ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: max-height;
}
.city-desc.is-collapsed {
  max-height: 260px;
  overflow: hidden;

  /* Safari-safe mask */
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 65%,
    rgba(0,0,0,0) 100%
  );
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;

  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 65%,
    rgba(0,0,0,0) 100%
  );
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
/* Expanded state */
.city-desc.is-expanded {
  max-height: 2000px;

  -webkit-mask-image: none;
  mask-image: none;
}


/* =========================================
   Read More Toggle – Editorial Minimal
========================================= */

.city-desc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.city-desc-toggle:hover {
  opacity: 0.75;
}

/* Chevron animation */
.city-desc-toggle .chevron {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.city-desc-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}


/* =========================================
   Mobile Refinement
========================================= */

@media (max-width: 768px) {
  .city-desc.is-collapsed {
    max-height: 220px;

    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0,0,0,1) 60%,
      rgba(0,0,0,0) 100%
    );
    mask-image: linear-gradient(
      to bottom,
      rgba(0,0,0,1) 60%,
      rgba(0,0,0,0) 100%
    );
  }
}

.franchise-success-demo{
  grid-column:1 / -1;
  margin:10px 0 30px 0;
}

.franchise-success-card{
  display:flex;
  gap:32px;
  align-items:center;
  background:#fffdf8;
  border:1px solid #f0e2c8;
  border-radius:18px;
  padding:30px 34px;
  box-shadow:0 14px 32px rgba(0,0,0,0.06);
}

.franchise-success-photo img{
  width:200px;
  height:auto;
  border-radius:16px;
  flex-shrink:0;
}

.franchise-success-content{
  flex:1;
  max-width:900px;
}

/* THIS IS THE MISSING BADGE STYLE */
.franchise-success-badge{
  display:inline-block;
  font-size:12px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  background:#fff;
  border:1px solid #e9d6ac;
  border-radius:999px;
  padding:5px 12px;
  margin-bottom:10px;
  color:#7a5a1c;
}

.franchise-success-title{
  font-size:26px;
  margin:6px 0 12px 0;
}

.franchise-success-text{
  margin-bottom:14px;
}

.franchise-success-bottom{
  display:flex;
  align-items:center;
  gap:18px;
}

.franchise-success-name{
  font-weight:600;
  color:#666;
  font-size:14px;
}

.franchise-success-cta{
  background:#222;
  color:#fff;
  padding:8px 14px;
  border-radius:999px;
  text-decoration:none;
  font-size:13px;
}

@media (max-width: 768px) {

  .franchise-success-card{
    flex-direction: column;
    align-items: flex-start;
  }

  .franchise-success-photo img{
    width:100%;
    max-width:260px;
  }

  .franchise-success-bottom{
    margin-top:8px;
  }

}

.article-byline{
font-size:14px;
color:#fff;
margin-top:6px;
margin-bottom:14px;
}

.article-byline a,
.article-byline a:visited,
.article-byline a:hover,
.article-byline a:active{
color:#fff;
font-weight:600;
text-decoration:none;
}

.article-byline strong{
color:#fff;
font-weight:600;
}

/* ───────────────── REVIEWER SECTION ───────────────── */

.reviewer-section{
  margin: 48px 0 36px;
}

.reviewer-section h2{
  margin: 0 0 20px;
}

/* 2-up on desktop, stacked on mobile */
.reviewer-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* card */
.reviewer-card{
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 24px;
  display: block;
  min-height: 100%;
  box-sizing: border-box;
}

/* top row = photo + name/role only */
.reviewer-header{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.reviewer-photo{
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex: 0 0 76px;
  display: block;
}

.reviewer-header > div{
  min-width: 0;
}

.reviewer-name{
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #14213d;
}

.reviewer-role{
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: #6b7280;
}

/* body text should align to left edge of card, not under the name */
.reviewer-card p{
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.65;
  color: #1f2937;
}

/* linkedin link */
.reviewer-card a{
  display: inline-block;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  color: #14213d;
  text-decoration: none;
}

.reviewer-card a:hover,
.reviewer-card a:focus{
  text-decoration: underline;
}

/* mobile */
@media (max-width: 768px){
  .reviewer-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .reviewer-card{
    padding: 20px;
  }

  .reviewer-header{
    gap: 14px;
    margin-bottom: 16px;
  }

  .reviewer-photo{
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .reviewer-name{
    font-size: 18px;
  }

  .reviewer-role{
    font-size: 14px;
  }

  .reviewer-card p,
  .reviewer-card a{
    font-size: 15px;
  }
}

/* reviewer social icons */

.reviewer-social{
display:flex;
gap:10px;
margin-top:6px;
}

.reviewer-social img{
width:22px;
height:22px;
display:block;
opacity:0.9;
}

.reviewer-social a:hover img{
opacity:1;
transform:translateY(-1px);
transition:all .15s ease;
}

/* ───────────────── LOCAL OPERATOR INSIGHTS (WYSIWYG COMPATIBLE) ───────────────── */

.local-operator-insights {
  max-width: 900px;
  margin: 48px auto;
  padding: 32px 40px;
  background-color: #ffffff;
  border-top: 4px solid #0f172a; /* Heavy top border for an institutional report feel */
  border-radius: 4px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.local-operator-insights h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.local-operator-insights .insights-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

/* Transforms your WYSIWYG <br> tags into clean, semantic-looking paragraph spacing */
.local-operator-insights .insights-content br {
  display: block;
  content: "";
  margin-top: 16px; 
}

/* Ensures bolded text (like "The Catalyst:") pops against the standard paragraph text */
.local-operator-insights .insights-content strong,
.local-operator-insights .insights-content b {
  color: #111827;
  font-weight: 700;
}

/* Professional styling for the mandatory contextual links */
.local-operator-insights .insights-content a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.2s ease;
}

.local-operator-insights .insights-content a:hover {
  border-bottom-color: #2563eb;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .local-operator-insights {
    padding: 24px 20px;
    margin: 32px 16px;
  }
}

.pre-factors-image {
    margin: 20px 0;
    text-align: center;
}

.pre-factors-image img {
    max-width: 1100px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}


.hero-quiz {
  max-width: 520px;
}

.foq {
  color: #0f172a !important;
}

.foq * {
  color: #0f172a !important;
}

.foq {
  padding: 12px !important;
}

.foq-card{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.foq-title {
  font-size: 20px !important;
  line-height: 1.3 !important;
}

.foq-sub {
  font-size: 14px !important;
}

.foq-btn-primary {
  background: #0f172a !important;
  color: #ffffff !important;
}

.foq-btn-primary:hover {
  background: #020617 !important;
}

.foq-opt{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  background:rgba(255,255,255,.7);
  font-size:14px;
}

.foq-opt input:checked + span,
.foq-opt input:checked {
  accent-color: #0f172a;
}

.foq-opt:hover {
  border-color: #0f172a;
  background: rgba(15,23,42,0.04);
}

.header-cta a {
  background-color: #2bb3c0 !important;
  color: #ffffff !important;
  padding: 10px 18px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-block !important;
}

.header-cta a:hover {
  background-color: #2399a5 !important;
}

.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #ffffff;
}

.header-cta a {
  transition: all 0.25s ease;
}

/* When scrolled */
@media (min-width: 800px) {
  .header-scrolled li.header-cta > a {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  }
}

@media (max-width: 799px) {
  .mobile-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    color: #ff7a00;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    z-index: 99999;
    display: inline-block;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    border: 2px solid #ff7a00;
  }

  .mobile-cta:hover {
    background-color: #ff7a00;
    color: #ffffff;
  }
}