/* =============================================================================
   Anand Singh & Co. — design system & components
   Mobile-first. Tokens first; components below. No framework.
   ============================================================================= */

@font-face { font-family: 'Roboto Slab'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/roboto-slab-latin.woff2') format('woff2'); }

:root {
  /* Colour */
  --primary: #155585;          /* CA India logo blue */
  --primary-700: #114A75;
  --primary-600: #1C64A0;
  --secondary: #1A65A3;        /* link blue, same hue as the logo */
  --secondary-700: #155585;
  --secondary-50: #EAF2F9;
  --accent: #B08A4E;           /* muted bronze — fills, rules */
  --accent-300: #EBCB97;       /* gold on logo blue (>= 4.5:1) */
  --accent-ink: #855E22;       /* bronze text on white (≥4.5:1) */
  --accent-50: #F7F0E4;
  --background: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F5F7FA;        /* tinted sections */
  --text: #0E1726;
  --muted: #566173;
  --border: #E1E6ED;
  --border-strong: #C9D2DE;
  --success: #157347;
  --success-50: #E8F5EE;
  --error: #B42318;
  --error-50: #FDECEA;
  --warn-50: #FFF6E5;
  --wa: #1A8D4E;               /* WhatsApp green, darkened for contrast with white text */
  --wa-hover: #157A42;
  --on-dark: #FFFFFF;
  --on-dark-muted: #D6E3EF;

  /* Type */
  --font-head: 'Roboto Slab', Georgia, 'Times New Roman', serif;
  --font-body: 'Roboto Slab', Georgia, 'Times New Roman', serif;
  --fs-xs: .8125rem; --fs-sm: .9375rem; --fs-base: 1rem; --fs-md: 1.125rem; --fs-lg: 1.25rem;
  --fs-h4: 1.25rem; --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); --fs-h2: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem);
  --fs-h1: clamp(2rem, 1.4rem + 2.8vw, 3.5rem); --fs-display: clamp(2.125rem, 1.4rem + 3.4vw, 4rem);
  --lh-tight: 1.15; --lh-head: 1.25; --lh-body: 1.7;

  /* Space (4px scale) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.25rem; --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem; --s-12: 3rem; --s-16: 4rem; --s-20: 5rem; --s-24: 6rem;
  --section: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --gutter: 1rem;
  --container: 1200px;

  /* Shape & depth */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(14, 58, 92, .06);
  --shadow-sm: 0 1px 2px rgba(14, 58, 92, .05), 0 2px 8px rgba(14, 58, 92, .05);
  --shadow-md: 0 4px 12px rgba(14, 58, 92, .07), 0 12px 32px rgba(14, 58, 92, .07);
  --shadow-lg: 0 18px 50px rgba(14, 58, 92, .18);
  --ring: 0 0 0 3px #fff, 0 0 0 5px var(--secondary);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 150ms; --t: 240ms; --t-slow: 560ms;

  /* Layers */
  --z-header: 50; --z-float: 60; --z-chat: 70; --z-modal: 90; --z-toast: 100;
  --header-h: 72px;
}
@media (min-width: 640px) { :root { --gutter: 1.5rem; } }
@media (min-width: 1280px) { :root { --header-h: 88px; } }

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body { margin: 0; font-family: var(--font-body); font-size: var(--fs-base); line-height: var(--lh-body); color: var(--text); background: var(--background); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--primary); line-height: var(--lh-head); margin: 0 0 var(--s-4); letter-spacing: -.005em; font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -.01em; }
h2 { font-size: var(--fs-h2); letter-spacing: -.01em; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4, .h4 { font-size: var(--fs-h4); font-weight: 700; }
.h3 { font-size: var(--fs-h3); font-weight: 700; } .h5, h5 { font-size: 1.0625rem; font-weight: 700; }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25rem; }
a { color: var(--secondary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--secondary-700); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
code { font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
[hidden] { display: none !important; }

/* Desktop/laptop renders at 90% (as if the browser were zoomed to 90%), at the client's request.
   Phones and tablets stay at 100% so text stays readable and tap targets stay large. */
@media (min-width: 1024px) { html { zoom: .9; } }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 200; background: var(--primary); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: var(--s-3); }
main:focus { outline: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(820px + var(--gutter) * 2); }
.center { text-align: center; }
.lead { font-size: var(--fs-md); color: var(--muted); }
.small { font-size: var(--fs-sm); } .muted { color: var(--muted); }
.accent-text { color: var(--accent-300); }

.eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: var(--s-3); }
.eyebrow--light { color: var(--accent-300); }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-300); box-shadow: 0 0 0 4px rgba(201, 162, 102, .22); }

