/* =====================================================================
   Lifeline Immigration — Rebuild v2
   Brand palette from logo: golden yellow #F4C518, sky blue #33BEEA,
   charcoal #383838 on white. + Motion system.
   All brand values are centralised in :root.
   ===================================================================== */

:root {
  /* --- Brand core --- */
  --yellow-500: #f4c518;   /* logo yellow */
  --yellow-600: #cf9f0f;   /* darker yellow for text-on-white / hover */
  --yellow-400: #f8d451;
  --yellow-050: #fef6d6;

  --blue-500: #33beea;     /* logo sky blue */
  --blue-600: #1595c6;     /* deeper, link/button-safe */
  --blue-700: #0f7ba6;
  --blue-050: #e7f7fd;

  --char-900: #23292c;     /* deepest charcoal */
  --char-800: #2f3a40;     /* dark bands + headings */
  --char-700: #3d4a51;

  /* --- Legacy token names remapped to brand (so all pages recolour) --- */
  --navy-900: var(--char-900);
  --navy-800: var(--char-800);
  --navy-700: var(--char-700);
  --blue-500x: var(--blue-500);
  --gold-600: var(--yellow-600);
  --gold-500: var(--yellow-500);
  --gold-400: var(--yellow-400);
  --gold-050: var(--yellow-050);
  --maple: #d9534f;

  --ink-900: #1f282c;
  --ink-700: #3d4a50;
  --ink-500: #657077;
  --ink-300: #9aa6ac;

  --paper: #f4fafc;        /* cool off-white */
  --surface: #ffffff;
  --surface-2: #eaf5fa;
  --line: #e0eaef;
  --line-cool: #d8e7f0;
  --ok: #2e8b57;

  /* Type */
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20,50,70,.06), 0 2px 8px rgba(20,50,70,.05);
  --shadow-md: 0 8px 24px rgba(20,50,70,.10);
  --shadow-lg: 0 24px 50px rgba(20,50,70,.16);
  --shadow-blue: 0 14px 30px rgba(21,149,198,.28);
  --shadow-yellow: 0 14px 30px rgba(207,159,15,.30);
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out-back: cubic-bezier(.34,1.56,.64,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink-700);
  background: var(--paper); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--char-800); line-height: 1.14; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
p { margin: 0 0 1.1rem; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--alt { background: var(--surface-2); }
.center { text-align: center; }
.measure { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- Kicker ---------- */
.kicker { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); margin-bottom: .9rem; }
.kicker::before { content: ""; width: 26px; height: 3px; background: var(--yellow-500); border-radius: 3px; }
.center .kicker { justify-content: center; }
.lead { font-size: 1.16rem; color: var(--ink-500); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: .95em 1.7em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  line-height: 1; white-space: nowrap;
}
.btn::after { /* sheen sweep */
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease);
}
.btn:hover::after { left: 130%; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--char-800); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--char-900); box-shadow: var(--shadow-lg); }
.btn--gold { background: var(--yellow-500); color: var(--char-900); box-shadow: var(--shadow-yellow); }
.btn--gold:hover { background: var(--yellow-400); }
.btn--blue { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-blue); }
.btn--blue:hover { background: var(--blue-700); }
.btn--ghost { background: transparent; color: var(--char-800); border-color: rgba(47,58,64,.25); }
.btn--ghost:hover { border-color: var(--char-800); background: rgba(47,58,64,.04); }
.btn--onnavy { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--onnavy:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn--lg { padding: 1.05em 2em; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(244,250,252,.85); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s, background .25s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(20,50,70,.07); background: rgba(255,255,255,.9); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { height: 32px; width: auto; max-width: none; flex-shrink: 0; transition: transform .3s var(--ease-out-back); }
.brand:hover img { transform: scale(1.05) rotate(-2deg); }

.nav__links { display: flex; align-items: center; gap: 1px; list-style: none; margin: 0; padding: 0; }
.nav__links > li { position: relative; }
.nav__links a { position: relative; display: inline-flex; align-items: center; gap: .3em; font-family: var(--font-head); font-weight: 600; font-size: .89rem; color: var(--ink-700); padding: .5em .6em; border-radius: 8px; transition: color .15s; white-space: nowrap; }
.nav__links > li > a::before { content: ""; position: absolute; left: .8em; right: .8em; bottom: .35em; height: 2px; background: var(--yellow-500); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__links > li > a:hover { color: var(--char-800); }
.nav__links > li > a:hover::before { transform: scaleX(1); }
.caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); display: inline-block; opacity: .6; }

.submenu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.has-menu:hover .submenu, .has-menu:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: .6em .8em; border-radius: 8px; font-size: .9rem; color: var(--ink-700); transition: background .15s, color .15s, padding-left .15s; }
.submenu a:hover { background: var(--blue-050); color: var(--blue-700); padding-left: 1.1em; }

