/* ============================================
   THE NICEHR GROUP — Design System
   Corporate Luxury Minimalism
   Ported from tng-website design-system.css
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

/* ─── Tokens ─── */
:root {
  /* Color */
  --navy:        #0f1d2f;
  --navy-mid:    #1a2d47;
  --navy-light:  #243b5c;
  --gold:        #b8a272;
  --gold-light:  #d4c49a;
  --gold-muted:  #9e8c62;
  --white:       #ffffff;
  --off-white:   #fafafa;
  --cream:       #f5f5f5;
  --cream-dark:  #e5e5e5;
  --gray-bg:     #f0f0f0;
  --text:        #111111;
  --text-muted:  #4a4a4a;
  --text-light:  #7a7a7a;
  --border:      #e0e0e0;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale (8px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 80px;
  --sp-10: 96px;
  --sp-11: 120px;
  --sp-12: 160px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.08);
  --shadow-xl:  0 24px 60px rgba(0,0,0,0.1);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration: 0.5s;
  --duration-fast: 0.25s;

  /* Layout */
  --max-width: 1200px;
  --max-width-lg: 1400px;
  --max-width-sm: 800px;
  --nav-height: 72px;

  /* Legacy aliases used in HTML inline styles and some components */
  --transition: all 0.3s var(--ease-out);
  --transition-fast: all 0.15s var(--ease-out);
  --transition-smooth: all 0.5s var(--ease-out);
  --shadow-2xl: 0 25px 50px rgba(0,0,0,0.12);
  --navy-dark: #0a1628;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d5d5d5;
  --gray-400: #9ca3af;
  --gray-500: #7a7a7a;
  --gray-600: #4a4a4a;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #0f1d2f;
  --gray-light: #f0f0f0;
  --warm-white: #fafafa;
  --warm-gray: #d5d5d5;
  --font-primary: var(--font-body);
  --font-heading: var(--font-display);
}

/* ─── Reset ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--off-white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ─── Typography ─── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--navy);
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}

h1 { font-size: clamp(3rem, 6vw, 5rem); }
h2 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.0625rem; }

p {
  color: var(--text-muted);
  max-width: 60ch;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 55ch;
}

.power-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  color: var(--text-muted);
  max-width: 55ch;
  line-height: 1.4;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-muted);
}

.hero .eyebrow,
.page-header .eyebrow,
.section-dark .eyebrow,
.cta .eyebrow {
  color: var(--gold);
}

.tagline {
  font-size: 1rem;
  font-weight: 400;
  color: var(--gold-light);
  margin-top: var(--sp-7);
  letter-spacing: 0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.display-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.container-lg { max-width: var(--max-width-lg); }
.container-sm { max-width: var(--max-width-sm); }

/* ─── Sections ─── */
.section {
  padding: var(--sp-11) var(--sp-5);
}

.section-sm {
  padding: var(--sp-9) 0;
}

.section-lg {
  padding: var(--sp-12) 0;
}

@media (max-width: 768px) {
  .section {
    padding: 64px 20px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 48px 16px;
  }
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark .section-header h2,
.section-dark .section-header h3 {
  color: var(--white) !important;
  -webkit-text-fill-color: var(--white);
  background: none;
}

.section-dark p {
  color: rgba(255,255,255,0.65);
}

.section-dark .eyebrow {
  color: var(--gold);
}

.section-gray {
  background: var(--cream);
}

.section-cream {
  background: var(--gray-bg);
}

.section-white {
  background: var(--white);
}

.section-charcoal {
  background: #1a1a1a;
  color: var(--white);
}

.section-charcoal h2,
.section-charcoal h3 {
  color: var(--white);
}

.section-charcoal p {
  color: rgba(255,255,255,0.6);
}

.section-charcoal .eyebrow {
  color: var(--gold);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto var(--sp-8);
}

.section-header .eyebrow {
  margin-bottom: var(--sp-3);
}

.section-header h2 {
  margin-bottom: var(--sp-4);
}

.section-header .lead {
  margin-top: var(--sp-3);
}

.section-header p {
  margin: 0 auto;
}

.section-header.text-center,
.section-header.scroll-reveal.text-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header.text-center .eyebrow,
.section-header.text-center h2,
.section-header.text-center .lead {
  text-align: center;
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--duration-fast) ease;
}

