@layer base{html,body{margin:0;padding:0;}body{overscroll-behavior:none;}main>:first-child{margin-top:0!important;}main>:last-child{margin-bottom:0!important;}}
::-webkit-scrollbar{display:none;}

/* Scroll Entrance Animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.scroll-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Staggers card grids (stat/service/case cards, client tiles — anything
   using Tailwind's `grid` display utility directly around .scroll-reveal
   children) so they cascade in one after another instead of popping in
   simultaneously. The reduced-motion override above still wins since it
   forces transition: none regardless of delay. */
.grid > .scroll-reveal:nth-child(1) { transition-delay: 0s; }
.grid > .scroll-reveal:nth-child(2) { transition-delay: 0.08s; }
.grid > .scroll-reveal:nth-child(3) { transition-delay: 0.16s; }
.grid > .scroll-reveal:nth-child(4) { transition-delay: 0.24s; }
.grid > .scroll-reveal:nth-child(5) { transition-delay: 0.32s; }
.grid > .scroll-reveal:nth-child(6) { transition-delay: 0.4s; }
.grid > .scroll-reveal:nth-child(7) { transition-delay: 0.48s; }
.grid > .scroll-reveal:nth-child(8) { transition-delay: 0.56s; }

/* Background animated gradient for Targeted Solutions */
@keyframes fluidMeshGradient {
  0% {
    background-position: 0% 50%, 100% 0%, 50% 100%;
  }
  50% {
    background-position: 100% 50%, 0% 100%, 80% 20%;
  }
  100% {
    background-position: 0% 50%, 100% 0%, 50% 100%;
  }
}
.animated-mesh-bg {
  background-color: #071e33;
  background-image: 
    radial-gradient(at 15% 25%, rgba(64, 194, 253, 0.22) 0px, transparent 55%),
    radial-gradient(at 85% 75%, rgba(0, 102, 138, 0.35) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(123, 208, 255, 0.15) 0px, transparent 65%);
  background-size: 160% 160%, 150% 150%, 180% 180%;
  animation: fluidMeshGradient 15s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .animated-mesh-bg {
    animation: none;
  }
}

/* ==========================================================================
   Component classes
   Consolidates repeated Tailwind utility combinations from the markup.
   Values are hand-copied from the design tokens in js/main.js
   (tailwind.config) since Tailwind's CDN build only scans inline HTML/JS
   for classes to generate CSS for — it never processes this external
   stylesheet, so these rules use plain CSS instead of @apply.
   ========================================================================== */

/* --- Layout primitives --- */