.nav__cta { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.nav__cta .btn { padding: .68em 1.05em; font-size: .88rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--char-800); }
.nav__toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Media frame (photos + graceful branded placeholders) ---------- */
.frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, var(--blue-050), var(--yellow-050)); }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .frame { aspect-ratio: 16/9; margin-bottom: 18px; }
/* Bare images (e.g. real consultant photo) still get framed styling */
.hero__media > img, .page-hero__media > img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(50px); opacity: .5; z-index: 0; pointer-events: none; }
.hero::before { width: 420px; height: 420px; background: radial-gradient(circle, rgba(51,190,234,.5), transparent 70%); top: -120px; right: -80px; animation: float1 16s ease-in-out infinite; }
.hero::after { width: 360px; height: 360px; background: radial-gradient(circle, rgba(244,197,24,.45), transparent 70%); bottom: -140px; left: -60px; animation: float2 20s ease-in-out infinite; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: clamp(48px, 7vw, 92px) 0 clamp(52px, 7vw, 96px); }
.hero h1 { color: var(--char-900); }
.hero__media { position: relative; }
.hero__media .frame { box-shadow: var(--shadow-lg); aspect-ratio: 4/3; will-change: transform; }
.hero__badge { position: absolute; left: -18px; bottom: 26px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px 18px; display: flex; align-items: center; gap: 12px; max-width: 264px; border: 1px solid var(--line); z-index: 2; animation: floatBadge 6s ease-in-out infinite; }
.hero__badge .seal { width: 42px; height: 42px; border-radius: 10px; background: var(--yellow-050); color: var(--yellow-600); display: grid; place-items: center; flex: 0 0 auto; }
.hero__badge b { font-family: var(--font-head); color: var(--char-800); font-size: .92rem; display: block; line-height: 1.2; }
.hero__badge span { font-size: .78rem; color: var(--ink-500); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }

.trustbar { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 1.9rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.trustbar .chip { display: inline-flex; align-items: center; gap: .55em; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--char-800); }
.trustbar .chip i { color: var(--blue-600); }

/* Hero entrance */
.hero__body > * { opacity: 0; animation: heroUp .7s var(--ease) forwards; }
.hero__body > *:nth-child(1) { animation-delay: .05s; }
.hero__body > *:nth-child(2) { animation-delay: .15s; }
.hero__body > *:nth-child(3) { animation-delay: .25s; }
.hero__body > *:nth-child(4) { animation-delay: .35s; }
.hero__body > *:nth-child(5) { animation-delay: .45s; }
.hero__media { opacity: 0; animation: heroIn .9s var(--ease) .2s forwards; }

/* ---------- Section headings ---------- */
.sec-head { max-width: 700px; margin-bottom: 2.6rem; }
.center.sec-head, .sec-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; display: flex; flex-direction: column; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--yellow-500), var(--blue-500)); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-cool); }
.card:hover::before { transform: scaleX(1); }
.card .ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-050); color: var(--blue-600); font-size: 1.55rem; margin-bottom: 16px; transition: transform .3s var(--ease-out-back); }
.card:hover .ic { transform: translateY(-3px) rotate(-6deg) scale(1.06); }
.card--gold .ic { background: var(--yellow-050); color: var(--yellow-600); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-500); font-size: .98rem; margin-bottom: 1rem; }
.card .card__link { margin-top: auto; font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--char-800); display: inline-flex; align-items: center; gap: .4em; }
.card .card__link i { transition: transform .2s var(--ease); }
.card:hover .card__link i { transform: translateX(5px); }

/* Pathway (alternating image + text) */
.pathway { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 34px 0; }
.pathway:not(:last-child) { border-bottom: 1px solid var(--line); }
.pathway--rev .pathway__media { order: 2; }
.pathway__media .frame { box-shadow: var(--shadow-md); aspect-ratio: 16/10; }
.pathway__media .frame img { transition: transform .6s var(--ease); }
.pathway:hover .pathway__media .frame img { transform: scale(1.04); }
.pathway__body h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.steps--6 { grid-template-columns: repeat(3, 1fr); }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__n { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--char-900); width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--yellow-400), var(--yellow-500)); display: grid; place-items: center; margin-bottom: 14px; box-shadow: 0 6px 14px rgba(207,159,15,.3); }
.step h3 { font-size: 1.12rem; margin-bottom: .3em; }
.step p { color: var(--ink-500); font-size: .95rem; margin: 0; }

