/* ============================================================
   CashLaw Global — Compact Site Stylesheet
   Royal Blue + Gold (shared CashLaw palette) | Sora + Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  /* Brand — CashLaw Royal Blue */
  --ink:          #0C1444;   /* deep navy ink */
  --ink-2:        #142063;
  --brand:        #192781;   /* CashLaw Royal Blue */
  --brand-600:    #131E63;
  --brand-300:    #7C89D3;
  --brand-050:    #EBEDF8;

  /* Accent — CashLaw Gold */
  --accent:       #f0b80c;
  --accent-600:   #c99a0a;
  --accent-050:   #fef9e7;
  --accent-light: #FCD34D;   /* gold tint for dark backgrounds */
  --on-accent:    #192781;   /* text on gold, matches flagship buttons */

  /* Neutrals */
  --paper:        #F8FAFC;
  --paper-2:      #F1F5F9;
  --white:        #FFFFFF;
  --text:         #020617;
  --muted:        #64748B;
  --faint:        #94A3B8;
  --line:         #E2E8F0;
  --line-2:       #CBD5E1;

  /* Type */
  --f-head: 'Sora', system-ui, -apple-system, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Space */
  --wrap: 1140px;
  --pad: 24px;
  --sec: 96px;

  /* Radius — deliberately rounder than the flagship site */
  --r-sm: 10px;
  --r:    18px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* Shadow */
  --sh-1: 0 1px 2px rgba(2,6,23,.06);
  --sh-2: 0 8px 24px -12px rgba(2,6,23,.16);
  --sh-3: 0 24px 60px -24px rgba(2,6,23,.24);

  --nav-h: 76px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
/* never break a word across lines, anywhere on the site */
body, body * { hyphens: manual; -webkit-hyphens: manual; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }

/* ── Layout helpers ──────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--sec); }
.section--tight { padding-block: 64px; }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #E4E8F5; }

.eyebrow {
  display: inline-flex; align-items: center;
  font-family: var(--f-head);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.section--ink .eyebrow { color: var(--accent-light); }

.h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
.h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
.lead { font-size: 1.08rem; color: var(--muted); line-height: 1.75; }
.section--ink .lead { color: rgba(228,232,245,.72); }

.sec-head { max-width: 660px; display: grid; gap: 14px; margin-bottom: 52px; }
.sec-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--f-head); font-weight: 600; font-size: .93rem;
  padding: 13px 26px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -12px rgba(240,184,12,.75); }
.btn--accent:hover { background: var(--accent-600); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-600); }
.btn--ghost { border-color: rgba(255,255,255,.32); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.55); }
.btn--outline { border-color: var(--line-2); color: var(--text); background: var(--white); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn--lg { padding: 15px 32px; font-size: 1rem; }
.btn--block { width: 100%; }

.tlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-head); font-weight: 600; font-size: .88rem; color: var(--brand);
}
.tlink svg { width: 15px; height: 15px; transition: transform .18s ease; }
.tlink:hover svg { transform: translateX(4px); }

/* ── Navbar ──────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .28s ease, box-shadow .28s ease, border-color .28s ease;
  border-bottom: 1px solid transparent;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }

.nav__brand { position: relative; display: inline-flex; align-items: center; height: 34px; }
.nav__logo { height: 34px; width: auto; display: block; object-fit: contain; transition: opacity .28s ease; }
.nav__logo--dark { position: absolute; left: 0; top: 0; opacity: 0; }
.nav.is-solid .nav__logo--light { opacity: 0; }
.nav.is-solid .nav__logo--dark { opacity: 1; }
.nav__brand-text { display: grid; line-height: 1.05; }
.nav__brand-name { font-family: var(--f-head); font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em; color: #fff; }
.nav__brand-sub { font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 500; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  font-family: var(--f-head); font-weight: 500; font-size: .92rem;
  padding: 9px 15px; border-radius: var(--r-pill);
  color: rgba(255,255,255,.82);
  transition: color .18s ease, background .18s ease;
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav__link.is-active { color: #fff; }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.nav__cta { margin-left: 8px; }

/* scrolled / solid state */
.nav.is-solid { background: rgba(248,250,252,.94); backdrop-filter: blur(14px); border-bottom-color: var(--line); box-shadow: var(--sh-1); }
.nav.is-solid .nav__link { color: var(--muted); }
.nav.is-solid .nav__link:hover { color: var(--brand); background: var(--brand-050); }
.nav.is-solid .nav__link.is-active { color: var(--brand); }
.nav.is-solid .nav__burger span { background: var(--ink); }

