/* Health IT Systems — aligned with Employment Compliance: navy, warm paper, Source Sans 3. */
:root {
  --his-ink: #14241c;
  --his-navy: #1a3c30;
  --his-navy-mid: #245443;
  --his-teal: #1a3c30;
  --his-teal-bright: #2f6a52;
  --his-sky: #6d8f7c;
  --his-accent: #1a3c30;
  --his-gold: #d4b36a;
  --his-accent-soft: #f3e6c4;
  --his-surface: #f3f6f4;
  --his-surface-warm: #fbfaf8;
  --his-card-bg: #ffffff;
  --his-border: #e4e1da;
  --his-muted: #5c6570;
  --his-shadow: 0 1px 2px rgb(18 32 51 / 0.04), 0 8px 24px rgb(18 32 51 / 0.05);
  --his-shadow-hover: 0 10px 28px rgb(18 32 51 / 0.08);
  --his-radius: 0.625rem;
  --his-radius-sm: 0.25rem;
  --his-font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --his-reveal-duration: 0.45s;
  --his-reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

.his-body {
  --bs-body-font-family: var(--his-font);
  --bs-body-color: #14241c;
  --bs-primary: #1a3c30;
  --bs-primary-rgb: 26, 60, 48;
  --bs-link-color: #1a3c30;
  --bs-link-hover-color: #10241c;
  font-family: var(--his-font);
  background-color: var(--his-surface);
  color: var(--bs-body-color);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--his-font);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1,
.h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

h2,
.h2 {
  font-size: 1.5rem;
}

h3,
.h3 {
  font-size: 1.25rem;
}

.his-main {
  position: relative;
  background: var(--his-surface);
}

.his-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background:
    radial-gradient(ellipse 40% 120% at 0% 0%, rgb(212 179 106 / 0.18), transparent 55%),
    linear-gradient(105deg, #10241c 0%, #1a3c30 58%, #214838 100%);
  border-bottom: 1px solid rgb(212 179 106 / 0.45);
  box-shadow: 0 10px 28px rgb(16 36 28 / 0.18);
}

.his-header .navbar {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.his-header .navbar-toggler {
  border-color: rgb(255 255 255 / 0.35);
}

.his-header .nav-link {
  color: rgb(255 255 255 / 0.86);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
}

.his-header .nav-link:hover,
.his-header .nav-link:focus,
.his-header .nav-link:active {
  color: #fff;
  background: rgb(255 255 255 / 0.1);
}

.his-header .navbar-text {
  color: rgb(255 255 255 / 0.75);
}

.his-logo-chip {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: #f7faf7;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgb(212 179 106 / 0.55), 0 8px 16px rgb(0 0 0 / 0.18);
}

.his-brand-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.navbar-brand:hover .his-brand-name {
  color: var(--his-gold);
}

.his-navbar-logo {
  height: 32px;
  width: 32px;
  object-fit: contain;
  display: block;
}

.his-header .btn-accent {
  background: var(--his-gold);
  border-color: var(--his-gold);
  color: #1c160c;
}

.his-header .btn-accent:hover,
.his-header .btn-accent:focus {
  background: #e4c98a;
  border-color: #e4c98a;
  color: #1c160c;
}

.btn-header-ghost {
  background: transparent;
  border: 1px solid rgb(255 255 255 / 0.38);
  color: #fff;
  font-weight: 600;
}

.btn-header-ghost:hover,
.btn-header-ghost:focus {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  border-color: rgb(255 255 255 / 0.55);
}

.btn,
.btn-accent,
.his-body .btn-primary,
.btn-outline-navy,
.btn-header-ghost {
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.btn-accent,
.his-body .btn-primary {
  background: var(--his-navy);
  border: 1px solid var(--his-navy);
  color: #fff;
  box-shadow: none;
}

.btn-accent:hover,
.btn-accent:focus,
.his-body .btn-primary:hover,
.his-body .btn-primary:focus {
  background: #10241c;
  border-color: #10241c;
  color: #fff;
}

.btn-outline-navy {
  background: #fff;
  border: 1px solid #cfcabe;
  color: var(--his-navy);
}

.btn-outline-navy:hover,
.btn-outline-navy:focus {
  background: #f3f1ec;
  border-color: #cfcabe;
  color: var(--his-ink);
}

.his-card .card-header {
  background: linear-gradient(180deg, rgb(248 250 252) 0%, rgb(255 255 255 / 0.98) 100%);
  border-bottom: 1px solid var(--his-border);
  color: var(--his-navy);
}

.his-card .list-group-item {
  border-color: rgb(15 23 42 / 0.06);
}

.his-footer {
  background: var(--his-navy);
  color: #d5deea;
  padding: 2.5rem 0;
}

.his-footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .his-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.his-footer strong {
  color: #fff;
  font-size: 1rem;
}

.his-footer p {
  margin: 0.4rem 0 0;
  max-width: 28rem;
  line-height: 1.5;
}

.his-footer nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.his-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.his-footer a:hover {
  text-decoration: underline;
}

/* —— Hero —— */
.his-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--his-radius);
  padding: 2.5rem 2rem;
  background:
    radial-gradient(circle at 0% 0%, rgb(245 179 1 / 0.28), transparent 42%),
    radial-gradient(circle at 100% 20%, rgb(20 184 166 / 0.35), transparent 50%),
    linear-gradient(135deg, var(--his-ink) 0%, #0f3d5c 48%, #0a5c52 100%);
  color: #f8fafc;
  box-shadow: var(--his-shadow-hover);
}

.his-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
}

.his-hero > * {
  position: relative;
  z-index: 1;
}

.his-hero h1 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.his-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.2);
  color: #ecfdf5;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
}