.nav.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width-lg);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 40px;
  width: auto;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-left: var(--sp-3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--duration-fast) ease;
  padding: var(--sp-2) 0;
}

.nav-link:hover {
  color: var(--navy);
}

/* Dropdowns */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > .nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-dropdown > .nav-link::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.5;
  transition: transform var(--duration-fast) ease;
}

.nav-dropdown:hover > .nav-link::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2) 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease, visibility var(--duration-fast) ease;
  z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: var(--sp-3) var(--sp-5);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
}

.dropdown-menu a:hover {
  background: var(--cream);
  color: var(--navy);
}

/* Dropdown Section Headers */
.dropdown-section-header {
  padding: 8px 20px 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.dropdown-section-header:first-child {
  border-top: none;
  margin-top: 0;
}

.dropdown-menu .dropdown-section-header ~ a {
  padding-left: 32px;
}

.dropdown-menu .dropdown-section-header ~ .dropdown-section-header {
  padding-left: 20px;
}

.dropdown-menu .dropdown-section-header ~ .dropdown-section-header ~ a {
  padding-left: 32px;
}

/* ─── Mega Menu (applied to ALL dropdowns for consistency) ─── */
.nav-dropdown {
  position: static;
}

.nav-dropdown .dropdown-menu {
  position: fixed;
  top: var(--nav-height);
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(-8px);
  width: calc(100% - var(--sp-5) * 2);
  max-width: 980px;
  min-width: 0;
  padding: var(--sp-7) var(--sp-5);
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  /* Edge-to-edge white background extension via box-shadow + clip-path */
  box-shadow: 0 0 0 100vmax var(--white), 0 12px 40px rgba(0,0,0,0.08);
  clip-path: inset(0 -100vmax);
  column-count: 2;
  column-gap: var(--sp-8);
}

.nav-dropdown:hover .dropdown-menu {
  transform: translateX(-50%) translateY(0);
}

/* Revenue Cycle (and any other dropdown with section headers) gets 3 columns */
.nav-dropdown:has(.dropdown-section-header) .dropdown-menu {
  column-count: 3;
}

.nav-dropdown .dropdown-menu .dropdown-section-header {
  display: block;
  break-inside: avoid;
  break-before: column;
  border-top: none;
  margin-top: 0;
  padding: 0 0 var(--sp-3) 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-dropdown .dropdown-menu .dropdown-section-header:first-child {
  break-before: auto;
}

.nav-dropdown .dropdown-menu a {
  display: block;
  padding: var(--sp-2) 0;
  padding-left: 0 !important;
  break-inside: avoid;
  font-size: 0.9375rem;
  color: var(--text-muted);
  border-radius: 0;
  background: none;
}

.nav-dropdown .dropdown-menu a:hover {
  background: none;
  color: var(--navy);
  padding-left: 6px !important;
  transition: padding var(--duration-fast) ease, color var(--duration-fast) ease;
}

@media (max-width: 968px) {
  .nav-dropdown .dropdown-menu,
  .nav-dropdown:has(.dropdown-section-header) .dropdown-menu {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: var(--sp-2) 0 !important;
    column-count: 1 !important;
    column-gap: 0 !important;
    border: none !important;
    box-shadow: none !important;
    clip-path: none !important;
    background: var(--cream) !important;
    margin-top: var(--sp-2);
  }
  .nav-dropdown:hover .dropdown-menu {
    transform: none !important;
  }
  .nav-dropdown .dropdown-menu a {
    padding: 12px 20px !important;
    padding-left: 20px !important;
  }
  .nav-dropdown .dropdown-menu a:hover {
    padding-left: 20px !important;
  }
  .nav-dropdown .dropdown-menu .dropdown-section-header {
    padding: 12px 20px 6px !important;
    break-before: auto;
  }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  padding: var(--sp-3) var(--sp-5);
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.nav-cta:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
}

/* Site Search */
.nav-search-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  transition: color var(--duration-fast) ease;
}

.nav-search-btn:hover {
  color: var(--navy);
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  backdrop-filter: blur(4px);
}

.search-overlay.active {
  display: flex;
}

.search-modal {
  background: var(--white);
  border-radius: 0;
  width: 90%;
  max-width: 560px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.search-input {
  width: 100%;
  padding: 20px 24px;
  border: none;
  font-size: 1.1rem;
  font-family: var(--font-body);
  outline: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  background: var(--white);
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  display: block;
  padding: 14px 24px;
  color: var(--text);
  text-decoration: none;
  transition: background var(--duration-fast) ease;
}

.search-result-item:hover {
  background: var(--cream);
  color: var(--navy);
}

.search-no-results {
  padding: 24px;
  text-align: center;
  color: var(--text-light);
}

.search-hint {
  padding: 12px 24px;
  font-size: 0.8rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  text-align: right;
}

/* Theme toggle (kept minimal for JS compatibility) */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  transition: color var(--duration-fast) ease;
}

.theme-toggle:hover {
  color: var(--gold);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-3);
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: all var(--duration-fast) ease;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

@media (max-width: 968px) {
  html, body { overflow-x: hidden; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--sp-5);
    gap: 4px;
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: var(--shadow-lg);
  }

  .nav-link, .nav-dropdown > .nav-link {
    font-size: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-cta {
    margin-top: var(--sp-3);
    padding: 14px 24px;
    justify-content: center;
    width: 100%;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-dropdown { width: 100%; }

  .nav-dropdown > .nav-link {
    width: 100%;
    padding: var(--sp-3) 0;
    justify-content: space-between;
  }

  .nav-dropdown > .nav-link::after {
    transition: transform 0.2s ease;
  }

  .nav-dropdown.active > .nav-link::after {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    box-shadow: none;
    border: none;
    background: var(--cream);
    border-radius: 0;
    margin-top: var(--sp-2);
    padding: var(--sp-2) 0;
  }

  .nav-dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding: 12px 20px;
  }
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + var(--sp-9)) var(--sp-5) var(--sp-9);
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

/* Video background */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15,29,47,0.88) 0%, rgba(10,22,40,0.92) 100%);
}

