/* =====================================================================
   Absolute Bail Bonding Service — theme styles
   Night-launch / Space Coast design system
   ===================================================================== */

/* ---------- self-hosted fonts (no third-party requests) ---------- */
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/public-sans-latin-700-normal.woff2") format("woff2");
}

:root {
  --ink:    #06080f;   /* night sky */
  --smoke:  #0f1521;   /* raised surface */
  --haze:   #1c2536;   /* borders */
  --flame:  #ffa94d;   /* launch glow */
  --flame-deep: #f0822e;
  --signal: #e5383b;   /* CTA red */
  --signal-press: #c92f33;
  --paper:  #f2f5fa;   /* primary text */
  --muted:  #93a0b4;   /* secondary text */

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", sans-serif;

  --w-content: 1120px;
  --w-text: 70ch;
  --radius: 10px;
  --shadow-card: 0 18px 50px -18px rgba(0, 0, 0, .75);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--flame); }
a:hover { color: var(--paper); }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--w-content); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link { left: -9999px; top: 0; background: var(--signal); color: #fff; padding: .7em 1.2em; z-index: 999; position: absolute; }
.skip-link:focus { left: 0; }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .015em;
  line-height: .95;
  margin: 0 0 .4em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 9vw, 6.5rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.7rem); letter-spacing: .04em; }
p { margin: 0 0 1.2em; max-width: var(--w-text); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--flame);
  display: inline-flex;
  align-items: center;
  gap: .9em;
  margin-bottom: 1.4em;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--flame); }

.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; font-size: 1.25rem; line-height: 1;
  padding: .85em 1.5em .8em; border-radius: 6px;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(2px); }
.btn-call { background: var(--signal); color: #fff; }
.btn-call:hover { background: var(--signal-press); color: #fff; }
.btn-ghost { border-color: var(--haze); color: var(--paper); }
.btn-ghost:hover { border-color: var(--flame); color: var(--flame); }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--haze); background: color-mix(in srgb, var(--ink) 92%, transparent); }

.header-inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding-block: 14px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); margin-right: auto; }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand-text { line-height: 1; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.55rem; letter-spacing: .03em; display: block;
}
.brand-name .a { color: var(--signal); }
.brand-tag {
  font-size: .62rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--muted); display: block; margin-top: 3px;
}
.brand .custom-logo { max-height: 52px; width: auto; }

.site-nav ul { display: flex; flex-wrap: wrap; row-gap: 4px; gap: clamp(12px, 1.6vw, 22px); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; font-size: 1.05rem; color: var(--muted); text-decoration: none;
  padding: .4em 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--paper); border-bottom-color: var(--signal); }

.header-call { white-space: nowrap; text-align: right; line-height: 1.15; text-decoration: none; color: var(--paper); }
.header-call .label { display: block; font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--flame); font-weight: 700; }
.header-call .number { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: .02em; }
.header-call:hover .number { color: var(--flame); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--haze); border-radius: 6px;
  color: var(--paper); padding: 9px 11px; cursor: pointer;
}
.nav-toggle svg { display: block; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .brand-tag { display: none; }
  .site-nav {
    position: absolute; inset: 100% 0 auto 0;
    background: var(--smoke); border-bottom: 1px solid var(--haze);
    display: none; padding: 10px 0 18px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding-inline: clamp(20px, 4vw, 40px); }
  .site-nav a { display: block; padding: .8em 0; font-size: 1.25rem; border-bottom: 1px solid var(--haze); }
  .header-call .label { display: none; }
  .header-call .number { font-size: 1.3rem; }
}

/* =====================================================================
   HERO — the launch
   ===================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(90px, 13vh, 150px) clamp(70px, 9vh, 110px);
  isolation: isolate;
}

/* optional photo from the Customizer sits behind everything */
.hero-photo {
  position: absolute; inset: 0; z-index: -4;
  background-size: cover; background-position: center bottom;
  opacity: .38;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
}