.nav__burger {
  display: none; width: 42px; height: 42px;
  border: 0; background: transparent; cursor: pointer;
  padding: 11px 9px; border-radius: var(--r-sm);
}
.nav__burger span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s ease, opacity .2s ease; }
.nav__burger span + span { margin-top: 5px; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 14px var(--pad) 26px;
  display: grid; gap: 4px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 99; box-shadow: var(--sh-2);
}
.nav__mobile.is-open { transform: none; opacity: 1; pointer-events: auto; }
.nav__mobile a {
  font-family: var(--f-head); font-weight: 600; font-size: 1rem;
  padding: 13px 6px; border-bottom: 1px solid var(--line);
}
.nav__mobile a:last-of-type { border-bottom: 0; }
.nav__mobile .btn { margin-top: 12px; }

/* ── CRM login icon ──────────────────────────────────────── */
.nav__login {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 40px; padding: 0 17px;
  border-radius: var(--r-pill);
  border: 1.5px solid rgba(255,255,255,.28);
  color: #fff;
  font-family: var(--f-head); font-weight: 600; font-size: .88rem;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.nav__login svg { width: 18px; height: 18px; }
.nav__login:hover {
  background: var(--accent); border-color: var(--accent);
  color: var(--on-accent); transform: translateY(-2px);
}
.nav.is-solid .nav__login { border-color: var(--line-2); color: var(--brand); }
.nav.is-solid .nav__login:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.nav__mobile .nav__mobile-login { display: flex; align-items: center; gap: 10px; }
.nav__mobile .nav__mobile-login svg { width: 18px; height: 18px; color: var(--brand); }

/* ── Affiliations strip ──────────────────────────────────── */
.affil { background: var(--white); border-block: 1px solid var(--line); padding-block: 40px; }
.affil__inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.affil__label {
  font-family: var(--f-head); font-size: 11.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
}
.affil__logos { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.affil__logo {
  display: grid; place-items: center;
  height: 62px; padding: 10px 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.affil__logo img { max-height: 40px; width: auto; object-fit: contain; }
.affil__logo:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-2px); }
.affil__logo figcaption {
  font-size: 11px; color: var(--faint); letter-spacing: .06em; text-transform: uppercase;
}

/* ── Education page ──────────────────────────────────────── */
.badge-soft {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--accent-050); border: 1px solid rgba(240,184,12,.4);
  font-size: 12.5px; font-weight: 600; color: #8a6805;
}
.section--ink .badge-soft {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: var(--accent-light);
}
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course-card {
  position: relative; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 26px; display: grid; gap: 12px; align-content: start;
  transition: transform .22s ease, box-shadow .22s ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.course-card__tag {
  font-family: var(--f-head); font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-600);
}
.course-card h3 { font-size: 1.08rem; }
.course-card p { font-size: .93rem; color: var(--muted); line-height: 1.68; }
.course-card__meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 4px;
  padding-top: 14px; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--faint);
}
.course-card__meta span { display: flex; align-items: center; gap: 6px; }
.course-card__meta svg { width: 14px; height: 14px; color: var(--brand-300); }

.tbd {
  border: 1.5px dashed var(--line-2); border-radius: var(--r);
  background: var(--paper); padding: 26px 28px;
  display: grid; gap: 8px; align-content: center;
}
.tbd h4 { font-size: 1rem; color: var(--muted); }
.tbd p { font-size: .9rem; color: var(--faint); line-height: 1.65; }