/* ---------- Authority / dark band ---------- */
.authority { position: relative; background: radial-gradient(120% 120% at 100% 0%, rgba(51,190,234,.28), transparent 55%), var(--char-800); color: #eaf1f5; border-radius: var(--radius-lg); overflow: hidden; }
.authority::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(244,197,24,.25), transparent 70%); bottom: -120px; right: -60px; filter: blur(30px); animation: float2 18s ease-in-out infinite; }
.authority .container { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; align-items: center; padding: clamp(38px,5vw,64px) 22px; }
.authority h2 { color: #fff; }
.authority p { color: #cfe0ea; }
.authority__photo .frame, .authority__photo img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.authority__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 1.6rem; }
.authority__stats .stat b { font-family: var(--font-head); font-size: 1.95rem; color: var(--yellow-400); display: block; line-height: 1; }
.authority__stats .stat span { font-size: .84rem; color: #bcd0dd; }
.verify-link { display: inline-flex; align-items: center; gap: .45em; color: var(--yellow-400); font-weight: 600; font-family: var(--font-head); font-size: .92rem; margin-top: .6rem; }
.verify-link:hover { text-decoration: underline; }

/* ---------- Feature ---------- */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .fic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-050); color: var(--blue-600); display: grid; place-items: center; font-size: 1.3rem; }
.feature h3 { font-size: 1.08rem; margin-bottom: .2em; }
.feature p { color: var(--ink-500); font-size: .95rem; margin: 0; }

/* ---------- Testimonials ---------- */
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tcard .stars { color: var(--yellow-500); font-size: 1rem; letter-spacing: 2px; margin-bottom: 12px; }
.tcard blockquote { font-family: var(--font-head); font-size: 1.05rem; color: var(--char-800); line-height: 1.5; margin: 0 0 18px; font-weight: 500; }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tcard .who .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.tcard .who b { display: block; color: var(--char-800); font-family: var(--font-head); font-size: .95rem; }
.tcard .who span { font-size: .82rem; color: var(--ink-500); }

/* ---------- Accordion ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.acc { border-bottom: 1px solid var(--line); }
.acc:last-child { border-bottom: 0; }
.acc__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 22px; font-family: var(--font-head); font-weight: 700; font-size: 1.03rem; color: var(--char-800); display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; transition: color .15s; }
.acc__q::-webkit-details-marker { display: none; }
.acc__q:hover { color: var(--blue-600); }
.acc__q .pm { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-050); color: var(--blue-600); display: grid; place-items: center; transition: transform .25s var(--ease), background .2s; font-size: 1.05rem; }
.acc[open] .acc__q .pm { transform: rotate(135deg); background: var(--yellow-050); color: var(--yellow-600); }
.acc__a { padding: 0 22px 20px; color: var(--ink-500); font-size: .98rem; }
.acc[open] .acc__a { animation: fadeDown .3s var(--ease); }
.acc__a ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.acc__a li { margin-bottom: .35rem; }
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }

/* ---------- Requirements ---------- */
.reqcols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.reqcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.reqcard:hover { transform: translateY(-3px); }
.reqcard h4 { font-family: var(--font-head); color: var(--char-800); font-size: 1rem; margin: 0 0 .6rem; display: flex; align-items: center; gap: .5em; }
.reqcard h4 i { color: var(--blue-600); }
.reqcard ul { margin: 0; padding-left: 1.15rem; color: var(--ink-500); font-size: .93rem; }
.reqcard li { margin-bottom: .4rem; }

/* ---------- Who can apply ---------- */
.apply-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.apply { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.apply:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.apply i { color: var(--blue-600); font-size: 1.4rem; }
.apply h4 { font-family: var(--font-head); color: var(--char-800); margin: .6rem 0 .3rem; font-size: 1.02rem; }
.apply p { margin: 0; color: var(--ink-500); font-size: .92rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 0% 0%, rgba(244,197,24,.28), transparent 50%), radial-gradient(120% 140% at 100% 100%, rgba(51,190,234,.26), transparent 50%), var(--char-800); color: #fff; border-radius: var(--radius-lg); text-align: center; padding: clamp(40px, 6vw, 72px) 24px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0ea; max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-band .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.cta-mini { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-top: 1.4rem; }
.cta-mini .chip { color: #e3eef4; font-size: .9rem; display: inline-flex; align-items: center; gap: .45em; font-family: var(--font-head); font-weight: 600; }
.cta-mini .chip i { color: var(--yellow-400); }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .85rem; color: var(--ink-500); padding-top: 22px; }
.crumbs a { color: var(--ink-500); }
.crumbs a:hover { color: var(--char-800); }
.crumbs span { color: var(--char-800); font-weight: 600; }

/* ---------- Interior page hero ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--blue-050), var(--paper)); border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(244,197,24,.3), transparent 70%); top: -120px; right: -80px; filter: blur(40px); animation: float1 18s ease-in-out infinite; }
.page-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; padding: clamp(30px,4vw,52px) 0 clamp(40px,5vw,64px); }
.page-hero .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.3rem; }
.page-hero .chips .chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5em 1em; font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--char-800); display: inline-flex; align-items: center; gap: .5em; box-shadow: var(--shadow-sm); }
.page-hero .chips .chip i { color: var(--blue-600); }
.page-hero__media .frame { box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }

/* ---------- Definition strip ---------- */
.defcards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 2rem; }
.defcard { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--yellow-500); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.defcard:hover { transform: translateY(-3px); }
.defcard h4 { font-family: var(--font-head); color: var(--char-800); margin: 0 0 .3rem; font-size: 1.02rem; }
.defcard p { margin: 0; color: var(--ink-500); font-size: .93rem; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(24px, 3vw, 40px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--char-800); margin-bottom: .45rem; }
.field .req { color: var(--maple); }
.input, .select, .textarea { width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink-900); padding: .8em 1em; border: 1.5px solid var(--line-cool); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(51,190,234,.2); }
.textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--ink-500); margin-top: .3rem; }
.demo-flag { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-head); font-weight: 600; font-size: .78rem; color: var(--blue-700); background: var(--blue-050); border: 1px dashed var(--blue-500); border-radius: 999px; padding: .35em .9em; margin-bottom: 1rem; }

