/* ==========================================================================
   Sophors Consulting Limited — site stylesheet
   Palette per the finalized Sophors Design System (applied 2026-09-29):
   navy #1E3864 (dominant) / teal #0F6E56 (secondary) / tan #D8C9A3 (accent, never text)
   Body + heading both Barlow Condensed; documents (Word/email) stay Arial Narrow — unrelated to this file.
   ========================================================================== */

:root {
  --navy: #1e3864;
  --navy-dark: #152944;
  --navy-tint: #dce9f5;
  --teal: #0f6e56;
  --teal-dark: #0a5b47;
  --tan: #d8c9a3;
  --tan-light: #eae1cb;
  --ink-900: #1a2430;
  --ink-700: #42505f;
  --ink-500: #6b7784;
  --border: #dce0e3;
  --surface-sunken: #f5f0e3;
  --off-white: #f5f6f4;
  --danger: #b4433a;
  --white: #ffffff;

  --font-display: 'Barlow Condensed', Impact, sans-serif;
  --font-body: 'Barlow Condensed', 'Arial Narrow', sans-serif;

  --maxw: 1200px;
  --gutter: 24px;
  --radius: 4px;
}

* { box-sizing: border-box; }
/* clip, not hidden: the closed off-canvas mobile nav sits off-screen right and would
   otherwise widen the page, and hidden would break the sticky header */
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--off-white);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; }

p { margin: 0 0 1em; color: var(--ink-700); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.9em;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.bg-tint { background: var(--surface-sunken); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.82); }

/* ---------------------------------- Header ---------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(6px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.brand img { width: 32px; height: 32px; border-radius: 3px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }

.main-nav a.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-900);
  border-radius: var(--radius);
}
.main-nav a.nav-link:hover,
.main-nav a.nav-link[aria-current="page"] { color: var(--navy); background: var(--navy-tint); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(20,37,68,0.14);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown .group-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  padding: 8px 10px 4px;
}
.dropdown a {
  display: block;
  padding: 9px 10px;
  border-radius: 3px;
  font-size: 0.9rem;
  color: var(--ink-900);
}
.dropdown a:hover { background: var(--navy-tint); color: var(--navy); }
.dropdown hr { border: none; border-top: 1px solid var(--border); margin: 6px 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
  background: transparent;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; }

/* ---------------------------------- Hero ------------------------------- */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 336px;
  display: flex;
  align-items: center;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(21,41,68,0.80) 0%, rgba(21,41,68,0.60) 45%, rgba(21,41,68,0.28) 100%);
  z-index: 1;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,110,86,0.35), transparent 70%);
  z-index: 2;
  pointer-events: none;
}
.hero-slide-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 24px var(--gutter);
  box-sizing: border-box;
}
.hero-strap { font-family: var(--font-body); letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.78rem; color: var(--tan-light); margin-bottom: 12px; text-shadow: 0 1px 12px rgba(0,0,0,0.35); }
.hero h1 { color: var(--white); max-width: 820px; text-shadow: 0 2px 16px rgba(0,0,0,0.3); }
.hero-slide-tag { font-weight: 400; font-size: 0.6em; color: rgba(255,255,255,0.8); display: block; margin-top: 8px; }
.hero .lede { color: rgba(255,255,255,0.9); font-size: 1.15rem; max-width: 640px; margin-top: 10px; text-shadow: 0 1px 10px rgba(0,0,0,0.3); text-wrap: balance; }
.hero-actions { display: flex; gap: 14px; margin-top: 20px; flex-wrap: wrap; }

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
}
.page-hero.has-photo {
  padding: 88px 0 80px;
  background-size: cover;
  background-position: center;
}
.page-hero.has-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(21,41,68,0.80) 0%, rgba(21,41,68,0.60) 45%, rgba(21,41,68,0.28) 100%);
}
.page-hero.has-photo h1, .page-hero.has-photo .eyebrow { text-shadow: 0 2px 16px rgba(0,0,0,0.3); }
.page-hero.has-photo .lede { text-shadow: 0 1px 10px rgba(0,0,0,0.3); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); }
.page-hero .lede { color: rgba(255,255,255,0.82); max-width: 680px; font-size: 1.05rem; }

/* ---------------------------------- Grids / cards ----------------------- */

