/*
Theme Name: John Ong — JTC Consultant
Theme URI: https://www.johnong.com.sg/
Author: J&H Business Solutions LLP
Description: Custom theme for John Ong, JTC Industrial Property Consultant. Ported from the static site design (navy + gold, Lexend / Source Sans 3).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: johnong
*/

/* ==========================================================================
   John Ong — JTC Industrial Property Consultant
   Design system: corporate navy + gold · Lexend / Source Sans 3
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --navy-950: #0B1220;
  --navy-900: #0F172A;
  --navy-800: #1E293B;
  --navy-700: #334155;
  --blue-800: #1E3A8A;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FB;
  --gold: #C9A227;          /* decorative: rules, borders, icons */
  --gold-text: #96700F;     /* text-safe gold on white (≥4.5:1) */
  --gold-bright: #E0B85C;   /* gold on navy */
  --gold-tint: #FBF7EC;
  --green-wa: #16A34A;
  --red-600: #DC2626;

  /* Type */
  --font-head: "Lexend", "Segoe UI", -apple-system, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", -apple-system, sans-serif;

  /* Layout */
  --container: 72rem;        /* 1152px */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 6px 24px -8px rgba(15, 23, 42, .14);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .28);
  --header-h: 4.75rem;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;               /* 17px */
  line-height: 1.7;
  color: var(--navy-700);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h1 { font-size: clamp(2.375rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.625rem); font-weight: 700; }
h3 { font-size: 1.375rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.0625rem; font-weight: 600; }

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-800); text-decoration: none; }
a:hover { color: var(--navy-900); }

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--blue-800);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--gold); color: var(--navy-950); }

/* ---------- Utilities ---------- */
.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--navy-900);
  color: #fff;
  padding: .65rem 1.2rem;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: .875rem;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.on-dark .eyebrow, .eyebrow--light { color: var(--gold-bright); }

.section { padding: clamp(4.25rem, 9vw, 6.75rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-900); }
.section--navy :is(h1, h2, h3) { color: #fff; }
.section--navy p { color: var(--slate-300); }

.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { font-size: 1.1875rem; color: var(--slate-500); }
.section--navy .section-head .lead { color: var(--slate-300); }

.lead { font-size: 1.1875rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: .875rem 1.75rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
  cursor: pointer;
  min-height: 48px;
}
.btn svg { width: 1.05rem; height: 1.05rem; flex: none; transition: transform .22s ease; }
.btn:hover svg.arrow { transform: translateX(3px); }

.btn--primary { background: var(--navy-900); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-800); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--gold { background: var(--gold); color: var(--navy-950); }
.btn--gold:hover { background: var(--gold-bright); color: var(--navy-950); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost { border-color: var(--slate-300); color: var(--navy-900); background: transparent; }
.btn--ghost:hover { border-color: var(--navy-900); color: var(--navy-900); background: var(--slate-100); }

.btn--ghost-light { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

.btn--wa { background: var(--green-wa); color: #fff; }
.btn--wa:hover { background: #15803D; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--navy-900);
}
.brand:hover { color: var(--navy-900); }
.brand-logo {
  height: 2.9rem;
  width: auto;
  flex: none;
  padding-right: .9rem;
  border-right: 1.5px solid var(--slate-200);
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .01em;
  line-height: 1.1;
  display: block;
}
.brand-tag {
  display: block;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-top: .18rem;
}

.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy-700);
  padding: .55rem .8rem;
  border-radius: 8px;
  position: relative;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.main-nav a:hover { color: var(--navy-900); background: var(--slate-100); }
.main-nav a[aria-current="page"] { color: var(--navy-900); font-weight: 600; }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: .2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}
.nav-cta { margin-left: .75rem; padding: .65rem 1.35rem; min-height: 42px; }
.main-nav a.nav-cta { color: #fff; }
.main-nav a.nav-cta:hover { color: #fff; background: var(--blue-800); }
.main-nav a.nav-cta[aria-current="page"] { color: #fff; font-weight: 600; }
.main-nav a.nav-cta[aria-current="page"]::after { display: none; }

.nav-toggle {
  display: none;
  width: 2.9rem;
  height: 2.9rem;
  border: 1.5px solid var(--slate-200);
  border-radius: 10px;
  background: #fff;
  color: var(--navy-900);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 1.4rem; height: 1.4rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 64rem) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .3rem;
    background: #fff;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem 1.5rem;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: .85rem 1rem; font-size: 1rem; }
  .main-nav a[aria-current="page"]::after { left: 1rem; right: auto; width: 2rem; bottom: .45rem; }
  .nav-cta { margin: .5rem 0 0; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(46rem 30rem at 118% -12%, rgba(201, 162, 39, .12), transparent 60%),
    radial-gradient(40rem 28rem at -14% 112%, rgba(30, 58, 138, .08), transparent 60%),
    linear-gradient(180deg, #FDFDFB 0%, var(--bg-soft) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70rem 40rem at 70% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70rem 40rem at 70% 20%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3.75rem, 7vw, 6rem);
}

.hero h1 { margin-bottom: 1.35rem; }
.hero h1 .gold { color: var(--gold-text); }
.hero .lead { max-width: 34rem; color: var(--slate-500); margin-bottom: 2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.75rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--slate-200);
}
.trust-item { min-width: 7rem; }
.trust-num {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.1;
}
.trust-num span { color: var(--gold-text); }
.trust-label {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-top: .3rem;
}

/* Hero portrait card */
.hero-visual { position: relative; }
.portrait-card {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(201, 162, 39, .25), transparent 55%),
    linear-gradient(160deg, var(--navy-800), var(--navy-950) 70%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding-top: 2.5rem;
}
.portrait-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px;
}
.portrait-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(224, 184, 92, .35);
  pointer-events: none;
}
.portrait-card img {
  position: relative;
  width: 88%;
  margin: 0 auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35));
}

.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .75rem;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: .7rem 1rem;
  font-family: var(--font-head);
}
.float-badge .fb-icon {
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--gold-tint);
  color: var(--gold-text);
}
.float-badge .fb-icon svg { width: 1.25rem; height: 1.25rem; }
.float-badge strong { display: block; font-size: .9rem; font-weight: 600; color: var(--navy-900); line-height: 1.2; }
.float-badge small { font-size: .75rem; color: var(--slate-500); font-family: var(--font-body); }
.float-badge--tl { top: 1.4rem; left: -1.6rem; }
.float-badge--br { bottom: 1.6rem; right: -1.4rem; }