.branch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.branch__card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px 26px; display: grid; gap: 14px; align-content: start;
}
.branch__card--ink { background: var(--brand); border-color: transparent; color: #fff; }
.branch__eyebrow {
  font-family: var(--f-head); font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
}
.branch__card--ink .branch__eyebrow { color: rgba(255,255,255,.6); }
.branch__card h3 { font-size: 1.05rem; }
.branch__rows { display: grid; gap: 12px; }
.branch__row { display: grid; grid-template-columns: 18px 1fr; gap: 12px; font-size: .93rem; line-height: 1.6; }
.branch__row svg { width: 16px; height: 16px; margin-top: 4px; color: var(--brand); }
.branch__card--ink .branch__row { color: rgba(255,255,255,.88); }
.branch__card--ink .branch__row svg { color: var(--accent-light); }
.branch__note {
  font-size: .82rem; line-height: 1.6; color: var(--faint);
  border-top: 1px dashed var(--line); padding-top: 12px;
}
.branch__card--ink .branch__note { color: rgba(255,255,255,.6); border-top-color: rgba(255,255,255,.2); }

/* ── Hero (home) ─────────────────────────────────────────── */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 96px) 0 104px;
  background: radial-gradient(1100px 620px at 78% -8%, #24369E 0%, transparent 62%),
              radial-gradient(760px 520px at 6% 108%, #192781 0%, transparent 66%),
              var(--ink);
  color: #fff; overflow: hidden;
}
.hero__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000 10%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 92%);
}
.hero__glow {
  position: absolute; width: 480px; height: 480px; right: -120px; top: 40px;
  background: radial-gradient(circle, rgba(240,184,12,.30), transparent 68%);
  filter: blur(20px); pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero__inner { max-width: 820px; display: grid; gap: 24px; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 9px; width: fit-content;
  padding: 7px 15px 7px 9px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.86);
}
.hero__pill b { font-weight: 600; color: #fff; }
.hero__pill-tag {
  background: var(--accent); color: var(--on-accent); font-family: var(--f-head);
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--r-pill);
}
.hero h1 {
  font-size: clamp(1.6rem, 5.2vw, 4.05rem);
  font-weight: 700; letter-spacing: -.035em; text-align: left;
  /* even line lengths, no single-word last line */
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent-light); position: relative; white-space: nowrap; }

.hero__sub { font-size: 1.12rem; line-height: 1.7; color: rgba(255,255,255,.74); max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,.13);
}
.hero__meta-item { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: rgba(255,255,255,.68); }
.hero__meta-item svg { width: 16px; height: 16px; color: var(--brand-300); flex: none; }

/* ── Page hero (inner pages) ─────────────────────────────── */
.phero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 76px;
  background: linear-gradient(150deg, var(--ink) 0%, #16226B 58%, #1E2E92 100%);
  color: #fff; overflow: hidden;
}
.phero__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.phero .wrap { position: relative; z-index: 2; }
.phero__inner { max-width: 720px; display: grid; gap: 16px; }
.phero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); text-wrap: balance; }
.phero p { color: rgba(255,255,255,.72); font-size: 1.05rem; line-height: 1.7; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: .5; }

/* ── Stat band ───────────────────────────────────────────── */
.stats { background: var(--white); border-block: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__item { padding: 40px 24px; text-align: center; border-left: 1px solid var(--line); }
.stats__item:first-child { border-left: 0; }
.stats__num { font-family: var(--f-head); font-size: clamp(2rem, 3.6vw, 2.7rem); font-weight: 700; color: var(--brand); letter-spacing: -.03em; }
.stats__label { font-size: .82rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; font-weight: 500; }

/* ── Service cards ───────────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card {
  position: relative; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 26px 26px;
  display: grid; gap: 12px; align-content: start;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: hidden;
}
.svc-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform .28s ease;
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: transparent; }
.svc-card:hover::before { transform: scaleY(1); }
.svc-card__no {
  font-family: var(--f-head); font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  color: var(--faint);
}
.svc-card__icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand);
  margin-bottom: 2px;
}
.svc-card__icon svg { width: 22px; height: 22px; }
.svc-card h3 { font-size: 1.12rem; }
.svc-card p { font-size: .93rem; color: var(--muted); line-height: 1.68; }
.svc-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag {
  font-size: 11.5px; font-weight: 500; color: var(--brand-600);
  background: var(--brand-050); border-radius: var(--r-pill); padding: 4px 11px;
}

/* ── Split feature ───────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: center; }
.split--flip .split__media { order: -1; }
.split__body { display: grid; gap: 16px; align-content: start; }
.split__body .btn { margin-top: 10px; justify-self: start; }

.pillar-list { display: grid; gap: 4px; margin-top: 8px; }
.pillar {
  display: grid; grid-template-columns: 42px 1fr; gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar__no {
  font-family: var(--f-head); font-weight: 700; font-size: .95rem;
  color: var(--accent-600); padding-top: 2px;
}
.pillar h4 { font-size: 1.02rem; margin-bottom: 5px; }
.pillar p { font-size: .92rem; color: var(--muted); line-height: 1.65; }

/* decorative media panel */
.panel {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(155deg, var(--ink) 0%, #1E2E92 100%);
  padding: 40px 34px; color: #fff; min-height: 400px;
  display: grid; align-content: center; gap: 20px;
}
.panel > * { position: relative; z-index: 1; }
.panel .panel__dots {
  position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1.1px, transparent 1.1px);
  background-size: 22px 22px;
}
.panel__quote { font-family: var(--f-head); font-size: 1.28rem; line-height: 1.5; font-weight: 500; }
.panel__who { display: flex; align-items: center; gap: 12px; }
.panel__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--accent); color: var(--on-accent); display: grid; place-items: center;
  font-family: var(--f-head); font-weight: 700; font-size: .85rem;
}
.panel__name { font-weight: 600; font-size: .93rem; }
.panel__role { font-size: .82rem; color: rgba(255,255,255,.6); }
.panel__mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; }
.panel__mini div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11); border-radius: var(--r-sm); padding: 14px 16px; }
.panel__mini b { display: block; font-family: var(--f-head); font-size: 1.4rem; color: var(--accent-light); }
.panel__mini span { font-size: .78rem; color: rgba(255,255,255,.62); }