.his-hero-panel {
  border-radius: var(--his-radius);
  padding: 1.25rem 1.35rem;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.18);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.2);
}

.his-hero-panel h2 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* —— Scroll reveal (progressive: no .his-js = visible) —— */
html.his-js .his-reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(1.75rem);
}

.his-reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--his-reveal-duration) var(--his-reveal-ease),
    transform var(--his-reveal-duration) var(--his-reveal-ease);
  will-change: opacity, transform;
}

.his-reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html.his-js .his-reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }

  .his-reveal {
    transition: none;
  }

  .his-card:hover {
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Stagger home / services card grids */
.his-card-grid > .his-reveal:nth-child(1) {
  transition-delay: 0.03s;
}
.his-card-grid > .his-reveal:nth-child(2) {
  transition-delay: 0.07s;
}
.his-card-grid > .his-reveal:nth-child(3) {
  transition-delay: 0.11s;
}
.his-card-grid > .his-reveal:nth-child(4) {
  transition-delay: 0.15s;
}
.his-card-grid > .his-reveal:nth-child(5) {
  transition-delay: 0.19s;
}
.his-card-grid > .his-reveal:nth-child(6) {
  transition-delay: 0.23s;
}
.his-card-grid > .his-reveal:nth-child(7) {
  transition-delay: 0.27s;
}
.his-card-grid > .his-reveal:nth-child(8) {
  transition-delay: 0.31s;
}
.his-card-grid > .his-reveal:nth-child(9) {
  transition-delay: 0.35s;
}
.his-card-grid > .his-reveal:nth-child(10) {
  transition-delay: 0.39s;
}
.his-card-grid > .his-reveal:nth-child(11) {
  transition-delay: 0.43s;
}
.his-card-grid > .his-reveal:nth-child(12) {
  transition-delay: 0.47s;
}

/* —— Modern cards —— */
.his-card {
  position: relative;
  border: 1px solid var(--his-border) !important;
  border-radius: var(--his-radius) !important;
  background: var(--his-card-bg);
  box-shadow: var(--his-shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition:
    transform 0.35s var(--his-reveal-ease),
    box-shadow 0.35s var(--his-reveal-ease),
    border-color 0.25s ease;
}

.his-card-media {
  position: relative;
  z-index: 0;
  background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
}

.his-card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.his-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 2;
  background: var(--his-navy);
}

.his-card:hover {
  box-shadow: var(--his-shadow-hover);
}

.his-card .card-body {
  padding: 1.35rem 1.4rem;
}

.his-card h2,
.his-card h3,
.his-card .h4,
.his-card .h5 {
  color: var(--his-navy);
  font-weight: 600;
}

.his-card p {
  color: #475569;
  line-height: 1.55;
}

/* Forms inside elevated cards */
.his-card .form-control,
.his-card .form-select {
  border-radius: var(--his-radius-sm);
  border-color: rgb(15 23 42 / 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.his-card .form-control:focus,
.his-card .form-select:focus {
  border-color: rgb(27 58 87 / 0.45);
  box-shadow: 0 0 0 0.2rem rgb(27 58 87 / 0.12);
}

/* Table in card (tickets list) */
.his-card .table {
  --bs-table-bg: transparent;
}

.his-card .table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  border-bottom-color: var(--his-border);
  font-weight: 600;
}

.his-card .table tbody tr {
  transition: background-color 0.15s ease;
}

.his-card .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgb(248 250 252 / 0.9);
}

.his-card .table tbody tr:hover > * {
  background-color: rgb(240 253 250 / 0.85);
}

/* Page intros */
.his-page-lead {
  max-width: 52rem;
  line-height: 1.65;
}

/* Photography — card thumbnails under wwwroot/images/cards */
.his-hero-photo {
  margin: 0;
}

.his-hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--his-radius);
  border: 1px solid rgb(255 255 255 / 0.28);
  box-shadow: 0 16px 48px rgb(0 0 0 / 0.28);
}