@media (max-width: 64rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 26rem; margin-inline: auto; width: 100%; }
  .float-badge--tl { left: -.5rem; }
  .float-badge--br { right: -.5rem; }
}

/* ---------- Hero — industrial photo variant ---------- */
.hero--photo { background: var(--navy-950); }
.hero--photo::before { display: none; }

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(101deg,
      rgba(11, 18, 32, .96) 0%,
      rgba(11, 18, 32, .9) 30%,
      rgba(15, 23, 42, .68) 48%,
      rgba(15, 23, 42, .34) 68%,
      rgba(15, 23, 42, .46) 100%),
    linear-gradient(0deg, rgba(11, 18, 32, .6) 0%, transparent 26%);
}

.hero--photo .hero-grid {
  position: relative;
  z-index: 1;
  min-height: 80vh;
  align-content: center;
}
.hero--photo .eyebrow { color: var(--gold-bright); }
.hero--photo h1 { color: #fff; }
.hero--photo h1 .gold { color: var(--gold-bright); }
.hero--photo .lead { color: var(--slate-300); }
.hero--photo .hero-trust { border-top-color: rgba(255, 255, 255, .2); }
.hero--photo .trust-num { color: #fff; }
.hero--photo .trust-num span { color: var(--gold-bright); }
.hero--photo .trust-label { color: var(--slate-300); }

.hero--photo .hero-visual { position: relative; min-height: 25rem; }
.hero--photo .float-badge--tl { top: 2.25rem; right: .5rem; left: auto; }
.hero--photo .float-badge--br { bottom: 3.25rem; right: 4.5rem; left: auto; }

@media (max-width: 64rem) {
  .hero--photo .hero-grid { min-height: 0; padding-block: clamp(3.25rem, 8vw, 4.75rem); }
  .hero-media img { object-position: 62% center; }
  .hero-media::after {
    background: linear-gradient(180deg,
      rgba(11, 18, 32, .93) 0%,
      rgba(11, 18, 32, .84) 50%,
      rgba(11, 18, 32, .93) 100%);
  }
  .hero--photo .hero-visual { display: none; }
}

/* ---------- Client marquee ---------- */
.clients { padding: 1.9rem 0; border-bottom: 1px solid var(--slate-200); background: #fff; }
.clients-label {
  text-align: center;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 1.1rem;
}
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(2.75rem, 5vw, 4.5rem);
  width: max-content;
  animation: marquee 55s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee-track li img {
  width: auto;
  height: auto;
  max-height: 2.5rem;
  max-width: 11rem;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .6;
  transition: opacity .3s ease, filter .3s ease;
  -webkit-user-drag: none;
  user-select: none;
}
.marquee-track li img.logo--invert { filter: grayscale(1) invert(1); }
.marquee-track li img:hover { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-photo { position: relative; }
.about-photo .photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-photo .photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(15, 23, 42, .38));
}
.about-photo .photo-frame img { width: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.about-photo::before {
  content: "";
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  opacity: .5;
  z-index: -1;
}
.exp-badge {
  position: absolute;
  right: -1rem;
  bottom: 2rem;
  background: var(--navy-900);
  color: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.4rem;
  text-align: center;
  border: 1px solid rgba(224, 184, 92, .4);
}
.exp-badge .num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1;
}
.exp-badge .label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate-300);
  margin-top: .35rem;
}