/* Ken Burns */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/hero/ehr-implementation-meeting.jpg') center 30%/cover no-repeat;
  animation: kenBurns 25s ease-in-out infinite alternate;
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15,29,47,0.88) 0%, rgba(10,22,40,0.92) 100%);
  z-index: 1;
}

@keyframes kenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
  .hero-shape { animation: none; }
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 2;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--sp-5);
}

.hero .eyebrow {
  color: var(--gold);
  margin-bottom: var(--sp-4);
}

.hero .lead,
.hero .power-text {
  color: rgba(255,255,255,0.7);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  margin-bottom: var(--sp-7);
  text-align: center;
  max-width: 100%;
}

.hero .tagline {
  color: var(--gold-light);
  font-size: 1rem;
  font-weight: 400;
  margin-top: var(--sp-7);
  text-align: center;
  max-width: 100%;
}

.hero .gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + var(--sp-7)) var(--sp-5) var(--sp-7);
  }
}

/* ─── Page Header ─── */
.page-header {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + var(--sp-8)) var(--sp-5) var(--sp-8);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.page-header h1 {
  color: var(--white);
  margin-bottom: var(--sp-4);
  position: relative;
  z-index: 1;
}

.page-header .eyebrow {
  color: var(--gold);
  margin-bottom: var(--sp-3);
  position: relative;
  z-index: 1;
}

.page-header .lead,
.page-header p {
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255,255,255,0.65);
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .page-header {
    padding: 140px 20px 60px;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 120px 16px 48px;
  }
}