/* ── Feature cards (values / vision) ─────────────────────── */
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fcard {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 30px 28px; display: grid; gap: 12px; align-content: start;
  transition: box-shadow .22s ease, transform .22s ease;
}
.fcard:hover { box-shadow: var(--sh-2); transform: translateY(-3px); }
.fcard__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-050); color: var(--accent-600);
}
.fcard__icon svg { width: 21px; height: 21px; }
.fcard h3 { font-size: 1.08rem; }
.fcard p { font-size: .93rem; color: var(--muted); line-height: 1.68; }
.fcard--ink { background: var(--brand); border-color: transparent; color: #fff; }
.fcard--ink p { color: rgba(255,255,255,.76); }
.fcard--ink .fcard__icon { background: rgba(255,255,255,.14); color: #fff; }

.ticks { display: grid; gap: 9px; margin-top: 4px; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: .92rem; color: var(--muted); }
.ticks svg { width: 16px; height: 16px; color: var(--brand); margin-top: 4px; }
.section--ink .ticks li,
.fcard--ink .ticks li { color: rgba(255,255,255,.8); }
.section--ink .ticks svg,
.fcard--ink .ticks svg { color: var(--accent-light); }


/* service cards are links on the home page */
a.svc-card { color: inherit; }
a.svc-card:hover h3 { color: var(--brand); }

/* lead line inside an open service accordion */
.acc__short {
  font-family: var(--f-head); font-weight: 500;
  font-size: 1.02rem !important; line-height: 1.55;
  color: var(--text) !important;
}

/* numbered principle cards */
.fcard .svc-card__no { margin-bottom: -4px; }

/* ── Accordion (services page / FAQ) ─────────────────────── */
.acc { display: grid; gap: 12px; }
.acc__item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.acc__item.is-open { border-color: var(--brand-300); box-shadow: var(--sh-2); }
.acc__btn {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 22px 24px;
}
.acc__no { font-family: var(--f-head); font-size: .76rem; font-weight: 700; letter-spacing: .14em; color: var(--accent-600); }
.acc__title { font-family: var(--f-head); font-weight: 600; font-size: 1.06rem; letter-spacing: -.01em; }
.acc__chev {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-2); color: var(--brand); transition: transform .25s ease, background .2s ease;
}
.acc__chev svg { width: 15px; height: 15px; }
.acc__item.is-open .acc__chev { transform: rotate(180deg); background: var(--brand); color: #fff; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__content { padding: 0 24px 24px; display: grid; gap: 16px; }
.acc__content > p { font-size: .95rem; color: var(--muted); line-height: 1.72; }
.acc__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }


/* ── Service cards as buttons ────────────────────────────── */
button.svc-card--btn {
  font: inherit; text-align: left; cursor: pointer;
  border: 1px solid var(--line); background: var(--white);
  width: 100%;
}
.svc-card__more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 4px;
  font-family: var(--f-head); font-weight: 600; font-size: .86rem; color: var(--brand);
}
.svc-card__more svg { width: 15px; height: 15px; transition: transform .18s ease; }
.svc-card--btn:hover .svc-card__more svg { transform: translateX(4px); }
.svc-card--btn:focus-visible { outline: 3px solid rgba(25,39,129,.35); outline-offset: 3px; }