.container {
  max-width: 1280px; /* container-max */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem; /* gutter-mobile */
  padding-right: 1rem;
}
@media (min-width: 768px) {
  .container {
    padding-left: 1.5rem; /* gutter-tablet */
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .container {
    padding-left: 2rem; /* gutter-desktop */
    padding-right: 2rem;
  }
}

.section {
  padding-top: 50px;
  padding-bottom: 50px;
}

/* First section on interior pages (company/what-we-do/case-studies/
   contact-us) — the header is position:fixed, so content needs enough
   top padding to clear it instead of starting underneath it. */
.page-hero {
  padding-top: 160px;
  padding-bottom: 50px;
}

/* --- Header --- */

.header-nav-link {
  padding: 0.5rem 0.75rem; /* space-xs space-sm */
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.15s ease;
}
.header-nav-link:hover {
  color: #ffffff;
}

.header-audit-btn {
  background-color: rgb(119, 186, 231);
  color: rgb(7, 48, 80);
}

/* --- Mobile menu (burger panel, below lg) --- */
/* Toggled by js/main.js adding/removing .is-open on #mobile-menu. Starts
   collapsed (max-height: 0) so it doesn't occupy layout space or intercept
   clicks while closed. */

.mobile-menu {
  position: fixed;
  top: 96px; /* header height (h-24) */
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  background: rgba(7, 30, 51, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(196, 231, 255, 0.2); /* secondary-fixed/20 */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1rem;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  z-index: 49; /* just under the header's z-50 */
}
.mobile-menu.is-open {
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  opacity: 1;
  padding: 1rem;
}

.mobile-menu-link {
  display: block;
  padding: 0.875rem 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-menu-link:hover {
  color: #ffffff;
}

.mobile-menu-group {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-menu-group .mobile-menu-link {
  border-bottom: none;
  padding-bottom: 0.5rem;
}

.mobile-menu-sublink {
  display: block;
  padding: 0.625rem 0.5rem 0.625rem 1.25rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  font-weight: 500;
}
.mobile-menu-sublink:last-child {
  padding-bottom: 0.875rem;
}
.mobile-menu-sublink:hover {
  color: #40c2fd; /* secondary-container */
}

.mobile-menu-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0.875rem 1.5rem;
  border-radius: 0.5rem;
  background-color: #40c2fd; /* secondary-container */
  color: #004d6a; /* on-secondary-container */
  font-size: 14px;
  font-weight: 700;
}

/* --- "What We Do" nav dropdown --- */
/* CSS-only (hover + :focus-within, no JS) so it works with keyboard focus
   and doesn't depend on main.js. Panel styling follows DESIGN.md's
   "Level 2 (Interactive Hover & Flyouts)" elevation spec and the
   Surface Layer 2 / Border Subtle tokens documented for flyout surfaces. */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
}

.nav-dropdown-caret {
  font-size: 1.125rem;
  transition: transform 0.15s ease;
}
.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown:focus-within .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid #e2e8f0; /* Border Subtle */
  border-radius: 1rem;
  box-shadow: 0 12px 32px -4px rgba(13, 35, 58, 0.08), 0 4px 12px -2px rgba(56, 189, 248, 0.12); /* Level 2 */
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 14px;
  font-weight: 500;
  color: #0d233a; /* primary */
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-dropdown-item:hover,
.nav-dropdown-item:focus {
  background-color: #f0f7fd; /* Surface Layer 2 / Ice Accent */
  color: #00668a; /* secondary */
}

/* --- Footer --- */

.footer-link {
  color: rgba(239, 244, 255, 0.8); /* surface-container-low/80 */
  transition: color 0.15s ease;
}
.footer-link:hover {
  color: #ffffff;
}

.footer-item {
  color: rgba(239, 244, 255, 0.8);
  cursor: pointer;
  transition: color 0.15s ease;
}
.footer-item:hover {
  color: #ffffff;
}

.footer-legal-link {
  cursor: pointer;
  transition: color 0.15s ease;
}
.footer-legal-link:hover {
  color: #ffffff;
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem; /* py-1 px-space-sm */
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.1); /* surface-container-lowest/10 */
  border: 1px solid rgba(196, 231, 255, 0.3); /* secondary-fixed/30 */
  color: #c4e7ff; /* secondary-fixed */
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* --- Reusable text styles --- */

.text-caption {
  font-size: 14px;
  line-height: 20px;
  color: #44474d; /* on-surface-variant */
}

.icon-accent {
  color: #40c2fd; /* secondary-container */
  font-size: 1rem; /* text-base */
}

.badge-pill {
  padding: 4px 12px; /* py-1 px-space-sm */
  border-radius: 9999px;
  background-color: rgba(196, 231, 255, 0.2); /* secondary-fixed/20 */
  border: 1px solid rgba(196, 231, 255, 0.3); /* secondary-fixed/30 */
  color: #c4e7ff; /* secondary-fixed */
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.badge-pill-sm {
  padding: 2px 8px;
  border-radius: 9999px;
  background-color: rgba(196, 231, 255, 0.2); /* secondary-fixed/20 */
  color: #c4e7ff; /* secondary-fixed */
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* --- Stat cards (Company Overview section) --- */

.stat-card {
  padding: 2rem; /* space-xl */
  border-radius: 1rem; /* rounded-2xl, Tailwind default (not overridden) */
  border: 1px solid rgba(220, 233, 255, 0.6); /* surface-container-high/60 */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(to bottom right, #eff4ff, #e5eeff); /* surface-container-low to surface-container */
  border-color: rgba(196, 231, 255, 0.5); /* secondary-fixed/50 overrides base border */
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.stat-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-color: #00668a; /* secondary */
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem; /* rounded-xl */
  background-color: rgba(196, 231, 255, 0.5); /* secondary-fixed/50 */
  color: #00668a; /* secondary */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem; /* space-sm */
}

.stat-value {
  font-size: 40px;
  line-height: 48px;
  letter-spacing: -0.025em;
  color: #0d233a; /* primary */
  font-weight: 800;
}

.stat-label {
  font-size: 20px;
  line-height: 28px;
  color: #00668a; /* secondary */
  font-weight: 700;
  margin-top: 0.25rem;
}

/* --- Service cards (Clinical Suite section) --- */

.service-card {
  padding: 2rem; /* space-xl */
  border-radius: 1rem; /* rounded-2xl */
  background-color: rgba(255, 255, 255, 0.1); /* surface-container-lowest/10 */
  backdrop-filter: blur(24px);
  border: 1px solid rgba(196, 231, 255, 0.2); /* secondary-fixed/20 */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  text-decoration: none; /* each card is now an <a> wrapper linking to its service page */
}
.service-card:hover {
  border-color: #40c2fd; /* secondary-container */
  background-color: rgba(255, 255, 255, 0.15);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem; /* rounded-xl */
  background-color: rgba(64, 194, 253, 0.2); /* secondary-container/20 */
  border: 1px solid rgba(64, 194, 253, 0.3); /* secondary-container/30 */
  color: #40c2fd; /* secondary-container */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.service-card:hover .service-icon {
  background-color: #40c2fd;
  color: #004d6a; /* on-secondary-container */
}

.service-title {
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.01em;
  color: #ffffff; /* on-primary */
  font-weight: 700;
  margin-bottom: 0.5rem; /* space-xs */
  transition: color 0.15s ease;
}
.service-card:hover .service-title {
  color: #40c2fd; /* secondary-container */
}

.service-desc {
  font-size: 16px;
  line-height: 24px;
  color: #d3e4fe; /* surface-variant */
  margin-bottom: 1rem; /* space-md */
}

.service-features {
  padding: 1rem; /* space-md */
  border-radius: 0.75rem; /* rounded-xl */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* space-xs */
  color: #ffffff; /* on-primary */
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

/* --- Case study cards --- */

.case-card {
  border-radius: 1rem; /* rounded-2xl */
  background-color: #ffffff; /* surface-container-lowest */
  border: 2px solid #c4e7ff; /* secondary-fixed */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease;
}
.case-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.case-card-header {
  padding: 1.5rem; /* space-lg */
  background: linear-gradient(to bottom right, #0d233a, #00668a); /* primary-container to secondary */
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* space-xs */
  color: #ffffff; /* on-primary */
}

.case-card-category {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #c4e7ff; /* secondary-fixed */
}

.case-card-title {
  font-size: 20px;
  line-height: 28px;
  color: #ffffff; /* on-primary */
  font-weight: 700;
}

.case-card-desc {
  font-size: 14px;
  line-height: 20px;
  color: #d3e4fe; /* surface-variant */
}

.case-card-body {
  padding: 1.5rem; /* space-lg */
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem; /* space-sm */
  margin-bottom: 1.5rem; /* space-lg */
}

.metric-highlight,
.metric-plain {
  padding: 0.75rem; /* space-sm */
  border-radius: 0.75rem; /* rounded-xl */
}
.metric-highlight {
  background-color: rgba(196, 231, 255, 0.2); /* secondary-fixed/20 */
  border: 1px solid rgba(196, 231, 255, 0.5); /* secondary-fixed/50 */
}
.metric-plain {
  background-color: #eff4ff; /* surface-container-low */
  border: 1px solid #dce9ff; /* surface-container-high */
}

.metric-value-highlight,
.metric-value-plain {
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.01em;
  font-weight: 800;
}
.metric-value-highlight {
  color: #00668a; /* secondary */
}
.metric-value-plain {
  color: #0d233a; /* primary */
}

.metric-label-highlight,
.metric-label-plain {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.metric-label-highlight {
  color: #0d233a; /* primary */
}
.metric-label-plain {
  color: #44474d; /* on-surface-variant */
}

.case-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem; /* space-sm */
}

.case-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #00668a; /* secondary */
  font-weight: 700;
  transition: color 0.15s ease;
}
.case-card-link:hover {
  color: #004d6a; /* on-secondary-container */
}

/* --- Client logo tiles (testimonials section) --- */

.client-tile {
  padding: 1.5rem; /* space-lg */
  border-radius: 1rem; /* rounded-2xl */
  background-color: #ffffff; /* surface-container-lowest */
  border: 1px solid rgba(220, 233, 255, 0.6); /* surface-container-high/60 */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 6rem;
  cursor: default;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.client-tile:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-color: #40c2fd; /* secondary-container */
}

.client-name {
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.01em;
  color: #0d233a; /* primary */
  transition: color 0.15s ease;
}
.client-tile:hover .client-name {
  color: #00668a; /* secondary */
}

/* --- Practice audit form --- */

.form-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0d233a; /* primary */
}

.form-input {
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  border-radius: 0.5rem; /* rounded-lg */
  background-color: #eff4ff; /* surface-container-low */
  color: #0d233a; /* primary */
  font-size: 14px;
  line-height: 20px;
}
.form-input::placeholder {
  color: #44474d; /* on-surface-variant */
}
.form-input:focus {
  outline: none;
  background-color: #ffffff; /* surface-container-lowest */
  box-shadow: 0 0 0 2px #00668a; /* ring-2 ring-secondary */
}