.cred-list { display: grid; gap: .85rem; margin: 1.6rem 0 2.1rem; }
.cred-list li { display: flex; gap: .85rem; align-items: flex-start; }
.cred-list .check {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: .15rem;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--gold-text);
  display: grid;
  place-items: center;
}
.cred-list .check svg { width: .85rem; height: .85rem; }
.cred-list strong { color: var(--navy-900); font-weight: 600; }

@media (max-width: 64rem) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 24rem; }
}

/* ---------- Stats band ---------- */
.stats-band { background: var(--navy-900); position: relative; overflow: hidden; }
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(30rem 16rem at 85% 0%, rgba(201, 162, 39, .16), transparent 65%),
    radial-gradient(26rem 16rem at 8% 100%, rgba(30, 58, 138, .35), transparent 60%);
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: clamp(2.75rem, 5vw, 3.75rem) 0;
}
.stat { text-align: center; padding: 0 .5rem; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .12); }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
}
.stat-num .suffix { color: var(--gold-bright); }
.stat-label {
  margin-top: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--slate-300);
}
@media (max-width: 48rem) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.25rem 0; }
  .stat:nth-child(3) { border-left: none; }
}

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 64rem) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .card-grid { grid-template-columns: 1fr; } }

.svc-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.svc-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.svc-card:hover::before { transform: scaleX(1); }

.svc-icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 11px;
  background: var(--gold-tint);
  color: var(--gold-text);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  transition: background-color .25s ease, color .25s ease;
}
.svc-icon svg { width: 1.5rem; height: 1.5rem; }
.svc-card:hover .svc-icon { background: var(--navy-900); color: var(--gold-bright); }

.svc-card h3 { font-size: 1.15rem; margin-bottom: .55rem; }
.svc-card p { font-size: .96rem; color: var(--slate-500); flex: 1; }

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1.15rem;
  font-family: var(--font-head);
  font-size: .84rem;
  font-weight: 600;
  color: var(--gold-text);
}
.svc-link svg { width: .9rem; height: .9rem; transition: transform .2s ease; }
.svc-link:hover { color: var(--navy-900); }
.svc-link:hover svg { transform: translate(2px, -2px); }

/* ---------- CPD split panel ---------- */
.cpd-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(224, 184, 92, .25);
}
.cpd-content { padding: clamp(2.25rem, 5vw, 3.5rem); }
.cpd-content h2 { color: #fff; }
.cpd-content > p { color: var(--slate-300); }
.cpd-media { position: relative; min-height: 20rem; }
.cpd-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 22% center; }
.cpd-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy-950) 0%, transparent 35%);
}
.cpd-list { display: grid; gap: 1rem; margin: 1.75rem 0 2.25rem; }
.cpd-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  color: var(--slate-300);
}
.cpd-list .num {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold-bright);
  font-size: 1.05rem;
  line-height: 1.5;
}
.cpd-list strong { color: #fff; font-weight: 600; display: block; }
@media (max-width: 64rem) {
  .cpd-panel { grid-template-columns: 1fr; }
  .cpd-media { min-height: 16rem; order: -1; }
  .cpd-media::after { background: linear-gradient(0deg, var(--navy-950) 0%, transparent 45%); }
}

/* ---------- Quote band ---------- */
.quote-band { background: var(--gold-tint); border-block: 1px solid #F0E6CC; }
.quote-inner {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  padding: clamp(3.25rem, 6vw, 4.5rem) 0;
}
.quote-mark { width: 3rem; height: 3rem; margin: 0 auto 1.25rem; color: var(--gold); }
.quote-text {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--navy-900);
  margin: 0 0 1.25rem;
}
.quote-by {
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-text);
}