.grid { display: grid; gap: 28px; }
.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 {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
}
.card-flat { border: none; background: var(--surface-sunken); }

.course-card { display: flex; flex-direction: column; height: 100%; }
.course-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.course-card p { flex: 1; margin: 0 0 18px; }
.course-card .btn { align-self: flex-start; }
.course-card .card-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.preview-dialog {
  width: min(960px, calc(100vw - 32px));
  padding: 0;
  border: none;
  border-radius: 8px;
  background: var(--navy-dark);
  color: var(--white);
}
.preview-dialog::backdrop { background: rgba(10, 18, 32, 0.72); }
.preview-dialog .preview-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 16px;
}
.preview-dialog .preview-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.preview-dialog .preview-close {
  background: none; border: 1px solid rgba(255,255,255,0.4); color: var(--white);
  border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 0.85rem; cursor: pointer;
}
.preview-dialog .preview-close:hover { background: var(--white); color: var(--navy); }
.preview-dialog video { display: block; width: 100%; height: auto; background: #000; }
.preview-dialog .preview-foot { padding: 12px 16px; font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.preview-dialog .preview-foot a { color: var(--white); font-weight: 600; }

.value-card { padding: 28px 28px 30px; background: var(--white); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 1px 3px rgba(21,41,68,0.06); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.value-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(21,41,68,0.10); border-color: #c9d2dc; }
.vc-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.vc-icon { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--navy-tint); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; transition: background .25s ease, color .25s ease; }
.vc-icon svg { width: 24px; height: 24px; }
.value-card h3 { font-size: 1.45rem; line-height: 1.1; margin: 0; text-transform: none; letter-spacing: 0.01em; color: var(--navy-dark); }
.value-card p { font-size: 1.05rem; line-height: 1.4; margin: 0; color: var(--ink-700); }
@media (prefers-reduced-motion: reduce) { .value-card, .vc-icon { transition: none; } .value-card:hover { transform: none; } }

.service-tile {
  display: block;
  padding: 30px 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  height: 100%;
}
.service-tile:hover { border-color: #b9c4d0; background: var(--white); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,37,68,0.10); }
.service-tile .tile-link { display: inline-block; transition: transform .2s ease; }
.service-tile:hover .tile-link { transform: translateX(4px); }
.service-tile .eyebrow { margin-bottom: 14px; }
.service-tile p { font-size: 0.93rem; }
.service-tile .tile-link { margin-top: 16px; font-size: 0.85rem; font-weight: 600; color: var(--navy); }

.stat-row { display: flex; gap: 48px; flex-wrap: wrap; }
.stat { min-width: 140px; }
.stat .num { font-family: var(--font-display); font-weight: 600; font-size: 2.1rem; color: var(--navy); }
.stat .label { font-size: 0.82rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.06em; }

blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--navy);
  border-left: 3px solid var(--teal);
  padding-left: 24px;
  margin: 0;
  line-height: 1.5;
}
.grid > blockquote { align-self: center; }

.article { max-width: 720px; }
.article h2 { font-size: 1.4rem; margin: 40px 0 10px; }
.article h2:first-of-type { margin-top: 32px; }
.article p { font-size: 1.05rem; line-height: 1.7; }
.article .article-note { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--ink-500); font-size: 0.95rem; }
.article .article-back { font-weight: 600; }
blockquote cite { display: block; margin-top: 14px; font-family: var(--font-body); font-size: 0.85rem; font-style: normal; color: var(--ink-500); }

/* ---------------------------------- Dashboard / list blocks ------------ */

.data-product {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.data-product:first-of-type { border-top: none; }
.data-product .panel { background: var(--navy-tint); border-radius: 8px; padding: 28px; }
.data-product .panel .source { margin: 0 0 20px; font-size: 0.9rem; color: var(--ink-700); }


/* ---------------------------------- Insights scroller ------------------- */

.scroller {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x proximity;
}
.scroller::-webkit-scrollbar { height: 8px; }
.scroller::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }

.report-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.report-card .thumb {
  height: 150px;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  background-size: cover;
  background-position: top center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.report-card .thumb:not(.has-image)::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(15,110,86,0.25) 0 2px, transparent 2px 22px);
}
.report-card .thumb.has-image::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,37,68,0.8) 0%, rgba(20,37,68,0.15) 60%, transparent 100%);
}
.report-card .thumb span { position: relative; z-index: 1; color: #fff; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }

.blog-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-card .source-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.blog-card h3 { font-size: 1rem; margin: 0; }
.blog-card .date { font-size: 0.78rem; color: var(--ink-500); }
.blog-card .summary { font-size: 0.85rem; color: var(--ink-700); flex: 1; }
.blog-card .read-link { font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-top: 6px; }
.report-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.report-card .tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.report-card h3 { font-size: 1rem; margin: 0; }
.report-card .date { font-size: 0.78rem; color: var(--ink-500); }
.report-card .summary { font-size: 0.85rem; color: var(--ink-700); flex: 1; }
.report-card .read-link { font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-top: 6px; }

/* ---------------------------------- Testimonials ------------------------- */

.testimonial-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--navy-tint);
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.testimonial-card .quote-mark { font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; line-height: 1; color: var(--teal); }
.testimonial-card .quote { font-size: 0.92rem; color: var(--ink-900); flex: 1; margin: 0; }
.testimonial-card .attribution { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }
.testimonial-card .name { font-weight: 600; font-size: 0.88rem; color: var(--navy); }
.testimonial-card .role { font-size: 0.78rem; color: var(--ink-500); }

.coming-soon-card {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
  color: var(--ink-500);
}
/* ---------------------------------- School tabs -------------------------- */

.school-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-top: 28px;
}
.school-tab {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink-500);
  padding: 12px 18px 13px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
}
.school-tab:hover { color: var(--navy); }
.school-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.school-panel { display: none; padding-top: 32px; }
.school-panel.active { display: block; }
.school-intro { max-width: 760px; color: var(--ink-700); margin: 0 0 24px; }

/* ---------------------------------- Practice-area detail list ----------- */

.practice-list { margin-top: 16px; }
.practice-item { padding: 12px 0; border-top: 1px solid var(--border); }
.practice-item:first-child { border-top: none; padding-top: 4px; }
.practice-item dt { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--navy); margin: 0 0 4px; }
.practice-item dd { margin: 0; font-size: 0.92rem; color: var(--ink-700); }

/* ---------------------------------- Related services -------------------- */

.related-services { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.related-services a {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}
.related-services a:hover { background: var(--navy-tint); }

.coming-soon-card .badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

/* ---------------------------------- Footer ------------------------------ */

.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--white); font-size: 0.8rem; letter-spacing: 0.06em; }
.site-footer p { color: rgba(255,255,255,0.75); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; font-size: 0.88rem; }
.site-footer a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 3px; }
.footer-brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--white); }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; }

/* ---------------------------------- Contact form ------------------------ */

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink-900); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.field textarea { resize: vertical; min-height: 120px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-size: 0.92rem; color: var(--ink-700); }
.form-status:empty { display: none; }
.form-status.ok { color: var(--teal); }
.form-status.fail { color: var(--danger); }
.form-status a, .form-note a { color: var(--navy); font-weight: 600; }
.form-note { margin: 10px 0 0; }
.contact-detail { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-detail .icon { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-tint); color: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.9rem; }

/* ---------------------------------- Utilities ---------------------------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.85rem; }
.muted { color: var(--ink-500); }
p.muted { color: var(--ink-700); }
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }
.tag-note { display: inline-block; font-size: 0.78rem; color: var(--ink-500); background: var(--surface-sunken); border-radius: 999px; padding: 5px 12px; }

/* ---------------------------------- Responsive --------------------------- */

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .data-product { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; inset: 76px 0 0 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 12px; overflow-y: auto; transform: translateX(100%); transition: transform .2s ease; }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .stat-row { gap: 28px; }
}

/* ------------------------------ Flip cards ------------------------------- */
.flip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.flip-card { all: unset; box-sizing: border-box; display: block; perspective: 900px; cursor: pointer; min-height: 190px; border-radius: var(--radius); }
.flip-card:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.flip-term, .flip-hint, .flip-q { display: block; }
.flip-inner { display: block; position: relative; width: 100%; height: 100%; min-height: 190px; transition: transform .55s ease; transform-style: preserve-3d; }
.flip-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 22px; border-radius: var(--radius); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-front { background: var(--navy); color: var(--white); }
.flip-back { background: var(--teal); color: var(--white); transform: rotateY(180deg); }
.flip-term { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.flip-hint { margin-top: 10px; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: .75; }
.flip-q { font-size: 1.25rem; line-height: 1.3; }
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
@media (hover: hover) {
  .flip-card:hover .flip-inner, .flip-card:focus-visible .flip-inner { transform: rotateY(180deg); }
}
@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; }
}
@media (max-width: 900px) { .flip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .flip-grid { grid-template-columns: 1fr; } .flip-card, .flip-inner { min-height: 150px; } }