/* Assessment stepper */
.stepper { display: flex; align-items: center; gap: 6px; margin-bottom: 26px; flex-wrap: wrap; }
.stepper .dot { display: flex; align-items: center; gap: 8px; }
.stepper .num { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); color: var(--ink-500); font-family: var(--font-head); font-weight: 700; font-size: .85rem; display: grid; place-items: center; border: 1.5px solid var(--line); transition: .3s var(--ease); }
.stepper .dot.active .num { background: var(--char-800); color: #fff; border-color: var(--char-800); transform: scale(1.08); }
.stepper .dot.done .num { background: var(--ok); color: #fff; border-color: var(--ok); }
.stepper .lbl { font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--ink-500); }
.stepper .dot.active .lbl { color: var(--char-800); }
.stepper .bar { flex: 1; height: 2px; background: var(--line); min-width: 18px; }
.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeUp .35s var(--ease); }
.choice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.choice { border: 1.5px solid var(--line-cool); border-radius: var(--radius-sm); padding: 16px 18px; cursor: pointer; display: flex; gap: 12px; align-items: center; background: #fff; transition: .18s var(--ease); font-family: var(--font-head); font-weight: 600; color: var(--char-800); }
.choice:hover { border-color: var(--blue-500); background: var(--blue-050); transform: translateY(-2px); }
.choice input { accent-color: var(--blue-600); width: 18px; height: 18px; }
.choice i { color: var(--blue-600); font-size: 1.25rem; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.info-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: 0; }
.info-item .ii { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-050); color: var(--blue-600); display: grid; place-items: center; font-size: 1.25rem; flex: 0 0 auto; transition: transform .25s var(--ease-out-back); }
.info-item:hover .ii { transform: scale(1.08) rotate(-4deg); }
.info-item b { font-family: var(--font-head); color: var(--char-800); display: block; font-size: .95rem; }
.info-item a, .info-item span { color: var(--ink-500); font-size: .95rem; }
.info-item a:hover { color: var(--blue-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--char-900); color: #b3c3ce; padding: clamp(48px,6vw,72px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; font-family: var(--font-head); }
.site-footer a { color: #b3c3ce; transition: color .15s, padding-left .15s; }
.site-footer a:hover { color: var(--yellow-400); }
.footer-list li a:hover { padding-left: 4px; }
.footer-logo { height: 46px; margin-bottom: 16px; }
.footer-about p { font-size: .92rem; color: #8ba2b1; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .6rem; font-size: .93rem; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: .8rem; font-size: .9rem; color: #8ba2b1; }
.footer-contact i { color: var(--yellow-400); margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: #7793a4; }
.footer-disclaimer { font-size: .78rem; color: #6b8496; margin-top: 14px; max-width: 900px; }

/* =====================================================================
   MOTION
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@keyframes heroUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes heroIn { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-24px, 26px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px, -22px); } }
@keyframes floatBadge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .hero__body > *, .hero__media { opacity: 1 !important; transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .steps, .steps--6 { grid-template-columns: 1fr 1fr; }
  .authority .container { grid-template-columns: 1fr; }
  .authority__photo { max-width: 360px; }
}
@media (max-width: 1240px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: block; }
  .hero__grid, .page-hero__grid, .pathway, .contact-grid { grid-template-columns: 1fr; }
  .pathway--rev .pathway__media { order: 0; }
  .hero__media { max-width: 520px; margin: 0 auto; }
  .grid--3, .grid--2, .defcards, .apply-grid, .authority__stats { grid-template-columns: 1fr; }
  .faq-cols, .reqcols, .field-row, .choice-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps, .steps--6 { grid-template-columns: 1fr; }
  .nav__links.open { display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px; box-shadow: var(--shadow-lg); }
  .nav__links.open .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 4px 14px; }
  .nav__links.open a { padding: .8em; }
  .nav__links.open > li > a::before { display: none; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .apply-grid { grid-template-columns: 1fr; }
  .hero__badge { left: 8px; }
}

/* =====================================================================
   RESOURCES / NEWS HUB + ARTICLE
   ===================================================================== */
.res-search { display: flex; gap: 10px; max-width: 520px; margin-top: 1.4rem; }
.res-search input { flex: 1; font-family: var(--font-body); font-size: 1rem; padding: .8em 1.1em; border: 1.5px solid var(--line-cool); border-radius: 999px; background: #fff; }
.res-search input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(51,190,234,.2); }

.filterbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2rem; }
.filter-chip { font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--ink-700); background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: .5em 1.1em; cursor: pointer; transition: .18s var(--ease); }
.filter-chip:hover { border-color: var(--blue-500); color: var(--blue-700); }
.filter-chip.active { background: var(--char-800); color: #fff; border-color: var(--char-800); }

.tag { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: .32em .7em; border-radius: 999px; }
.tag--news { background: var(--yellow-050); color: var(--yellow-600); }
.tag--guide { background: var(--blue-050); color: var(--blue-700); }

.featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 2.4rem; }
.featured__media { align-self: stretch; }
.featured__media .frame { height: 100%; border-radius: 0; aspect-ratio: 16/11; }
.featured__body { padding: clamp(22px,3vw,38px) clamp(22px,3vw,38px) clamp(22px,3vw,38px) 0; }
.featured__body h3 { font-size: clamp(1.4rem,2.4vw,2rem); margin: .6rem 0 .5rem; }
.featured__body h3 a { color: var(--char-800); }
.featured__body h3 a:hover { color: var(--blue-600); }
.featured__body p { color: var(--ink-500); }

.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-card .frame { border-radius: 0; aspect-ratio: 16/10; }
.post-card .frame img { transition: transform .5s var(--ease); }
.post-card:hover .frame img { transform: scale(1.05); }
.post-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__body h3 { font-size: 1.12rem; line-height: 1.3; margin: .7rem 0 .5rem; }
.post-card__body h3 a { color: var(--char-800); }
.post-card__body h3 a:hover { color: var(--blue-600); }
.post-card__body p { color: var(--ink-500); font-size: .93rem; margin: 0 0 1rem; }
.post-meta { margin-top: auto; display: flex; align-items: center; gap: .8em; font-size: .8rem; color: var(--ink-500); font-family: var(--font-head); font-weight: 600; }
.post-meta i { color: var(--blue-600); }

.newsletter { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 100% 0%, rgba(51,190,234,.28), transparent 55%), var(--char-800); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px,5vw,56px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.newsletter h2 { color: #fff; }
.newsletter p { color: #cfe0ea; margin: 0; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 200px; font-family: var(--font-body); font-size: 1rem; padding: .85em 1.1em; border: 0; border-radius: 999px; }
.newsletter .form-success { color: var(--yellow-400); font-family: var(--font-head); font-weight: 600; margin-top: .8rem; display: none; align-items: center; gap: .5em; }

.topic-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.topic-chips a { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--char-800); background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: .6em 1.2em; display: inline-flex; align-items: center; gap: .5em; transition: .18s var(--ease); }
.topic-chips a:hover { border-color: var(--blue-500); color: var(--blue-700); transform: translateY(-2px); }
.topic-chips a i { color: var(--yellow-600); }

/* ---- Article (single post) ---- */
.article { max-width: 760px; margin: 0 auto; }
.article__head { text-align: center; margin-bottom: 1.8rem; }
.article__head h1 { font-size: clamp(1.9rem,3.4vw,2.7rem); margin: .8rem 0 .6rem; }
.article__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6em 1.2em; color: var(--ink-500); font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
.article__meta .who { display: flex; align-items: center; gap: .5em; }
.article__meta .who .av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,var(--blue-500),var(--blue-700)); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.article__meta i { color: var(--blue-600); }
.article__figure { margin: 0 0 2rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.article__figure .frame { border-radius: var(--radius-lg); aspect-ratio: 16/9; }

.prose { font-size: 1.08rem; line-height: 1.8; color: var(--ink-700); }
.prose > p:first-of-type { font-size: 1.18rem; color: var(--char-700); }
.prose h2 { font-size: clamp(1.4rem,2.2vw,1.75rem); margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; }
.prose p { margin: 0 0 1.2rem; }
.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .55rem; }
.prose a { color: var(--blue-600); font-weight: 500; text-decoration: underline; text-decoration-color: var(--blue-050); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--blue-500); }
.prose blockquote { margin: 1.6rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--yellow-500); background: var(--yellow-050); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-head); font-size: 1.12rem; color: var(--char-800); }
.prose img, .prose .frame { border-radius: var(--radius); margin: 1.6rem 0; }