/* starfield: two drifting layers */
.hero-stars, .hero-stars::after {
  content: ""; position: absolute; inset: -50% 0 0 0; z-index: -3;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 62%, #fff6 50%, transparent 51%),
    radial-gradient(2px 2px at 56% 30%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 71% 70%, #fff5 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 12%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 45% 85%, #fff4 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 5% 75%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 95% 48%, #fff5 50%, transparent 51%);
  background-size: 520px 520px;
  animation: twinkle 7s ease-in-out infinite alternate;
}
.hero-stars::after { background-size: 760px 760px; animation-duration: 11s; opacity: .6; }
@keyframes twinkle { from { opacity: .45; } to { opacity: .95; } }

/* the launch glow on the horizon — the page's signature */
.hero::before {
  content: ""; position: absolute; z-index: -2;
  left: 62%; bottom: -34vh; width: 150vw; height: 72vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse closest-side,
      rgba(255, 214, 153, .65) 0%,
      rgba(255, 169, 77, .45) 18%,
      rgba(240, 130, 46, .26) 40%,
      rgba(229, 56, 59, .10) 60%,
      transparent 74%);
  filter: blur(6px);
  animation: glow-breathe 6.5s ease-in-out infinite alternate;
}
@keyframes glow-breathe {
  from { opacity: .72; transform: translateX(-50%) scaleY(.94); }
  to   { opacity: 1;   transform: translateX(-50%) scaleY(1.06); }
}

/* thin ground line — the pad's horizon */
.hero-horizon {
  position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(to right,
      transparent 4%, rgba(147,160,180,.25) 30%,
      rgba(255,169,77,.85) 62%, rgba(147,160,180,.25) 86%, transparent 98%);
}

/* faint ascent arc tracing the launch trajectory through the upper right;
   masked so it dissolves well above the call cards */