.his-visual-strip .his-visual-tile {
  margin: 0;
  height: 100%;
  border-radius: var(--his-radius);
  overflow: hidden;
  background: var(--his-card-bg);
  border: 1px solid var(--his-border);
  box-shadow: var(--his-shadow);
  transition: transform 0.35s var(--his-reveal-ease), box-shadow 0.35s var(--his-reveal-ease);
}

.his-visual-strip .his-visual-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--his-shadow-hover);
}

.his-visual-strip .his-visual-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.55s var(--his-reveal-ease);
}

.his-visual-strip .his-visual-tile:hover img {
  transform: scale(1.04);
}

.his-visual-strip figcaption {
  padding: 0.85rem 1.1rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #475569;
  border-top: 1px solid var(--his-border);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.98) 0%, rgb(248 250 252) 100%);
}

.his-page-banner {
  margin: 0 0 2rem;
  border-radius: var(--his-radius);
  overflow: hidden;
  border: 1px solid var(--his-border);
  box-shadow: var(--his-shadow);
}

.his-page-banner img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 300px;
  object-fit: cover;
}

@media (max-width: 575.98px) {
  .his-page-banner img {
    aspect-ratio: 16 / 10;
    max-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .his-solution:hover,
  .his-solution:hover .his-solution-media img {
    transform: none;
  }

  .his-visual-strip .his-visual-tile:hover img {
    transform: none;
  }

  .his-visual-strip .his-visual-tile:hover {
    transform: none;
  }
}

/* Ticket bot */
.ticket-bot-root {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
}

#ticket-bot-toggle {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#ticket-bot-toggle:hover {
  transform: translateY(-2px);
}

.ticket-bot-panel {
  position: absolute;
  right: 0;
  bottom: 3.35rem;
  width: min(420px, 92vw);
  border-radius: var(--his-radius) !important;
  border: 1px solid var(--his-border);
  overflow: hidden;
  font-family: var(--his-font);
}