/* ---------------------------------------------------------------- Buttons */
.btn { --bg: var(--surface); --fg: var(--primary); --bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: .7rem 1.2rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--bd); background: var(--bg); color: var(--fg); font-family: var(--font-head); font-weight: 700; font-size: .9375rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap; transition: background var(--t-fast) var(--ease), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease); touch-action: manipulation; }
.btn:hover { color: var(--fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .ic { width: 1.15em; height: 1.15em; }
.btn-primary { --bg: var(--primary); --fg: #fff; --bd: var(--primary); }
.btn-primary:hover { --bg: var(--primary-600); --bd: var(--primary-600); box-shadow: var(--shadow-sm); }
.btn-accent { --bg: var(--accent-300); --fg: var(--primary); --bd: var(--accent-300); }
.btn-accent:hover { --bg: #F2D8AE; --bd: #F2D8AE; box-shadow: 0 8px 24px rgba(235, 203, 151, .35); }
.btn-ghost { --bg: transparent; --fg: var(--primary); --bd: var(--border-strong); }
.btn-ghost:hover { --bg: var(--surface-2); --bd: var(--primary); }
.btn-outline { --bg: #fff; --fg: var(--secondary); --bd: var(--secondary); }
.btn-outline:hover { --bg: var(--secondary-50); --fg: var(--secondary-700); }
.btn-outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { --bg: rgba(255, 255, 255, .1); --bd: #fff; }
.btn-wa { --bg: var(--wa); --fg: #fff; --bd: var(--wa); }
.btn-wa:hover { --bg: var(--wa-hover); --bd: var(--wa-hover); }
.btn-wa-soft { --bg: #EAF6EF; --fg: #146A3B; --bd: #CBE8D7; }
.btn-wa-soft:hover { --bg: #DDF0E5; --bd: #A9D8BC; }
.btn-sm { min-height: 40px; padding: .5rem .95rem; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: .85rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-weight: 700; color: var(--secondary); text-decoration: none; white-space: nowrap; }
.link-arrow .ic { transition: transform var(--t) var(--ease); }
.link-arrow:hover .ic { transform: translateX(3px); }
.link-arrow--light { color: var(--accent-300); } .link-arrow--light:hover { color: #E2C595; }
.link-inline { display: inline; border: 0; padding: 0; background: none; min-height: 0; color: var(--secondary); font-weight: 600; }
.link-inline .ic { display: none; }
.link-btn { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; padding: .35rem .25rem; color: var(--primary); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; border-radius: 6px; }
.link-btn:hover { color: var(--secondary); }
.link-btn--wa { color: #146A3B; }

.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: var(--r-pill); background: var(--secondary-50); color: var(--secondary-700); font-size: var(--fs-xs); font-weight: 600; line-height: 1.4; }
.chip--muted { background: var(--surface-2); color: var(--muted); }

/* ---------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: #fff; border-bottom: 1px solid transparent; transition: border-color var(--t), box-shadow var(--t); }
/* Frosted header only on desktop: backdrop-filter would make the header the containing block of the fixed mobile drawer */
@media (min-width: 1280px) { .site-header { background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px); } }
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-xs); }
.site-header__inner { display: flex; align-items: center; gap: var(--s-4); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--primary); flex: none; margin-right: auto; }
.brand__logo { display: block; flex: none; line-height: 0; }
.brand__logo picture { display: block; }
.brand__logo img { display: block; height: 60px; width: auto; max-width: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.375rem; letter-spacing: -.005em; }
.brand__sub { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-top: 4px; }
.brand--light { color: #fff; } .brand--light .brand__sub { color: var(--accent-300); }
.site-footer .brand__logo img { height: 60px; }

.header-cta { display: flex; align-items: center; gap: var(--s-2); }
.header-cta .btn { min-height: 42px; padding: .55rem .95rem; font-size: .875rem; }
.header-cta__wa { padding-inline: .75rem; }
.header-cta__wa .ic { width: 20px; height: 20px; max-width: none; }
.header-cta__book span { display: none; }
.header-cta__book::after { content: 'Book'; }
.hide-sm { display: none; }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1.5px solid var(--border-strong); background: #fff; color: var(--primary); }
.menu-btn .ic { width: 22px; height: 22px; }
.menu-btn__close { display: none; }
.nav-open .menu-btn__open { display: none; } .nav-open .menu-btn__close { display: block; }
@media (min-width: 600px) { .header-cta__book span { display: inline; } .header-cta__book::after { content: none; } }
@media (max-width: 479px) {
  .site-header__inner { gap: var(--s-2); }
  .brand { gap: .5rem; }
  .brand__logo img { height: 40px; }
  .brand__name { font-size: .875rem; }
  .brand__sub { font-size: .5625rem; letter-spacing: .1em; }
  .header-cta { gap: 6px; }
  .header-cta .btn { min-height: 40px; }
  .header-cta .header-cta__wa { width: 40px; padding: 0; }
  .header-cta .header-cta__book { padding-inline: .7rem; font-size: .8125rem; }
  .header-cta__book .ic { display: none; }
  .menu-btn { width: 40px; height: 40px; }
}
@media (min-width: 480px) and (max-width: 767px) { .brand__name { font-size: 1rem; } .brand__sub { font-size: .625rem; } .brand__logo img { height: 44px; } }
@media (max-width: 399px) { .brand__name { font-size: .8125rem; } .brand__sub { font-size: .5rem; letter-spacing: .06em; } .brand__logo img { height: 36px; } }
@media (max-width: 359px) { .brand__text { display: none; } }
/* Grid/flex children may shrink below their content width (prevents horizontal overflow on phones) */
.grid > *, .split > *, .contact-grid > *, .kc-layout > *, .article-layout > *, .calc-layout > *, .svc-layout > *, .why > *, .hero__inner > *, .res-teaser > *, .footer-top > *, .footer-cols > * { min-width: 0; }
@media (min-width: 900px) and (max-width: 1279px), (min-width: 1600px) { .hide-sm { display: inline; } .header-cta__wa { padding-inline: .95rem; } }
.site-header .container { max-width: calc(1360px + var(--gutter) * 2); }

/* Mobile nav drawer */
.nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: var(--s-4) var(--gutter) var(--s-8); overflow-y: auto; overscroll-behavior: contain; opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t); z-index: var(--z-header); border-top: 1px solid var(--border); }
.nav-open .nav { opacity: 1; transform: none; visibility: visible; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.nav-open { overflow: hidden; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--border); }
.nav__link { flex: 1; display: block; padding: .95rem 0; font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; color: var(--primary); text-decoration: none; }
.nav__link[aria-current='page'] { color: var(--secondary); }
.nav__toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--primary); border-radius: var(--r-sm); }
.nav__toggle .ic { transition: transform var(--t) var(--ease); }
.nav__toggle[aria-expanded='true'] .ic { transform: rotate(180deg); }
.mega, .drop { display: none; width: 100%; padding-bottom: var(--s-3); }
.nav__toggle[aria-expanded='true'] + .mega, .nav__toggle[aria-expanded='true'] + .drop { display: block; }
.mega__grid, .drop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega a, .drop a { display: flex; align-items: center; gap: .75rem; padding: .6rem .5rem; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-size: var(--fs-sm); }
.mega a:hover, .drop a:hover { background: var(--surface-2); color: var(--primary); }
.mega a strong { display: block; font-family: var(--font-head); color: var(--primary); font-size: .9375rem; }
.mega a small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.mega__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--secondary-50); color: var(--secondary); flex: none; }
.drop .ic { color: var(--secondary); }
.nav__mobile-cta { display: grid; gap: var(--s-3); margin-top: var(--s-6); }

@media (min-width: 1280px) {
  .nav { position: static; inset: auto; transform: none; visibility: visible; opacity: 1; padding: 0; overflow: visible; background: none; border: 0; transition: none; }
  .nav__list { display: flex; align-items: center; gap: .1rem; }
  .nav__item { border: 0; flex-wrap: nowrap; }
  .nav__link { padding: .5rem .5rem; font-size: .9375rem; font-weight: 600; border-radius: var(--r-sm); white-space: nowrap; }
  .nav__link:hover { color: var(--secondary); }
  .nav__link[aria-current='page'] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
  .has-menu .nav__link { padding-right: .1rem; }
  .nav__toggle { width: 26px; height: 32px; margin-right: .2rem; }
  .nav__toggle .ic { width: 16px; height: 16px; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  .nav__link { font-size: .875rem; padding-inline: .4rem; }
  .nav__toggle { width: 22px; }
  .site-header__inner { gap: var(--s-3); }
}
@media (min-width: 1280px) {
  .mega, .drop { position: absolute; top: calc(100% + 10px); left: -.5rem; width: max-content; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: var(--s-3); }
  .mega { left: -1rem; width: 640px; }
  .mega__grid { grid-template-columns: 1fr 1fr; }
  .drop { min-width: 240px; }
  .drop--right { left: auto; right: 0; }
  .has-menu:hover > .mega, .has-menu:hover > .drop, .has-menu:focus-within > .mega, .has-menu:focus-within > .drop { display: block; }
  .has-menu::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
  .nav__mobile-cta, .menu-btn { display: none; }
  .brand { margin-right: var(--s-2); }
  .nav { margin-right: auto; }
}

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--primary); color: var(--on-dark); padding: clamp(3rem, 2rem + 5vw, 6.5rem) 0 clamp(3.5rem, 2rem + 5vw, 6rem); }
.hero__bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(29, 95, 191, .35), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(201, 162, 102, .12), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--primary); }
.hero__inner { display: grid; gap: var(--s-12); align-items: center; }
.hero h1 { color: #fff; font-size: var(--fs-display); max-width: 15ch; }
.hero__lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--on-dark-muted); max-width: 54ch; margin-bottom: var(--s-8); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-8); }
.hero__trust { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-6); max-width: 640px; }
.hero__trust li { display: flex; align-items: center; gap: .55rem; font-size: var(--fs-sm); color: #DCE4EF; font-weight: 500; white-space: nowrap; }
@media (max-width: 400px) { .hero__trust { grid-template-columns: 1fr; } }
.hero__trust .ic { color: var(--accent-300); }
.hero__visual { max-width: 560px; justify-self: center; width: 100%; }
.hero-art { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .35)); }
@media (min-width: 1024px) { .hero__inner { grid-template-columns: 1.08fr .92fr; } .hero__trust { grid-template-columns: repeat(4, auto); } }
@media (max-width: 1023px) { .hero__visual { max-width: 460px; } }
@media (max-width: 520px) { .hero__actions .btn { width: 100%; } .hero__visual { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .ha-float { animation: float 7s var(--ease) infinite alternate; transform-box: fill-box; }
  .ha-float--2 { animation-delay: -2.5s; animation-duration: 8s; } .ha-float--3 { animation-delay: -4s; animation-duration: 9s; }
  @keyframes float { from { transform: translateY(0); } to { transform: translateY(-8px); } }
}

/* ---------------------------------------------------------------- Trust / stats */
.trust { background: #fff; border-bottom: 1px solid var(--border); }
.stats { display: grid; grid-template-columns: 1fr 1fr; }
.stat { padding: var(--s-6) var(--s-4); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat:nth-child(2n) { border-right: 0; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); color: var(--primary); line-height: 1; margin: 0 0 var(--s-2); letter-spacing: -.02em; }
.stat__label { font-weight: 600; color: var(--text); margin: 0; font-size: var(--fs-sm); }
.stat__sub { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } .stat { border-bottom: 0; padding: var(--s-8) var(--s-6); } .stat:nth-child(2n) { border-right: 1px solid var(--border); } .stat:last-child { border-right: 0; } .stat:first-child { padding-left: 0; } }

/* ---------------------------------------------------------------- Sections */
.section { padding: var(--section) 0; }
.section--tint { background: var(--surface-2); }
.section--navy { background: var(--primary); color: var(--on-dark); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .section-head__text { color: var(--on-dark-muted); }
.section--navy .eyebrow { color: var(--accent-300); }
.section--tight { padding: var(--s-8) 0 var(--s-6); }
.section--flush-top { padding-top: 0; }
.section-head { max-width: 720px; margin-bottom: var(--s-10); }
.section-head h2 { margin-bottom: var(--s-3); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head__text { color: var(--muted); font-size: var(--fs-md); margin: 0; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4) var(--s-8); margin-bottom: var(--s-10); }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------------------------------------------------------------- Grids & cards */
.grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--services { grid-template-columns: repeat(2, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3, .grid--services { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } .grid { gap: var(--s-6); } }

.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); transition: border-color var(--t), box-shadow var(--t) var(--ease), transform var(--t) var(--ease); }
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card:focus-within { border-color: var(--secondary); }
.card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--secondary-50); color: var(--secondary); margin-bottom: var(--s-5); flex: none; }
.card__icon .ic { width: 26px; height: 26px; }
.card__icon--sm { width: 44px; height: 44px; border-radius: 12px; margin-bottom: var(--s-4); } .card__icon--sm .ic { width: 22px; height: 22px; }
.card__icon--xs { width: 36px; height: 36px; border-radius: 10px; margin: 0; } .card__icon--xs .ic { width: 18px; height: 18px; }
.card__kicker { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 var(--s-1); }
.card__title { font-size: 1.1875rem; margin-bottom: var(--s-2); }
.card__title a { color: var(--primary); text-decoration: none; }
.card__text { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--s-4); }
.card__more { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; font-family: var(--font-head); font-weight: 700; font-size: var(--fs-sm); color: var(--secondary); }
.card__more .ic { transition: transform var(--t) var(--ease); }
.card:hover .card__more .ic { transform: translateX(4px); }
.stretched::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.stretched:focus-visible { box-shadow: none; } .stretched:focus-visible::after { box-shadow: var(--ring); }