.hero-path {
  position: absolute; z-index: -1; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 2%, #000 14%, #000 42%, transparent 60%);
          mask-image: linear-gradient(to bottom, transparent 2%, #000 14%, #000 42%, transparent 60%);
}
.hero-path path {
  fill: none;
  stroke: var(--flame);
  stroke-linecap: round;
  opacity: .3;
  vector-effect: non-scaling-stroke;
  stroke-width: 2px;
}
@media (max-width: 900px) { .hero-path { display: none; } }

/* ascending light streak — a launch roughly every 14 s */
.hero-streak {
  position: absolute; z-index: -1; left: 62%; bottom: 0;
  width: 2px; height: 34vh;
  background: linear-gradient(to top, rgba(255,210,150,.95), rgba(255,169,77,.35) 60%, transparent);
  border-radius: 2px;
  opacity: 0;
  transform-origin: bottom;
  animation: launch 14s ease-in infinite;
  animation-delay: 2.5s;
}
@keyframes launch {
  0%   { opacity: 0; transform: translateY(30vh) scaleY(.2); }
  4%   { opacity: 1; }
  16%  { opacity: .85; transform: translateY(-58vh) scaleY(1.25); }
  22%  { opacity: 0; transform: translateY(-80vh) scaleY(1.1); }
  100% { opacity: 0; transform: translateY(-80vh); }
}

.hero h1 { max-width: 17ch; }
.hero h1 .accent { white-space: nowrap; }
.hero h1 .accent { color: var(--flame); }
.hero .lede { max-width: 52ch; margin-bottom: 2.4em; }

/* load-in sequence */
.hero .reveal-up { opacity: 0; transform: translateY(26px); animation: reveal .7s cubic-bezier(.2,.7,.2,1) forwards; }
.hero .reveal-up:nth-child(2) { animation-delay: .12s; }
.hero .reveal-up:nth-child(3) { animation-delay: .24s; }
.hero .reveal-up:nth-child(4) { animation-delay: .38s; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* the three call cards */
.call-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
  margin-top: clamp(34px, 5vh, 56px);
}
.call-card {
  display: block; text-decoration: none;
  background: color-mix(in srgb, var(--smoke) 86%, transparent);
  border: 1px solid var(--haze);
  border-radius: var(--radius);
  padding: 22px 24px 20px;
  box-shadow: var(--shadow-card);
  transition: border-color .2s ease, translate .2s ease, box-shadow .2s ease;
}
.call-card:hover { border-color: var(--flame); translate: 0 -3px; box-shadow: 0 16px 34px -18px rgba(255,169,77,.4); }
.call-card .city {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; font-size: 1.05rem; color: var(--muted); display: block;
}
.call-card .phone {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  letter-spacing: .01em; color: var(--paper); display: block; margin-top: 4px;
}
.call-card:hover .phone { color: var(--flame); }
.call-card .hint { font-size: .8rem; color: var(--flame); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
@media (max-width: 760px) { .call-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section { padding-block: clamp(70px, 11vh, 120px); }
.section + .section { border-top: 1px solid var(--haze); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 6vh, 60px); }

.has-reveal [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.has-reveal [data-reveal].in { opacity: 1; transform: none; }

/* --- how it works: a real sequence that climbs --- */
.steps-wrap { position: relative; }
.steps-path {
  position: absolute; inset: -22px 6px 10px; z-index: 0;
  width: calc(100% - 12px); height: calc(100% + 12px);
  pointer-events: none;
}
.steps-path path {
  fill: none; stroke: var(--flame); stroke-linecap: round;
  stroke-dasharray: 0.01 2.2; vector-effect: non-scaling-stroke; stroke-width: 2px;
  opacity: .35;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; align-items: start; position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; }
.step {
  background: var(--smoke); border: 1px solid var(--haze); border-radius: var(--radius);
  padding: 28px 26px 24px; position: relative; counter-increment: step;
}
.step:nth-of-type(1) { margin-top: 56px; }
.step:nth-of-type(2) { margin-top: 28px; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--flame);
  display: block; margin-bottom: 14px;
}
.step h3 { margin-bottom: .35em; }
.step p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps-path { display: none; }
  .step:nth-of-type(1), .step:nth-of-type(2) { margin-top: 0; }
}

/* --- services --- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
a.svc { text-decoration: none; color: inherit; display: block; }
.svc {
  border: 1px solid var(--haze); border-radius: var(--radius); padding: 24px;
  transition: border-color .2s ease, translate .2s ease, box-shadow .2s ease;
}
.svc:hover { border-color: var(--flame); translate: 0 -3px; box-shadow: 0 14px 30px -18px rgba(255,169,77,.35); }
.svc-icon { width: 26px; height: 26px; display: block; color: var(--muted); margin-bottom: 14px; transition: color .2s ease; }
.svc:hover .svc-icon { color: var(--flame); }
.svc h3 { font-size: 1.3rem; }
.svc p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 860px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .svc-grid { grid-template-columns: 1fr; } }

/* --- reviews: real Google quotes, display only --- */
.stars { color: var(--flame); letter-spacing: .14em; font-size: .95rem; }
.rating-line { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.rating-line .num { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--paper); }
.rating-line .count { color: var(--muted); }
.review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.review {
  margin: 0; background: var(--smoke); border: 1px solid var(--haze); border-radius: var(--radius);
  padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s ease, translate .2s ease;
}
.review:hover { border-color: var(--flame); translate: 0 -3px; }
.review blockquote { margin: 0; font-size: 1.02rem; line-height: 1.5; color: var(--paper); }
.review blockquote::before { content: "“"; color: var(--flame); }
.review blockquote::after { content: "”"; color: var(--flame); }
.review figcaption { margin-top: auto; color: var(--muted); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.review-cta { margin: 26px 0 0; }
@media (max-width: 1024px) { .review-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .review-grid { grid-template-columns: 1fr; } }

/* --- offices --- */
.office-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.office {
  background: var(--smoke); border: 1px solid var(--haze); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .2s ease, translate .2s ease;
}
.office:hover { border-color: var(--flame); translate: 0 -3px; }
.office h3 { color: var(--flame); margin: 0; }
.office address { font-style: normal; color: var(--muted); min-height: 3em; }
.office .phone {
  font-family: var(--font-display); font-weight: 700; font-size: 1.9rem;
  color: var(--paper); text-decoration: none;
}
.office .phone:hover { color: var(--flame); }
.office .map-link { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
@media (max-width: 860px) { .office-grid { grid-template-columns: 1fr; } }

/* --- FAQ (styles core <details> and Yoast FAQ block) --- */
.faq details, .wp-block-yoast-faq-block .schema-faq-section {
  border: 1px solid var(--haze); border-radius: var(--radius);
  margin-bottom: 12px; background: var(--smoke);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  text-transform: uppercase; letter-spacing: .04em;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--flame); }
.faq summary::after { content: "+"; color: var(--flame); font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details > div, .faq details > p { padding: 0 22px 18px; color: var(--muted); }
.wp-block-yoast-faq-block .schema-faq-question { display: block; padding: 18px 22px 6px; font-weight: 700; }
.wp-block-yoast-faq-block .schema-faq-answer { display: block; padding: 0 22px 18px; color: var(--muted); }

/* --- CTA band --- */
.cta-band {
  text-align: center;
  background:
    radial-gradient(ellipse 90% 130% at 50% 130%, rgba(240,130,46,.22), transparent 70%),
    var(--smoke);
  border-block: 1px solid var(--haze);
  padding-block: clamp(70px, 10vh, 110px);
}
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .lede { margin-inline: auto; }
.cta-band .btn { margin-top: 1.2em; font-size: 1.5rem; }

/* =====================================================================
   INNER PAGES & POSTS
   ===================================================================== */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(70px, 9vh, 110px) clamp(40px, 6vh, 70px);
  border-bottom: 1px solid var(--haze);
}
.page-hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -42vh;
  width: 150vw; height: 55vh; transform: translateX(-42%);
  background: radial-gradient(ellipse closest-side, rgba(240,130,46,.2), transparent 70%);
}
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }

