/* =========================================================
   app.css — Romeo Thomas (sanitized)
   - Tokens kept in one place
   - CTA styles scoped to #rt-ctas and .about-clean.about-roles to
     avoid conflicts with KPI styles
   - About/Credentials rules consolidated (single source)
   ========================================================= */

/* =========================
   TOKENS
   ========================= */
:root {
  --color-dark: #0D1117;
  --color-light: #F5F7FA;
  --color-cyan: #22D4FD;
  --color-blue: #3482F6;
  --color-gold: #C7A772;
  --color-amazon: #FF9900;
  --color-amazon-hover: #E68A00;


  --tone: rgba(245,247,250,.88);
  --tone-weak: rgba(245,247,250,.80);

  --chip-bg: rgba(255,255,255,.06);
  --chip-bd: rgba(255,255,255,.12);

  --pill-bg: rgba(255,255,255,.08);
  --pill-bd: rgba(255,255,255,.14);

  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-1: 0 6px 18px rgba(0,0,0,.16);
  --shadow-2: 0 12px 28px rgba(0,0,0,.12);

  --font-heading: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif;
}

/* =========================
   CORE LAYOUT
   ========================= */
/* === Global background & text === */
html, body {
  background: #FFFFFF;              /* true white base */
  color: #0E1116;                   /* near-black text for readability */
  font-family: var(--font-body);
}

/* === Hero and dark sections use the dark token === */
.hero,
.site-header,
.site-footer {
  background: var(--color-dark);
  color: var(--color-light);
}

.wrap { max-width:1200px; margin:0 auto; padding:0 32px; }

/* =========================
   HEADER
   ========================= */
.site-header {
  position:sticky; top:0; width:100%; z-index:100;
  background:rgba(13,17,23,.90); backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.site-header .wrap {
  display:flex; justify-content:space-between; align-items:center;
  gap:40px; padding:18px 32px;
}
body.scrolled .site-header .wrap { padding:10px 32px; }
.brand { display:flex; flex-direction:column; gap:4px; }
.brand .wordmark { font-family:var(--font-heading); font-weight:800; color:var(--color-light); }
.brand .tagline { color:rgba(245,247,250,.88); }
.primary-nav .menu { display:flex; gap:28px; list-style:none; margin:0; padding:0; }
.primary-nav a { color:var(--color-light); text-decoration:none; position:relative; }
.primary-nav a:hover,
.primary-nav .current-menu-item > a { color:var(--color-cyan); }
.primary-nav a::after {
  content:""; position:absolute; left:0; right:0; bottom:-8px; height:2px;
  background:transparent; transition:background .18s ease;
}
.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after { background:var(--color-cyan); }

/* =========================
   CTA BUTTONS (scoped)
   ========================= */
/* Global .btn kept minimal for legacy; strong styles scoped to #rt-ctas and About roles */
.btn { display:inline-flex; align-items:center; justify-content:center; line-height:1.2; cursor:pointer; }

#rt-ctas .btn, .about-clean.about-roles .elementor-button,
.p-card__cta .btn {
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:var(--radius-pill);
  padding:12px 22px; font-weight:600;
  text-decoration:none; line-height:1.2;
  transition:background .18s ease, transform .18s ease, color .18s ease, border-color .18s ease;
}

/* Primary */
#rt-ctas .btn-primary,
.about-clean.about-roles #cta-cv.elementor-button,
.p-card__cta .btn-primary {
  background:var(--color-cyan); color:#0D1117; border:0;
  box-shadow:var(--shadow-1);
}
#rt-ctas .btn-primary:hover,
.about-clean.about-roles #cta-cv.elementor-button:hover,
.p-card__cta .btn-primary:hover { background:var(--color-blue); transform:translateY(-1px); }

/* Amazon pill variant */
.btn-amazon{
  background: var(--color-amazon);
  color: #0D1117 !important;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: var(--shadow-1);
  transition: background .18s ease, transform .18s ease;
}
.btn-amazon:hover{
  background: var(--color-amazon-hover);
  transform: translateY(-1px);
}

/* Ensure Amazon CTA label is perfectly centered inside the pill */
.btn-amazon{
  text-align: center;
  justify-content: center;
  align-items: center;
}


/* Secondary (gold outline) */
#rt-ctas .btn-secondary,
.about-clean.about-roles .btn-work.elementor-button,
.p-card__cta .btn-secondary {
  background:transparent; color:var(--color-gold);
  border:2px solid var(--color-gold);
}
#rt-ctas .btn-secondary:hover,
.about-clean.about-roles .btn-work.elementor-button:hover,
.p-card__cta .btn-secondary:hover { background:rgba(199,167,114,.12); transform:translateY(-1px); }

/* Compact inside cards */
.p-card__cta .btn {
  padding:8px 16px; font-size:14px; box-shadow:0 3px 12px rgba(0,0,0,.14);
}


/* =========================
   HERO
   ========================= */
.hero { position:relative; background:var(--color-dark); color:var(--color-light);
  border-radius:22px; overflow:hidden; min-height:92vh; padding-bottom:3rem; }
.hero__inner { position:relative; z-index:2; max-width:780px; margin:0 auto; padding:96px 24px; text-align:center }
.hero__title { font-family:var(--font-heading); font-weight:800; font-size:64px; margin-bottom:20px }
.hero__tagline { font-size:22px; opacity:.86; margin-bottom:36px }
.hero__cta { margin-bottom:28px }
.hero__chips { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:1.5rem }
.chip { background:var(--chip-bg); color:var(--color-light); padding:8px 12px; border-radius:var(--radius-pill); font-size:14px; border:1px solid var(--chip-bd); }

/* =========================
   SECTION HEADINGS
   ========================= */
.section { padding:64px 0; }
.section__title { font-family:var(--font-heading); font-weight:800; font-size:36px; margin:0 0 8px }
.section__lead { color:rgba(245,247,250,.88); margin:0 0 24px }

/* =========================
   ABOUT (grid + facts)
   ========================= */
.about__grid { display:grid; grid-template-columns:1.4fr .8fr; gap:28px }
@media (max-width:980px){ .about__grid{ grid-template-columns:1fr } }
.about__fact { background:#F7F9FB; border:1px solid rgba(14,17,22,.08); border-radius:14px; padding:14px 16px }
.about__fact .kpi { font-size:26px; font-weight:800; color:#0E1116 }

/* =========================
   SERVICES — fixed card system
   ========================= */
.services__grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px }
@media (max-width:980px){ .services__grid{ grid-template-columns:repeat(2,minmax(0,1fr)) } }
@media (max-width:640px){ .services__grid{ grid-template-columns:1fr } }

.card{
  position:relative; display:flex; flex-direction:column;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius-lg);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  outline:none;
}
.card:hover{ transform:translateY(-2px); box-shadow:var(--shadow-1); border-color:rgba(34,212,253,.30) }
.card:focus-within{ box-shadow:0 0 0 3px rgba(34,212,253,.25) }

.card__head{ all:unset; display:flex; align-items:center; justify-content:space-between; cursor:pointer; padding:18px 20px; border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
.card__title{ font-weight:700; font-size:18px; line-height:1.3 }
.card__intro{ color:rgba(245,247,250,.88); font-size:14.5px; margin-top:6px }
.card__chev{ margin-left:12px; transition:transform .18s ease; opacity:.8 }
.card__head[aria-expanded="true"] .card__chev{ transform:rotate(180deg) }

.card__body{ padding:0 20px 18px; border-top:1px solid rgba(255,255,255,.10) }
.card__list{ margin:12px 0 0; padding-left:18px }
.card__list li{ margin:6px 0 }

.card .badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px; border-radius:var(--radius-pill);
  background:var(--chip-bg); border:1px solid var(--chip-bd);
  font-size:12.5px; line-height:1.2; color:var(--color-light);
}

/* =========================
   PORTFOLIO — editorial cards
   ========================= */
.portfolio .filters{ display:flex; gap:10px; flex-wrap:wrap; margin:10px 0 22px }
.portfolio .filters .filter{
  background:rgba(14,17,22,.06); border:1px solid rgba(14,17,22,.15);
  color:#0E1116; border-radius:var(--radius-pill); padding:8px 12px; cursor:pointer
}
.portfolio .filters .filter.is-active{
  background:var(--color-cyan); border-color:var(--color-cyan);
  color:#0D1117; box-shadow:0 0 0 2px rgba(34,212,253,.20)
}

.p-card{
  display:flex; flex-direction:column;
  background:#FFFFFF; border:1px solid rgba(0,0,0,.08);
  border-radius:var(--radius-lg); box-shadow:0 1px 2px rgba(14,17,22,.05);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.p-card:hover{ transform:translateY(-2px); border-color:rgba(14,17,22,.16); box-shadow:var(--shadow-2) }
.p-card__media{ background-size:cover; background-position:center; aspect-ratio:16/9; box-shadow: inset 0 -40px 80px rgba(0,0,0,.12) }
.p-card__body{ padding:16px 16px 18px; display:flex; flex-direction:column; gap:10px; flex:1 }
.p-card__title{ font-weight:700; font-size:18px; margin:0; color:#0E1116 }
.p-card__intro{ color:rgba(14,17,22,.92); line-height:1.55; white-space:normal; overflow:visible; text-overflow:clip }
.p-card__kpis{ display:flex; gap:8px; flex-wrap:wrap; list-style:none; padding:0; margin:0 }
.p-card__kpis li, .p-card__tags .chip{
  display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:var(--radius-pill);
  background:rgba(14,17,22,.06); border:1px solid rgba(14,17,22,.12); color:#0E1116; font-size:12.5px; line-height:1.2;
}
.p-card__tags{ display:flex; gap:8px; flex-wrap:wrap; margin-top:2px }
.p-card__cta{ margin-top:auto; display:flex; gap:10px; flex-wrap:wrap }
.p-card:focus-within{ outline:2px solid rgba(34,212,253,.35); outline-offset:2px }


/* =========================
   CONTACT & FORMS
   ========================= */
.contact__form, .contact__aside .card, #rt-cv-request {
  background:#fff; border:1px solid rgba(14,17,22,.10);
  border-radius:var(--radius-lg); padding:20px; box-shadow:0 6px 20px rgba(0,0,0,.08)
}
.contact__form input, .contact__form textarea,
#rt-cv-request input, #rt-cv-request select, #rt-cv-request textarea {
  width:100%; background:#F7F9FB; border:1px solid rgba(14,17,22,.12);
  border-radius:12px; padding:12px 14px; color:#0E1116
}
.contact__form input:focus, .contact__form textarea:focus,
#rt-cv-request input:focus, #rt-cv-request select:focus, #rt-cv-request textarea:focus {
  border-color:var(--color-cyan); box-shadow:0 0 0 3px rgba(34,212,253,.18)
}