/* ─── Stats ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: var(--sp-5);
  background: transparent;
  border: none;
  transition: transform var(--duration-fast) var(--ease-out);
}

.stat-item:hover {
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 4vw, 3rem);
  color: var(--navy);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.hero .stat-number {
  color: var(--gold);
  background: none;
  -webkit-text-fill-color: var(--gold);
}

.hero .stat-label {
  color: rgba(255,255,255,0.55);
}

.section-dark .stat-number {
  color: var(--gold);
}

.section-dark .stat-label {
  color: rgba(255,255,255,0.55);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(15,29,47,0.25);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-muted);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(184,162,114,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
}

/* Secondary button on dark backgrounds */
.section-dark .btn-secondary,
.hero .btn-secondary,
.cta .btn-secondary,
.page-header .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.section-dark .btn-secondary:hover,
.hero .btn-secondary:hover,
.cta .btn-secondary:hover,
.page-header .btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gold-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: gap var(--duration-fast) ease, color var(--duration-fast) ease;
}

.btn-link::after {
  content: '\2192';
  transition: transform var(--duration-fast) ease;
}

.btn-link:hover {
  color: var(--navy);
  gap: 10px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 0;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.btn-outline:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
}

.btn-group {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  justify-content: center;
}

/* ─── Cards ─── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: var(--sp-7);
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .card {
    padding: 28px 24px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 24px 20px;
  }
}

.card h3,
.card h4 {
  margin-bottom: var(--sp-3);
}

.card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--sp-5);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-5);
  font-size: 1.5rem;
}

/* Cards with Images */
.card-with-image {
  padding: 0;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 29, 47, 0.12);
  mix-blend-mode: multiply;
}

.card-body {
  padding: var(--sp-6);
}

.card-body h3,
.card-body h4 {
  margin-bottom: var(--sp-2);
}

.card-body p {
  margin-bottom: var(--sp-4);
}

/* ─── Icon Containers ─── */
.icon-container {
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  color: var(--white);
}

.icon-container svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.icon-container-sm {
  width: 40px;
  height: 40px;
  border-radius: 0;
  margin-bottom: var(--sp-4);
}

.icon-container-sm svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
}

.icon-container-lg {
  width: 64px;
  height: 64px;
  border-radius: 0;
}

.icon-container-lg svg {
  width: 32px;
  height: 32px;
}

/* ─── Grid Layouts ─── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-7);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

@media (max-width: 968px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

@media (max-width: 968px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Feature Blocks ─── */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}

.feature-block.reverse {
  direction: rtl;
}

.feature-block.reverse > * {
  direction: ltr;
}

@media (max-width: 968px) {
  .feature-block,
  .feature-block.reverse {
    grid-template-columns: 1fr;
    gap: var(--sp-7);
    direction: ltr;
  }
}

.feature-image {
  background: var(--cream);
  border-radius: 0;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.feature-image-real {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out);
}

.feature-image-real::after,
.feature-image-real::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 29, 47, 0.1);
  mix-blend-mode: multiply;
}

.feature-image-real::before {
  background: none;
}

.feature-block:hover .feature-image-real {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .feature-image-real { height: 280px; }
}

.feature-content .eyebrow {
  margin-bottom: var(--sp-3);
}

.feature-content h2 {
  margin-bottom: var(--sp-4);
}

.feature-content p {
  margin-bottom: var(--sp-6);
}