.takeaways { background: var(--blue-050); border: 1px solid var(--line-cool); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 2rem; }
.takeaways h4 { font-family: var(--font-head); color: var(--char-800); margin: 0 0 .7rem; display: flex; align-items: center; gap: .5em; }
.takeaways h4 i { color: var(--blue-600); }
.takeaways ul { margin: 0; padding-left: 1.2rem; color: var(--ink-700); }
.takeaways li { margin-bottom: .5rem; }

.inline-cta { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue-500); border-radius: var(--radius); padding: 22px 26px; margin: 2rem 0; box-shadow: var(--shadow-sm); }
.inline-cta h4 { margin: 0 0 .4rem; font-family: var(--font-head); color: var(--char-800); }
.inline-cta p { margin: 0 0 1rem; color: var(--ink-500); font-size: .96rem; }

.author-card { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 2.4rem 0; box-shadow: var(--shadow-sm); }
.author-card img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.author-card b { font-family: var(--font-head); color: var(--char-800); font-size: 1.05rem; }
.author-card .role { color: var(--blue-600); font-family: var(--font-head); font-weight: 600; font-size: .85rem; margin-bottom: .3rem; }
.author-card p { margin: .2rem 0 0; color: var(--ink-500); font-size: .92rem; }

.share { display: flex; align-items: center; gap: 10px; margin: 1.6rem 0; font-family: var(--font-head); font-weight: 600; color: var(--ink-500); font-size: .9rem; }
.share a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--char-800); transition: .18s var(--ease); }
.share a:hover { background: var(--char-800); color: #fff; transform: translateY(-2px); }

@media (max-width: 900px) {
  .featured, .newsletter { grid-template-columns: 1fr; }
  .featured__body { padding: 0 24px 26px; }
  .featured__media .frame { border-radius: 0; }
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
}

/* ---- Nav fit: wider header bar + tighter items ---- */
.site-header .container { max-width: 1300px; padding-left: 30px; padding-right: 30px; }
.nav { gap: 10px; }
.nav__links a { font-size: .87rem; padding: .48em .55em; }
.nav__cta { gap: 6px; }
.nav__cta .btn { padding: .62em .95em; font-size: .84rem; }
@media (max-width: 480px) { .site-header .container { padding-left: 18px; padding-right: 18px; } }

/* ---- Featured media: fill column cleanly, never overflow ---- */
.featured { align-items: stretch; }
.featured__media { position: relative; min-height: 240px; }
.featured__media .frame { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
@media (max-width: 900px) { .featured__media { position: relative; min-height: 0; } .featured__media .frame { position: relative; aspect-ratio: 16/10; } }

/* ---- Booking urgency / offer card ---- */
.offer { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 100% 0%, rgba(51,190,234,.26), transparent 55%), var(--char-800); color: #fff; border-radius: var(--radius-lg); padding: 24px 24px 22px; margin-bottom: 20px; box-shadow: var(--shadow-md); }
.offer__top { display: flex; align-items: center; gap: 16px; }
.offer__price { display: flex; align-items: baseline; gap: 6px; }
.offer__amt { font-family: var(--font-head); font-weight: 800; font-size: 2.5rem; color: var(--yellow-400); line-height: 1; }
.offer__cur { color: #cfe0ea; font-weight: 600; font-family: var(--font-head); font-size: .9rem; }
.offer__desc b { display: block; font-family: var(--font-head); font-size: 1.02rem; }
.offer__desc span { color: #cfe0ea; font-size: .88rem; }
.offer__perk { margin-top: 15px; display: inline-flex; gap: .5em; align-items: center; background: rgba(244,197,24,.14); border: 1px solid rgba(244,197,24,.32); color: var(--yellow-400); border-radius: 999px; padding: .5em .9em; font-size: .84rem; font-weight: 600; font-family: var(--font-head); }
.offer__slots { margin-top: 13px; display: flex; align-items: center; gap: .55em; color: #e3eef4; font-size: .9rem; font-family: var(--font-head); font-weight: 600; }
.offer__slots .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow-500); box-shadow: 0 0 0 0 rgba(244,197,24,.7); animation: opulse 1.9s infinite; }
@keyframes opulse { 0% { box-shadow: 0 0 0 0 rgba(244,197,24,.6); } 70% { box-shadow: 0 0 0 9px rgba(244,197,24,0); } 100% { box-shadow: 0 0 0 0 rgba(244,197,24,0); } }
.countdown { display: flex; gap: 10px; margin-top: 16px; }
.cd { flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 12px 6px; text-align: center; }
.cd b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.55rem; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.cd span { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: #a9c0cf; }
.offer__note { margin: 14px 0 0; font-size: .8rem; color: #a9c0cf; }

/* ---- Calendly location toggle ---- */
.cal-toggle { display: inline-flex; background: #fff; border: 1.5px solid var(--line-cool); border-radius: 999px; padding: 4px; gap: 4px; }
.cal-opt { display: inline-flex; align-items: center; gap: .45em; font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--ink-700); background: transparent; border: 0; border-radius: 999px; padding: .5em 1em; cursor: pointer; transition: .18s var(--ease); }
.cal-opt:hover { color: var(--char-800); }
.cal-opt.active { background: var(--char-800); color: #fff; }
.cal-opt i { font-size: 1rem; }

/* ---- Offer card: promo badge + note ---- */
.offer__badge { display: inline-flex; align-items: center; gap: .45em; background: rgba(244,197,24,.16); border: 1px solid rgba(244,197,24,.34); color: var(--yellow-400); border-radius: 999px; padding: .4em .85em; font-family: var(--font-head); font-weight: 700; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.offer__note2 { margin: 14px 0 0; font-size: .92rem; color: #d7e4ec; }

/* ---- RCIC-IRB credential badge (HTML, not baked into image) ---- */
.rcic-badge { display: inline-flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-md); max-width: 440px; }
.rcic-badge__seal { width: 46px; height: 46px; border-radius: 11px; background: #fdecec; color: #c8202f; display: grid; place-items: center; font-size: 1.65rem; flex: 0 0 auto; }
.rcic-badge__txt { min-width: 0; }
.rcic-badge__mark { display: inline-block; font-family: var(--font-head); font-weight: 800; color: #c8202f; font-size: .72rem; letter-spacing: .09em; }
.rcic-badge__name { display: block; font-family: var(--font-head); color: var(--char-800); font-size: .98rem; line-height: 1.15; margin: 1px 0 2px; }
.rcic-badge__num { font-size: .8rem; color: var(--ink-500); }
.rcic-badge__num a { color: var(--blue-600); font-weight: 600; }

/* ---- Headshot framing (keep face in view on cropped placements) ---- */
.author-card img { object-position: top center; }
.page-hero__media > img { object-position: top center; }
.authority__photo img { object-position: top center; }

/* ---- Related pages link row ---- */
.linkrow{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.linkrow a{display:inline-flex;align-items:center;gap:.45em;padding:.62em 1.05em;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-weight:600;font-size:.9rem;color:var(--ink-900);text-decoration:none;transition:transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease}
.linkrow a i{color:var(--blue-600)}
.linkrow a:hover{border-color:var(--yellow-500);background:var(--yellow-050);transform:translateY(-2px);box-shadow:var(--shadow-sm)}
.section--links{padding-top:0}

/* ---- Nav fit v2: 7 top-level items + 2 CTAs ---- */
/* Never let the bar push past the viewport */
.nav { min-width: 0; flex-wrap: nowrap; }
.nav__links { min-width: 0; flex-wrap: nowrap; }
.nav__cta .btn { white-space: nowrap; }
.site-header, .site-header .container { max-width: 100%; }

/* Tier 1 (<=1400px): drop the secondary "Free Assessment" button first —
   the primary "Book a Consultation" CTA always stays visible. */
@media (max-width: 1400px) {
  .nav__cta .btn--ghost { display: none; }
  .nav__links a { font-size: .84rem; padding: .48em .5em; }
  .nav__links { gap: 0; }
}

/* Tier 2 collapse handled by the main <=1240px breakpoint above. */

/* Right-edge dropdowns open leftward so they can't overflow the window. */
.nav__links > li:nth-last-child(-n+3) .submenu { left: auto; right: 0; }
@media (max-width: 1240px) {
  .nav__links.open > li:nth-last-child(-n+3) .submenu { right: auto; left: 0; }
}

/* Restore both CTAs in the open mobile panel so nothing is lost. */
@media (max-width: 1240px) {
  .nav__links.open .nav__mobile-cta { display: flex; gap: 10px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
  .nav__links.open .nav__mobile-cta .btn { flex: 1 1 0; justify-content: center; padding: .8em 1em; font-size: .9rem; }
}
.nav__mobile-cta { display: none; }
.nav__mobile-only { display: none; }
@media (max-width: 1240px) { .nav__links.open .nav__mobile-only { display: block; } }

/* =====================================================================
   RESPONSIVE PASS — tablet restore, phone tuning, overflow guards
   Appended last so it wins over earlier breakpoints.
   ===================================================================== */

/* ---- Global overflow guards ---- */
html { overflow-x: clip; }  /* on the root, so the sticky header keeps working */
img { max-width: 100%; }
h1, h2, h3, h4, p, blockquote, li, a { overflow-wrap: break-word; }
.container, .grid, .hero__grid, .page-hero__grid { min-width: 0; }
.grid > *, .steps > *, .reqcols > *, .apply-grid > *, .defcards > * { min-width: 0; }

/* ---- Mobile menu: never taller than the screen ---- */
@media (max-width: 1240px) {
  .nav__links.open {
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .nav__links.open a { padding: .68em .8em; }
  .nav__links.open .submenu { padding: 2px 0 6px 14px; }
  .nav__links.open .submenu a { padding: .5em .8em; font-size: .88rem; }
}

/* ---- Tablet 701–1240: two columns instead of one ---- */
@media (min-width: 701px) and (max-width: 1240px) {
  .grid--3, .defcards, .apply-grid, .reqcols, .steps, .steps--6, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Phone (<=640px) ---- */
@media (max-width: 640px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .section { padding: clamp(44px, 9vw, 64px) 0; }
  h1 { font-size: clamp(1.85rem, 7.4vw, 2.4rem); }
  h2 { font-size: clamp(1.45rem, 5.8vw, 1.9rem); }
  .lead { font-size: 1.04rem; }
  .crumbs { font-size: .78rem; }

  /* Buttons: full width, comfortable tap targets */
  .btn { min-height: 46px; }
  .btn--lg { padding: .9em 1.4em; font-size: .98rem; }
  .hero__cta, .btns { display: flex; flex-direction: column; align-items: stretch; }
  .hero__cta .btn, .btns .btn { width: 100%; }
  .cta-band { padding-left: 20px; padding-right: 20px; }

  /* Hero badge floats off-canvas on narrow screens — pin it inline instead */
  .hero__badge { position: static; max-width: none; margin: 14px 0 0; animation: none; }

  /* Cards + testimonials */
  .card, .tcard { padding: 22px; }
  .tcard blockquote { font-size: 1rem; }
  .page-hero .chips .chip { font-size: .8rem; padding: .45em .85em; }

  /* Assessment wizard */
  .stepper { gap: 8px; }
  .stepper .lbl { display: none; }
  .form-actions { flex-direction: column-reverse; gap: 10px; }
  .form-actions .btn { width: 100%; }
  .choice { padding: 14px 15px; font-size: .95rem; }

  /* Booking: offer card + Calendly toggle */
  .offer { padding: 20px 18px 18px; }
  .offer__top { flex-wrap: wrap; gap: 12px; }
  .offer__amt { font-size: 2.1rem; }
  .cal-toggle { display: flex; width: 100%; }
  .cal-opt { flex: 1 1 0; justify-content: center; padding: .6em .5em; font-size: .8rem; }
  .calendly-inline-widget { min-height: 640px; }

  /* Credential badge */
  .rcic-badge { width: 100%; max-width: none; gap: 11px; padding: 11px 13px; }
  .rcic-badge__seal { width: 40px; height: 40px; font-size: 1.4rem; }
  .rcic-badge__name { font-size: .92rem; }
  .rcic-badge__num { font-size: .76rem; }

  /* Resources hub */
  .res-search { flex-direction: column; max-width: none; }
  .res-search .btn { width: 100%; }
  .filterbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
  .filterbar::-webkit-scrollbar { display: none; }
  .filter-chip { flex: 0 0 auto; }
  .featured__body { padding: 0 20px 22px; }

  /* Related-page pills */
  .linkrow a { font-size: .84rem; padding: .55em .9em; }
}

/* ---- Small phone (<=420px) ---- */
@media (max-width: 420px) {
  .grid--4 { grid-template-columns: 1fr; }
  .offer__amt { font-size: 1.9rem; }
  .cal-opt { font-size: .74rem; }
  .cal-opt i { display: none; }
  .stepper .num { width: 30px; height: 30px; font-size: .82rem; }
}

/* ---- Landscape phones: don't let the sticky header eat the screen ---- */
@media (max-height: 480px) and (orientation: landscape) {
  .site-header { position: static; }
  .nav__links.open { max-height: 70dvh; }
}

/* =====================================================================
   HEADER FIX — mobile: logo + hamburger only, CTAs move into the menu
   Cause: logo was flex-shrink:0 / max-width:none and .nav is nowrap, so
   logo + CTA exceeded narrow screens and pushed the toggle off-screen.
   ===================================================================== */

/* The toggle is the one thing that must never be squeezed out. */
.nav__toggle { flex: 0 0 auto; }
.nav__cta { min-width: 0; }

/* Below 820px the header carries the logo and the hamburger. Nothing else. */
@media (max-width: 820px) {
  .nav__cta .btn { display: none; }
  .brand img { max-width: 62vw; height: 30px; flex-shrink: 1; }
  .site-header .container { padding-left: 16px; padding-right: 16px; }
  .nav { gap: 8px; }
}
@media (max-width: 380px) {
  .brand img { height: 26px; max-width: 58vw; }
}

/* Both CTAs live at the TOP of the open menu, where they're seen first. */
@media (max-width: 1240px) {
  .nav__links.open .nav__mobile-cta {
    order: -1;
    display: flex;
    gap: 10px;
    margin: 0 0 12px;
    padding: 0 0 14px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav__links.open .nav__mobile-cta .btn {
    flex: 1 1 0;
    justify-content: center;
    padding: .85em 1em;
    font-size: .92rem;
    min-height: 48px;
  }
  /* Give the primary action visual weight over the ghost button. */
  .nav__links.open .nav__mobile-cta .btn--primary { flex: 1.25 1 0; }
}
@media (max-width: 400px) {
  .nav__links.open .nav__mobile-cta { flex-direction: column; }
  .nav__links.open .nav__mobile-cta .btn { flex: 1 1 auto; }
  .nav__links.open .nav__mobile-cta .btn--primary { order: -1; }
}