#rt-contact-form .consent-line{ display:flex; align-items:center; gap:10px; margin:8px 0 6px }
#rt-contact-form .consent-line input[type="checkbox"]{ width:18px; height:18px; flex:0 0 auto }
#rt-contact-form .consent-line label, #rt-contact-form .consent-line p{ margin:0; font-size:14px; color:rgba(14,17,22,.8) }

/* Contact page grid */
.contact-page-grid{ display:grid; gap:20px }
@media (min-width: 980px){
  .contact-page-grid{ grid-template-columns: 1.35fr .65fr; align-items:start; }
  #rt-contact-form{ grid-column:1 }
  .connect{ grid-column:2 }
  #rt-cv-request{ grid-column:1 / -1 }
}

/* CONNECT CTA */
.connect{ color:#0E1116 }
.connect a{ color:#0D66FF; text-decoration:none }
.connect a:hover{ color:#3482F6 }
.connect .btn-call{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px; padding:10px 18px;
  background:var(--color-cyan); color:#0D1117; border:0; box-shadow:var(--shadow-1);
  transition:background .18s ease, transform .18s ease;
}
.connect .btn-call:hover{ background:var(--color-blue); transform:translateY(-1px) }

/* =========================
   ABOUT — Credentials & Certifications (consolidated)
   ========================= */
.about, .about__grid, .about .elementor-section, .about .elementor-container {
  position:relative; z-index:2;
  --e-global-color-text:#0E1116;
  color:#0E1116;
}
.about .elementor-widget-text-editor,
.about .elementor-widget-text-editor * { color:#0E1116 !important; opacity:1 !important; }
.about .elementor-widget-text-editor ul, .about .elementor-widget-text-editor ol { list-style: disc; padding-left:22px; margin:10px 0 0; }
.about .elementor-widget-text-editor li { margin:6px 0; font-size:15px; line-height:1.5; }
.about canvas { position:absolute; inset:0; z-index:0; pointer-events:none; }

/* =========================
   CARD caret/tiny dot removals (sanity)
   ========================= */
.card::after, .card__head::after, .p-card::after, .p-card__media::after { content:none !important; display:none !important; }
.elementor-toggle .elementor-tab-title::after, .elementor-accordion .elementor-accordion-title::after { content:none !important; }

/* =========================
   HOME / TRUSTBAR
   ========================= */
.home-trustbar{ width:100%; max-width:none; padding:0 32px; margin:20px auto 24px }
.home-trustbar__inner{ max-width:1200px; margin:0 auto; display:flex; justify-content:center; gap:24px; flex-wrap:wrap }
.home-trustbar .pill{
  display:inline-flex; align-items:center; gap:8px; padding:8px 16px;
  border-radius:var(--radius-pill); background:var(--pill-bg); border:1px solid var(--pill-bd); font-size:14px; line-height:1.2
}

/* Banner chip */
.chip--banner{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:var(--radius-pill);
  background:var(--chip-bg); border:1px solid var(--chip-bd);
  color:var(--color-light); box-shadow: inset 0 0 0 1px rgba(34,212,253,.15);
  font-size:14px; line-height:1.2;
}

/* Footer */
.site-footer { background:var(--color-dark); border-top:1px solid rgba(255,255,255,.06); color:var(--tone) }
.site-footer a{ color:rgba(245,247,250,.86) } .site-footer a:hover{ color:var(--color-cyan) }

.footer-main { display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:32px; padding:64px 32px 48px; max-width:1200px; margin:0 auto }
@media(max-width:900px){ .footer-main{ grid-template-columns:1fr } }
.footer-bar, .site-footer .site-info, .site-footer .wrap:last-child{
  display:flex; justify-content:space-between; align-items:center;
  border-top:1px solid rgba(245,247,250,.10); padding:18px 32px; gap:12px
}
.footer-bar .footer-copy, .footer-bar .footer-tagline{ color:var(--tone-weak); font-size:14px }
/* Footer: unify text height after credit removal */
.site-footer .footer-bar,
.site-footer .footer-bar * {
  font-size: 14px !important;
  line-height: 1.4;
}
/* === Connect card: standardized visuals === */
.connect{
  color:#0E1116;                 /* black body text */
  font-size:15px;
  line-height:1.5;
}

/* Link color standard (list + inline) */
.connect a,
.connect .linklist a{
  color:#0D66FF;                 /* brand blue */
  text-decoration:none;
}
.connect a:hover,
.connect .linklist a:hover{
  color:#3482F6;                 /* hover blue */
}

/* Normalize list layout (if using a UL/OL for Connect links) */
.connect .linklist{
  list-style:none;
  padding:0;
  margin:8px 0 0;
}
.connect .linklist li{ margin:6px 0; }

/* Standardized CTA (Book a Call) */
.connect .btn-call{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px;
  padding:10px 18px;
  font-weight:600;
  line-height:1.2;
  border:0;
  background:var(--color-cyan);  /* cyan base */
  color:#0D1117;                 /* REQUIREMENT: blue/cyan bg → black text */
  box-shadow:0 6px 18px rgba(0,0,0,.16);
  transition:background .18s ease, transform .18s ease, color .18s ease;
}
.connect .btn-call:hover{
  background:var(--color-blue);  /* blue hover */
  color:#0D1117;                 /* keep black text on blue */
  transform:translateY(-1px);
}

/* Optional: keep CTA visually separated from the list */
.connect-cta{ margin-top:12px; }
/* =========================================================
   RT Logo Subtitle v1.0 — Styles
   - Places “Data is Gold” beneath the logo in header & footer
   - Matches established sizing (14px) and spacing rhythm
   ========================================================= */

.rt-brand-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-header .rt-brand-subtitle,
header .rt-brand-subtitle {
  display: inline-block;
  margin-top: 2px;
  font-weight: 600;
  font-size: 14px;       /* consistent with your small text scale */
  line-height: 1.2;
  color: var(--color-gold, #C7A772);
}

.site-footer .rt-brand-subtitle,
footer .rt-brand-subtitle {
  display: inline-block;
  margin-top: 2px;
  font-weight: 600;
  font-size: 14px;       /* footer text height kept consistent */
  line-height: 1.2;
  color: var(--color-gold, #C7A772);
}

/* Ensure logo + subtitle pack nicely next to brand text blocks if present */
.brand .rt-brand-wrap { align-items: flex-start; }

/* Prevent accidental theme spacing from pushing subtitle too far away */
.custom-logo-link,
.rt-brand-wrap > img.custom-logo {
  vertical-align: middle;
}
/* =========================================================
   RT CTA Standardization v1.0
   - Any CTA with cyan/blue background = black text
   - Header + footer CTAs consistent across all pages
   ========================================================= */

/* Base CTA styles */
.btn-primary,
.btn-call,
#header-cv,
#cta-cv,
#cv_submit,
.p-card__cta .btn-primary {
  background: var(--color-cyan);   /* cyan base */
  color: #0D1117 !important;       /* black text requirement */
  border: 0;
  box-shadow: var(--shadow-1);
  transition: background .18s ease, transform .18s ease, color .18s ease;
}

.btn-primary:hover,
.btn-call:hover,
#header-cv:hover,
#cta-cv:hover,
#cv_submit:hover,
.p-card__cta .btn-primary:hover {
  background: var(--color-blue);   /* blue hover */
  color: #0D1117 !important;       /* keep black text */
  transform: translateY(-1px);
}

/* Ensure secondary CTAs stay gold outline */
.btn-secondary,
.btn-work {
  background: transparent;
  color: var(--color-gold) !important;
  border: 2px solid var(--color-gold) !important;
}
.btn-secondary:hover,
.btn-work:hover {
  background: rgba(199,167,114,.12);
  color: var(--color-gold) !important;
  transform: translateY(-1px);
}

/* Header/Footer CTA row alignment */
.site-header .rt-cta-row,
.site-footer .rt-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.site-header .rt-cta-row .elementor-widget-button,
.site-footer .rt-cta-row .elementor-widget-button {
  margin: 0 !important;
}
/* =========================================================
   RT_CTA_Style v1.1
   - Home-style CTAs everywhere (cyan/blue = black text)
   - Header CTA row floats right
   - Footer keeps only Connect CTA (handled by JS); styling unified
   - Services: remove tiny dots/carets at right edge of cards
   ========================================================= */

/* Header CTA row pinned to the far right of .wrap */
.site-header .wrap {
  display: flex;
  align-items: center;
}
.site-header .wrap > .rt-cta-row {
  margin-left: auto;            /* push CTA row to far right */
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.site-header .wrap > .rt-cta-row .elementor-widget-button { margin: 0 !important; }

/* Footer: CTA inside Connect will already exist; unify look via base rules below */

/* Base CTA visuals (match home) */
.btn, .btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, color .18s ease, border-color .18s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
}

/* Cyan/blue buttons must use black text */
.btn-primary {
  background: var(--color-cyan);
  color: #0D1117 !important;
  border: 0;
}
.btn-primary:hover {
  background: var(--color-blue);
  color: #0D1117 !important;
  transform: translateY(-1px);
}

/* Gold outline secondary */
.btn-secondary,
.btn-work {
  background: transparent;
  color: var(--color-gold) !important;
  border: 2px solid var(--color-gold) !important;
}
.btn-secondary:hover,
.btn-work:hover {
  background: rgba(199,167,114,.12);
  color: var(--color-gold) !important;
  transform: translateY(-1px);
}

/* Footer Connect column button spacing */
.site-footer .connect .btn { margin-top: 12px; }

/* Services page — remove tiny right-side dots/carets injected by themes */
.services__grid .card,
.services__grid .p-card { overflow: hidden; } /* hide stray pseudo-content */

.services__grid .card::after,
.services__grid .card__head::after,
.services__grid .p-card::after,
.services__grid .p-card__media::after,
.services__grid .elementor-toggle .elementor-tab-title::after,
.services__grid .elementor-accordion .elementor-accordion-title::after,
.services__grid [class*="caret"]::after,
.services__grid [class*="dot"]::after {
  content: none !important;
  display: none !important;
}
/* =========================================================
   RT_CTA_Style v1.2 + Services caret fix
   - Home-style CTAs globally (cyan/blue = black text)
   - Header CTA row pinned to far right
   - Footer left column CTA row spacing
   - Remove “dots/carets” on Services cards
   ========================================================= */

/* Header layout: push CTA row to the far right */
.site-header .wrap { display:flex; align-items:center; }
.site-header .wrap > .rt-cta-row.rt-cta-header {
  margin-left:auto;
  display:flex; gap:12px; flex-wrap:wrap;
}

/* Base CTA visuals (match home) */
.btn, .btn-primary, .btn-secondary {
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px;
  padding:12px 22px;
  font-weight:600;
  line-height:1.2;
  text-decoration:none;
  cursor:pointer;
  transition:background .18s ease, transform .18s ease, color .18s ease, border-color .18s ease;
  box-shadow:0 6px 18px rgba(0,0,0,.16);
}

/* Cyan/blue CTAs must use black text */
.btn-primary {
  background:var(--color-cyan);
  color:#0D1117 !important;
  border:0;
}
.btn-primary:hover { background:var(--color-blue); color:#0D1117 !important; transform:translateY(-1px); }

/* Gold outline secondary */
.btn-secondary, .btn-work {
  background:transparent;
  color:var(--color-gold) !important;
  border:2px solid var(--color-gold) !important;
}
.btn-secondary:hover, .btn-work:hover {
  background:rgba(199,167,114,.12);
  color:var(--color-gold) !important;
  transform:translateY(-1px);
}

/* Footer: spacing for the new left-column CTA pair */
.site-footer .rt-cta-footer-left { margin-top:14px; display:flex; gap:12px; flex-wrap:wrap; }

/* SERVICES: kill “dots/carets” that themes/widgets inject */
.services__grid .card,
.services__grid .p-card { position:relative; overflow:hidden; }

.services__grid .card::after,
.services__grid .card__head::after,
.services__grid .p-card::after,
.services__grid .p-card__media::after,
.services__grid .elementor-toggle .elementor-tab-title::after,
.services__grid .elementor-accordion .elementor-accordion-title::after,
.services__grid [class*="caret"]::after,
.services__grid [class*="arrow"]::after,
.services__grid [class*="dot"]::after {
  content:none !important; display:none !important;
}




/* === Services cards: header alignment, bigger caret, CTA spacing === */

/* Card header: stack title/intro top-left, keep it a clickable button */
.services__grid .card__head {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  padding: 18px 20px;
}

/* Title + intro text aligned left inside header */
.services__grid .card__title {
  text-align: left;
  margin: 0;
  line-height: 1.25;
}
.services__grid .card__intro {
  text-align: left;
  margin-top: 6px;
}

/* Chevron/triangle: scale up without blocking clicks */
.services__grid .card__chev {
  font-size: 30px;          /* ok for font-based or inline SVG sized by font-size */
  width: 30px;
  height: 30px;
  margin-left: 12px;
  flex-shrink: 0;
  pointer-events: none;      /* clicks still land on the button */
  opacity: .9;
}
.services__grid .card__head[aria-expanded="true"] .card__chev {
  transform: rotate(180deg);
}

/* Vertical spacing between stacked CTAs */
.services__grid .card__body .btn + .btn,
.services__grid .card__body .elementor-button + .elementor-button {
  margin-top: 0px;
}

/* If CTAs are wrapped inside .card__cta container, use gap */
.services__grid .card__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* === Services cards: headings above body, left-aligned === */

/* Card header stays a clickable button, but stacks its content */
.services__grid .card__head {
  display: flex;
  flex-direction: column;      /* stack title + intro vertically */
  align-items: flex-start;     /* align text to left */
  justify-content: flex-start;
  text-align: left;
  padding: 18px 20px;
  gap: 4px;                    /* small gap between title and intro */
}

/* Title + intro styles */
.services__grid .card__title {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}
.services__grid .card__intro {
  margin: 0;
  font-size: 14.5px;
  opacity: .9;
  text-align: left;
}

/* Chevron still lives at the right of the header */
.services__grid .card__head {
  position: relative;
}
.services__grid .card__chev {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 18px;
  width: 18px;
  height: 18px;
  pointer-events: none;        /* don’t block button clicks */
  opacity: .9;
}
.services__grid .card__head[aria-expanded="true"] .card__chev {
  transform: translateY(-50%) rotate(180deg);
}

/* Vertical spacing between CTAs in the body */
.services__grid .card__body .btn + .btn,
.services__grid .card__body .elementor-button + .elementor-button {
  margin-top: 12px;
}
.services__grid .card__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* === Services cards: add gap between lists and CTAs === */

/* If the CTA section follows a UL/OL inside card body, add margin-top */
.services__grid .card__body ul + .card__cta,
.services__grid .card__body ol + .card__cta {
  margin-top: 16px;   /* adjust to taste (12–20px works well) */
}

/* Extra safeguard if buttons follow directly after a list */
.services__grid .card__body ul + .btn,
.services__grid .card__body ol + .btn {
  margin-top: 16px;
}
/* =========================
   HERO CTA — even spacing + responsive
   ========================= */
.hero__cta{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;                 /* even spacing between all buttons */
  margin-top:18px;
}

/* Keep button heights consistent in the row */
.hero__cta .btn{ min-height:44px; padding-inline:22px; }

/* Mobile stack with even spacing, primary first by visual flow */
@media (max-width:560px){
  .hero__cta{ flex-direction:column; align-items:center; gap:10px; }
}

/* Optional: if you ever need a forced middle order on mobile
   add class="is-middle" to the Book a call link */
@media (max-width:560px){
  .hero__cta .is-middle{ order:2; }
}

/* =========================
   PAGE REFINEMENTS — premium look for HTML sections
   ========================= */

/* === Book Preview Reader (Kindle-style) === */

.rt-preview-heading{
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: #0E1116;
}

.rt-reader{
  position: relative;
  max-width: 680px;
  border: 1px solid rgba(14,17,22,.10);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  overflow: hidden;
}

/* Soft progress bar */
.rt-reader-progress{
  position: sticky;
  top: 0;
  background: #fff;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(14,17,22,.08);
  z-index: 2;
}

.rt-reader-progress-bar{
  display: block;
  height: 3px;
  width: 38%;
  background: var(--color-cyan);
  border-radius: 999px;
  margin-bottom: 6px;
}

.rt-reader-progress-label{
  font-size: 13px;
  color: rgba(14,17,22,.65);
}

/* Reader body */
.rt-reader-content{
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  line-height: 1.7;
  color: #0E1116;
  padding: 22px 24px 64px;
  max-height: 420px;
  overflow: hidden;
}

/* Section titles inside reader */
.rt-reader-title{
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 17px;
  margin: 28px 0 10px;
}

/* Gradient fade */
.rt-reader-fade{
  position: absolute;
  bottom: 64px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0),
    #ffffff 80%);
  pointer-events: none;
}

/* CTA at bottom */
.rt-reader-cta{
  padding: 16px 24px 20px;
  background: #fff;
  border-top: 1px solid rgba(14,17,22,.08);
}

/* Section rhythm */
.section{ padding:64px 0; }
.section--tight{ padding:42px 0; }

/* Headings */
.section h2{
  font-family: var(--font-heading, Inter, system-ui);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 36px);
  margin:0 0 8px;
}
.section h3{
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 24px);
  margin:20px 0 6px;
}

/* Lead copy */
.section .lead{
  color: rgba(14,17,22,.75);
  font-size: 18px;
  line-height: 1.6;
  max-width: 72ch;
  margin: 0 0 18px;
}

/* About layout: two-column with KPI stack on the right */
.about-grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:28px;
}
@media (max-width:980px){ .about-grid{ grid-template-columns:1fr; } }

/* KPI cards on the right */
.kpi-stack{ display:flex; flex-direction:column; gap:16px; }
.kpi-card{
  background:#fff;
  border:1px solid rgba(14,17,22,.10);
  border-radius:14px;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
  padding:16px 18px;
  font-weight:700;
  text-align:center;
}
.kpi-card small{ display:block; font-weight:600; color:rgba(14,17,22,.70); }

/* Bulleted lists with brand dots */
.list-brand{ list-style:none; padding-left:0; margin:14px 0; }
.list-brand li{
  display:flex; align-items:flex-start; gap:10px;
  margin:8px 0; line-height:1.55;
}
.list-brand li::before{
  content:""; width:10px; height:10px; margin-top:.45em;
  border-radius:50%;
  background: var(--color-cyan, #22D4FD);
  box-shadow: 0 0 0 2px rgba(34,212,253,.20);
}

/* Credentials block spacing */
.credentials{ margin-top:40px; }
.credentials .cols{
  display:grid; grid-template-columns:1fr 1fr; gap:24px;
}
@media (max-width:780px){ .credentials .cols{ grid-template-columns:1fr; } }
.credentials ul{ margin:0; padding-left:20px; }
.credentials li{ margin:6px 0; }

/* Soft divider to separate major sections on white pages */
.divider{
  margin:48px 0;
  height:1px; width:100%;
  background:linear-gradient(to right, transparent, rgba(14,17,22,.12), transparent);
}

/* Buttons row that lives inside HTML sections (not hero) */
.section .cta-row{
  display:flex; flex-wrap:wrap; gap:12px; align-items:center;
  margin-top:18px;
}

/* Keep the right rail KPI block from sticking too close to the header */
@media (min-width:981px){
  .about-grid .kpi-stack{ margin-top:12px; }
}
/* === KPI Stack with Card look === */
.kpi-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 520px;
  margin: 0 auto;
}

.kpi-card {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
  border: 1px solid rgba(14,17,22,.08);
  padding: 14px 18px;
}

.kpi-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #F7F9FB;
  border: 1px solid rgba(14,17,22,.10);
  min-height: 54px;
  padding: 10px 14px;
  color: #0E1116;
  font-size: 16px;
  text-align: center;
}

.kpi-num {
  font-weight: 800;
  margin-right: .35rem;
}

.kpi-label {
  opacity: .9;
}
/* === KPI Section Heading === */
.kpi-stack {
  margin-top: 24px; /* space between heading and cards */
}

/* KPI numbers reduced further by ~25% */
.kpi-num {
  font-size: 1.125rem;   /* was 1.5rem */
  font-weight: 800;
  margin-right: .35rem;
  color: #0E1116;
}

@media (min-width: 980px) {
  .kpi-num {
    font-size: 1.35rem;  /* was 1.8rem */
  }
}



.kpi-label {
  font-size: 1rem;
  opacity: .9;
}
/* About page: ultra-tight vertical spacing */
.page-slug-about .section {
  padding: 16px 0;   /* was 64px → now very compact */
}

.page-slug-about .divider {
  margin: 12px 0;    /* shrink divider spacing */
}

/* Paragraphs breathe but don't sprawl */
.page-slug-about p,
.page-slug-about .lead {
  line-height: 1.5;  /* was ~1.6–1.7 */
  margin-bottom: 12px;
}
/* Remove vertical padding between sections on About page */
.page-slug-about .section {
  padding-top: 0;
  padding-bottom: 0;
}

/* Shrink dividers to almost nothing */
.page-slug-about .divider {
  margin: 4px 0;   /* or 0 if you want them flush */
}

/* Keep headings and paragraphs from adding big gaps */
.page-slug-about h2,
.page-slug-about h3 {
  margin-top: 0.5em;   /* reduce default ~1em+ */
  margin-bottom: 0.5em;
}

.page-slug-about p {
  margin-top: 0.25em;
  margin-bottom: 0.75em;
}
/* Brand with logo + wordmark */
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px; /* space between logo and text */
  text-decoration: none;
}

.brand-logo {
  height: 28px;   /* adjust as needed */
  width: auto;
  display: block;
}

.brand .wordmark {
  font-family: var(--font-heading, Inter, system-ui);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-light, #fff); /* matches header */
}
/* Brand: logo left, text right */
.brand {
  display: flex;
  align-items: center;   /* vertically aligns logo with text */
  gap: 12px;             /* space between logo and text */
}

/* Logo sizing */
.brand-logo {
  height: 36px;  /* adjust to fit nicely with text height */
  width: auto;
}

/* Text block stacked as before */
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* === Header brand: logo left, text right (override any stacked rules) === */
.site-header .brand {
  display: flex;
  flex-direction: row !important;     /* force horizontal */
  align-items: center;                 /* vertically align logo + text */
  gap: 12px;
}

.site-header .brand-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;                      /* don't stretch */
}