.feature-list {
  list-style: none;
  margin: var(--sp-4) 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.check,
.feature-list .check {
  color: var(--gold-muted);
  font-weight: 600;
  flex-shrink: 0;
}

/* ─── Team ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-6);
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  text-align: center;
}

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0;
  background-size: cover;
  background-position: center;
  margin-bottom: var(--sp-4);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out);
}

.team-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 29, 47, 0.08);
  mix-blend-mode: multiply;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo svg {
  width: 64px;
  height: 64px;
  stroke: rgba(255, 255, 255, 0.5);
}

.team-card:hover .team-photo {
  transform: scale(1.03);
}

.team-card h4 {
  margin-bottom: var(--sp-1);
}

.team-card .role {
  font-size: 0.8125rem;
  color: var(--gold-muted);
  font-weight: 500;
  margin-bottom: var(--sp-2);
}

.team-card .bio {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ─── Testimonials ─── */
.testimonial {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: var(--sp-6);
}

.testimonial-author {
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: var(--sp-1);
}

.testimonial-title {
  font-size: 0.875rem;
  color: var(--text-light);
  max-width: 100%;
}

.testimonial-author,
.testimonial-quote {
  max-width: 100%;
}

/* Testimonial Grid / Cards */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--sp-6);
}

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: var(--sp-7);
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--ease-out);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-content {
  flex: 1;
  margin-bottom: var(--sp-5);
}

.testimonial-card .testimonial-quote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  margin: 0;
}

@media (max-width: 768px) {
  .testimonial-card .testimonial-quote {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

.testimonial-author-block {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 0;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.testimonial-author-block .testimonial-author {
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 4px;
}

.testimonial-author-block .testimonial-title {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ─── EHR Grid ─── */
.ehr-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sp-8) var(--sp-9);
}

.ehr-item {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  transition: color var(--duration-fast) ease;
}

.ehr-item:hover {
  color: rgba(255,255,255,0.7);
}

.ehr-item img {
  filter: brightness(0) invert(1) opacity(0.4);
  transition: opacity var(--duration-fast) ease;
  height: 28px;
  object-fit: contain;
}

.ehr-item:hover img {
  opacity: 0.7;
}

.ehr-item span {
  font-weight: 600;
  color: inherit;
}

@media (max-width: 768px) {
  .ehr-grid {
    gap: var(--sp-6) var(--sp-7);
  }
  .ehr-item {
    font-size: 1rem;
  }
}

/* ─── Certifications ─── */
.cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  transition: all var(--duration-fast) var(--ease-out);
}

.cert-badge:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.cert-badge:hover .check {
  color: var(--gold-light);
}

.cert-badge .check {
  color: var(--gold-muted);
}

/* Two-row credentials layout */
.cert-grid-two-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px !important;
  max-width: 980px;
  margin: 0 auto;
}

.cert-grid-two-row .cert-badge {
  width: 100%;
  min-height: 90px;
  padding: 16px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none;
}

.cert-grid-two-row .cert-badge:hover {
  background: transparent !important;
  border: none !important;
  color: inherit;
}

.cert-grid-two-row .cert-badge img {
  max-width: 112px;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.cert-grid-two-row .cert-badge img.cert-logo-sba { max-width: 116px; max-height: 40px; }
.cert-grid-two-row .cert-badge img.cert-logo-iso { max-width: 122px; max-height: 40px; }
.cert-grid-two-row .cert-badge img.cert-logo-soc { max-width: 120px; max-height: 40px; }

@media (max-width: 900px) {
  .cert-grid-two-row { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; }
}

@media (max-width: 520px) {
  .cert-grid-two-row { grid-template-columns: 1fr; max-width: 320px; }
}

/* ─── CTA Section ─── */
.cta {
  background: var(--navy);
  text-align: center;
  padding: var(--sp-10) var(--sp-5);
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  color: var(--white);
  margin-bottom: var(--sp-4);
}

.cta .lead,
.cta p {
  color: rgba(255,255,255,0.6);
  margin: 0 auto var(--sp-7);
}

/* ─── Footer ─── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: var(--sp-10) 0 var(--sp-7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: var(--sp-3);
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  max-width: 320px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  margin-bottom: var(--sp-4);
}

.footer-links h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: var(--sp-4);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--sp-3);
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-social {
  display: flex;
  gap: var(--sp-4);
  padding-top: var(--sp-7);
  border-top: 1px solid rgba(255,255,255,0.08);
  justify-content: center;
  margin-bottom: var(--sp-6);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0;
  color: rgba(255,255,255,0.4);
  transition: color var(--duration-fast) ease;
}

.footer-social a:hover {
  color: var(--gold);
}

.footer-social a svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* ─── Logo Carousel ─── */
.trusted-by-section {
  padding: var(--sp-9) 0;
  overflow: hidden;
}

.trusted-by-header {
  text-align: center;
  margin-bottom: var(--sp-7);
}

.trusted-by-header .eyebrow {
  margin-bottom: var(--sp-3);
}

.trusted-by-header h3 {
  color: var(--navy);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: var(--sp-4);
}

.trusted-by-header p {
  color: var(--text-light);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.logo-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
  display: flex;
  gap: var(--sp-8);
  animation: scroll-logos 60s linear infinite;
  width: max-content;
}

.logo-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-logos {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Legacy alias */
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.client-logo {
  flex-shrink: 0;
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter var(--duration-fast) ease;
}

.client-logo:hover {
  filter: grayscale(0%) opacity(1);
}

@media (max-width: 768px) {
  .logo-track {
    gap: var(--sp-7);
  }
  .client-logo {
    height: 40px;
    max-width: 120px;
  }
}

.logo-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: var(--sp-6);
}

/* Client Logo Grid */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-6);
  align-items: center;
  justify-items: center;
}