/* ---------- Testimonial ---------- */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(2rem, 5vw, 3rem);
  max-width: 50rem;
  margin-inline: auto;
  position: relative;
}
.testimonial-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.75rem;
  bottom: 1.75rem;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold), var(--gold-bright));
}
.testimonial-stars { display: flex; gap: .25rem; color: var(--gold); margin-bottom: 1.1rem; }
.testimonial-stars svg { width: 1.15rem; height: 1.15rem; }
.testimonial-quote {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--navy-800);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-bright);
  font-family: var(--font-head);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.testimonial-author strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--navy-900); }
.testimonial-author span { font-size: .9rem; color: var(--slate-500); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy-900); }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38rem 22rem at 90% 10%, rgba(201, 162, 39, .2), transparent 60%),
    radial-gradient(30rem 20rem at 5% 95%, rgba(30, 58, 138, .45), transparent 55%);
}
.cta-inner {
  position: relative;
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(3.5rem, 7vw, 5.25rem) 0;
}
.cta-inner h2 { color: #fff; margin-bottom: 1rem; }
.cta-inner p { color: var(--slate-300); font-size: 1.125rem; margin-bottom: 2.25rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 64rem) { .contact-grid { grid-template-columns: 1fr; } }

.info-cards { display: grid; gap: 1rem; margin-bottom: 1.75rem; }
.info-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.2rem 1.35rem;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.info-card:hover { border-color: var(--slate-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.info-icon {
  flex: none;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 10px;
  background: var(--gold-tint);
  color: var(--gold-text);
  display: grid;
  place-items: center;
}
.info-icon svg { width: 1.3rem; height: 1.3rem; }
.info-card h3 { font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-500); margin-bottom: .3rem; }
.info-card a, .info-card p { font-family: var(--font-head); font-weight: 500; font-size: 1rem; color: var(--navy-900); display: block; margin: 0; line-height: 1.5; }
.info-card a:hover { color: var(--gold-text); }
.info-card small { display: block; font-size: .85rem; font-weight: 400; color: var(--slate-500); font-family: var(--font-body); margin-top: .15rem; }

.socials { display: flex; gap: .75rem; }
.socials a {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 10px;
  border: 1.5px solid var(--slate-200);
  color: var(--navy-700);
  display: grid;
  place-items: center;
  transition: all .2s ease;
}
.socials a:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--gold-bright); transform: translateY(-3px); }
.socials svg { width: 1.2rem; height: 1.2rem; }

.contact-form-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.contact-form-card > p { color: var(--slate-500); font-size: .96rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; margin-top: 1.5rem; }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy-900);
}
.form-field label .req { color: var(--red-600); }
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--navy-900);
  background: var(--bg-soft);
  border: 1.5px solid var(--slate-200);
  border-radius: 10px;
  padding: .8rem 1rem;
  min-height: 48px;
  width: 100%;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.form-field textarea { resize: vertical; min-height: 8rem; }
.form-field :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--blue-800);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, .12);
}
.form-field .error-msg { display: none; font-size: .85rem; color: var(--red-600); }
.form-field.has-error :is(input, textarea) { border-color: var(--red-600); }
.form-field.has-error .error-msg { display: block; }