/* ── Service dialog ──────────────────────────────────────── */
.smodal {
  width: min(720px, calc(100vw - 40px));
  max-height: min(84vh, 900px);
  /* the global `* { margin: 0 }` reset kills the UA's dialog{margin:auto},
     which is what centres a modal. Pin inset + margin so it sits dead
     centre of the viewport regardless of UA defaults. */
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0; border: 0; border-radius: var(--r-lg);
  background: var(--white); color: var(--text);
  box-shadow: 0 40px 90px -30px rgba(2,6,23,.45);
  overflow: hidden;
}
.smodal::backdrop { background: rgba(6,12,40,.62); backdrop-filter: blur(3px); }
.smodal[open] { display: flex; flex-direction: column; animation: smodal-in .22s ease both; }
@keyframes smodal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }

.smodal__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 26px 28px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.smodal__heading { display: grid; gap: 6px; }
.smodal__no {
  font-family: var(--f-head); font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; color: var(--accent-600);
}
.smodal__title { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.smodal__close {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--paper-2); border: 1px solid var(--line); color: var(--muted);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.smodal__close svg { width: 17px; height: 17px; }
.smodal__close:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.smodal__body { padding: 22px 28px 30px; overflow-y: auto; display: grid; gap: 15px; }
.smodal__body p { font-size: .96rem; color: var(--muted); line-height: 1.72; }
.smodal__short {
  font-family: var(--f-head); font-weight: 500;
  font-size: 1.04rem !important; line-height: 1.55; color: var(--text) !important;
}
.smodal__body .btn { justify-self: start; margin-top: 6px; }

@media (max-width: 640px) {
  .smodal { width: calc(100vw - 24px); max-height: 88vh; }
  .smodal__head { padding: 20px 20px 14px; }
  .smodal__body { padding: 18px 20px 24px; }
}

/* ── Process steps ───────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { position: relative; padding: 0 22px; }
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step__no {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 1.5px solid var(--brand); color: var(--brand);
  font-family: var(--f-head); font-weight: 700; font-size: .95rem; margin-bottom: 18px;
  position: relative; z-index: 1;
}
.step::after {
  content: ""; position: absolute; left: 46px; right: 0; top: 23px; height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px);
}
.step:last-child::after { display: none; }
.step h4 { font-size: 1.02rem; margin-bottom: 7px; }
.step p { font-size: .9rem; color: var(--muted); line-height: 1.65; }

/* ── Testimonial slider ──────────────────────────────────── */
.tst { position: relative; max-width: 840px; margin-inline: auto; text-align: center; }
.tst__viewport { overflow: hidden; }
.tst__track { display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.tst__slide { min-width: 100%; padding: 0 8px; display: grid; gap: 22px; justify-items: center; }
.tst__mark { width: 34px; height: 34px; color: var(--accent-light); opacity: .65; }
.tst__quote { font-family: var(--f-head); font-size: clamp(1.05rem, 2vw, 1.32rem); font-weight: 400; line-height: 1.6; color: #E8ECF7; }
.tst__who { display: flex; align-items: center; gap: 12px; }
.tst__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  display: grid; place-items: center; font-family: var(--f-head); font-weight: 700; font-size: .85rem; color: #fff;
}
.tst__name { font-weight: 600; font-size: .95rem; text-align: left; }
.tst__role { font-size: .83rem; color: rgba(228,232,245,.6); text-align: left; }
.tst__dots { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.tst__dot {
  width: 8px; height: 8px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.25); transition: background .2s ease, width .2s ease;
}
.tst__dot.is-active { background: var(--accent); width: 26px; border-radius: var(--r-pill); }

/* ── CTA band ────────────────────────────────────────────── */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--brand) 0%, var(--ink) 100%);
  color: #fff; padding: 58px 52px;
  display: grid; grid-template-columns: 1.3fr auto; gap: 36px; align-items: center;
}
.cta > * { position: relative; z-index: 1; }
.cta .cta__glow {
  position: absolute; z-index: 0;
  width: 420px; height: 420px; right: -80px; bottom: -180px;
  background: radial-gradient(circle, rgba(240,184,12,.30), transparent 68%);
}
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.cta p { color: rgba(255,255,255,.74); margin-top: 12px; max-width: 520px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Contact page ────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.info-stack { display: grid; gap: 14px; }
.info-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 24px; display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: start;
}
.info-card__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand);
}
.info-card__icon svg { width: 19px; height: 19px; }
.info-card h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 5px; }
.info-card p, .info-card a { font-size: .96rem; color: var(--text); line-height: 1.6; }
.info-card a:hover { color: var(--brand); }