/* ---------------------------------- Policy / long-form text -------------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.6rem; color: var(--navy-dark); margin: 40px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-700); font-size: 1.08rem; line-height: 1.5; }
.prose ul { padding-left: 1.2em; margin: 8px 0 14px; }
.prose li { margin: 4px 0; }
.prose a { color: var(--navy); text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: 1.02rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.prose th { color: var(--ink-500); font-weight: 600; }
.prose .table-wrap { overflow-x: auto; }

@media (min-width: 721px) { .values-grid { grid-auto-rows: 1fr; } }

/* ---------------------------------- Home additions ----------------------- */
.kpi-strip { padding: 40px 0 8px; }
.kpi-card { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); border-radius: 8px; box-shadow: 0 16px 36px rgba(20,37,68,0.14); border: 1px solid var(--border); overflow: hidden; }
.kpi { display: flex; align-items: center; gap: 20px; padding: 30px 32px; }
.kpi + .kpi { border-left: 1px solid var(--border); }
.kpi-icon { flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--navy-tint); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.kpi-icon svg { width: 26px; height: 26px; }
.kpi .num { font-family: var(--font-display); font-weight: 600; font-size: 3.2rem; line-height: 0.95; color: var(--navy); font-variant-numeric: tabular-nums; }
.kpi .label { margin-top: 6px; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy-dark); font-weight: 600; }
.kpi .desc { margin-top: 2px; font-size: 0.95rem; color: var(--ink-500); }
.band-digital { background: var(--navy-dark); color: var(--white); padding: 72px 0; }
.band-digital h2 { color: var(--white); max-width: 560px; }
.band-digital p { color: rgba(255,255,255,0.85); max-width: 520px; font-size: 1.1rem; margin-bottom: 22px; }
.band-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.band-terms { border-left: 1px solid rgba(234,225,203,0.4); padding-left: 40px; }
.band-terms-label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: #eae1cb; margin-bottom: 14px; }
.band-terms ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.band-terms li { border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; padding: 7px 16px; font-size: 1.05rem; color: var(--white); }
.latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.latest-grid .report-card { flex: none; text-decoration: none; }
.academy-band { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.academy-photo { min-height: 340px; border-radius: 8px; background: url('../img/hero/hero-training.jpg') center/cover no-repeat; box-shadow: 0 14px 30px rgba(20,37,68,0.12); }
.academy-text h2 { max-width: 520px; }
.academy-text p { max-width: 520px; font-size: 1.1rem; }
@media (max-width: 900px) {
  .band-grid, .academy-band { grid-template-columns: 1fr; gap: 32px; }
  .band-terms { border-left: none; padding-left: 0; border-top: 1px solid rgba(234,225,203,0.4); padding-top: 24px; }
  .latest-grid { grid-template-columns: 1fr; }
  .academy-photo { min-height: 240px; }
}
@media (max-width: 900px) {
  .kpi-card { grid-template-columns: 1fr; }
  .kpi + .kpi { border-left: none; border-top: 1px solid var(--border); }
  .kpi { padding: 22px 24px; }
}

/* ---------------------------------- Polish pass (2026-11-21) ------------- */
.bg-white { background: var(--white); }
.service-tile { background: var(--white); border-color: #d0d7df; box-shadow: 0 2px 8px rgba(20,37,68,0.07); }
.report-card { border-color: #d0d7df; box-shadow: 0 2px 10px rgba(20,37,68,0.08); transition: transform .2s ease, box-shadow .2s ease; }
.report-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(20,37,68,0.12); }
.report-card .thumb { border-bottom: 1px solid #d0d7df; padding: 0; }
.report-card .thumb.has-image::before { display: none; }
.report-card .thumb span { position: absolute; left: 0; bottom: 0; background: var(--navy); color: #fff; padding: 6px 14px; font-size: 0.68rem; letter-spacing: 0.1em; font-weight: 600; border-top-right-radius: 6px; }

/* digital band */
.band-digital { background: linear-gradient(rgba(15,28,50,0.90), rgba(15,28,50,0.92)), url('../img/hero/hero-dataflow.jpg') center/cover no-repeat; }
.band-grid { grid-template-columns: 1.05fr 1fr; }
.band-terms ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.band-terms li { border-radius: 6px; padding: 14px 10px; text-align: center; font-size: 1.05rem; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.28); }
.band-link { display: inline-block; margin-top: 16px; color: #eae1cb; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(234,225,203,0.5); }
.band-link:hover { color: #fff; border-bottom-color: #fff; }

/* academy band */
.academy-photo { position: relative; overflow: hidden; }
.photo-chip { position: absolute; left: 18px; bottom: 18px; background: var(--white); border-radius: 6px; padding: 12px 16px; box-shadow: 0 8px 20px rgba(20,37,68,0.2); display: flex; flex-direction: column; gap: 2px; }
.photo-chip strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); line-height: 1; }
.photo-chip span { font-size: 0.85rem; color: var(--ink-700); }
.school-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.school-list li { background: var(--white); border: 1px solid #d0d7df; border-radius: 999px; padding: 5px 14px; font-size: 0.92rem; color: var(--navy); font-weight: 500; }

/* data cards (home) and dashboard cards (Data Solutions) */
.data-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.data-card { display: flex; flex-direction: column; gap: 8px; background: var(--white); border: 1px solid #d0d7df; border-radius: 8px; padding: 22px; text-decoration: none; box-shadow: 0 2px 8px rgba(20,37,68,0.07); transition: transform .2s ease, box-shadow .2s ease; }
.data-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(20,37,68,0.12); }
.data-card h3 { font-size: 1.3rem; margin: 0; color: var(--navy-dark); }
.data-card p { margin: 0; font-size: 1rem; color: var(--ink-700); flex: 1; }
.data-link { font-weight: 600; color: var(--navy); margin-top: 8px; font-size: 0.95rem; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.dash-grid .data-product { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 28px; background: var(--white); border: 1px solid #d0d7df; border-radius: 8px; box-shadow: 0 2px 10px rgba(20,37,68,0.08); }
.dash-grid .data-product:first-of-type { border-top: 1px solid #d0d7df; }
.dash-grid .data-product h3 { margin-top: 0; }
.dash-grid .data-product .panel { background: transparent; padding: 16px 0 0; margin-top: auto; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 0; }
.dash-grid .data-product .panel .source { margin: 0; flex: 1; }
@media (max-width: 1000px) { .data-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } .band-terms ul { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .data-cards { grid-template-columns: 1fr; } .band-terms ul { grid-template-columns: repeat(2, 1fr); } .dash-grid .data-product .panel { flex-direction: column; align-items: flex-start; } }

/* ---------------------------------- Training / Index / Contact restyle -- */
.panel-head { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; padding: 18px 22px; background: var(--white); border: 1px solid #d0d7df; border-radius: 8px; }
.panel-count { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 78px; padding-right: 22px; border-right: 1px solid var(--border); }
.panel-count b { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--navy); font-weight: 600; }
.panel-count span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); font-weight: 600; }
.panel-head p { margin: 0; font-size: 1.1rem; color: var(--ink-700); max-width: 720px; }
.course-card { background: var(--white); border: 1px solid #d0d7df; border-top: 2.5px solid var(--navy); box-shadow: 0 2px 8px rgba(20,37,68,0.07); transition: transform .2s ease, box-shadow .2s ease; }
.course-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(20,37,68,0.12); }
.course-card.spec { border-top-color: var(--teal); }
.course-card.found { border-top-color: var(--tan); }
.course-card .tag { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--ink-500); margin-bottom: 8px; }
.course-card h3 { font-size: 1.3rem; color: var(--navy-dark); }
.course-card p { font-size: 1rem; }
.callout { display: flex; align-items: center; gap: 20px; margin-top: 24px; padding: 22px 26px; background: var(--white); border: 1px solid #d0d7df; border-left: 3px solid var(--navy); border-radius: 8px; box-shadow: 0 2px 8px rgba(20,37,68,0.06); }
.callout p { margin: 0; font-size: 1.1rem; color: var(--ink-700); }
.callout a { color: var(--navy); font-weight: 600; }
.coming-soon-card { background: var(--white); border: 1px solid #d0d7df; border-radius: 8px; padding: 34px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; box-shadow: 0 2px 8px rgba(20,37,68,0.06); }
.coming-soon-card p { font-size: 1.1rem; color: var(--ink-700); }
#testimonials-track > p { background: var(--white); border: 1px solid #d0d7df; border-radius: 8px; padding: 28px; margin: 0; width: 100%; text-align: center; box-shadow: 0 2px 8px rgba(20,37,68,0.06); }
.vc-tag { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--teal); margin-bottom: 4px; }
.vc-head .vc-tag + h3 { margin-top: 0; }

.contact-list h2 { margin-bottom: 22px; }
.contact-list .eyebrow { margin-bottom: 8px; }
.contact-detail { display: flex; align-items: center; gap: 18px; padding: 18px 20px; margin-bottom: 14px; background: var(--white); border: 1px solid #d0d7df; border-radius: 8px; box-shadow: 0 2px 8px rgba(20,37,68,0.06); }
.contact-detail h4 { margin: 0 0 2px; font-size: 1.1rem; color: var(--navy-dark); }
.contact-detail p { margin: 0; color: var(--ink-700); font-size: 1.05rem; }
.contact-detail a { color: var(--navy); font-weight: 600; text-decoration: none; }
.follow-row { display: flex; gap: 10px; margin-top: 4px; }
.follow-row a { padding: 4px 14px; border: 1px solid #d0d7df; border-radius: 999px; font-size: 0.95rem; }
.follow-row a:hover { border-color: var(--navy); }
.contact-form { padding: 32px; border: 1px solid #d0d7df; box-shadow: 0 10px 28px rgba(20,37,68,0.10); }
.field label { font-size: 0.9rem; letter-spacing: 0.02em; color: var(--navy-dark); }
.field input, .field textarea, .field select { border-color: #cbd3dc; background: #fcfdfd; font-size: 1.02rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); background: var(--white); }
.contact-form .btn { margin-top: 4px; }
@media (max-width: 720px) { .panel-head { flex-direction: column; align-items: flex-start; } .panel-count { flex-direction: row; gap: 10px; border-right: none; padding-right: 0; align-items: baseline; } .callout { flex-direction: column; align-items: flex-start; } }

.panel-more { margin: 18px 0 0; color: var(--ink-700); }

/* Contact page: compact so the whole form is visible on one screen at 100% (user, 2026-11-28). */
.page-hero.slim.has-photo { padding: 22px 0 20px; }
.page-hero.slim h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 4px; }
.page-hero.slim .eyebrow { margin-bottom: 4px; }
.page-hero.slim .lede { font-size: 0.98rem; margin: 0; }
section.contact-section { padding: 22px 0 28px; }
.contact-section .contact-grid { gap: 36px; align-items: start; }
.contact-section .contact-list h2 { font-size: 1.5rem; margin-bottom: 14px; }
.contact-section .contact-detail { padding: 8px 16px; margin-bottom: 8px; gap: 14px; }
.contact-section .contact-detail .vc-icon { width: 40px; height: 40px; }
.contact-section .contact-detail .vc-icon svg { width: 20px; height: 20px; }
.contact-section .contact-detail h4 { font-size: 0.95rem; margin: 0 0 1px; }
.contact-section .contact-detail p { font-size: 0.98rem; }
.contact-section .follow-row a { padding: 2px 12px; font-size: 0.9rem; }
.contact-section .contact-form { padding: 18px 24px 14px; }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.contact-form .field { margin-bottom: 12px; }
.contact-form .field label { font-size: 0.85rem; margin-bottom: 4px; }
.contact-form .field input, .contact-form .field select, .contact-form .field textarea { padding: 9px 12px; font-size: 0.98rem; }
.contact-form .field textarea { min-height: 76px; }
.contact-form .btn { margin-top: 0; padding: 10px 26px; }
.contact-form .form-status { margin-top: 10px; }
.contact-form .form-note { margin-top: 8px; }
@media (max-width: 720px) { .contact-form .row2 { grid-template-columns: 1fr; } .page-hero.slim.has-photo { padding: 34px 0 30px; } }