.site-header .brand-logo {
  height: 36px;                        /* adjust to taste (32–44px) */
  width: auto;
  display: block;
}

.site-header .brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-header .wordmark {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-light, #fff);
}

.site-header .tagline {
  font-size: 0.95rem;
  color: rgba(245,247,250,.86);
}

.site-header .rt-brand-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold, #C7A772);
}

/* Ensure header layout stays tidy across the row */
.site-header .wrap {
  display: flex;
  align-items: center;                 /* centers brand/nav/CTA on the bar */
  justify-content: space-between;
  gap: 24px;
}

.site-header .primary-nav { margin-left: auto; }  /* pushes nav/CTA to the right when needed */
/* Brand: logo block and text block side by side */
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;   /* center "Data is Gold" under logo */
  gap: 1px;
}

.brand-logo {
  height: 100px;   /* increased from ~36px */
  width: auto;
  display: block;
}

.rt-brand-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gold, #C7A772);
}

/* Text block */
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wordmark {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-light, #fff);
}

.tagline {
  font-size: 0.95rem;
  color: rgba(245,247,250,.86);
}
/* Brand container only shows logo + subtitle now */
.brand {
  display: flex;
  align-items: center;
}

.brand-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;   /* center "Data is Gold" under logo */
  gap: 6px;
}