.client-grid-logo {
  height: 50px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter var(--duration-fast) ease;
}

.client-grid-logo:hover {
  filter: grayscale(0%) opacity(1);
}

/* Partner Logo Grid */
.logo-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-7);
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all var(--duration-fast) ease;
}

.logo-item:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.logo-item img {
  max-height: 40px;
  max-width: 120px;
  object-fit: contain;
}

/* ─── Contact Form ─── */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--sp-5);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: var(--sp-2);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,29,47,0.08);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* Form validation */
.input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.form-error {
  display: block;
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 6px;
}

/* ─── FAQ ─── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--sp-6) 0;
}

.faq-question {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--sp-3);
}

.faq-answer {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: none;
}

/* ─── Bento Grid ─── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-7);
}

.bento-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: var(--sp-5);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-wide {
  grid-column: span 2;
}

.bento-tall {
  grid-row: span 2;
}

.bento-card h3 {
  margin-bottom: var(--sp-3);
  font-size: 1.5rem;
}

.bento-card h4 {
  margin-bottom: var(--sp-3);
  color: var(--navy);
}

.bento-card .feature-list {
  list-style: none;
  padding: 0;
  margin-top: var(--sp-4);
}

.bento-card .stat-highlight {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

@media (max-width: 968px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-large {
    grid-column: span 2;
    grid-row: span 1;
  }
  .bento-wide {
    grid-column: span 2;
  }
  .bento-tall {
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .bento-large,
  .bento-wide,
  .bento-tall {
    grid-column: span 2;
    grid-row: span 1;
  }
  .stats-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .bento-card {
    padding: 20px 16px;
  }
  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 380px) {
  .bento-grid,
  .stats-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Utility Classes ─── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-center p,
.text-center .lead,
.text-center h2,
.text-center h3 { margin-left: auto; margin-right: auto; }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-16 { margin-top: 64px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mb-16 { margin-bottom: 64px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-sm { max-width: 400px; }
.max-w-md { max-width: 600px; }
.max-w-lg { max-width: 800px; }
.max-w-xl { max-width: 1000px; }

/* ─── Special Components ─── */
.highlight-box {
  background: var(--cream);
  border-radius: 0;
  padding: var(--sp-6);
  margin: var(--sp-6) 0;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0;
  background: var(--cream);
  color: var(--text-muted);
}

.badge-navy {
  background: var(--navy);
  color: var(--white);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: var(--sp-8) 0;
}

.accent-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 0;
  margin: var(--sp-5) auto;
}

.section-header .accent-line {
  margin: var(--sp-5) auto var(--sp-7);
}