.ticket-bot-panel .card-header {
  background: linear-gradient(135deg, var(--his-navy) 0%, #0f5c4a 100%);
  color: #f1f5f9;
  border-bottom: none;
}

.ticket-bot-log {
  height: 280px;
  overflow-y: auto;
  background: var(--his-surface-warm);
  font-size: 0.9rem;
}

.ticket-bot-msg {
  margin-bottom: 0.65rem;
}

.ticket-bot-msg .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.ticket-bot-msg.user .bubble {
  background: #ccfbf1;
  border: 1px solid rgb(13 148 136 / 0.15);
}

.ticket-bot-msg.bot .bubble {
  background: #fff;
  border: 1px solid var(--his-border);
}

.ticket-bot-msg .bubble {
  border-radius: var(--his-radius-sm);
  padding: 0.5rem 0.85rem;
  white-space: pre-wrap;
}

/* —— Public pages —— */
.his-hero-split {
  display: grid;
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 2.75rem;
}

.his-hero-split .his-intro {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .his-hero-split {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
  }
}

.his-hero-photo {
  margin: 0;
  position: relative;
  border-radius: 1.35rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgb(16 36 28 / 0.16);
  border: 1px solid rgb(255 255 255 / 0.4);
}

.his-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.his-hero-photo figcaption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  margin: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgb(16 36 28 / 0.78);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.his-intro {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.his-kicker {
  margin: 0 0 0.5rem;
  color: var(--his-navy);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.his-intro h1,
.his-section-head h2,
.his-close h2,
.his-about-grid h2 {
  letter-spacing: -0.03em;
}

.his-intro h1 {
  margin: 0 0 0.75rem;
  color: var(--his-ink);
}

.his-intro-lead,
.his-section-head p,
.his-solution p,
.his-service-list p,
.his-about-grid p,
.his-steps p,
.his-close p,
.his-contact p,
.his-footer p {
  font-size: 1rem;
  line-height: 1.5;
}

.his-intro-lead {
  margin: 0;
  color: var(--his-muted);
}

.his-section-head {
  margin-bottom: 1.25rem;
  max-width: 40rem;
}

.his-section-head h2,
.his-close h2 {
  margin: 0 0 0.35rem;
}

.his-section-head p {
  margin: 0;
  color: var(--his-muted);
}

.his-solutions {
  margin-bottom: 3rem;
}

.his-solution-grid,
.his-service-list,
.his-about-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .his-solution-grid,
  .his-service-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .his-solution-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .his-about-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.his-solution,
.his-contact,
.his-band,
.his-close {
  background: #fff;
  border: 1px solid var(--his-border);
  border-radius: 1.15rem;
  box-shadow: var(--his-shadow);
}

.his-solution {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s var(--his-reveal-ease), box-shadow 0.28s var(--his-reveal-ease);
}

.his-solution:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgb(16 36 28 / 0.12);
}

.his-solution-media {
  position: relative;
  background: #d7e0da;
}

.his-solution-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s var(--his-reveal-ease);
}

.his-solution:hover .his-solution-media img {
  transform: scale(1.04);
}

.his-solution-body {
  padding: 1.05rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.his-solution h3,
.his-service-list h3,
.his-about-grid h2,
.his-steps h3 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  color: var(--his-ink);
}

.his-solution p,
.his-service-list p,
.his-about-grid p,
.his-steps p,
.his-close p,
.his-contact p {
  color: var(--his-muted);
}

.his-solution-meta {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin: 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgb(16 36 28 / 0.78);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.his-solution-meta span {
  color: var(--his-gold);
  background: transparent;
  padding: 0;
}

.his-solution a,
.his-service-list a {
  margin-top: auto;
  padding-top: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.his-solution a:hover,
.his-service-list a:hover {
  text-decoration: underline;
}

.his-band,
.his-close,
.his-service-block {
  margin-bottom: 1.25rem;
}

.his-band {
  padding: 1.35rem 1.35rem 0.4rem;
}

.his-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem 1.5rem;
}

@media (min-width: 768px) {
  .his-steps {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.his-steps li {
  padding: 0.35rem 0 1rem;
}

.his-steps h3::before {
  content: counter(step) "  ";
  counter-increment: step;
  color: var(--his-navy);
}

.his-steps {
  counter-reset: step;
}

.his-close {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.4rem;
  margin-top: 0.5rem;
}

.his-close h2 {
  margin: 0 0 0.35rem;
}

.his-close p {
  margin: 0;
  max-width: 40rem;
}

.his-close-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.his-about-grid {
  margin-bottom: 1.25rem;
}

.his-contact {
  padding: 1.35rem 1.4rem;
  max-width: 40rem;
}

.his-contact-address {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.his-contact-address a {
  color: var(--his-navy);
  text-decoration: none;
}

.his-contact-address a:hover {
  text-decoration: underline;
}

.his-service-block .his-section-head {
  margin-bottom: 0.75rem;
}

.his-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