.brand-logo {
  height: 56px;   /* make logo more prominent */
  width: auto;
  display: block;
}

.rt-brand-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-gold, #C7A772);
}
/* Brand: logo left, text right */
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  height: 90px;   /* increase logo size */
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wordmark {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-light, #fff);
}

.tagline {
  font-size: 0.95rem;
  color: rgba(245,247,250,.86);
}
/* === Header: make logo fill the bar vertically === */
:root{
  --header-height: 88px;   /* total bar height */
  --header-pad: 14px;      /* top/bottom padding inside the bar */
}

/* When the page gets the .scrolled class, shrink the bar */
body.scrolled .site-header{ --header-height: 72px; --header-pad: 10px; }

.site-header{
  min-height: var(--header-height);
}

.site-header .wrap{
  min-height: var(--header-height);
  padding-block: var(--header-pad);
  display: flex;
  align-items: center;      /* centers brand/nav/CTA vertically */
  gap: 24px;
}

/* Brand row: logo left, text right */
.site-header .brand{
  display: flex;
  align-items: center;
  gap: 12px;
}

/* The link becomes the “logo box” that fills the header content height */
.site-header .brand-link{
  display: flex;
  align-items: stretch;
  height: calc(var(--header-height) - (var(--header-pad) * 2));
}

/* Logo fills that box, keeps aspect ratio */
.site-header .brand-logo{
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}
/* Footer brand layout matches header */
.site-footer .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer .brand-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-footer .brand-logo {
  height: 36px;   /* adjust size for footer */
  width: auto;
  display: block;
}

.site-footer .brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer .wordmark {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-light, #fff);
}

.site-footer .tagline {
  font-size: 0.9rem;
  color: rgba(245,247,250,.86);
}
/* Footer brand matches header alignment */
.site-footer .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer .brand-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-footer .brand-logo {
  height: 36px;   /* can be smaller than header */
  width: auto;
  display: block;
}

.site-footer .brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer .wordmark {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-light, #fff);
}

.site-footer .tagline {
  font-size: 0.9rem;
  color: rgba(245,247,250,.86);
}
/* === Footer brand: logo left, text right (force row) === */
.site-footer .footer-col.brand {
  text-align: left;                 /* kill any column centering */
}