/* Premium Feature Image Styling */
.feature-visual {
  background: var(--navy);
  border-radius: 0;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feature-visual .icon-container-lg {
  position: relative;
  z-index: 1;
}

.card-visual {
  height: 180px;
  background: var(--navy);
  border-radius: 0;
  margin: -48px -48px var(--sp-5) -48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-visual svg {
  width: 56px;
  height: 56px;
  fill: var(--gold);
  position: relative;
  z-index: 1;
}

/* Glass card */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
  padding: var(--sp-7);
  box-shadow: var(--shadow-md);
}

/* Image placeholder */
.img-placeholder {
  background: var(--cream);
  border-radius: 0;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Hero Floating Shapes ─── */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 0;
  background: rgba(184, 162, 114, 0.06);
  animation: float 20s ease-in-out infinite;
}

.hero-shape-1 { width: 400px; height: 400px; top: -100px; right: -100px; animation-delay: 0s; }
.hero-shape-2 { width: 300px; height: 300px; bottom: -50px; left: -50px; animation-delay: -5s; }
.hero-shape-3 { width: 200px; height: 200px; top: 50%; left: 20%; animation-delay: -10s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(5deg); }
  50% { transform: translateY(10px) rotate(-5deg); }
  75% { transform: translateY(-15px) rotate(3deg); }
}

/* ─── Animations ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeInUp 0.8s var(--ease-out) forwards;
  opacity: 0;
}

.animate-delay-1 { animation-delay: 0.15s; }
.animate-delay-2 { animation-delay: 0.30s; }
.animate-delay-3 { animation-delay: 0.45s; }
.animate-delay-4 { animation-delay: 0.60s; }

/* Scroll-triggered reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal[data-delay="1"] { transition-delay: 0.08s; }
.scroll-reveal[data-delay="2"] { transition-delay: 0.16s; }
.scroll-reveal[data-delay="3"] { transition-delay: 0.24s; }
.scroll-reveal[data-delay="4"] { transition-delay: 0.32s; }
.scroll-reveal[data-delay="5"] { transition-delay: 0.40s; }
.scroll-reveal[data-delay="6"] { transition-delay: 0.48s; }

.section-header.scroll-reveal {
  transform: translateY(20px);
}

/* Stat counter */
.stat-number.counting {
  transition: none;
}

/* Lifecycle diagram animation */
.lifecycle-step {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s var(--ease-out);
}

.lifecycle-step.revealed {
  opacity: 1;
  transform: translateX(0);
}

.lifecycle-step:nth-child(1) { transition-delay: 0.1s; }
.lifecycle-step:nth-child(2) { transition-delay: 0.2s; }
.lifecycle-step:nth-child(3) { transition-delay: 0.3s; }
.lifecycle-step:nth-child(4) { transition-delay: 0.4s; }
.lifecycle-step:nth-child(5) { transition-delay: 0.5s; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ─── Accessibility ─── */
a[href], button, select, .card, .ehr-item, .cert-badge,
.testimonial-card, .team-card, .faq-item, .btn-link,
.nav-link, .nav-cta, .dropdown-menu a, .footer-links a,
.client-logo, .logo-item {
  cursor: pointer;
}

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, .btn:focus-visible,
.nav-link:focus-visible, .nav-cta:focus-visible,
.dropdown-menu a:focus-visible, .btn-link:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 0;
}

.card:focus-visible, .ehr-item:focus-visible,
.cert-badge:focus-visible, .faq-item:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.section-dark a:focus-visible, .section-dark button:focus-visible,
.hero a:focus-visible, .hero button:focus-visible,
.cta a:focus-visible, .footer a:focus-visible {
  outline-color: var(--gold);
}

.skip-to-content {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--navy);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-to-content:focus { top: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal, .lifecycle-step, .btn, .card,
  .ehr-item, .cert-badge, .testimonial-card,
  .team-photo, .feature-image-real {
    transition: none;
    transform: none;
    opacity: 1;
  }
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
  .logo-track {
    animation: none;
  }
}

/* ─── WHY TNG PAGE ─── */
.model-section {
  padding: var(--sp-10) 0;
}

