/* ============================================================
   Blue Jay Business Solutions — component styles
   (design tokens live in theme.json; this file handles the
   things core blocks cannot do natively)
   ============================================================ */

:root{
  --bj-navy:#0D1D3D; --bj-blue:#115CA8; --bj-sky:#2D8FD3; --bj-sky-light:#7FC4F5;
  --bj-steel:#8FB6D6; --bj-wash:#DCE6F2; --bj-paper:#F6F9FD; --bj-ink:#1C2A3D;
  --bj-line:#E6EDF6; --bj-muted:#5E6E80;
  --bj-shadow-s:0 2px 10px rgba(18,54,95,.06);
  --bj-shadow-m:0 22px 50px -22px rgba(18,54,95,.32);
}

/* ---------- Sticky / transparent header with scroll swap ---------- */
.site-header{position:fixed;top:0;left:0;right:0;z-index:100;background:transparent;
  border-bottom:1px solid transparent;transition:background .3s,border-color .3s,box-shadow .3s}
.site-header.is-stuck{background:#fff;border-color:var(--bj-line);box-shadow:0 6px 22px -16px rgba(18,54,95,.55)}
/* logo swap */
.bj-logo{display:inline-flex;align-items:center;flex-shrink:0;line-height:0}
.bj-logo img{height:42px;width:auto;max-width:none;display:block}
.bj-logo .bj-logo-blue{display:none}
.site-header.is-stuck .bj-logo .bj-logo-white{display:none}
.site-header.is-stuck .bj-logo .bj-logo-blue{display:block}
/* nav link colours: white over hero, navy when stuck */
.site-header .wp-block-navigation a{color:#fff;font-family:"Plus Jakarta Sans",sans-serif;font-weight:600}
.site-header.is-stuck .wp-block-navigation a{color:var(--bj-navy)}
.site-header.is-stuck .wp-block-navigation a:hover{color:var(--bj-blue)}
/* keep the header bar comfortable height */
.site-header > .wp-block-group{min-height:82px}

/* clear the fixed header: every page opens with a dark hero/banner that includes this padding */
.bj-hero,.bj-page-hero{padding-top:9rem !important}

/* ---------- Hero / dark banners ---------- */
.bj-hero,.bj-page-hero{position:relative;overflow:hidden;color:#fff}
.bj-hero *,.bj-page-hero *{}
.bj-hero h1,.bj-page-hero h1,.bj-hero h2,.bj-page-hero h2{color:#fff}
.bj-hero::before,.bj-page-hero::before{content:"";position:absolute;inset:0;
  background-image:radial-gradient(rgba(255,255,255,.045) 1px,transparent 1.4px);
  background-size:26px 26px;mask-image:linear-gradient(to bottom,#000,transparent 92%);pointer-events:none}
.bj-hero > *,.bj-page-hero > *{position:relative;z-index:1}
.bj-eyebrow{font-family:"Plus Jakarta Sans",sans-serif;font-weight:700;font-size:.82rem;
  letter-spacing:.2em;text-transform:uppercase;color:#fff}
.bj-accent{color:var(--bj-sky-light)}

/* ---------- Section label (light pages) ---------- */
.bj-kicker{display:inline-block;font-family:"Plus Jakarta Sans",sans-serif;font-weight:700;
  font-size:.76rem;letter-spacing:.16em;text-transform:uppercase;color:var(--bj-blue);
  background:var(--bj-wash);padding:7px 14px;border-radius:999px}

/* ---------- Cards (why-choose / programs) ---------- */
.bj-card{background:#fff;border:1px solid var(--bj-line);border-radius:18px;padding:30px 28px;
  height:100%;transition:transform .2s,box-shadow .2s,border-color .2s;position:relative;overflow:hidden}
.bj-card::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;
  background:linear-gradient(90deg,var(--bj-sky),var(--bj-sky-light));transform:scaleX(0);transform-origin:left;transition:transform .3s}
.bj-card:hover{transform:translateY(-5px);box-shadow:var(--bj-shadow-m);border-color:#cfe0f6}
.bj-card:hover::before{transform:scaleX(1)}
.bj-card .bj-ic{width:54px;height:54px;border-radius:14px;background:var(--bj-wash);
  display:flex;align-items:center;justify-content:center;margin-bottom:14px;color:var(--bj-blue)}
.bj-card .bj-ic svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:1.8}

/* ---------- Industry tiles ---------- */
.bj-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.bj-tile{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--bj-line);
  border-radius:13px;padding:15px 16px;font-family:"Plus Jakarta Sans",sans-serif;font-weight:600;
  color:var(--bj-navy);transition:.18s}
.bj-tile:hover{transform:translateY(-3px);box-shadow:var(--bj-shadow-s);border-color:#cfe0f6;color:var(--bj-blue)}
.bj-tile .dot{width:8px;height:8px;border-radius:50%;background:var(--bj-steel);flex:0 0 8px}
@media(max-width:900px){.bj-tiles{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.bj-tiles{grid-template-columns:1fr}}

/* chips (trust bar) */
.bj-chips{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.bj-chip{font-family:"Plus Jakarta Sans",sans-serif;font-weight:600;font-size:.9rem;color:#dbe7f5;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);padding:9px 16px;border-radius:999px}

/* ---------- Comparison ---------- */
.bj-compare{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.bj-ccard{border-radius:18px;padding:32px 30px;border:1px solid var(--bj-line);background:#fff}
.bj-ccard.them{background:#fbfcfe}
.bj-ccard.us{border-color:#c9ddfb;box-shadow:var(--bj-shadow-m)}
.bj-ccard h3{margin-top:0}
.bj-ccard ul{list-style:none;margin:0;padding:0}
.bj-ccard li{display:flex;gap:11px;align-items:flex-start;padding:12px 0;border-top:1px solid var(--bj-line);font-size:1rem}
.bj-ccard li:first-child{border-top:0}
.bj-ccard.them li{color:var(--bj-muted)}
.bj-ccard.them li::before{content:"–";color:#aab4c0;font-weight:700}
.bj-ccard.us li{color:var(--bj-ink)}
.bj-ccard.us li::before{content:"✓";color:var(--bj-blue);font-weight:700}
@media(max-width:760px){.bj-compare{grid-template-columns:1fr}}

/* ---------- Images ---------- */
.bj-image img,figure.bj-image img{border-radius:18px;box-shadow:var(--bj-shadow-m);display:block;width:100%;height:auto;object-fit:cover}

/* ---------- White card (forms float on dark panels) ---------- */
.bj-formcard{background:#fff;border-radius:22px;box-shadow:0 40px 90px -34px rgba(18,54,95,.5);
  padding:30px;color:var(--bj-ink)}
.bj-formcard h3{margin-top:0}

/* ---------- Contact Form 7 ---------- */
.wpcf7 .bj-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.wpcf7 label{display:block;font-family:"Plus Jakarta Sans",sans-serif;font-weight:600;font-size:.78rem;
  color:var(--bj-navy);margin-bottom:5px}
.wpcf7 input[type=text],.wpcf7 input[type=tel],.wpcf7 input[type=email],.wpcf7 input[type=number],
.wpcf7 select,.wpcf7 textarea{width:100%;padding:12px 13px;border:1.5px solid var(--bj-line);border-radius:11px;
  font:inherit;font-size:.94rem;background:#fbfdff;color:var(--bj-ink)}
.wpcf7 input:focus,.wpcf7 select:focus,.wpcf7 textarea:focus{outline:none;border-color:var(--bj-sky);
  box-shadow:0 0 0 4px rgba(45,143,211,.15)}
.wpcf7 .wpcf7-submit{width:100%;background:var(--bj-sky);color:#fff;border:0;border-radius:999px;
  padding:15px;font-family:"Plus Jakarta Sans",sans-serif;font-weight:700;font-size:1rem;cursor:pointer;transition:.18s}
.wpcf7 .wpcf7-submit:hover{background:var(--bj-blue)}
/* radio "pills" for the Get-a-Quote page */
.bj-pills .wpcf7-list-item{margin:0 8px 8px 0}
.bj-pills input[type=radio]{position:absolute;opacity:0}
.bj-pills .wpcf7-list-item label{display:inline-flex;align-items:center;border:1.5px solid var(--bj-line);
  background:#fbfdff;border-radius:999px;padding:9px 17px;cursor:pointer;font-size:.92rem;margin:0}
.bj-pills input[type=radio]:checked + span,
.bj-pills .wpcf7-list-item input[type=radio]:checked ~ label{background:var(--bj-sky);color:#fff;border-color:var(--bj-sky)}

/* ---------- footer ---------- */
.site-footer{background:var(--bj-navy);color:#acc0d8}
.site-footer a{color:#acc0d8}
.site-footer a:hover{color:#fff}
.site-footer h2,.site-footer h3,.site-footer h4{color:#fff}
.site-footer .bj-logo img{height:46px}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  .bj-card,.bj-tile,.bj-image img{transition:none}
}

/* ---------- pattern buttons ---------- */
.bj-hero .is-style-outline .wp-block-button__link,.bj-btn-light .wp-block-button__link{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.45)}
.bj-hero .is-style-outline .wp-block-button__link:hover,.bj-btn-light .wp-block-button__link:hover{background:rgba(255,255,255,.12);color:#fff}
.bj-btn-white .wp-block-button__link{background:#fff;color:var(--bj-blue)}
.bj-btn-white .wp-block-button__link:hover{background:#fff;color:var(--bj-blue);transform:translateY(-2px)}

/* ---------- checklists ---------- */
.bj-checks{list-style:none;padding:0;margin:1.2rem 0}
.bj-checks li{position:relative;padding-left:34px;margin-bottom:13px;color:#2a3744;font-size:1.02rem}
.bj-checks li::before{content:"\2713";position:absolute;left:0;top:1px;width:24px;height:24px;border-radius:50%;
  background:var(--bj-sky);color:#fff;font-size:13px;font-weight:700;line-height:24px;text-align:center}
.bj-bullets{list-style:none;padding:0;margin:1rem 0}
.bj-bullets li{position:relative;padding-left:26px;margin-bottom:10px}
.bj-bullets li::before{content:"\2713";position:absolute;left:0;color:#7ee0a8;font-weight:700}

/* ---------- footer link lists ---------- */
.site-footer .bj-foot-list{list-style:none;padding:0;margin:0}
.site-footer .bj-foot-list li{padding:5px 0}

/* ---------- header spacing ---------- */
.site-header .wp-block-navigation{--wp--style--block-gap:0}
.site-header .wp-block-navigation .wp-block-navigation-item{margin:0 2px}

/* ============================================================
   LIVE FIXES (v2) — nav color, section gaps, CF7 sizing, footer
   ============================================================ */

/* Nav links: white over the hero, navy once the bar turns white */
.site-header .wp-block-navigation a,
.site-header .wp-block-navigation .wp-block-navigation-item__content{color:#ffffff !important}
.site-header.is-stuck .wp-block-navigation a,
.site-header.is-stuck .wp-block-navigation .wp-block-navigation-item__content{color:var(--bj-navy) !important}
.site-header.is-stuck .wp-block-navigation a:hover{color:var(--bj-blue) !important}

/* Kill the page-background slivers between full-bleed sections */
.wp-block-post-content > *{margin-top:0 !important;margin-bottom:0 !important}

/* Contact Form 7 — tighten to match the compact mockup */
.wpcf7 .wpcf7-form > p,
.wpcf7 .bj-row{margin:0 0 12px !important}
.wpcf7 label{margin-bottom:4px;line-height:1.2}
.wpcf7 input[type=text],.wpcf7 input[type=tel],.wpcf7 input[type=email],.wpcf7 input[type=number],
.wpcf7 select,.wpcf7 textarea{padding:10px 12px;font-size:.92rem;line-height:1.3}
.wpcf7 .wpcf7-submit{padding:13px;margin-top:4px}
.wpcf7 .bj-consent{margin:10px 0 0 !important}
.wpcf7 .bj-consent small{font-size:.72rem;color:var(--bj-muted);line-height:1.4}
.wpcf7 .wpcf7-spinner{margin:0 0 0 8px}
.bj-formcard{padding:26px 26px}
.bj-formcard h3{margin-top:0}
/* the hidden CF7 fieldset must not add height */
.wpcf7 .hidden-fields-container{display:none !important}

/* Footer links — light grey, no underline (match mockup) */
.site-footer a{color:#acc0d8 !important;text-decoration:none !important}
.site-footer a:hover{color:#ffffff !important}
.site-footer .bj-foot-list{list-style:none;padding:0;margin:0}
.site-footer .bj-foot-list li{padding:5px 0}
.site-footer .bj-foot-list li::marker{content:""}

/* ============================================================
   LIVE FIXES (v3) — flush header over hero, centered nav
   ============================================================ */
/* Remove the ~20px gap above <main> so the hero sits at the very top.
   The transparent header then shows SOLID BLUE (the hero) until scrolled,
   then turns white when stuck — no more half-white strip. */
.wp-site-blocks{padding-top:0 !important}
.wp-site-blocks > *{margin-block-start:0 !important;margin-top:0 !important}
main.wp-block-group{margin-top:0 !important}
/* vertically center the logo + nav in the bar */
.site-header .wp-block-group.is-layout-flex{align-items:center}

/* ============================================================
   LIVE FIXES (v4) — nav phone + hero form details (match mockup)
   ============================================================ */
.bj-navphone{display:inline-flex;align-items:center;gap:7px;font-family:"Plus Jakarta Sans",sans-serif;
  font-weight:700;font-size:.95rem;color:#fff !important;text-decoration:none;margin:0 6px;white-space:nowrap}
.bj-navphone svg{width:16px;height:16px;stroke:#7fc4f5;fill:none;stroke-width:2}
.site-header.is-stuck .bj-navphone{color:var(--bj-navy) !important}
.site-header.is-stuck .bj-navphone svg{stroke:var(--bj-blue)}

.bj-hero .bj-formcard{position:relative}

/* red required asterisk */
.wpcf7 .bj-req{color:#e23b3b;font-weight:700}

/* "Secure & confidential" footer line */
.wpcf7 .bj-secure{display:flex;align-items:center;justify-content:center;gap:8px;margin:13px 0 0;
  font-family:"Plus Jakarta Sans",sans-serif;font-weight:600;font-size:.8rem;color:var(--bj-muted)}
.wpcf7 .bj-secure svg{width:16px;height:16px;stroke:var(--bj-blue);fill:none;stroke-width:2;flex:0 0 16px}

/* arrow on the hero primary button (Get a Free Quote) */
.bj-hero .wp-block-buttons .wp-block-button:first-child .wp-block-button__link::after{content:" \2192";margin-left:.3em}

/* ============================================================
   LIVE FIXES (v5) — vertically center the nav bar content
   (content row was top-aligned in a taller bar; button hugged top)
   ============================================================ */
.site-header > .wp-block-group{min-height:0 !important}
.site-header .wp-block-group.is-layout-flex{align-items:center !important;min-height:82px}

/* section heading (left-aligned, used on inner pages) */
.bj-ghead{font-size:1.5rem !important;margin-top:0 !important;margin-bottom:.4rem !important}

/* ============================================================
   LIVE FIXES (v6) — DESIGN PARITY with mockup
   (fluid typography turned OFF in theme.json; pin remaining specifics)
   ============================================================ */
.site-header .wp-block-navigation a{font-size:.95rem !important;font-weight:600}
.site-header .wp-block-button__link{font-size:.95rem !important;padding:10px 20px !important}
.bj-formcard h3{font-size:1.5rem !important;line-height:1.2}
.wp-block-post-content h2.has-xx-large-font-size{line-height:1.1}
body.admin-bar .site-header{top:32px}
@media screen and (max-width:782px){body.admin-bar .site-header{top:46px}}

/* ============================================================
   LIVE FIXES (v7) — forms, buttons, footer (match mockup)
   ============================================================ */
/* CF7 auto-paragraph wraps each 2-col row's fields in one <p>; make that the grid */
.wpcf7 .bj-row{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:0 0 13px}
.wpcf7 .bj-row > p{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:0}
.wpcf7 .bj-row > p > br{display:none}
.wpcf7 form > p{margin:0 0 13px}
/* button variants — mockup: section CTAs navy on light bg, white on dark bg */
.wp-block-button.bj-btn-navy .wp-block-button__link{background:#0D1D3D !important;color:#fff !important;border-color:#0D1D3D !important}
.wp-block-button.bj-btn-navy .wp-block-button__link:hover{background:#1A3A66 !important}
.wp-block-button.bj-btn-white .wp-block-button__link{background:#fff !important;color:#0D1D3D !important;border-color:#fff !important}
.wp-block-button.bj-btn-white .wp-block-button__link:hover{background:#eef4fa !important;color:#0D1D3D !important}
/* footer divider spans full content width (was a 100px centred separator) */
.site-footer .wp-block-separator{width:100% !important;max-width:100% !important;margin:18px 0 16px !important;border:0 !important;height:1px;opacity:1}

/* ============================================================
   LIVE FIXES (v8) — Contact page (cards + form + map)
   ============================================================ */
.bj-cgrid{display:grid;grid-template-columns:1fr 1.1fr;gap:48px;align-items:start}
.bj-cgrid > *{margin:0}
@media(max-width:860px){.bj-cgrid{grid-template-columns:1fr;gap:32px}}
.bj-cinfo{background:#fff;border:1px solid var(--bj-line);border-radius:20px;padding:24px 26px;display:flex;gap:15px;align-items:flex-start;margin-bottom:16px;box-shadow:var(--bj-shadow-s)}
.bj-cinfo .ic{flex:0 0 48px;width:48px;height:48px;border-radius:12px;background:var(--bj-wash);display:flex;align-items:center;justify-content:center}
.bj-cinfo .ic svg{width:22px;height:22px;stroke:var(--bj-blue);fill:none;stroke-width:2}
.bj-cinfo b{font-family:"Plus Jakarta Sans",sans-serif;color:var(--bj-navy);display:block;font-size:1.04rem;margin-bottom:3px}
.bj-cinfo span,.bj-cinfo a{color:var(--bj-muted);font-size:.96rem;display:block;text-decoration:none}
.bj-hours{list-style:none;padding:0;margin:4px 0 0}
.bj-hours li{display:flex;justify-content:space-between;gap:20px;padding:8px 0;border-top:1px solid var(--bj-line);color:var(--bj-muted);font-size:.95rem}
.bj-hours li:first-child{border-top:0}
.bj-hours li b{color:var(--bj-navy);font-weight:600;font-family:"Plus Jakarta Sans",sans-serif;display:inline;margin:0;font-size:.95rem}
.bj-formcard-lg{padding:36px !important}
.bj-formcard-lg h3{font-size:1.4rem !important;margin:0 0 2px}
.bj-mapph{border-radius:20px;min-height:300px;border:1px solid var(--bj-line);background:radial-gradient(120% 120% at 100% 0%,rgba(17,92,168,.10),transparent 55%),linear-gradient(150deg,#eef3fa,#e1ebf6);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--bj-muted)}
.bj-mapph svg{width:34px;height:34px;stroke:var(--bj-blue);fill:none;stroke-width:1.4;opacity:.65}
.bj-mapph .chip{font-family:"Plus Jakarta Sans",sans-serif;font-weight:600;font-size:.78rem;color:var(--bj-muted);background:#fff;border:1px solid var(--bj-line);padding:6px 13px;border-radius:999px}

/* ============================================================
   LIVE FIXES (v9) — About page (split, cards, help-band, CTA strip)
   ============================================================ */
.bj-split{display:grid;grid-template-columns:1fr 1fr;gap:62px;align-items:center}
.bj-split .bj-copy p{color:var(--bj-muted)}
@media(max-width:860px){.bj-split{grid-template-columns:1fr;gap:34px}}
.bj-prog{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:38px}
@media(max-width:860px){.bj-prog{grid-template-columns:1fr}}
.bj-prog .bj-card h3{margin:0 0 8px;font-size:1.2rem}
.bj-prog .bj-card p{color:var(--bj-muted);font-size:.97rem;margin:0}
.bj-helpband{border-radius:20px;overflow:hidden;background:radial-gradient(600px 300px at 100% -30%,rgba(17,92,168,.4),transparent 60%),linear-gradient(160deg,var(--bj-navy),#0e2a49);color:#fff;padding:46px 44px}
.bj-helpband h2{color:#fff;margin:0 0 6px}
.bj-helpband .lead{color:#c5d6ea;max-width:680px;margin:0}
.bj-hl-list{list-style:none;padding:0;margin:18px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.bj-hl-list li{display:flex;gap:11px;align-items:flex-start;color:#d6e2f0}
.bj-hl-list li .ck{flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:rgba(126,224,168,.2);display:flex;align-items:center;justify-content:center;margin-top:2px}
.bj-hl-list li .ck svg{width:13px;height:13px;stroke:#7ee0a8;fill:none;stroke-width:3}
@media(max-width:680px){.bj-hl-list{grid-template-columns:1fr}}
.bj-cta-strip{border-radius:0;background:radial-gradient(700px 300px at 80% 0%,rgba(255,255,255,.14),transparent 60%),linear-gradient(135deg,var(--bj-sky),var(--bj-blue));color:#fff;text-align:center;padding:66px 28px}
.bj-cta-strip h2{color:#fff;margin:0 0 10px}
.bj-cta-strip p{color:rgba(255,255,255,.92);max-width:600px;margin:0 auto 24px;font-size:1.08rem}
/* white button inside the dark help-band */
.bj-helpbtn{display:inline-flex;align-items:center;gap:.5rem;background:#fff;color:var(--bj-navy);font-family:"Plus Jakarta Sans",sans-serif;font-weight:700;font-size:1rem;padding:13px 26px;border-radius:999px;text-decoration:none;transition:.18s}
.bj-helpbtn:hover{background:#eef4fa;transform:translateY(-2px)}

/* ============================================================
   LIVE FIXES (v10) — form field box-sizing (fields were overlapping)
   ============================================================ */
.wpcf7 input,.wpcf7 select,.wpcf7 textarea{box-sizing:border-box}
.bj-cgrid input,.bj-cgrid select,.bj-cgrid textarea{box-sizing:border-box}

/* ============================================================
   LIVE FIXES (v11) — guarantee 96px section padding (mockup = 6rem)
   Some page content stored 5rem inline before patterns were corrected
   and didn't regenerate; force the content sections to 6rem here.
   (Excludes hero/contact panel which use bj-hero, and the navy/CTA bands.)
   ============================================================ */
.wp-block-post-content > .wp-block-group.alignfull[style*="padding-top:5rem"]:not(.bj-hero){padding-top:6rem !important;padding-bottom:6rem !important}
/* footer tagline under the logo */
.bj-foot-tagline{font-family:"Plus Jakarta Sans",sans-serif;font-style:italic;color:#8fb6d6;font-size:.95rem;margin:10px 0 0;font-weight:600}

/* ============================================================
   BLOG (v12) — listing cards, single post, sticky sidebar
   ============================================================ */
/* --- listing: post cards (blog home / category / tag) --- */
.bj-postgrid{gap:32px !important}
.bj-postcard{background:#fff;border:1px solid var(--bj-line);border-radius:18px;overflow:hidden;box-shadow:var(--bj-shadow-s);transition:transform .2s,box-shadow .2s,border-color .2s;height:100%;display:flex;flex-direction:column;padding:0 !important}
.bj-postcard:hover{transform:translateY(-5px);box-shadow:var(--bj-shadow-m);border-color:#cfe0f6}
.bj-postcard .wp-block-post-featured-image{margin:0}
.bj-postcard .wp-block-post-featured-image a,.bj-postcard .wp-block-post-featured-image img{display:block;width:100%}
.bj-postcard .wp-block-post-featured-image img{height:240px;object-fit:cover}
.bj-pc-body{padding:24px 26px 28px !important;display:flex;flex-direction:column;gap:11px;flex:1}
.bj-postcard .wp-block-post-terms{font-family:"Plus Jakarta Sans",sans-serif;font-weight:700;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--bj-blue);margin:0}
.bj-postcard .wp-block-post-terms a{color:var(--bj-blue);text-decoration:none}
.bj-postcard .wp-block-post-title{margin:0;font-size:1.35rem;line-height:1.25}
.bj-postcard .wp-block-post-title a{color:var(--bj-navy);text-decoration:none}
.bj-postcard .wp-block-post-title a:hover{color:var(--bj-blue)}
.bj-postcard .wp-block-post-excerpt{margin:0;color:var(--bj-muted);font-size:.98rem;line-height:1.6}
.bj-postcard .wp-block-post-excerpt__more-link{color:var(--bj-blue);font-weight:600;text-decoration:none;display:inline-block;margin-top:4px}
.bj-postcard .wp-block-post-date{margin:6px 0 0;color:#677687;font-size:.84rem}
.wp-block-query-pagination a,.wp-block-query-pagination .current{color:var(--bj-navy);font-family:"Plus Jakarta Sans",sans-serif;font-weight:600}
.wp-block-query-pagination .current{color:var(--bj-blue)}

/* --- single post --- */
.bj-single-img{margin:0 0 2.5rem !important}
.bj-single-img img{width:100%;max-height:460px;object-fit:cover;border-radius:20px;box-shadow:var(--bj-shadow-m)}
.bj-blog-wrap{gap:52px !important;align-items:flex-start}
.bj-article{font-size:1.08rem;line-height:1.75;color:#2a3744}
.bj-article > *{margin-top:0;margin-bottom:1.3rem}
.bj-article h2{font-size:1.75rem;line-height:1.2;margin:2.4rem 0 .8rem;color:var(--bj-navy)}
.bj-article h3{font-size:1.32rem;margin:1.9rem 0 .6rem;color:var(--bj-navy)}
.bj-article a{color:var(--bj-blue);text-decoration:underline}
.bj-article ul,.bj-article ol{margin:0 0 1.3rem;padding-left:1.4rem}
.bj-article li{margin-bottom:.55rem}
.bj-article blockquote{border-left:4px solid var(--bj-sky);background:#eff4fa;margin:1.8rem 0;padding:1.1rem 1.5rem;border-radius:0 12px 12px 0;color:var(--bj-navy)}
.bj-article blockquote p{margin:0}

/* --- sticky sidebar --- */
.bj-blog-aside{position:sticky;top:104px;display:flex;flex-direction:column;gap:22px}
.bj-aside-card{background:#fff;border:1px solid var(--bj-line);border-radius:18px;padding:26px;box-shadow:var(--bj-shadow-s)}
.bj-aside-card.bj-quote{border-top:3px solid var(--bj-sky)}
.bj-aside-card h3{margin:0 0 4px;font-size:1.2rem;color:var(--bj-navy)}
.bj-aside-sub{margin:0 0 15px;font-size:.92rem;color:var(--bj-muted)}
.bj-aside-card .wpcf7 p{margin:0 0 11px}
.bj-aside-card .wp-block-latest-posts{list-style:none;margin:0;padding:0}
.bj-aside-card .wp-block-latest-posts li{padding:11px 0;border-top:1px solid var(--bj-line)}
.bj-aside-card .wp-block-latest-posts li:first-child{border-top:0;padding-top:0}
.bj-aside-card .wp-block-latest-posts a{color:var(--bj-navy);text-decoration:none;font-family:"Plus Jakarta Sans",sans-serif;font-weight:600;font-size:.96rem;line-height:1.35;display:block}
.bj-aside-card .wp-block-latest-posts a:hover{color:var(--bj-blue)}
.bj-aside-card .wp-block-latest-posts__post-date{display:block;color:#677687;font-size:.8rem;margin-top:2px}
@media(max-width:900px){.bj-blog-wrap{flex-direction:column}.bj-blog-aside{position:static}}

/* ============================================================
   BLOG FIX (v13) — article spacing (beat the global post-content reset)
   + contained featured image (natural aspect, not a wide strip)
   ============================================================ */
.wp-block-post-content.bj-article > *{margin-top:0 !important;margin-bottom:1.4rem !important}
.wp-block-post-content.bj-article > h2{font-size:1.75rem !important;line-height:1.25;margin-top:2.6rem !important;margin-bottom:.9rem !important;color:var(--bj-navy)}
.wp-block-post-content.bj-article > h3{font-size:1.32rem !important;margin-top:2.1rem !important;margin-bottom:.6rem !important;color:var(--bj-navy)}
.wp-block-post-content.bj-article > ul,.wp-block-post-content.bj-article > ol{margin-bottom:1.4rem !important;padding-left:1.4rem}
.wp-block-post-content.bj-article > blockquote{margin-top:1.8rem !important;margin-bottom:1.8rem !important}
.bj-article li{margin-bottom:.55rem}
/* featured image: contained in the content column, natural proportions */
.bj-single-img{margin:0 0 2rem !important}
.bj-single-img img{width:100%;height:auto;max-height:none;border-radius:16px;box-shadow:var(--bj-shadow-m);display:block}

/* ============================================================
   BLOG FIX (v14) — squared featured images (no curved edges)
   ============================================================ */
.bj-single-img img{border-radius:0 !important}
.bj-postcard{border-radius:0 !important}
.bj-postcard .wp-block-post-featured-image img{border-radius:0 !important}

/* ============================================================
   BLOG FIX (v15) — full-bleed card image, white hero category
   ============================================================ */
/* listing card: image fills the card edge-to-edge (was centred at 457px) */
.bj-postcard .wp-block-post-featured-image{width:100% !important;max-width:none !important;margin:0 !important}
.bj-postcard .wp-block-post-featured-image img{width:100% !important;height:230px;object-fit:cover;display:block}
/* single-post hero: category label white so it reads on the dark banner */
.bj-page-hero .wp-block-post-terms,.bj-page-hero .wp-block-post-terms a{color:#fff !important}
/* card date as small meta under the title */
.bj-postcard .wp-block-post-date{margin:2px 0 2px !important;color:#677687;font-size:.82rem}
.bj-postcard .wp-block-post-excerpt{margin:0 !important}

/* ============================================================
   QUOTE FLOW (v16) — application form sections + download buttons
   ============================================================ */
.bj-appform{padding:38px !important}
.wpcf7 .bj-fsec{font-family:"Plus Jakarta Sans",sans-serif;font-weight:800;color:var(--bj-navy);font-size:1.18rem;margin:30px 0 14px;padding-top:22px;border-top:1px solid var(--bj-line)}
.wpcf7 .bj-fsec:first-of-type{border-top:0;padding-top:0;margin-top:4px}
.wpcf7 .bj-fnote{color:var(--bj-muted);font-size:.9rem;margin:0 0 14px;line-height:1.5}
.wpcf7 .bj-appform p strong,.bj-appform .wpcf7 p > strong{display:inline-block;color:var(--bj-navy);font-family:"Plus Jakarta Sans",sans-serif;margin:6px 0 2px}
/* download buttons (final thank-you page) */
.bj-downloads{display:flex;flex-direction:column;gap:14px;margin:22px 0 8px}
.bj-dl{display:flex;align-items:center;gap:16px;padding:18px 20px;border:1.5px solid var(--bj-line);border-radius:14px;background:#fbfdff;text-decoration:none;transition:.18s}
.bj-dl:hover{border-color:var(--bj-sky);box-shadow:var(--bj-shadow-s);transform:translateY(-2px)}
.bj-dl-ic{flex:0 0 44px;width:44px;height:44px;border-radius:11px;background:var(--bj-wash);display:flex;align-items:center;justify-content:center}
.bj-dl-ic svg{width:22px;height:22px;stroke:var(--bj-blue);fill:none;stroke-width:2}
.bj-dl b{display:block;color:var(--bj-navy);font-family:"Plus Jakarta Sans",sans-serif;font-size:1.02rem}
.bj-dl small{display:block;color:var(--bj-muted);font-size:.85rem;margin-top:2px}

/* ============================================================
   MOBILE RESPONSIVE + ACCESSIBILITY (v17)
   ============================================================ */
@media(max-width:781px){
  .site-header .wp-block-buttons{display:none !important}        /* cramped CTA → hamburger + hero CTAs cover it */
  body.admin-bar .site-header{top:0 !important}                  /* mobile admin bar is absolute, scrolls away */
  .wpcf7 .bj-row,.wpcf7 .bj-row > p{grid-template-columns:1fr !important}   /* stack form fields */
  .wp-block-post-content .wp-block-group-is-layout-grid{grid-template-columns:1fr 1fr !important}  /* card grids */
}
@media(max-width:540px){
  .wp-block-post-content .wp-block-group-is-layout-grid{grid-template-columns:1fr !important}
  .bj-formcard,.bj-appform{padding:22px !important}
  .bj-helpband{padding:30px 24px !important}
  .bj-cta-strip{padding:50px 22px !important}
}
/* keyboard focus visibility — WCAG 2.4.7 AA */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.wp-block-button__link:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #1a7ac2 !important;outline-offset:2px !important}
.bj-hero a:focus-visible,.bj-page-hero a:focus-visible,.site-footer a:focus-visible,.bj-helpband a:focus-visible,.bj-cta-strip a:focus-visible,.site-header .wp-block-navigation a:focus-visible{outline-color:#fff !important}
/* colour-contrast — WCAG 1.4.3 AA (primary button white-on-blue was 3.5:1) */
.wp-block-button__link{background:#1a7ac2 !important}
.wp-block-button__link:hover{background:#115ca8 !important}
.wp-block-button.bj-btn-navy .wp-block-button__link{background:#0D1D3D !important}
.wp-block-button.bj-btn-navy .wp-block-button__link:hover{background:#1A3A66 !important}
.wp-block-button.bj-btn-white .wp-block-button__link{background:#fff !important}
.wp-block-button.bj-btn-white .wp-block-button__link:hover{background:#eef4fa !important}
.wpcf7 .wpcf7-submit{background:#1a7ac2}
.wpcf7 .wpcf7-submit:hover{background:#115ca8}

/* hero outline button: match the filled button's height (WP outline style forced less padding) */
.bj-hero .wp-block-button.is-style-outline .wp-block-button__link,.bj-btn-light .wp-block-button__link{padding-top:.9rem !important;padding-bottom:.9rem !important}

/* ============================================================
   FORMS PAGE (v18)
   ============================================================ */
.bj-form-item{background:#fff;border:1px solid var(--bj-line);border-radius:16px;padding:26px 28px;box-shadow:var(--bj-shadow-s);margin:18px 0}
.bj-form-item h3{margin:0 0 8px;color:var(--bj-navy);font-family:"Plus Jakarta Sans",sans-serif;font-size:1.2rem}
.bj-form-item p{color:var(--bj-muted);margin:0 0 18px;font-size:.98rem;line-height:1.65}
.bj-form-dl{display:inline-flex;align-items:center;gap:9px;background:#1a7ac2;color:#fff;font-family:"Plus Jakarta Sans",sans-serif;font-weight:700;font-size:.95rem;padding:11px 22px;border-radius:999px;text-decoration:none;transition:.18s}
.bj-form-dl:hover{background:#115ca8}
.bj-form-dl svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;flex:0 0 18px}
.bj-dl-type{font-size:.7rem;font-weight:700;background:rgba(0,0,0,.28);padding:2px 8px;border-radius:6px;letter-spacing:.04em}
@media(max-width:540px){.bj-form-item{padding:22px}.bj-form-dl{width:100%;justify-content:center}}

/* ============================================================
   LEGAL PAGES (v19)
   ============================================================ */
.bj-legal{font-size:1rem}
.bj-legal h2{margin-top:2.4rem}
.bj-legal h3{margin-top:1.5rem}
.bj-legal p,.bj-legal li{color:var(--bj-ink);line-height:1.7}
.bj-legal li{margin:.35rem 0}
.bj-legal a{color:var(--bj-blue);text-decoration:underline}
.bj-legal a:hover{color:var(--bj-navy)}
.bj-legal-updated{color:var(--bj-muted);font-size:.9rem;margin-bottom:1.5rem}
.site-footer .bj-foot-list a,.site-footer p a{text-decoration:none}
.site-footer p a:hover{color:#fff;text-decoration:underline}

/* ============================================================
   A11Y FIXES (v20)
   ============================================================ */
.site-footer .wp-block-button__link{color:#fff !important}
.site-footer .wp-block-button__link:hover{color:#fff !important}
.has-background.has-hero-gradient-background{background-color:#0b3460 !important}
.has-background.has-navy-panel-gradient-background{background-color:#0b1a33 !important}
.has-background.has-cta-gradient-background{background-color:#0f4d8a !important}

/* ============================================================
   FORM-CARD HEADING COLOR FIX (v21)
   White form cards live inside dark heroes; the hero rule
   .bj-hero h2 / .bj-page-hero h2 {color:#fff} was turning these
   card headings white-on-white. Force navy inside any form card.
   ============================================================ */
.bj-formcard:not(.has-navy-panel-gradient-background) h1,.bj-formcard:not(.has-navy-panel-gradient-background) h2,.bj-formcard:not(.has-navy-panel-gradient-background) h3,.bj-formcard:not(.has-navy-panel-gradient-background) h4{color:var(--bj-navy) !important}

/* ============================================================
   HOST OVERRIDE (v22)
   GoDaddy "DesignSetGo" launch CSS injects high-specificity color
   rules on .has-background groups (color:var(--dsgo-text-color,inherit)),
   which override our white hero text and turn it dark. Those rules are
   NOT !important, so forcing ours with !important wins cleanly.
   Only headings/eyebrow are affected (all dark-panel paragraphs use
   inline colors, which already beat the injected rule). The form-card
   navy heading rule has higher specificity, so it still wins there.
   ============================================================ */
/* Dark sections: force light text (beats GoDaddy dsgo !important via specificity),
   but never inside white form cards (those keep dark text on their white bg). */
.bj-hero.bj-hero.bj-hero.bj-hero.bj-hero.bj-hero.bj-hero.bj-hero.bj-hero :is(h1,h2,h3,h4,p,li):not(.bj-formcard:not(.has-navy-panel-gradient-background) *),
.bj-page-hero.bj-page-hero.bj-page-hero.bj-page-hero.bj-page-hero.bj-page-hero.bj-page-hero.bj-page-hero.bj-page-hero :is(h1,h2,h3,h4,p,li):not(.bj-formcard:not(.has-navy-panel-gradient-background) *),
.bj-cta.bj-cta.bj-cta.bj-cta.bj-cta.bj-cta.bj-cta.bj-cta.bj-cta :is(h1,h2,h3,h4,p,li):not(.bj-formcard:not(.has-navy-panel-gradient-background) *),
.bj-formcard.has-navy-panel-gradient-background.bj-formcard.has-navy-panel-gradient-background.bj-formcard.has-navy-panel-gradient-background.bj-formcard.has-navy-panel-gradient-background.bj-formcard.has-navy-panel-gradient-background.bj-formcard.has-navy-panel-gradient-background :is(h1,h2,h3,h4,p,li){color:#fff !important}
/* footer column headings back to pure white */
.site-footer.site-footer.site-footer.site-footer.site-footer.site-footer.site-footer.site-footer.site-footer h2{color:#fff !important}