.site-footer .brand {
  display: flex;
  flex-direction: row !important;   /* override stacked rule */
  align-items: center;
  gap: 12px;
}

.site-footer .brand-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;                        /* remove any top/bottom margins */
}

.site-footer .brand-logo {
  height: 54px;                     /* tweak size as you like */
  width: auto;
  display: block;
  object-fit: contain;
}

.site-footer .brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer .wordmark {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-light, #fff);
  line-height: 1.2;
}

.site-footer .tagline {
  font-size: 0.9rem;
  color: rgba(245,247,250,.86);
  line-height: 1.35;
}
/* Space between header and hero */
.site-header {
  margin-bottom: 32px;  /* adjust as needed */
}
/* === Header gap control === */
:root{
  --header-gap: 36px;       /* default space under header */
  --header-gap-scrolled: 16px; /* smaller gap after scroll */
}

/* apply the gap */
.site-header{ margin-bottom: var(--header-gap); }

/* when body gets .scrolled (you already toggle this in app.js) */
body.scrolled .site-header{ margin-bottom: var(--header-gap-scrolled); }
/* === Mobile nav baseline === */
.nav-toggle{
  display:none;
  border:0;
  background:transparent;
  padding:8px;
  cursor:pointer;
}
.nav-toggle:focus{ outline:2px solid var(--color-cyan,#22D4FD); outline-offset:2px; }

.nav-toggle__bar{
  display:block;
  width:24px;
  height:2px;
  margin:5px 0;
  background: var(--color-light,#fff);
  transition: transform .2s ease, opacity .2s ease;
}

/* Animate into X when open */
.nav-open .nav-toggle__bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bar:nth-child(2){ opacity:0; }
.nav-open .nav-toggle__bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Desktop layout stays as-is */
@media (max-width: 980px){
  /* show the toggle, hide the desktop nav by default */
  .nav-toggle{ display:block; }

  .primary-nav{ position: relative; }
  .primary-nav .menu{
    position:absolute;
    right:0; left:0;
    top:calc(100% + 8px);
    display:none;
    flex-direction:column;
    gap:12px;
    background: rgba(13,17,23,.98);
    border:1px solid rgba(255,255,255,.06);
    border-radius:12px;
    padding:14px;
    box-shadow:0 12px 24px rgba(0,0,0,.24);
    z-index: 1000;
  }

  /* when open */
  .nav-open .primary-nav .menu{ display:flex; }

  /* space header items neatly on mobile */
  .site-header .wrap{
    gap:12px;
  }
}
/* === Mobile nav polish (<= 980px) === */
@media (max-width:980px){
  /* Toggle button: remove browser styles, keep just the bars */
  .nav-toggle{
    -webkit-appearance:none;
    appearance:none;
    background:transparent !important;
    border:0 !important;
    padding:8px;
    margin:0;
    width:auto;
    height:auto;
    display:block;
    position:relative;
    z-index:1100;                 /* above the menu panel */
    line-height:0;                /* kill stray inline height */
  }

  /* Hide any stray text node; keep SR label accessible */
  .nav-toggle{ font-size:0; }
  .nav-toggle .sr-only{
    position:absolute !important;
    width:1px;height:1px;padding:0;margin:-1px;
    overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
  }

  .nav-toggle__bar{
    display:block;
    width:24px;height:2px;margin:5px 0;
    background: var(--color-light,#fff);
    transition: transform .2s ease, opacity .2s ease;
  }
  /* Animate to X */
  .nav-open .nav-toggle__bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle__bar:nth-child(2){ opacity:0; }
  .nav-open .nav-toggle__bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

  /* Dropdown panel: full-width-ish, BLACK, high z-index */
  .primary-nav{ position:relative; }
  .primary-nav .menu{
    position:absolute;
    top: calc(100% + 10px);
    left:16px; right:16px;        /* inset with safe gutters */
    display:none;
    flex-direction:column;
    gap:12px;
    background:#000;              /* requested: black on all pages */
    color:#fff;
    border:1px solid rgba(255,255,255,.08);
    border-radius:14px;
    padding:14px;
    box-shadow:0 18px 36px rgba(0,0,0,.35);
    z-index:1099;                 /* just under toggle */
  }
  .nav-open .primary-nav .menu{ display:flex; }

  /* Links in the panel */
  .primary-nav .menu a{
    color:#fff;
    text-decoration:none;
    padding:8px 6px;
    display:block;
  }
  .primary-nav .menu a:hover{ color: var(--color-cyan,#22D4FD); }
  .primary-nav .current-menu-item > a{
    color: var(--color-cyan,#22D4FD);
  }

  /* Prevent header CTA from competing with the open menu */
  .nav-open .header-cta{ display:none; }

  /* Tidy header row spacing on mobile */
  .site-header .wrap{ gap:12px; align-items:center; }
}
/* === Mobile header layout === */
@media (max-width: 980px) {
  .site-header .wrap {
    flex-direction: column;   /* stack children vertically */
    align-items: stretch;     /* let children take full width */
    gap: 12px;
  }

  /* Brand stays top, centered */
  .site-header .brand {
    justify-content: flex-start;
  }

  /* New row for nav toggle + CTA */
  .site-header .header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  /* Make CTA button shrink nicely */
  .site-header .header-cta {
    margin: 0;
  }

  .site-header .header-cta .btn {
    width: auto;
    font-size: 0.9rem;
    padding: 10px 18px;
  }
}
/* === Mobile nav: panel under hamburger, solid black, CTA stays visible === */
@media (max-width:980px){

  /* Make the header container a positioning context for the dropdown */
  .site-header .wrap{
    position: relative;           /* so the menu can absolutely position inside */
    flex-direction: column;       /* from earlier step */
    align-items: stretch;
    gap: 12px;
  }

  /* Keep the brand on the first row; hamburger + CTA on second row */
  .header-controls{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
  }

  /* Ensure the toggle is above the panel and sits on the left */
  .nav-toggle{
    position: relative;
    z-index: 1101;                /* above the panel */
    margin-left: 0;               /* anchor left */
  }

  /* The nav container can be static; we position the UL (menu) itself */
  .primary-nav{ position: static; }

  /* SOLID black dropdown panel, anchored below the hamburger on the left */
  .primary-nav .menu{
    position: absolute;
    top: calc(100% + 6px);        /* below the header .wrap content */
    left: 16px;                   /* align left with hamburger gutter */
    right: auto;
    width: min(78vw, 320px);      /* nice readable width on phones */
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    background: #000;             /* solid black */
    color: #fff;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(0,0,0,.35);
    z-index: 1100;                /* under toggle but above everything else */
    max-height: calc(100vh - 140px);  /* prevent off-screen overflow */
    overflow: auto;
  }

  /* Open state */
  .nav-open .primary-nav .menu{ display:flex; }

  /* Keep CTA visible (we previously hid it while open) */
  .nav-open .header-cta{ display:flex; }

  /* Link styles inside panel */
  .primary-nav .menu a{
    color:#fff;
    text-decoration:none;
    padding:8px 6px;
    display:block;
  }
  .primary-nav .menu a:hover{ color: var(--color-cyan,#22D4FD); }
  .primary-nav .current-menu-item > a{ color: var(--color-cyan,#22D4FD); }
}
/* === Mobile nav: animated open/close (respects prefers-reduced-motion) === */
@media (max-width:980px){
  @media (prefers-reduced-motion:no-preference){
    .primary-nav .menu{
      opacity: 0;
      transform: translateY(-6px) scale(.98);
      transition: opacity .18s ease, transform .18s ease;
      will-change: opacity, transform;
    }
    .nav-open .primary-nav .menu{
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  /* Optional: subtle drop shadow pulse when opening */
  .nav-open .primary-nav .menu{
    box-shadow: 0 20px 40px rgba(0,0,0,.38);
  }
}
/* === About page heading color (force brand black) === */
.page-slug-about .section__header h1,
.page-slug-about .section__header h2,
.page-slug-about h1.entry-title,
.page-slug-about .about h1,
.page-slug-about .about h2 {
  color: #0E1116; /* near-black used sitewide for headings */
}
/* ===== Hotfix: normalize header brand & toggle ===== */

/* Single source of truth for header height + padding */
:root{
  --header-height: 88px;     /* adjust if you want taller/shorter */
  --header-pad: 14px;
}

/* Header bar + inner wrap use those vars */
.site-header{
  min-height: var(--header-height);
  margin-bottom: 36px;       /* comfy gap above hero */
}
body.scrolled .site-header{ margin-bottom: 16px; }

.site-header .wrap{
  min-height: var(--header-height);
  padding-block: var(--header-pad);
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}

/* Brand: one clean rule-set (remove all other brand-logo size rules above) */
.site-header .brand{
  display:flex; align-items:center; gap:12px;
}
.site-header .brand-link{
  display:flex; align-items:stretch;
  height: calc(var(--header-height) - (var(--header-pad)*2));
}
.site-header .brand-logo{
  height: 100%;   /* fill the header content height */
  width: auto; object-fit: contain; display:block;
}
.site-header .brand-text{ display:flex; flex-direction:column; gap:2px; }
.site-header .wordmark{ font-weight:800; font-size:1.2rem; color:var(--color-light,#fff); }
.site-header .tagline{  font-size:.95rem; color:rgba(245,247,250,.86); }

/* Ensure images elsewhere don’t blow up */
img{ max-width:100%; height:auto; }

/* Hide the “Menu” text on desktop; only bars visible */
.nav-toggle{
  background:transparent !important; border:0 !important;
  font-size:0; line-height:0; /* hides the text node */
}
/* Keep the toggle hidden on desktop, shown on mobile */
@media (min-width:981px){ .nav-toggle{ display:none !important; } }
@media (max-width:980px){ .nav-toggle{ display:block !important; } }

/* Mobile header layout: brand first row, controls second row */
@media (max-width:980px){
  .site-header .wrap{ position:relative; flex-direction:column; align-items:stretch; gap:12px; }
  .header-controls{ display:flex; justify-content:space-between; align-items:center; gap:12px; }
  .primary-nav{ position:static; }
  .primary-nav .menu{
    position:absolute; top:calc(100% + 6px); left:16px; right:auto;
    width:min(78vw,320px);
    display:none; flex-direction:column; gap:12px; padding:14px;
    background:#000; color:#fff; border:1px solid rgba(255,255,255,.08);
    border-radius:14px; box-shadow:0 18px 36px rgba(0,0,0,.35);
    z-index:1100; max-height:calc(100vh - 140px); overflow:auto;
  }
  .nav-open .primary-nav .menu{ display:flex; }
  @media (prefers-reduced-motion:no-preference){
    .primary-nav .menu{ opacity:0; transform:translateY(-6px) scale(.98); transition:opacity .18s, transform .18s; }
    .nav-open .primary-nav .menu{ opacity:1; transform:translateY(0) scale(1); }
  }
}
/* Header logo: size custom-logo to fill the header inner height */
.site-header .custom-logo-link.brand-link{
  display:flex;
  align-items:stretch;
  height: calc(var(--header-height) - (var(--header-pad) * 2));
}
.site-header .custom-logo{
  height: 100% !important;
  width: auto !important;
  max-width: none !important; /* ignore 512px width attr */
  object-fit: contain;
}
.site-header .rt-brand-subtitle{ display:none !important; }
/* ===== Header logo sizing (single source of truth) ===== */
:root{ --header-height: 88px; --header-pad: 14px; }
body.scrolled .site-header{ --header-height: 72px; --header-pad: 10px; }

/* Bar + inner wrap */
.site-header{ min-height: var(--header-height); margin-bottom: 36px; }
.site-header .wrap{
  min-height: var(--header-height);
  padding-block: var(--header-pad);
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}

/* Customizer logo (custom-logo-link/custom-logo) uses our brand-link sizing */
.site-header .custom-logo-link.brand-link{ display:flex; align-items:stretch;
  height: calc(var(--header-height) - (var(--header-pad) * 2)); }
.site-header .custom-logo{ height: 100% !important; width: auto !important;
  max-width: none !important; object-fit: contain; }

/* Hide "Menu" text; show bars only; desktop hides toggle */
.nav-toggle{ font-size:0; line-height:0; }
@media (min-width:981px){ .nav-toggle{ display:none !important; } }
@media (max-width:980px){ .nav-toggle{ display:block !important; } }

/* Mobile stack: brand on row 1, controls (hamburger + CTA) row 2 */
@media (max-width:980px){
  .site-header .wrap{ position:relative; flex-direction:column; align-items:stretch; gap:12px; }
  .header-controls{ display:flex; justify-content:space-between; align-items:center; gap:12px; }
  .primary-nav{ position:static; }
  .primary-nav .menu{
    position:absolute; top:calc(100% + 6px); left:16px; width:min(78vw, 320px);
    display:none; flex-direction:column; gap:12px; padding:14px;
    background:#000; color:#fff; border:1px solid rgba(255,255,255,.08);
    border-radius:14px; box-shadow:0 18px 36px rgba(0,0,0,.35); z-index:1100;
    max-height:calc(100vh - 140px); overflow:auto;
  }
  .nav-open .primary-nav .menu{ display:flex; }
}
.site-header .rt-brand-subtitle{ display:none !important; }
/* ===== Home KPIs (carded) ===== */
.home-kpis{
  background:#fff;                /* white strip to separate from dark hero */
  padding: 28px 0;
}
.home-kpis .wrap{ max-width:1200px; margin:0 auto; padding:0 32px; }

.home-kpis__grid{
  list-style:none; margin:0; padding:0;
  display:grid; gap:16px;
  grid-template-columns: repeat(4, minmax(0,1fr));
}
@media (max-width: 980px){
  .home-kpis__grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .home-kpis__grid{ grid-template-columns: 1fr; }
}

.home-kpi__card{
  background:#fff;
  border:1px solid rgba(14,17,22,.10);
  border-radius:14px;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
  padding:18px 16px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  min-height:84px;
  text-align:center;
}
.home-kpi__num{
  font-weight:800;
  color:#0E1116;
  font-size: clamp(18px, 2.6vw, 22px);
  line-height:1.2;
}
.home-kpi__label{
  display:block;
  margin-top:6px;
  color: rgba(14,17,22,.80);
  font-size: clamp(14px, 2vw, 16px);
  line-height:1.35;
}

/* Optional: tighter white strip on tablets/phones */
@media (max-width:980px){
  .home-kpis{ padding:22px 0; }
}

/* If anchors jump here, keep them visible under sticky header */
.home-kpis{ scroll-margin-top: calc(var(--header-height, 88px) + 12px); }
/* ===== Home KPI Cards — WHITE cards, mobile-safe ===== */

/* Section wrapper (kept white so cards stand out) */
body .home-kpis{
  background:#fff;
  padding:24px 0;
  position:relative;
  z-index:2;
  scroll-margin-top: calc(var(--header-height, 88px) + 12px);
}
body .home-kpis .wrap{
  max-width:1200px; margin:0 auto; padding:0 20px;
}

/* Always render the grid (desktop / tablet / mobile) */
body .home-kpis__grid{
  list-style:none; margin:0; padding:0;
  display:grid !important;
  gap:14px;
  grid-template-columns: repeat(4, minmax(0,1fr));
}
@media (max-width:980px){
  body .home-kpis__grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width:560px){
  body .home-kpis__grid{ grid-template-columns: 1fr; }
}

/* Card style: WHITE card with subtle border + shadow */
body .home-kpi__card{
  background:#fff !important;
  color:#0E1116 !important;
  border:1px solid rgba(14,17,22,.12);
  border-radius:14px;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
  padding:16px 14px;
  min-height:80px;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  text-align:center;
}

/* Numbers + labels (lock colors on mobile) */
body .home-kpi__num{
  color:#0E1116 !important;
  font-weight:800;
  font-size:clamp(18px, 2.7vw, 22px);
  line-height:1.2;
}
body .home-kpi__label{
  color:rgba(14,17,22,.85) !important;
  margin-top:6px;
  font-size:clamp(14px, 2.1vw, 16px);
  line-height:1.35;
}

/* Space above cards so they don't clip the hero curve */
.hero + .home-kpis{ margin-top:12px; }

/* Kill legacy pill strip if it’s ever injected */
.home .home-trustbar,
.front-page .home-trustbar{ display:none !important; }
/* Normalize spacing below hero chips */
.hero__chips{
  display:flex; flex-wrap:wrap; gap:10px;
  justify-content:center;
  margin-bottom:12px;   /* add consistent bottom margin */
}
.hero-glass{
  margin-top:0;         /* remove any extra gap */
}
/* ===== Home KPI cards: fade-in on scroll (respects reduced motion) ===== */
@media (prefers-reduced-motion:no-preference){
  body .home-kpi__card{
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
    will-change: opacity, transform;
  }
  body .home-kpi__card.is-in{
    opacity: 1;
    transform: translateY(0);
  }

  /* Optional: tiny stagger for a premium feel */
  body .home-kpis__grid .home-kpi:nth-child(1) .home-kpi__card{ transition-delay: .02s; }
  body .home-kpis__grid .home-kpi:nth-child(2) .home-kpi__card{ transition-delay: .06s; }
  body .home-kpis__grid .home-kpi:nth-child(3) .home-kpi__card{ transition-delay: .10s; }
  body .home-kpis__grid .home-kpi:nth-child(4) .home-kpi__card{ transition-delay: .14s; }
}
/* Accessible skip link: hidden by default, visible on keyboard focus */
.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Show when focused (keyboard users) */
.skip-link:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  clip:auto;
  clip-path:none;
  padding:8px 12px;
  border-radius:8px;
  background:#0D1117;            /* dark */
  color:#fff;
  outline:2px solid var(--color-cyan, #22D4FD);
  z-index:2000;
}

/* If WP admin bar is visible, nudge it down a bit to avoid overlap */
.admin-bar .skip-link:focus{ top: 58px; } /* ~46–58px depending on device */
/* Home card number styling (matches existing look) */
body .home-kpi__card .kpi-num{
  color:#0E1116;          /* or #fff if you use gray cards */
  font-weight:800;
  font-size:clamp(18px, 2.7vw, 22px);
  line-height:1.2;
}
/* ===== Home KPI Cards: enforce card/grid on mobile too (white cards) ===== */
body .home-kpis{ background:#fff; padding:24px 0; position:relative; z-index:2; }
body .home-kpis .wrap{ max-width:1200px; margin:0 auto; padding:0 20px; }

/* Grid always renders */
body .home-kpis__grid{
  list-style:none; margin:0; padding:0;
  display:grid !important;
  gap:14px;
  grid-template-columns: repeat(4, minmax(0,1fr));
}
@media (max-width:980px){ body .home-kpis__grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width:560px){ body .home-kpis__grid{ grid-template-columns: 1fr; } }

/* White card with border + shadow */
body .home-kpi__card{
  background:#fff !important;
  color:#0E1116 !important;
  border:1px solid rgba(14,17,22,.12) !important;
  border-radius:14px !important;
  box-shadow:0 10px 24px rgba(0,0,0,.08) !important;
  padding:16px 14px !important;
  min-height:80px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
}

/* Number + label */
body .home-kpi__card .kpi-num{
  color:#0E1116 !important;
  font-weight:800; line-height:1.2;
  font-size:clamp(18px, 2.7vw, 22px);
}
body .home-kpi__label{
  color:rgba(14,17,22,.85) !important;
  margin-top:6px; line-height:1.35;
  font-size:clamp(14px, 2.1vw, 16px);
}

/* Fade-in (still respecting prefers-reduced-motion) */
@media (prefers-reduced-motion:no-preference){
  body .home-kpi__card{ opacity:0; transform:translateY(8px);
    transition:opacity .18s ease, transform .18s ease; will-change:opacity, transform; }
  body .home-kpi__card.is-in{ opacity:1; transform:translateY(0); }
}

/* A little space under hero */
.hero + .home-kpis{ margin-top:12px; }

/* Kill any legacy “trustbar” pills if JS ever injects them */
.home .home-trustbar, .front-page .home-trustbar{ display:none !important; }
/* ===== Accessibility: hide skip link visually (show on focus) ===== */
.skip-link{
  position:absolute !important;
  left:-9999px !important;
  top:auto !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}
.skip-link:focus{
  position:fixed !important;
  left:12px !important;
  top:12px !important;
  width:auto !important;
  height:auto !important;
  padding:10px 14px !important;
  background:#000 !important;
  color:#fff !important;
  border-radius:8px !important;
  z-index:2000 !important;
  outline:2px solid #22D4FD !important;
}

/* ===== Home KPI Cards — enforce card/grid on mobile too (white cards) ===== */
body .home-kpis{ background:#fff; padding:24px 0; position:relative; z-index:2; }
body .home-kpis .wrap{ max-width:1200px; margin:0 auto; padding:0 20px; }

/* Force grid at all sizes */
body .home-kpis__grid{
  list-style:none; margin:0; padding:0;
  display:grid !important;
  gap:14px !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
}
@media (max-width:980px){ body .home-kpis__grid{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; } }
@media (max-width:560px){ body .home-kpis__grid{ grid-template-columns: 1fr !important; } }

/* White card look */
body .home-kpi__card{
  background:#fff !important;
  color:#0E1116 !important;
  border:1px solid rgba(14,17,22,.12) !important;
  border-radius:14px !important;
  box-shadow:0 10px 24px rgba(0,0,0,.08) !important;
  padding:16px 14px !important;
  min-height:80px !important;
  display:flex !important; flex-direction:column !important;
  align-items:center !important; justify-content:center !important;
  text-align:center !important;
}

/* Number + label */
body .home-kpi__card .kpi-num{
  color:#0E1116 !important;
  font-weight:800 !important; line-height:1.2 !important;
  font-size:clamp(18px, 2.7vw, 22px) !important;
}
body .home-kpi__label{
  color:rgba(14,17,22,.85) !important;
  margin-top:6px !important; line-height:1.35 !important;
  font-size:clamp(14px, 2.1vw, 16px) !important;
}

/* Fade/slide in (prefers reduced motion respected) */
@media (prefers-reduced-motion:no-preference){
  body .home-kpi__card{ opacity:0; transform:translateY(8px);
    transition:opacity .18s ease, transform .18s ease; will-change:opacity, transform; }
  body .home-kpi__card.is-in{ opacity:1; transform:translateY(0); }
}

/* Space below hero */
.hero + .home-kpis{ margin-top:12px; }

/* Kill legacy “trustbar” if ever injected */
.home .home-trustbar, .front-page .home-trustbar{ display:none !important; }
/* Hide skip link visually; show when focused (a11y) */
.skip-link{
  position:absolute !important; left:-9999px !important; top:auto !important;
  width:1px !important; height:1px !important; overflow:hidden !important;
}
.skip-link:focus{
  position:fixed !important; left:12px !important; top:12px !important;
  width:auto !important; height:auto !important; padding:10px 14px !important;
  background:#000 !important; color:#fff !important; border-radius:8px !important;
  z-index:2000 !important; outline:2px solid #22D4FD !important;
}

/* ===== Home KPI Cards (white cards) — mobile-safe ===== */
body .home-kpis{ background:#fff; padding:24px 0; position:relative; z-index:2; }
body .home-kpis .wrap{ max-width:1200px; margin:0 auto; padding:0 20px; }

/* Always use CSS grid, all breakpoints */
body .home-kpis__grid{
  list-style:none; margin:0; padding:0;
  display:grid !important; gap:14px !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
}
@media (max-width:980px){ body .home-kpis__grid{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; } }
@media (max-width:560px){ body .home-kpis__grid{ grid-template-columns: 1fr !important; } }

/* White card look */
body .home-kpi__card{
  background:#fff !important; color:#0E1116 !important;
  border:1px solid rgba(14,17,22,.12) !important; border-radius:14px !important;
  box-shadow:0 10px 24px rgba(0,0,0,.08) !important;
  padding:16px 14px !important; min-height:80px !important;
  display:flex !important; flex-direction:column !important; align-items:center !important; justify-content:center !important;
  text-align:center !important;
}

/* Text */
body .home-kpi__card .kpi-num{
  color:#0E1116 !important; font-weight:800 !important; line-height:1.2 !important;
  font-size:clamp(18px, 2.7vw, 22px) !important;
}
body .home-kpi__label{
  color:rgba(14,17,22,.85) !important; margin-top:6px !important; line-height:1.35 !important;
  font-size:clamp(14px, 2.1vw, 16px) !important;
}

/* Fade/slide in (respect reduced motion) */
@media (prefers-reduced-motion:no-preference){
  body .home-kpi__card{
    opacity:0; transform:translateY(8px);
    transition:opacity .18s ease, transform .18s ease; will-change:opacity, transform;
  }
  body .home-kpi__card.is-in{ opacity:1; transform:translateY(0); }
}

/* Space below hero; kill old “trustbar” if ever injected */
.hero + .home-kpis{ margin-top:12px; }
.home .home-trustbar, .front-page .home-trustbar{ display:none !important; }
/* About page portrait */
.about__portrait {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.about__portrait-img {
  max-width: 360px;
  width: 100%;
  border-radius: 16px;   /* rounded corners */
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}

/* Stack on mobile */
@media (max-width: 980px){
  .about-grid {
    grid-template-columns: 1fr; /* portrait above text */
    gap: 20px;
    text-align: center;
  }
  .about__portrait-img {
    max-width: 260px;
    margin: 0 auto;
  }
}
/* About: two-column portrait + text (Elementor version) */
.about-grid{ display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; }
@media (max-width:980px){ .about-grid{ grid-template-columns:1fr; gap:20px; text-align:center; } }

.about__portrait-img{
  width:100%; max-width:360px; border-radius:16px; box-shadow:0 12px 32px rgba(0,0,0,.25);
}
@media (max-width:980px){ .about__portrait-img{ max-width:260px; margin:0 auto; } }

/* If you didn’t add the 'about-grid' class on the parent, target the two columns directly */
.elementor-page #about-clean .elementor-container > .elementor-column{ align-self:center; }

/* Credentials section: two lists, left-aligned, normalized to site body text */
#credentials .cols {
  display: grid;
  grid-template-columns: auto auto; /* shrink columns to content */
  justify-content: start;           /* left-align */
  gap: 40px;                        /* balanced column spacing */
}

#credentials ul {
  margin: 0;
  padding-left: 20px;
  list-style: disc;                 /* standard bullet style */
}

#credentials li {
  margin: 6px 0;                    /* standard site list spacing */
  font-size: 16px;                  /* match site body font */
  line-height: 1.5;                 /* consistent readability */
  color: #0E1116;                   /* base text color */
}

/* On mobile: stack neatly */
@media (max-width: 780px) {
  #credentials .cols {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
/* === Standard section heading rhythm === */
.section__header h1,
.section__header h2,
.page-slug-about h1,
.page-slug-about h2 {
  font-family: var(--font-heading, Inter, system-ui);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.2;       /* tighter than default */
  color: #0E1116;         /* near-black */
  margin-top: 0;          /* remove Elementor extra */
  margin-bottom: 12px;    /* matches rest of site */
}
/* === Global heading standardization === */
h1, h2 {
  font-family: var(--font-heading, Inter, system-ui);
  font-weight: 800;
  line-height: 1.2;
  color: #0E1116;
}

/* =========================
   BOOK — Title + Tagline rhythm
   ========================= */
.rt-book-title{
  margin: 0;                /* kill default h1 margins */
  line-height: 1.1;
}

.rt-book-tagline{
  margin: 4px 0 16px;       /* snug under title */
  line-height: 1.2;
  color: rgba(14,17,22,.75);
}

/* Specific for section titles */
.section__header h1,
.section__header h2,
.page-slug-about h1,
.page-slug-about h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 36px); /* responsive scaling */
}
/* === Global heading rhythm & color === */
h1, h2, h3{
  font-family: var(--font-heading, Inter, system-ui);
  font-weight: 800;
  line-height: 1.2;
  color: #0E1116;
  margin-top: 0;
  margin-bottom: 12px;
}

/* Section titles (About, Services, Credentials, etc.) */
.section__header h1,
.section__header h2{
  margin-bottom: 12px;
}
/* === Contact page: Connect card cleanup === */
.contact__aside .connect{
  background:#fff; border:1px solid rgba(14,17,22,.10);
  border-radius:14px; padding:20px; box-shadow:0 6px 20px rgba(0,0,0,.08);
}

/* Heading */
.contact__aside .connect .about__heading{
  color:#0E1116 !important;
  font-weight:800;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height:1.2;
  margin:0 0 8px;
}

/* Link list */
.contact__aside .connect .linklist{
  list-style:none;
  margin:8px 0 0;
  padding:0;
}
.contact__aside .connect .linklist li{ margin:6px 0; }
.contact__aside .connect .linklist a{
  color:#0D66FF; text-decoration:none;
}
.contact__aside .connect .linklist a:hover{ color:#3482F6; }

/* CTA spacing */
.contact__aside .connect .connect-cta{ margin-top:12px; }

/* If Elementor is outputting bullets elsewhere, normalize */
.contact__aside .connect ul{ list-style: none; padding-left: 0; }
/* Keep hero headings light on dark hero */
.hero .hero__title,
.hero h1.hero__title{
  color: var(--color-light, #F5F7FA) !important;
}

/* Tagline stays readable on dark */
.hero .hero__tagline{
  color: rgba(245,247,250,.88) !important;
}
.hero .hero__title{
  font-size: clamp(36px, 6vw, 64px);
  margin-bottom: 20px;
}
/* === Hero heading: visible on dark, responsive on all screens === */
.hero .hero__title,
.hero h1.hero__title{
  color: var(--color-light, #F5F7FA) !important;   /* force light on dark */
  font-weight: 800;
  font-size: clamp(32px, 8vw, 64px);               /* mobile → desktop */
  line-height: 1.1;                                 /* tighter, bold look */
  margin: 0 0 12px;                                 /* consistent rhythm */
  text-shadow: 0 2px 12px rgba(0,0,0,.35);          /* subtle lift on canvas */
}

/* Tagline stays readable on dark hero */
.hero .hero__tagline{
  color: rgba(245,247,250,.88) !important;
  font-size: clamp(16px, 2.6vw, 22px);
  margin-bottom: 18px;
}

/* Mobile padding so the title doesn't crowd the sticky header */
@media (max-width: 560px){
  .hero .hero__inner{
    padding: 72px 16px 56px;     /* top space under header, safe side paddings */
  }
}
/* === Hero heading: visible on dark, responsive on all screens === */
.hero .hero__title,
.hero h1.hero__title{
  color: var(--color-light, #F5F7FA) !important;   /* force light on dark */
  font-weight: 800;
  font-size: clamp(36px, 6vw, 72px);               /* bigger on desktop, stronger min on mobile */
  line-height: 1.1;                                 /* clean vertical rhythm */
  margin: 0 0 14px;                                 /* consistent spacing under heading */
  text-shadow: 0 2px 14px rgba(0,0,0,.35);          /* lift off constellation bg */
}

/* Tagline: readable across devices */
.hero .hero__tagline{
  color: rgba(245,247,250,.88) !important;
  font-size: clamp(18px, 2.5vw, 24px);              /* scales elegantly */
  margin-bottom: 20px;
}

/* Mobile safe padding under sticky header */
@media (max-width: 560px){
  .hero .hero__inner{
    padding: 80px 16px 56px;    /* top space under header, keep safe sides */
  }
}
/* === Connect card refinements === */
.connect {
  padding: 20px 24px;          /* equal padding left/right */
}

.connect h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: 700;
}

.connect .linklist {
  list-style: none;
  padding-left: 0;             /* remove browser default indent */
  margin: 0;
}

.connect .linklist li {
  margin: 6px 0;
  padding-left: 0;             /* align text flush with heading */
}

.connect .linklist a {
  text-decoration: none;
  color: #0D66FF;
}

.connect .linklist a:hover {
  color: #3482F6;
}
/* === Connect card raised effect === */
.connect {
  padding: 20px 24px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);   /* default raised look */
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.connect:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);   /* stronger lift on hover */
  transform: translateY(-2px);               /* moves card up slightly */
}

.connect h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: 700;
}

.connect .linklist {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.connect .linklist li {
  margin: 6px 0;
  padding-left: 0;
}

.connect .linklist a {
  text-decoration: none;
  color: #0D66FF;
  transition: color 0.2s ease;
}

.connect .linklist a:hover {
  color: #3482F6;
}
/* Ensure the CV section isn't hidden under the sticky header */
#cv-request { scroll-margin-top: calc(var(--header-height, 88px) + 12px); }

/* Subtle highlight when auto-scrolled */
#cv-request.highlighted {
  outline: 2px solid rgba(34,212,253,.50);
  outline-offset: 2px;
  transition: outline-color .8s ease;
}
/* Ensure CV card doesn't tuck under sticky header (CSS fallback) */
#cv-request { scroll-margin-top: calc(var(--header-height, 88px) + 12px); }

/* Brief visual cue on arrival */
#cv-request.highlighted {
  outline: 2px solid rgba(34,212,253,.50);
  outline-offset: 2px;
  transition: outline-color .8s ease;
}

/* Footer headings should be white on the dark footer */
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer .about__heading {
  color: var(--color-light, #F5F7FA) !important;
}
/* Sticky-header aware anchor for Request CV */
:root{
  --header-height: 88px;         /* you already use this; adjust if needed */
  --adminbar-height: 0px;        /* updated by JS when logged in */
}
#cv-request-anchor{
  position: relative;
  /* CSS fallback if JS hasn't measured header yet */
  scroll-margin-top: calc(var(--header-height, 88px) + var(--adminbar-height, 0px) + 12px);
}

/* Brief visual cue on arrival (optional) */
#rt-cv-request.highlighted{
  outline: 2px solid rgba(34,212,253,.5);
  outline-offset: 2px;
  transition: outline-color .8s ease;
}

/* Footer headings white on dark */
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer .about__heading{
  color: var(--color-light, #F5F7FA) !important;
}
.case__hero .kpis{display:flex;gap:8px;flex-wrap:wrap;margin-top:.5rem}
.kpi{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);padding:.35rem .6rem;border-radius:999px;font-weight:600}
.lead{opacity:.9;margin-top:.25rem}
section{margin:1.1rem 0}
/* =========================================================
   PHASE 18 — KPI CARDS CENTERING (FLEX FALLBACK)
   - Keeps all existing visuals.
   - Only changes layout to center the 3 KPI cards.
   ========================================================= */

.home-kpis__grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  align-items: stretch;
  gap: 16px !important;
  list-style: none;
  margin: 0 auto !important;
  padding: 0;
}

.home-kpis__grid .home-kpi {
  flex: 0 1 260px;
  display: flex;
  justify-content: center;
}

.home-kpis__grid .home-kpi__card {
  width: 100%;
  max-width: 260px;
}

/* Mobile: allow full-width cards when space is tight */
@media (max-width: 560px) {
  .home-kpis__grid .home-kpi {
    flex: 1 1 100%;
  }
  .home-kpis__grid .home-kpi__card {
    max-width: 100%;
  }
}
/* =========================================================
   PHASE 18 — KPI CENTERING (GRID, VERSION B)
   - Keep existing card look.
   - Center the 3 cards as a tight group.
   ========================================================= */

body .home-kpis__grid {
  display: grid !important;
  grid-auto-flow: column;
  grid-template-columns: repeat(3, minmax(260px, auto)) !important;
  width: max-content !important;
  margin: 0 auto !important;
  justify-content: center;
  gap: 16px !important;
}

/* Tablet / mobile: fall back to wrapping behavior */
@media (max-width: 980px) {
  body .home-kpis__grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
  }
}

@media (max-width: 560px) {
  body .home-kpis__grid {
    grid-template-columns: 1fr !important;
  }
}
/* Books: Single Book layout (CPT) */
.single-book {
  padding-top: 32px;
  padding-bottom: 48px;
}

.single-book .book-header {
  margin-bottom: 18px;
}

.single-book .book-title {
  margin: 0 0 6px 0;
  line-height: 1.1;
}

.single-book .book-subtitle {
  margin: 0;
  opacity: 0.75;
}

.single-book .book-layout {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 28px;
  align-items: start;
}

.single-book .book-cover img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile */
@media (max-width: 900px) {
  .single-book .book-layout {
    grid-template-columns: 1fr;
  }
}