.model-shell {
  border-radius: 0;
  padding: var(--sp-7);
  border: 1px solid var(--border);
  background: var(--white);
}

.model-shell.model-legacy {
  background: var(--white);
}

.model-shell.model-nicehr {
  background: var(--navy);
  border-color: var(--navy-mid);
}

.model-shell.model-nicehr .eyebrow,
.model-shell.model-nicehr h2,
.model-shell.model-nicehr p,
.model-shell.model-nicehr .flow-step,
.model-shell.model-nicehr .flow-arrow,
.model-shell.model-nicehr .signal-list li {
  color: rgba(255,255,255,0.85);
}

.model-shell.model-nicehr .eyebrow {
  color: var(--gold-light);
}

.model-head h2 {
  margin: 10px 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  white-space: nowrap;
}

.model-head .lead {
  max-width: 860px;
}

.model-head .lead.one-line-lead {
  white-space: nowrap;
  max-width: none;
}

.model-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  margin-top: var(--sp-6);
  align-items: stretch;
}

.flow-track {
  background: rgba(15, 29, 47, 0.04);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.model-nicehr .flow-track {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.flow-title {
  margin: 0 0 14px;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.model-nicehr .flow-title {
  color: var(--gold-light);
}

.flow-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.flow-step {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 0;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  flex: 0 0 auto;
}

.model-nicehr .flow-step {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.flow-arrow {
  color: var(--text-light);
  font-weight: 700;
  font-size: 1rem;
  opacity: 0.9;
}

.signal-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--text-muted);
}

.signal-list li {
  line-height: 1.5;
}

.model-copy p + p {
  margin-top: 14px;
}

/* Why TNG: Technology cards */
.why-tech-card {
  padding: var(--sp-7);
}

.why-tech-card h3 {
  color: var(--gold);
  margin-bottom: var(--sp-4);
}

.why-tech-card .subtitle {
  font-size: 1.1rem;
  margin-bottom: var(--sp-4);
}

.why-tech-card .btn-outline {
  margin-top: var(--sp-5);
}

/* Why TNG: Cost structure */
.cost-card-legacy {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: var(--sp-6);
}

.cost-card-legacy h4 {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--sp-5);
}

.cost-card-tng {
  background: rgba(184, 162, 114, 0.1);
  border: 1px solid var(--gold);
  border-radius: 0;
  padding: var(--sp-6);
}

.cost-card-tng h4 {
  color: var(--gold);
  margin-bottom: var(--sp-5);
}

.cost-list {
  list-style: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.8);
}

.cost-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cost-list li:last-child {
  border-bottom: none;
}

.cost-note {
  margin-top: var(--sp-5);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

/* Why TNG: Platform coverage */
.platform-list {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: var(--sp-6);
}

/* Why TNG: Lifecycle diagram */
.lifecycle-diagram {
  background: var(--cream);
  padding: var(--sp-7);
  border-radius: 0;
  max-width: 900px;
  margin: 0 auto;
}

.lifecycle-track {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}

.lifecycle-step {
  background: var(--navy);
  color: white;
  padding: 12px 20px;
  border-radius: 0;
  font-weight: 600;
}

.lifecycle-arrow {
  color: var(--gold);
  font-size: 24px;
}

.lifecycle-loop {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-2);
}

.lifecycle-loop-icon {
  color: var(--gold);
  font-size: 24px;
}

.lifecycle-loop-label {
  background: var(--gold);
  color: var(--navy);
  padding: 10px 24px;
  border-radius: 0;
  font-weight: 600;
}

/* Why TNG: Stats on light background */
.stats-grid-light .stat-number {
  color: var(--navy);
}

.card-center {
  text-align: center;
}

.btn-secondary-light {
  border-color: white;
  color: white;
}

.section-dark .lead-muted {
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 980px) {
  .model-shell {
    padding: 28px 22px;
  }
  .model-columns {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .model-head h2 {
    white-space: normal;
  }
  .model-head .lead.one-line-lead {
    white-space: normal;
  }
  .flow-line {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}