.entry { padding-block: clamp(50px, 8vh, 90px); }
.entry-content > * { max-width: var(--w-text); }
.entry-content h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content a { text-decoration-color: color-mix(in srgb, var(--flame) 50%, transparent); }
.entry-content ul, .entry-content ol { color: var(--paper); padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote {
  border-left: 3px solid var(--signal); margin: 1.6em 0; padding: .2em 0 .2em 1.2em; color: var(--muted);
}
.entry-content .wp-block-image, .entry-content figure { max-width: 100%; }
.entry-content img { border-radius: var(--radius); }
.entry-content .wp-block-button__link { border-radius: 6px; }
.entry-meta { color: var(--muted); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }

.post-list { display: grid; gap: 18px; padding-block: clamp(50px, 8vh, 90px); }
.post-card {
  border: 1px solid var(--haze); border-radius: var(--radius); padding: 26px;
  transition: border-color .2s ease;
}
.post-card:hover { border-color: var(--flame); }
.post-card h2 { font-size: 1.7rem; margin-bottom: .2em; }
.post-card h2 a { color: var(--paper); text-decoration: none; }
.post-card h2 a:hover { color: var(--flame); }
.post-card p { color: var(--muted); margin: 0; }

.pagination { display: flex; gap: 8px; padding-bottom: 70px; }
.pagination .page-numbers {
  border: 1px solid var(--haze); border-radius: 6px; padding: .45em .85em;
  text-decoration: none; color: var(--paper);
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { border-color: var(--flame); color: var(--flame); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { border-top: 1px solid var(--haze); padding-block: clamp(50px, 7vh, 80px) 34px; background: var(--smoke); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(26px, 5vw, 70px); margin-bottom: 44px; }
.site-footer h3 { font-size: 1.05rem; letter-spacing: .14em; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55em; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--flame); }
.footer-about p { color: var(--muted); font-size: .95rem; }
.footer-legal {
  border-top: 1px solid var(--haze); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  color: var(--muted); font-size: .85rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   MOTION SAFETY
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-streak { display: none; }
  .hero::before, .hero-stars, .hero-stars::after { animation: none; }
  .hero .reveal-up { animation: none; opacity: 1; transform: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .call-card { transition: none; }
}

/* --- legacy / classic-editor content safety on the dark theme ---
   Old pages carry inline colors written for a white background
   (style="color:#000000" etc.). Neutralize them and support the
   classic alignment classes so ported content reads correctly. */
.entry-content [style] { color: inherit !important; background: transparent !important; }
.entry-content font { color: inherit !important; }
.entry-content::after { content: ""; display: block; clear: both; }
.entry-content img { max-width: 100%; height: auto; border-radius: 6px; }
.entry-content .alignleft { float: left; margin: 6px 24px 14px 0; }
.entry-content .alignright { float: right; margin: 6px 0 14px 24px; }
.entry-content .aligncenter { display: block; margin: 16px auto; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .wp-caption-text { color: var(--muted); font-size: .85rem; margin-top: 6px; }
@media (max-width: 600px) {
  .entry-content .alignleft, .entry-content .alignright { float: none; margin: 14px 0; }
}