.form-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.form-note { margin-top: 1.1rem; font-size: .85rem; color: var(--slate-500); display: flex; gap: .5rem; align-items: flex-start; }
.form-note svg { width: 1rem; height: 1rem; flex: none; margin-top: .2rem; color: var(--gold-text); }
.form-context { margin: 0 0 1.4rem; padding: .8rem 1rem; font-size: .92rem; line-height: 1.45; color: var(--navy-900); background: var(--gold-tint); border-left: 3px solid var(--gold); border-radius: 10px; }
.form-status { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 10px; font-size: .95rem; font-weight: 500; }
.form-status--success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.form-status--error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
@media (max-width: 40rem) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-950) 75%);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(60rem 30rem at 25% 0%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(60rem 30rem at 25% 0%, #000 25%, transparent 75%);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(42rem 24rem at 92% 118%, rgba(201, 162, 39, .18), transparent 60%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 7vw, 5.25rem) 0;
  max-width: 46rem;
}
.page-hero h1 { color: #fff; margin-bottom: 1.1rem; }
.page-hero .lead { color: var(--slate-300); margin: 0; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
}
.breadcrumb a { color: var(--slate-400); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--gold-bright); }

/* ---------- Success stories ---------- */
.category-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.75rem;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.category-card:hover { box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.category-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: .8rem;
}
.category-head .svc-icon { margin: 0; }
.category-head h2 { font-size: 1.45rem; margin: 0; flex: 1; min-width: 14rem; }
.count-badge {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--gold-text);
  background: var(--gold-tint);
  border: 1px solid #EEDFB5;
  padding: .35rem .9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.category-card > p { color: var(--slate-500); margin-bottom: 1.5rem; }
.chip-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy-700);
  background: var(--bg-soft);
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  padding: .42rem 1rem;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.chip:hover { border-color: var(--gold); background: var(--gold-tint); color: var(--navy-900); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item .cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.25rem 1.25rem .9rem;
  background: linear-gradient(0deg, rgba(11, 18, 32, .82), transparent);
  color: #fff;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 500;
}
.gallery-item--a { grid-column: span 7; aspect-ratio: 16 / 9.5; }
.gallery-item--b { grid-column: span 5; aspect-ratio: auto; }
.gallery-item--c { grid-column: span 5; aspect-ratio: auto; }
.gallery-item--d { grid-column: span 7; aspect-ratio: 16 / 9.5; }
@media (max-width: 48rem) {
  .gallery-item--a, .gallery-item--b, .gallery-item--c, .gallery-item--d { grid-column: span 12; aspect-ratio: 16 / 10; }
}

/* ---------- Resource cards (statistics) ---------- */
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 48rem) { .resource-grid { grid-template-columns: 1fr; } }

.resource-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.9rem 1.8rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.resource-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.resource-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.resource-card:hover::before { transform: scaleX(1); }
.resource-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.resource-tag {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #475569;
  background: var(--slate-100);
  border-radius: 999px;
  padding: .3rem .8rem;
}
.resource-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.resource-card p { font-size: .96rem; color: var(--slate-500); flex: 1; }

/* ---------- Associates ---------- */
.assoc-grid { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 1.75rem; }
.assoc-grid .assoc-card { flex: 0 1 calc(33.333% - 1.2rem); min-width: 0; margin: 0; }
@media (max-width: 64rem) { .assoc-grid .assoc-card { flex-basis: calc(50% - .9rem); } }
@media (max-width: 44rem) { .assoc-grid .assoc-card { flex-basis: 100%; } }

.assoc-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.assoc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.assoc-logo {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--slate-200);
  display: grid;
  place-items: center;
  padding: 2.5rem 2rem;
  min-height: 10rem;
}
.assoc-logo img { max-height: 4.5rem; width: auto; object-fit: contain; }
/* Near-square / stacked logos: give more height while keeping the box (and divider) at the same height */
.assoc-logo--stacked { padding-block: 1.5rem; }
.assoc-logo--stacked img { max-height: 6rem; }
.assoc-body { padding: 2rem 2rem 2.25rem; display: flex; flex-direction: column; flex: 1; }
.assoc-body h2 { font-size: 1.5rem; margin-bottom: .35rem; }
.assoc-field {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1.1rem;
}
.assoc-body > p { color: var(--slate-500); }
.assoc-high { display: grid; gap: .65rem; margin: 1.4rem 0 1.9rem; flex: 1; align-content: start; }
.assoc-high li { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; }
.assoc-high .check {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: .18rem;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--gold-text);
  display: grid;
  place-items: center;
}
.assoc-high .check svg { width: .75rem; height: .75rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--slate-300); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(3.25rem, 6vw, 4.5rem) 0 3rem;
}
@media (max-width: 64rem) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand .brand { color: #fff; margin-bottom: 1.1rem; }
.footer-brand .brand-logo { filter: brightness(0) invert(1); border-right-color: rgba(255, 255, 255, .18); }
.footer-brand .brand-tag { color: var(--gold-bright); }
.footer-brand p { font-size: .95rem; color: var(--slate-400); max-width: 20rem; }
.footer-socials { display: flex; gap: .7rem; margin-top: 1.4rem; }
.footer-socials a {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  color: var(--slate-300);
  display: grid;
  place-items: center;
  transition: all .2s ease;
}
.footer-socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-950); transform: translateY(-3px); }
.footer-socials svg { width: 1.15rem; height: 1.15rem; }