.ticks { list-style: none; padding: 0; margin: 0 0 var(--s-4); display: grid; gap: .55rem; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; }
.ticks .ic { color: var(--success); width: 1.1em; height: 1.1em; margin-top: .25em; stroke-width: 2.25; }
.ticks--sm { font-size: var(--fs-sm); gap: .35rem; margin-bottom: var(--s-5); }
@media (min-width: 768px) { .ticks--cols { grid-template-columns: 1fr 1fr; gap: .6rem var(--s-8); } }

/* Service grid closing CTA card (fills the empty slots after 10 services) */
.service-card--cta { background: linear-gradient(135deg, var(--primary), var(--primary-600)); border-color: var(--primary); color: #fff; justify-content: center; }
.service-card--cta:hover { transform: none; border-color: var(--primary); }
.service-card--cta h3 { color: #fff; } .service-card--cta p { color: var(--on-dark-muted); }
.service-card--cta .btn-row { margin-top: var(--s-2); }
@media (min-width: 640px) and (max-width: 1023px) { .service-card--cta { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .service-card--cta { grid-column: span 2; } }

/* Stages */
.stage { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); border-top: 3px solid var(--accent); }
.stage__num { position: absolute; top: var(--s-5); right: var(--s-6); font-family: var(--font-head); font-weight: 800; font-size: 1.75rem; color: var(--border-strong); margin: 0; line-height: 1; }
.stage h3 { margin-bottom: var(--s-2); }
.stage__text { color: var(--muted); font-size: var(--fs-sm); }
.stage__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.stage__list a { display: block; padding: .35rem 0; color: var(--text); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; border-bottom: 1px dashed var(--border); }
.stage__list li:last-child a { border-bottom: 0; }
.stage__list a:hover { color: var(--secondary); }

/* Why */
.why { display: grid; gap: var(--s-10); }
@media (min-width: 1024px) { .why { grid-template-columns: .85fr 1.15fr; gap: var(--s-16); } .why__intro { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.why__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.why__grid { gap: var(--s-8) var(--s-6); }
.why-item { display: flex; gap: var(--s-4); }
.why-item h3 { font-size: 1.0625rem; margin-bottom: var(--s-1); }
.why-item p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.why-item .card__icon { margin: 0; }
.why-item--card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); }

/* Team */
.team-card { display: grid; gap: var(--s-5); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-xl); padding: var(--s-6); }
.section:not(.section--navy) .team-card { background: #fff; border-color: var(--border); }
.team-card img { width: 112px; height: 112px; border-radius: 18px; object-fit: cover; box-shadow: 0 0 0 4px rgba(201, 162, 102, .35); }
.team-card h3 { margin-bottom: 2px; }
.team-card__role { font-weight: 600; margin: 0 0 var(--s-1); color: var(--accent-300); }
.section:not(.section--navy) .team-card__role { color: var(--accent-ink); }
.team-card__qual { font-size: var(--fs-sm); margin-bottom: var(--s-3); opacity: .85; }
.team-card__bio { font-size: var(--fs-sm); color: var(--on-dark-muted); }
.section:not(.section--navy) .team-card__bio { color: var(--muted); }
.section--navy .link-arrow { color: var(--accent-300); }
@media (min-width: 640px) { .team-card { grid-template-columns: auto 1fr; } }

/* Industries / chips */
.ind-chips, .cat-pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.ind-chips a { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .6rem 1.05rem; border-radius: var(--r-pill); border: 1px solid var(--border); background: #fff; color: var(--primary); font-weight: 600; text-decoration: none; transition: border-color var(--t), background var(--t); }
.ind-chips a:hover { border-color: var(--secondary); background: var(--secondary-50); }
.ind-chips .ic { color: var(--accent-ink); }
.cat-pills { margin-top: var(--s-8); }
.cat-pills a { display: inline-block; padding: .45rem .9rem; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--border); font-size: var(--fs-sm); font-weight: 600; color: var(--primary); text-decoration: none; }
.cat-pills a:hover { border-color: var(--secondary); color: var(--secondary); }

/* Knowledge card */
.k-card__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); font-size: var(--fs-xs); color: var(--muted); }
.review-flag { display: flex; align-items: center; gap: .35rem; font-size: var(--fs-xs); color: #8A5A00; margin: 0 0 var(--s-3); }

/* Resource teaser */
.res-teaser { display: grid; gap: var(--s-8); align-items: center; }
.res-teaser__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.res-teaser__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.res-teaser__list a { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); color: var(--primary); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; min-height: 52px; }
.res-teaser__list a:hover { border-color: var(--secondary); }
.res-teaser__list .ic { color: var(--secondary); }
@media (min-width: 1024px) { .res-teaser { grid-template-columns: 1fr 1fr; gap: var(--s-16); } }
@media (max-width: 420px) { .res-teaser__list { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: var(--s-3); }
.faq__item { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); transition: border-color var(--t); }
.faq__item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: 1rem 1.25rem; cursor: pointer; font-family: var(--font-head); font-weight: 700; color: var(--primary); min-height: 56px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ic { color: var(--secondary); transition: transform var(--t) var(--ease); }
.faq__item[open] summary .ic { transform: rotate(45deg); }
.faq__a { padding: 0 1.25rem 1.1rem; color: var(--muted); }
.faq__a p { margin: 0; }