.hours { background: var(--brand); color: #fff; border-color: transparent; display: block; }
.hours h4 { color: rgba(255,255,255,.66); }
.hours ul { display: grid; gap: 8px; margin-top: 10px; }
.hours li { display: flex; justify-content: space-between; font-size: .92rem; color: rgba(255,255,255,.86); border-bottom: 1px dashed rgba(255,255,255,.18); padding-bottom: 8px; }
.hours li:last-child { border-bottom: 0; padding-bottom: 0; }

/* Form */
.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 36px 34px; box-shadow: var(--sh-2);
}
.form-card > h2 { font-size: 1.45rem; }
.form-card > p { font-size: .94rem; color: var(--muted); margin-top: 8px; margin-bottom: 26px; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--f-head); font-size: .82rem; font-weight: 600; color: var(--text); }
.field label span { color: var(--accent-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 15px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); font-size: .95rem;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--brand); background: var(--white);
  box-shadow: 0 0 0 3px rgba(25,39,129,.14);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #C4463A; background: #FDF3F2; }
.field__err { font-size: .78rem; color: #C4463A; display: none; }
.field.has-error .field__err { display: block; }
.form__note { font-size: .8rem; color: var(--faint); line-height: 1.6; }
.form__ok {
  display: none; align-items: center; gap: 11px;
  background: var(--brand-050); border: 1px solid var(--brand-300);
  color: var(--brand-600); border-radius: var(--r-sm); padding: 14px 16px; font-size: .92rem; font-weight: 500;
}
.form__ok.is-shown { display: flex; }
.form__ok svg { width: 19px; height: 19px; flex: none; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--ink); color: rgba(228,232,245,.7); padding-top: 68px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; padding-bottom: 52px; }
.footer__brand { display: inline-flex; align-items: center; margin-bottom: 18px; }
.footer__brand img { height: 40px; width: auto; object-fit: contain; }
.footer__brand-name { font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; color: #fff; }
.footer__brand-sub { font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.footer__about { font-size: .92rem; line-height: 1.72; max-width: 320px; }
.footer__social { display: flex; gap: 9px; margin-top: 20px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff;
  transition: background .18s ease, transform .18s ease;
}
.footer__social a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translateY(-2px); }
.footer__social svg { width: 17px; height: 17px; }
.footer h4 { font-family: var(--f-head); font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer ul { display: grid; gap: 11px; }
.footer li, .footer a { font-size: .92rem; }
.footer a:hover { color: var(--accent-light); }
.footer__contact li { display: grid; grid-template-columns: 17px 1fr; gap: 11px; line-height: 1.6; }
.footer__contact svg { width: 15px; height: 15px; color: var(--brand-300); margin-top: 4px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-block: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .84rem; color: rgba(228,232,245,.5);
}
.footer__bottom nav { display: flex; gap: 20px; }


/* ── Justified body copy ─────────────────────────────────── */
main p,
.footer__about,
.footer__contact span,
.info-card p {
  text-align: justify;
  text-justify: inter-word;
  /* no hyphenation: words are never broken across lines */
  hyphens: manual;
  -webkit-hyphens: manual;
}

/* centred section intros stay centred */
.sec-head--center p,
.sec-head--center .lead { text-align: center; hyphens: manual; }

/* display quotes and small print read better unjustified */
.panel__quote,
.tst__quote,
.form__note,
.field__err,
.branch__note { text-align: left; hyphens: manual; }

/* justification needs room — drop it on narrow screens */
@media (max-width: 560px) {
  main p,
  .footer__about,
  .footer__contact span,
  .info-card p { text-align: left; }
}


/* ── Floating WhatsApp button ────────────────────────────── */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6), 0 2px 6px rgba(2,6,23,.2);
  animation: wa-bob 3.2s ease-in-out infinite;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover {
  background: #1FBE5A;
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 18px 38px -10px rgba(37,211,102,.75), 0 2px 6px rgba(2,6,23,.22);
  animation-play-state: paused;
}
.wa-float:focus-visible { outline: 3px solid rgba(37,211,102,.45); outline-offset: 4px; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.55);
  animation: wa-ring 2.6s ease-out infinite;
}
@keyframes wa-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes wa-ring {
  0%   { transform: scale(1); opacity: .7; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@media (max-width: 640px) {
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .wa-float svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none; }
  .wa-float::after { display: none; }
}

/* ── Reveal on scroll ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sec: 76px; }
  .svc-grid, .cards-3, .course-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--flip .split__media { order: 0; }
  .panel { min-height: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .step:nth-child(2)::after { display: none; }
  .step:nth-child(odd) { padding-left: 0; }
  .contact-grid, .branch { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; padding: 44px 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta, .nav__login { display: none; }
  .nav__burger { display: block; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(odd) { border-left: 0; }
  .stats__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  :root { --sec: 60px; --pad: 20px; }
  body { font-size: 16px; }
  .hero { padding: calc(var(--nav-h) + 60px) 0 68px; }
  /* phone: larger heading, allowed to wrap onto four lines */
  .hero h1 { font-size: clamp(1.75rem, 7.6vw, 2.4rem); }
  .svc-grid, .cards-2, .cards-3, .cards-4, .course-grid, .branch { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { padding: 0; }
  .step::after { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 26px 22px; }
  .acc__cols { grid-template-columns: 1fr; }
  .cta { padding: 36px 26px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__meta { gap: 12px 20px; }
  .btn { width: 100%; }
  .hero__actions, .cta__actions { width: 100%; }
}

/* ============================================================
   PHONE: centre-align everything
   (appended last so it wins over the justify/left rules above)
   ============================================================ */
@media (max-width: 640px) {

  /* headings, intros, body copy */
  main p,
  .footer__about,
  .footer__contact span,
  .info-card p,
  .lead,
  .sec-head p { text-align: center; }

  .sec-head { justify-items: center; text-align: center; margin-inline: auto; }
  .eyebrow { margin-inline: auto; }

  /* hero + page hero */
  .hero__inner,
  .phero__inner { justify-items: center; text-align: center; }
  .hero h1, .phero h1 { text-align: center; }
  .hero__pill { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .crumbs { justify-content: center; }

  /* cards */
  .svc-card,
  .fcard,
  .course-card { justify-items: center; text-align: center; }
  .svc-card__icon,
  .fcard__icon { margin-inline: auto; }
  .svc-card__more { justify-content: center; }

  /* split sections */
  .split__body { justify-items: center; text-align: center; }
  .split__body .btn { justify-self: center; }

  /* numbered pillars stack and centre */
  .pillar { grid-template-columns: 1fr; gap: 6px; justify-items: center; text-align: center; }

  /* tick lists centre with their icon inline */
  .ticks li {
    display: flex; justify-content: center; align-items: flex-start;
    gap: 9px; text-align: center;
  }
  .ticks svg { flex: none; }

  /* quote panel */
  .panel { justify-items: center; text-align: center; }
  .panel__quote { text-align: center; }
  .panel__who { justify-content: center; }
  .panel .btn { justify-self: center; }

  /* process steps */
  .step { justify-items: center; text-align: center; display: grid; }
  .step__no { margin-inline: auto; }

  /* contact info cards */
  .info-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .info-card__icon { margin-inline: auto; }
  .hours { text-align: center; }
  .hours li { justify-content: space-between; text-align: left; }

  /* affiliations */
  .affil__inner { justify-content: center; }

  /* CTA band */
  .cta { justify-items: center; text-align: center; }
  .cta__actions { justify-content: center; }

  /* footer */
  .footer__grid { justify-items: center; text-align: center; }
  .footer__brand { justify-content: center; }
  .footer__social { justify-content: center; }
  .footer__contact li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer__bottom nav { justify-content: center; }

  /* the enquiry form stays left-aligned — centred labels above
     left-aligned inputs reads as broken */
  .form-card { text-align: left; }
  .form-card > h2,
  .form-card > p { text-align: center; }
  .form, .form .field, .form label, .form .field__err, .form__note { text-align: left; }
  .form__note { text-align: center; }

  /* service dialog keeps its reading alignment */
  .smodal__head { text-align: left; }
  .smodal__body p { text-align: left; }
  .smodal__body .btn { justify-self: center; }
}