.footer-col h3 {
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}
.footer-col h3::after {
  content: "";
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--gold);
  margin-top: .6rem;
  border-radius: 2px;
}
.footer-col ul { display: grid; gap: .7rem; }
.footer-col a { color: var(--slate-400); font-size: .95rem; transition: color .2s ease, padding-left .2s ease; }
.footer-col a:hover { color: var(--gold-bright); padding-left: .3rem; }

.footer-contact li { display: flex; gap: .8rem; align-items: flex-start; font-size: .95rem; color: var(--slate-400); }
.footer-contact svg { width: 1.05rem; height: 1.05rem; flex: none; margin-top: .3rem; color: var(--gold-bright); }
.footer-contact a { color: var(--slate-400); }
.footer-contact a:hover { color: var(--gold-bright); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.4rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  font-size: .875rem;
  color: var(--slate-500);
}
.footer-bottom a { color: var(--slate-400); }
.footer-bottom a:hover { color: var(--gold-bright); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 5.6rem;
  z-index: 90;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 10px;
  border: none;
  background: var(--navy-900);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue-800); }
.to-top svg { width: 1.2rem; height: 1.2rem; }

/* Floating WhatsApp button — site-wide, bottom-right */
.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 95;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(11, 18, 32, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 9px 24px rgba(11, 18, 32, .34); color: #fff; }
.wa-float svg { width: 1.9rem; height: 1.9rem; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s ease, transform .65s ease;
  transition-delay: var(--d, 0s);
}
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 2rem; }
  .marquee-track li[aria-hidden] { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .to-top, .nav-toggle, .cta-band { display: none; }
}

/* ==========================================================================
   WordPress block-editor shims
   Make core Gutenberg blocks (List, Image, Group) render on-design.
   ========================================================================== */

/* Let the theme's own spacing win over the editor's default block gap */
.section, .page-hero, .cta-band, .quote-band, .stats-band, .clients,
.card-grid, .svc-card, .resource-card, .assoc-card, .assoc-body,
.category-card, .about-grid, .section-head, .contact-grid, .info-cards {
  --wp--style--block-gap: 0px;
}

/* Core List block used as a chip row: <ul class="wp-block-list chip-grid"> */
.chip-grid.wp-block-list { list-style: none; margin: 0; padding: 0; }
.chip-grid > li {
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy-700);
  background: var(--bg-soft);
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  padding: .42rem 1rem;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.chip-grid > li::marker { content: ""; }
.chip-grid > li:hover { border-color: var(--gold); background: var(--gold-tint); color: var(--navy-900); }

/* Core Image blocks inside cards/frames shouldn't add default margins */
.wp-block-image { margin: 0; }
.wp-block-image img { display: block; }

/* Group blocks that carry our layout classes must keep those layouts */
.wp-block-group.container { width: min(100% - 3rem, var(--container)); margin-inline: auto; }
.wp-block-group.card-grid { display: grid; }

/* Buttons block, if used, inherits our button look */
.wp-block-button__link.btn { text-decoration: none; }

/* --------------------------------------------------------------------------
   Fix: WordPress can wrap Group-block children in a legacy
   .wp-block-group__inner-container div, which collapses our CSS grids
   (about-grid, card-grid, resource-grid, assoc-grid…) into a single column.
   theme.json prevents that wrapper on modern WP; this flattens it everywhere
   else so grid/flex children are seen directly. The wrapper carries no styling
   of its own, so removing it from the layout tree is safe.
   -------------------------------------------------------------------------- */
.wp-block-group__inner-container { display: contents; }

/* Zero WordPress's block-gap margin on grid/flex row children so items align
   to the grid (WP adds margin-top to children 2..n on flow layouts). */
.card-grid > *, .about-grid > *, .resource-grid > *, .assoc-grid > *,
.stats-grid > *, .gallery-grid > *, .chip-grid > *, .info-cards > *,
.cred-list > *, .cpd-list > *, .hero-grid > *, .footer-top > * {
  margin-top: 0;
  margin-block-start: 0;
}