/* ---------------------------------------------------------------- Contact & forms */
.contact-grid { display: grid; gap: var(--s-10); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: var(--s-16); align-items: start; } }
.quick-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-8); }
.quick-actions--stack { display: grid; grid-template-columns: 1fr; }
@media (min-width: 560px) { .quick-actions--stack { grid-template-columns: 1fr 1fr; } }
.action-tile { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; color: var(--primary); text-decoration: none; text-align: left; min-height: 64px; transition: border-color var(--t), box-shadow var(--t); }
.action-tile:hover { border-color: var(--secondary); box-shadow: var(--shadow-sm); color: var(--primary); }
.action-tile .ic { width: 26px; height: 26px; color: var(--secondary); }
.action-tile--wa .ic { color: var(--wa); }
.action-tile strong { display: block; font-family: var(--font-head); }
.action-tile small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.contact-points { list-style: none; padding: 0; margin: 0 0 var(--s-4); display: grid; gap: var(--s-4); }
.contact-points li { display: flex; gap: var(--s-3); align-items: flex-start; }
.contact-points .ic { color: var(--accent-ink); margin-top: .2em; }
.contact-points a { font-weight: 500; }
.office-card { background: var(--surface-2); border-radius: var(--r-lg); padding: var(--s-6); }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); box-shadow: var(--shadow-md); }
.form-card__title { font-size: 1.375rem; margin-bottom: var(--s-5); }
.form__grid { display: grid; gap: var(--s-4) var(--s-5); }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field label { font-weight: 600; font-size: var(--fs-sm); color: var(--primary); }
.req { color: var(--error); } .opt { font-weight: 400; color: var(--muted); }
.field input:not([type=checkbox]):not([type=file]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1.5px solid var(--border-strong); border-radius: var(--r-sm); background: #fff; font-size: 1rem; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23155585' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(29, 95, 191, .18); }
.field input[type=file] { padding: .55rem; border: 1.5px dashed var(--border-strong); border-radius: var(--r-sm); background: var(--surface-2); min-height: 48px; }
.field [aria-invalid=true] { border-color: var(--error) !important; background-color: #FFFBFA; }
.field__err { margin: 0; color: var(--error); font-size: var(--fs-xs); font-weight: 500; min-height: 0; }
.field__err:empty { display: none; }
.field__help { margin: 0; color: var(--muted); font-size: var(--fs-xs); }
.field--check { flex-direction: row; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 500 !important; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--secondary); flex: none; }
.input-wrap { display: flex; align-items: stretch; }
.input-wrap input { flex: 1; min-width: 0; }
.input-affix { display: grid; place-items: center; padding: 0 .8rem; background: var(--surface-2); border: 1.5px solid var(--border-strong); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); color: var(--muted); font-weight: 600; font-size: var(--fs-sm); }
.input-affix + input { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.input-wrap input:has(+ .input-affix--end) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-affix--end { border: 1.5px solid var(--border-strong); border-left: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; white-space: nowrap; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__summary { margin-bottom: var(--s-5); padding: var(--s-4); border-radius: var(--r-md); background: var(--error-50); border: 1px solid #F5C2BC; color: #7A1A12; font-size: var(--fs-sm); }
.form__summary p { margin: 0 0 var(--s-1); } .form__summary ul { margin: 0; } .form__summary a { color: #7A1A12; font-weight: 600; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-top: var(--s-6); }
.form__note { margin: 0; font-size: var(--fs-xs); color: var(--muted); flex: 1 1 220px; }
.form__hint { color: var(--muted); font-size: var(--fs-sm); }
.form-success { text-align: center; padding: var(--s-8) var(--s-4); }
.form-success .ic { width: 56px; height: 56px; color: var(--success); margin: 0 auto var(--s-4); }
.form-success h3 { margin-bottom: var(--s-2); }
@media (max-width: 520px) { .form__foot .btn { width: 100%; } }

/* ---------------------------------------------------------------- CTA band */
.cta-band { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%); color: #fff; padding: clamp(2.75rem, 2rem + 3vw, 4.5rem) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(201, 162, 102, .25); }
.cta-band__inner { display: grid; gap: var(--s-6); align-items: center; position: relative; }
.cta-band h2 { color: #fff; margin-bottom: var(--s-2); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); }
.cta-band p { color: var(--on-dark-muted); margin: 0; max-width: 56ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; } }
@media (max-width: 520px) { .cta-band__actions .btn { width: 100%; } }

/* ---------------------------------------------------------------- Page hero & breadcrumb */
.page-hero { background: var(--primary); color: var(--on-dark); padding: clamp(2rem, 1.5rem + 2.5vw, 3.75rem) 0 clamp(2.25rem, 1.5rem + 3vw, 4rem); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 40px 40px, radial-gradient(700px 300px at 90% 0, rgba(29, 95, 191, .35), transparent 70%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 22ch; margin-bottom: var(--s-3); font-size: clamp(1.875rem, 1.4rem + 2.2vw, 3rem); }
.page-hero__lead { color: var(--on-dark-muted); font-size: var(--fs-md); max-width: 64ch; margin: 0; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.breadcrumb { margin-bottom: var(--s-5); font-size: var(--fs-xs); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.breadcrumb li { display: flex; align-items: center; gap: .5rem; color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: '/'; opacity: .5; }
.breadcrumb a { color: #DCE4EF; text-decoration: none; } .breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; font-weight: 600; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-head { display: grid; gap: var(--s-6); align-items: center; }
.profile-head img { width: 148px; height: 148px; border-radius: 22px; object-fit: cover; box-shadow: 0 0 0 4px rgba(201, 162, 102, .45); }
.profile-head h1 { margin-bottom: var(--s-2); }
.profile-head__qual { color: #DCE4EF; font-weight: 500; margin: 0; }
@media (min-width: 640px) { .profile-head { grid-template-columns: auto 1fr; gap: var(--s-8); } }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem; font-size: var(--fs-sm); color: var(--on-dark-muted); margin: var(--s-5) 0 0; }

/* ---------------------------------------------------------------- Content layouts */
.split { display: grid; gap: var(--s-10); }
@media (min-width: 1024px) { .split { grid-template-columns: 1.4fr .9fr; gap: var(--s-16); align-items: start; } .split--form { grid-template-columns: .8fr 1.2fr; } }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); margin-top: var(--s-10); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1875rem; margin-top: var(--s-8); }
.prose p, .prose li { color: #273246; }
.prose li { margin-bottom: .35rem; }
.prose table { margin: var(--s-6) 0; font-size: var(--fs-sm); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; display: block; overflow-x: auto; }
.prose th, .prose td { padding: .6rem .85rem; border-bottom: 1px solid var(--border); text-align: left; }
.prose thead th { background: var(--surface-2); font-family: var(--font-head); color: var(--primary); }
.prose .ticks li { color: var(--text); }
.fact-card { background: var(--surface-2); border-radius: var(--r-xl); padding: var(--s-8) var(--s-6); position: sticky; top: calc(var(--header-h) + 24px); }
.fact-card dl { margin: 0 0 var(--s-6); display: grid; gap: var(--s-4); }
.fact-card dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fact-card dd { margin: 0; font-weight: 600; color: var(--primary); }
.notice { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--secondary-50); color: #213A5E; font-size: var(--fs-sm); margin: var(--s-6) 0; }
.notice .ic { color: var(--secondary); margin-top: .15em; }
.notice--warn { background: var(--warn-50); color: #6B4500; } .notice--warn .ic { color: #A86A00; }
.notice--sm { margin: 0; padding: var(--s-3) var(--s-4); font-size: var(--fs-xs); }

/* Service page */
.svc-layout { display: grid; gap: var(--s-10); }
@media (min-width: 1024px) { .svc-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-16); align-items: start; } .svc-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.svc-group { margin-top: var(--s-10); padding-top: var(--s-8); border-top: 1px solid var(--border); }
.svc-group h2 { margin-bottom: var(--s-5); }
.svc-group--accent { background: var(--accent-50); border: 0; border-radius: var(--r-lg); padding: var(--s-8) var(--s-6); }
.svc-faq { margin-top: var(--s-12); }
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.pill-list li { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border-radius: var(--r-pill); background: var(--surface-2); font-size: var(--fs-sm); font-weight: 500; }
.pill-list .ic { color: var(--secondary); }
.aside-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s-6); box-shadow: var(--shadow-md); display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
.aside-card h2 { margin: 0; } .aside-card p { margin: 0; color: var(--muted); font-size: var(--fs-sm); } .aside-card .eyebrow { margin: 0; }
.aside-card--plain { box-shadow: none; background: var(--surface-2); border: 0; }
.aside-card--plain h2 { display: flex; align-items: center; gap: .4rem; }
.aside-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.aside-links a { display: flex; align-items: center; gap: .6rem; padding: .5rem .25rem; color: var(--primary); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; border-radius: 6px; }
.aside-links a:hover { color: var(--secondary); }
.aside-links .ic { color: var(--secondary); }
.mini-cta { display: grid; gap: var(--s-4); align-items: center; padding: var(--s-6); border: 1px solid var(--border); border-radius: var(--r-xl); }
.mini-cta h2 { margin: 0 0 var(--s-1); } .mini-cta p { margin: 0; color: var(--muted); font-size: var(--fs-sm); } .mini-cta .card__icon { margin: 0; }
@media (min-width: 768px) { .mini-cta { grid-template-columns: auto 1fr auto; } }

/* Solutions & industries pages */
.stage-rows { display: grid; gap: var(--s-6); }
.stage-row { display: grid; gap: var(--s-6); padding: var(--s-8) var(--s-6); background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); border-left: 4px solid var(--accent); }
.stage-row__head { position: relative; }
.stage-row__head .stage__num { top: 0; right: 0; }
.stage-row__head h2 { margin-bottom: var(--s-2); }
.stage-row__head p:not(.stage__num) { color: var(--muted); margin: 0; }
.stage-row__items { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.stage-row__items a { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--border); border-radius: var(--r-md); text-decoration: none; color: var(--primary); min-height: 60px; }
.stage-row__items a:hover { border-color: var(--secondary); background: var(--secondary-50); }
.stage-row__items a > span:not(.card__icon) { flex: 1; } .stage-row__items small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.stage-row__items a > .ic { color: var(--secondary); }
@media (min-width: 900px) { .stage-row { grid-template-columns: .8fr 1.2fr; gap: var(--s-12); } .stage-row__items { grid-template-columns: 1fr 1fr; } }
.ind-card__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s-2); }
.tag-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tag-links a { display: inline-block; padding: .3rem .7rem; border-radius: var(--r-pill); background: var(--secondary-50); color: var(--secondary-700); font-size: var(--fs-xs); font-weight: 600; text-decoration: none; }
.tag-links a:hover { background: var(--secondary); color: #fff; }
.ind-card:hover { transform: none; }

/* ---------------------------------------------------------------- Knowledge / library tools */
.kc-tools { display: grid; gap: var(--s-4); }
.search-box { position: relative; max-width: 640px; }
.search-box .ic { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { width: 100%; min-height: 54px; padding: .8rem 1rem .8rem 2.85rem; border: 1.5px solid var(--border-strong); border-radius: var(--r-pill); font-size: 1rem; background: #fff; }
.search-box input:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(29, 95, 191, .18); }
.filter-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.fchip { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .4rem .9rem; border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: #fff; color: var(--primary); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.fchip span { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.fchip:hover { border-color: var(--secondary); }
.fchip[aria-pressed=true] { background: var(--primary); border-color: var(--primary); color: #fff; }
.fchip[aria-pressed=true] span { color: var(--on-dark-muted); }
.filter-status { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.kc-layout { display: grid; gap: var(--s-10); }
@media (min-width: 1024px) { .kc-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-12); align-items: start; } }
.kc-h { margin-bottom: var(--s-5); }
.pop-list { margin: 0; padding-left: 1.2rem; display: grid; gap: var(--s-2); font-size: var(--fs-sm); }
.pop-list a { color: var(--primary); text-decoration: none; font-weight: 500; } .pop-list a:hover { color: var(--secondary); }
.empty-state { padding: var(--s-8); text-align: center; color: var(--muted); background: var(--surface-2); border-radius: var(--r-lg); }
.empty-card { padding: var(--s-10) var(--s-8); border: 1px dashed var(--border-strong); border-radius: var(--r-xl); }
.empty-card p { color: var(--muted); }

.article-layout { display: grid; gap: var(--s-10); }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-16); align-items: start; } .article-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.article-body { font-size: 1.0625rem; }

/* Forms library */
.res-list { display: grid; gap: var(--s-3); }
.res-card { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-4); align-items: start; padding: var(--s-4) var(--s-5); background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); transition: border-color var(--t); }
.res-card:hover { border-color: var(--border-strong); }
.res-card__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--accent-50); color: var(--accent-ink); }
.res-card__no { margin: 0; font-family: var(--font-head); font-weight: 800; color: var(--primary); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.res-card h3 { font-size: var(--fs-sm); font-family: var(--font-body); font-weight: 600; color: var(--text); margin: 2px 0; }
.res-card p:last-child { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.res-card__dl { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 768px) { .res-card { grid-template-columns: auto 1fr auto; align-items: center; } .res-card__dl { grid-column: auto; } }
.form-notes { margin-top: var(--s-10); gap: var(--s-3); }
.util-card .btn-row { margin-top: auto; }
.link-groups { margin-bottom: var(--s-6); }
.link-group { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); }
.link-group ul { list-style: none; padding: 0; margin: 0; }
.link-group a { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: .65rem 0; border-bottom: 1px solid var(--border); color: var(--primary); text-decoration: none; font-weight: 500; font-size: var(--fs-sm); }
.link-group li:last-child a { border-bottom: 0; }
.link-group a:hover { color: var(--secondary); }
.link-group .ic { color: var(--muted); width: 1em; height: 1em; }

/* Calculators */
.jump-nav { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.jump-nav a { padding: .45rem .95rem; border-radius: var(--r-pill); background: var(--surface-2); color: var(--primary); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.jump-nav a:hover { background: var(--secondary-50); color: var(--secondary); }
.group-title { font-size: 1.375rem; padding-bottom: var(--s-3); border-bottom: 1px solid var(--border); margin-bottom: var(--s-6); }
.calc-layout { display: grid; gap: var(--s-10); }
@media (min-width: 1024px) { .calc-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-12); align-items: start; } .calc-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.calc__form { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); box-shadow: var(--shadow-sm); }
.calc__legend { font-family: var(--font-head); font-weight: 800; color: var(--primary); font-size: var(--fs-sm); letter-spacing: .06em; text-transform: uppercase; margin: var(--s-8) 0 var(--s-4); padding-top: var(--s-6); border-top: 1px solid var(--border); }
.calc__form > .calc__legend:first-child { margin-top: 0; padding-top: 0; border: 0; }
.calc__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }
.calc__actions + .form__summary { margin: var(--s-5) 0 0; }
@media (max-width: 520px) { .calc__actions .btn { flex: 1; } }
.calc__result { margin-top: var(--s-6); scroll-margin-top: calc(var(--header-h) + 16px); }
.disclaimer { color: var(--muted); padding: 0 var(--s-2); }
.gst-lines { display: grid; gap: var(--s-4); margin-bottom: var(--s-4); }
.gst-line { position: relative; display: grid; gap: var(--s-3) var(--s-4); margin: 0; padding: var(--s-5); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
@media (min-width: 640px) { .gst-line { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .gst-line { grid-template-columns: 1.3fr .8fr 1.2fr .9fr; } }
.line-remove { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 50%; }
.line-remove:hover { background: #fff; color: var(--error); }
.hra-table { margin-top: var(--s-5); }
.td-center { text-align: center; }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-md); }
.data-table { font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.data-table caption { text-align: left; padding: var(--s-3) var(--s-4); font-family: var(--font-head); font-weight: 700; color: var(--primary); background: var(--surface-2); }
.data-table th, .data-table td { padding: .6rem .85rem; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.data-table thead th { font-family: var(--font-head); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fff; }
.data-table tbody th { font-weight: 500; color: var(--text); }
.data-table .num { text-align: right; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tfoot th, .data-table tfoot td { font-weight: 700; background: var(--surface-2); border-top: 1px solid var(--border-strong); border-bottom: 0; }
.data-table tr.is-total th, .data-table tr.is-total td { font-weight: 800; color: var(--primary); background: var(--accent-50); }
.data-table tr.is-sub th, .data-table tr.is-sub td { font-weight: 700; background: var(--surface-2); }
.data-table--striped tbody tr:nth-child(even) { background: #FAFBFC; }
.data-table--input td { padding: .35rem .4rem; }
.data-table--input input:not([type=checkbox]) { width: 100%; min-width: 96px; min-height: 40px; padding: .4rem .6rem; border: 1px solid var(--border-strong); border-radius: 6px; font-size: .9375rem; }
.data-table--input input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--secondary); }
.data-table--compare td { min-width: 120px; }

/* Result card */
.result-card { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-md); animation: rise var(--t-slow) var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.result-card__head { background: var(--primary); color: #fff; padding: var(--s-6); position: relative; }
.result-card__head::after { content: ''; position: absolute; left: var(--s-6); bottom: 0; width: 64px; height: 3px; background: var(--accent-300); }
.result-card__label { margin: 0 0 var(--s-1); color: var(--on-dark-muted); font-size: var(--fs-sm); font-weight: 500; }
.result-card__value { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.875rem, 1.5rem + 1.6vw, 2.625rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.result-card__sub { margin: var(--s-2) 0 0; color: #DCE4EF; font-size: var(--fs-sm); }
.result-rows { margin: 0; padding: var(--s-4) var(--s-6); }
.result-rows > div { display: flex; justify-content: space-between; gap: var(--s-4); padding: .6rem 0; border-bottom: 1px solid var(--border); }
.result-rows > div:last-child { border-bottom: 0; }
.result-rows dt { color: var(--muted); font-size: var(--fs-sm); }
.result-rows dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.result-rows .is-total dt, .result-rows .is-total dd { color: var(--primary); font-weight: 800; }
.result-card > .table-wrap, .result-details { margin: 0 var(--s-6) var(--s-5); }
.result-details summary { cursor: pointer; font-weight: 600; color: var(--secondary); padding: var(--s-2) 0; }
.result-details .table-wrap { margin-top: var(--s-3); max-height: 420px; overflow: auto; }
.result-notes { margin: 0 var(--s-6) var(--s-5); padding: var(--s-4) var(--s-4) var(--s-4) 2rem; background: var(--surface-2); border-radius: var(--r-md); font-size: var(--fs-xs); color: var(--muted); }
.result-notes li { margin-bottom: .3rem; }
.result-card__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); padding: 0 var(--s-6) var(--s-6); }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: #0E3A5C; color: var(--on-dark-muted); padding: var(--s-16) 0 var(--s-8); font-size: var(--fs-sm); }
.footer-top { display: grid; gap: var(--s-12); padding-bottom: var(--s-12); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand p { margin: var(--s-5) 0; max-width: 40ch; }
.footer-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8) var(--s-6); }
.footer-h { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-300); margin-bottom: var(--s-4); font-weight: 800; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.footer-cols a { color: #D3DCE8; text-decoration: none; display: inline-block; padding: .3rem 0; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-contact { grid-column: 1 / -1; }
.footer-contact .contact-points { gap: var(--s-3); }
.footer-contact .contact-points .ic { color: var(--accent-300); }
.footer-contact strong { color: #fff; }
.social { list-style: none; display: flex; gap: var(--s-2); padding: 0; margin: var(--s-5) 0 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3) var(--s-6); padding-top: var(--s-6); font-size: var(--fs-xs); }
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-4); padding: 0; margin: 0; }
.footer-bottom a { color: #D3DCE8; text-decoration: none; } .footer-bottom a:hover { color: #fff; }
.footer-note { flex-basis: 100%; opacity: .8; }
@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } .footer-contact { grid-column: 1 / -1; } }
@media (min-width: 1280px) { .footer-top { grid-template-columns: 300px 1fr; gap: var(--s-16); } .footer-cols { grid-template-columns: .8fr 1fr .9fr 1fr 1.2fr; } .footer-contact { grid-column: auto; } }

/* ---------------------------------------------------------------- Floating WhatsApp & chat */
.wa-float, .chat-fab { position: fixed; z-index: var(--z-float); bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; place-items: center; border: 0; border-radius: 50%; box-shadow: 0 10px 30px rgba(14, 58, 92, .28); transition: transform var(--t) var(--ease), opacity var(--t), visibility var(--t); }
.wa-float { right: 16px; width: 54px; height: 54px; background: #25D366; color: #fff; }
.wa-float .ic { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); color: #fff; }
.chat-fab { right: 82px; height: 54px; width: auto; padding: 0 1.1rem 0 .95rem; border-radius: var(--r-pill); background: #0E3A5C; border: 2px solid #fff; color: #fff; display: inline-flex; gap: .45rem; font-family: var(--font-head); font-weight: 700; font-size: .9375rem; }
.chat-fab .ic { width: 22px; height: 22px; color: var(--accent-300); }
.chat-fab:hover { transform: translateY(-2px); }
.footer-in-view .wa-float, .footer-in-view .chat-fab { opacity: 0; visibility: hidden; transform: translateY(12px); }
.chat-open .chat-fab, .chat-open .wa-float, .modal-open .wa-float, .modal-open .chat-fab, .nav-open .wa-float, .nav-open .chat-fab { opacity: 0; visibility: hidden; }
@media (max-width: 420px) { .chat-fab__label { display: none; } .chat-fab { width: 54px; padding: 0; justify-content: center; right: 80px; } }
/* Keep floating buttons clear of page content at the very bottom */
main { padding-bottom: 0; }
.site-footer { padding-bottom: calc(var(--s-8) + 72px); }
@media (min-width: 1280px) { .site-footer { padding-bottom: var(--s-8); } }

.chat { position: fixed; z-index: var(--z-chat); inset: 0; display: flex; flex-direction: column; background: #fff; }
.chat[hidden] { display: none !important; }
@media (min-width: 640px) { .chat { inset: auto 20px 20px auto; width: 420px; height: min(680px, calc(100dvh - 40px)); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden; } }
.chat__head { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5); background: var(--primary); color: #fff; padding-top: calc(var(--s-4) + env(safe-area-inset-top)); }
.chat__head h2 { color: #fff; font-size: 1.0625rem; margin: 0 0 2px; }
.chat__head p { margin: 0; font-size: var(--fs-xs); color: var(--on-dark-muted); line-height: 1.45; }
.chat__head > div { flex: 1; }
.chat__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(201, 162, 102, .18); color: var(--accent-300); flex: none; }
.chat__close { display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -6px 0 0; border: 0; background: none; color: #fff; border-radius: 50%; }
.chat__close:hover { background: rgba(255, 255, 255, .1); }
.chat__body { flex: 1; overflow-y: auto; padding: var(--s-5) var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); background: var(--surface-2); overscroll-behavior: contain; }
.msg { max-width: 88%; padding: .7rem .95rem; border-radius: 16px; font-size: .9375rem; line-height: 1.55; }
.msg p { margin: 0 0 .5rem; } .msg p:last-child { margin: 0; } .msg ul { margin: .25rem 0 .5rem; padding-left: 1.1rem; }
.msg--ai { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg--user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg__sources { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-top: .6rem; padding-top: .55rem; border-top: 1px dashed var(--border); font-size: var(--fs-xs); }
.msg__sources span { color: var(--muted); font-weight: 600; }
.msg__sources a { padding: .15rem .55rem; border-radius: var(--r-pill); background: var(--secondary-50); text-decoration: none; font-weight: 600; }
.msg__note { font-size: var(--fs-xs); color: var(--muted); margin-top: .4rem !important; }
.msg__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.msg--typing { display: inline-flex; gap: 4px; padding: .85rem 1rem; }
.msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite ease-in-out; }
.msg--typing span:nth-child(2) { animation-delay: .15s; } .msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat__chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: var(--s-1); }
.chip-btn { padding: .5rem .8rem; border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: #fff; color: var(--primary); font-size: var(--fs-sm); font-weight: 500; text-align: left; min-height: 40px; }
.chip-btn:hover { border-color: var(--secondary); color: var(--secondary); }
.chat__handoff { flex: 1; overflow-y: auto; padding: var(--s-5); background: #fff; }
.chat__handoff + .chat__input[hidden] + .chat__foot { border-top: 1px solid var(--border); }
.form--chat h3 { margin-bottom: var(--s-1); } .form--chat .field { margin-bottom: var(--s-3); }
.chat__handoff-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chat__input { display: flex; gap: var(--s-2); align-items: flex-end; padding: var(--s-3); border-top: 1px solid var(--border); background: #fff; }
.chat__input textarea { flex: 1; resize: none; min-height: 46px; max-height: 120px; padding: .7rem .9rem; border: 1.5px solid var(--border-strong); border-radius: 14px; font-size: 1rem; line-height: 1.4; }
.chat__input textarea:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(29, 95, 191, .18); }
.chat__send { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--primary); color: #fff; flex: none; }
.chat__send:hover { background: var(--primary-600); }
.chat__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .5rem; padding: .35rem var(--s-3) calc(.5rem + env(safe-area-inset-bottom)); background: #fff; }
.chat__disc { flex-basis: 100%; font-size: .6875rem; color: var(--muted); padding-left: .25rem; }

/* ---------------------------------------------------------------- Modal & toast */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: end center; }
@media (min-width: 640px) { .modal { place-items: center; padding: var(--s-6); } }
.modal__scrim { position: absolute; inset: 0; background: rgba(10, 40, 64, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade var(--t) var(--ease); }
.modal__panel { position: relative; width: 100%; max-width: 640px; max-height: calc(100dvh - 24px); overflow-y: auto; background: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: var(--s-8) var(--s-5) calc(var(--s-6) + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: rise var(--t) var(--ease); }
@media (min-width: 640px) { .modal__panel { border-radius: var(--r-xl); padding: var(--s-10) var(--s-8) var(--s-8); } }
.modal__panel h2 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); margin-bottom: var(--s-2); padding-right: var(--s-8); }
.modal__lead { color: var(--muted); margin-bottom: var(--s-6); }
.modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--primary); }
.modal__close:hover { background: var(--border); }
.modal__alt { margin: var(--s-5) 0 0; font-size: var(--fs-sm); color: var(--muted); text-align: center; }
.modal-open { overflow: hidden; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.toast-region { position: fixed; z-index: var(--z-toast); left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: var(--s-2); width: min(92vw, 420px); }
.toast { padding: .85rem 1.1rem; border-radius: var(--r-md); background: var(--primary); color: #fff; box-shadow: var(--shadow-lg); font-size: var(--fs-sm); animation: rise var(--t) var(--ease); transition: opacity var(--t), transform var(--t); }
.toast--error { background: var(--error); } .toast.is-out { opacity: 0; transform: translateY(8px); }

/* ---------------------------------------------------------------- 404 / misc */
.section--404 { padding: var(--s-24) 0; }
.quick-links { list-style: none; padding: 0; margin: var(--s-8) 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }
.quick-links a { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: var(--r-pill); border: 1px solid var(--border); text-decoration: none; color: var(--primary); font-weight: 600; }
.quick-links a:hover { border-color: var(--secondary); }

/* ---------------------------------------------------------------- Reveal (only hidden when JS is running) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- Admin */
.admin { background: var(--surface-2); }
.admin-wrap { padding-block: var(--s-10); }
.admin-login { max-width: 400px; margin: 10vh auto; display: grid; gap: var(--s-4); }
.admin-head { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between; margin-bottom: var(--s-6); }
.admin-table td { white-space: normal; vertical-align: top; background: #fff; }
.admin-msg { max-width: 420px; } .admin-msg pre { white-space: pre-wrap; font-size: var(--fs-xs); }

/* ---------------------------------------------------------------- Print (calculator results, articles) */
@media print {
  .site-header, .site-footer, .wa-float, .chat-fab, .chat, .modal, .cta-band, .calc-aside, .calc__actions, .result-card__actions, .page-hero .breadcrumb, .article-aside, .section--tint, .mini-cta, .skip-link { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0 0 1rem; } .page-hero h1, .page-hero__lead { color: #000; } .page-hero::after { display: none; }
  .result-card__head { background: none; color: #000; border-bottom: 2px solid #000; } .result-card__label, .result-card__sub { color: #333; }
  .result-details:not([open]) > *:not(summary) { display: block; }
  body { font-size: 11pt; } a { color: #000; } .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------------------------------------------------------------- Justified body copy (client request)
   Paragraphs and list items in running text are justified; hyphenation keeps word gaps even on narrow screens.
   Short UI text (headings, buttons, labels, centred blocks, chat, tables) stays left/centre aligned. */
p, .prose li, .ticks li, .faq__a p { text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; }
.center p, .section-head--center p, .form-success p, .footer-bottom p, .modal__alt, .form__note, .field__help, .field__err,
.msg p, .chat__head p, .stat p, .result-card p, .k-card__meta, .card__kicker, .stage__num, .eyebrow, .res-card__no,
.review-flag, .empty-state, .quick-links, .breadcrumb, .action-tile p, .team-card__role, .team-card__qual, .page-hero__lead,
.hero__lead, .filter-status, .article-meta, .disclaimer, .notice span, .cta-band p { text-align: inherit; -webkit-hyphens: manual; hyphens: manual; }
.section-head--center .section-head__text, .center .lead { text-align: center; }
