/* =========================================================
   ATS Medical Systems – Premium Government Healthcare Theme
   ========================================================= */
:root {
  /* Brand palette from ATS identity */
  --brand-red: #e31e24;
  --brand-navy: #2c3e50;
  --brand-magenta: #8c004b;
  --brand-grey: #707070;
  --primary: #2c3e50;
  --primary-dark: #1a252f;
  --primary-light: #3d5166;
  --accent: #e31e24;
  --accent-soft: #fdeced;
  --magenta: #8c004b;
  --gold: #c9a227;
  --text: #2c3e50;
  --text-muted: #707070;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --white: #ffffff;
  --border: rgba(44, 62, 80, 0.12);
  --shadow: 0 10px 40px rgba(44, 62, 80, 0.08);
  --shadow-lg: 0 20px 60px rgba(44, 62, 80, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --nav-h: 78px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-num: "Roboto", "Lato", "Courier New", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

/* ---------- Background atmosphere ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 35% at 8% 0%, rgba(227, 30, 36, 0.04), transparent),
    radial-gradient(ellipse 50% 30% at 92% 8%, rgba(44, 62, 80, 0.05), transparent),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 45%, #f5f6f8 100%);
}

/* Spark particles */
.spark-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(227, 30, 36, 0.45);
  box-shadow: 0 0 8px rgba(227, 30, 36, 0.35);
  animation: sparkFloat linear infinite;
  opacity: 0;
}

@keyframes sparkFloat {
  0% { transform: translateY(100vh) scale(0.4); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.site-header .nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 1002;
  flex-shrink: 0;
}

.brand img,
.brand-logo {
  width: 48px;
  height: 56px;
  object-fit: contain;
  object-position: center;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  transition: color var(--transition);
}

.brand-name .ats {
  color: #ff6b6f;
  font-weight: 800;
  transition: color var(--transition);
}

.brand-name .rest {
  color: var(--white);
  transition: color var(--transition);
}

.brand-tag {
  font-family: var(--font-body);
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.2rem;
  transition: color var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(44, 62, 80, 0.1);
}

.site-header.scrolled .brand-name .ats {
  color: var(--brand-red);
}

.site-header.scrolled .brand-name .rest,
.site-header.scrolled .nav-links > li > a,
.site-header.scrolled .dropdown-toggle {
  color: var(--brand-navy);
}

.site-header.scrolled .brand-tag {
  color: var(--brand-grey);
}

.site-header.scrolled .nav-toggle span {
  background: var(--brand-navy);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a,
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-links > li > a:hover,
.dropdown-toggle:hover,
.nav-links > li > a.active {
  background: rgba(255, 255, 255, 0.12);
}

.site-header.scrolled .nav-links > li > a:hover,
.site-header.scrolled .dropdown-toggle:hover,
.site-header.scrolled .nav-links > li > a.active {
  background: var(--accent-soft);
  color: var(--primary);
}

.dropdown-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-top: 2px;
  opacity: 0.7;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  border: 1px solid var(--border);
  z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--text);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
  background: var(--accent-soft);
  color: var(--primary);
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.6rem 1.15rem !important;
  background: var(--brand-red) !important;
  color: var(--white) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 20px rgba(227, 30, 36, 0.3);
}

.nav-cta:hover {
  background: var(--brand-magenta) !important;
  transform: translateY(-1px);
}

.site-header.scrolled .nav-cta {
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, background var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--brand-red);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(227, 30, 36, 0.28);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: var(--brand-magenta);
  box-shadow: 0 16px 36px rgba(140, 0, 75, 0.3);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

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

.btn-outline-dark {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* ---------- Hero Slider ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(26, 37, 47, 0.86) 0%, rgba(44, 62, 80, 0.7) 55%, rgba(140, 0, 75, 0.35) 100%),
    radial-gradient(circle at 70% 40%, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(900px, 92%);
  text-align: center;
  color: var(--white);
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  animation: fadeUp 0.9s ease both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1rem;
  padding: 0;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
}

.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--brand-red);
  border-radius: 2px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-style: normal;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #ffd0d2;
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.55rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.hero-dot.active {
  background: var(--white);
  width: 28px;
  border-radius: 999px;
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.3s;
}

.hero-nav-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-prev { left: 1.25rem; }
.hero-next { right: 1.25rem; }

.page-hero {
  position: relative;
  width: 100%;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(26, 37, 47, 0.9), rgba(44, 62, 80, 0.78), rgba(140, 0, 75, 0.45));
}

.page-hero .hero-content {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 3.5rem;
}

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

/* ---------- Sections ---------- */
section {
  position: relative;
  z-index: 2;
  padding: 5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-alt), #f8fbfc);
}

.section-dark {
  background: linear-gradient(135deg, #1a252f, #2c3e50 55%, #5a1038);
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 3rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--brand-grey);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.section-eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--brand-red);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-header h2,
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
  color: var(--brand-navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.section-title .accent,
h1 .accent,
h2 .accent {
  color: var(--brand-magenta);
}

.page-hero h1 .accent,
.hero h1 .accent {
  color: #ffb3cf;
}

.section-dark .section-header h2,
.section-dark .section-title {
  color: var(--white);
}

.section-header p,
.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-dark .section-header p,
.section-dark .lead {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Cards / Grid ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
  cursor: pointer;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.6s ease;
  background: linear-gradient(180deg, #eef5f8, #e4eef2);
}

.card:hover .card-media img {
  transform: scale(1.06);
}

.card-body {
  padding: 1.5rem 1.4rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.55rem;
  line-height: 1.25;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex: 1;
}

.card-link {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-link:hover {
  color: var(--primary);
  gap: 0.55rem;
}

.icon-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.icon-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-soft), #f8e8ee);
  color: var(--brand-red);
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-num);
}

.icon-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.icon-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ---------- Feature / Process ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.process-step .step-num {
  font-family: var(--font-num);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--brand-red);
  line-height: 1;
  margin-bottom: 0.85rem;
  opacity: 0.95;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-list {
  display: grid;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--brand-red);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  color: var(--primary-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.split-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.values-grid .icon-card {
  text-align: left;
}

.values-grid .icon-badge {
  margin: 0 0 1rem;
}

/* ---------- Tables ---------- */
.data-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: var(--accent-soft);
}

.data-table .num {
  white-space: nowrap;
}

/* ---------- Partners ---------- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.partner-chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-weight: 650;
  color: var(--primary-dark);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
  min-height: 110px;
  display: grid;
  place-items: center;
}

.partner-chip:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
}

.contact-info-card,
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.contact-item strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
}

.contact-item a {
  color: var(--accent);
  font-family: var(--font-num);
  font-weight: 600;
}

.contact-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 650;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fafcfd;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 138, 157, 0.15);
}

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

.form-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--accent);
  display: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, #1a252f, #12181f);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 0;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand-name {
  color: var(--white);
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.footer-brand .brand-tag {
  color: #ff8a8e;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand .brand-name .ats {
  color: var(--brand-red);
}

.footer-brand .brand-name .rest {
  color: var(--white);
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  opacity: 0.85;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.footer-col a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s, padding-left 0.2s;
}

.footer-col a:hover {
  opacity: 1;
  color: #ff8a8e;
  padding-left: 4px;
}

.footer-contact li {
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  opacity: 0.85;
}

.footer-contact a {
  display: inline;
  font-family: var(--font-num);
  padding: 0;
}

.footer-tagline {
  text-align: center;
  padding: 1.75rem 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 600;
  color: #ffd0d2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 0 1.5rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

.footer-bottom a {
  color: #ff8a8e;
  font-weight: 600;
}

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

/* ---------- Floating Action Buttons ---------- */
.fab-stack {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-end;
}

.fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s, box-shadow 0.25s;
  border: none;
  cursor: pointer;
  position: relative;
}

.fab:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.fab img,
.fab svg {
  width: 26px;
  height: 26px;
}

.fab-whatsapp {
  background: #25d366;
}

.fab-whatsapp img {
  filter: none;
}

.fab-call {
  background: var(--brand-navy);
  color: var(--white);
}

.fab-call svg {
  fill: currentColor;
  width: 22px;
  height: 22px;
}

.fab-label {
  position: absolute;
  right: calc(100% + 10px);
  background: var(--primary-dark);
  color: var(--white);
  font-size: 0.72rem;
  font-family: var(--font-num);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.fab:hover .fab-label {
  opacity: 1;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(3, 24, 32, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: min(960px, 96vw);
  max-height: 90vh;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--primary-dark);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  line-height: 1;
}

/* ---------- Animations / Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.float-y {
  animation: floatY 5s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.pulse-soft {
  animation: pulseSoft 2.8s ease-in-out infinite;
}

@keyframes pulseSoft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.stat-item {
  text-align: center;
  padding: 1.4rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.stat-item .num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #ff8a8e;
  margin-bottom: 0.25rem;
}

.stat-item span {
  font-size: 0.85rem;
  opacity: 0.85;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand-red);
  font-size: 0.78rem;
  font-weight: 700;
}

.cta-banner {
  border-radius: calc(var(--radius) + 4px);
  padding: 3rem 2rem;
  text-align: center;
  background:
    linear-gradient(120deg, rgba(26, 37, 47, 0.9), rgba(140, 0, 75, 0.72)),
    url("../assets/public-health.jpg") center/cover;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.product-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.pill {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 86vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--nav-h) + 1rem) 1.25rem 2rem;
    gap: 0.25rem;
    transform: translateX(105%);
    transition: transform 0.35s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    z-index: 1001;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links > li > a,
  .dropdown-toggle {
    color: var(--primary-dark) !important;
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .nav-cta {
    margin: 1rem 0 0 !important;
    justify-content: center !important;
    border-radius: 999px !important;
    border-bottom: none !important;
    color: var(--white) !important;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    display: none;
    padding: 0 0 0.5rem 0.75rem;
    background: transparent;
    min-width: 0;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding: 0.55rem 0.5rem;
    font-size: 0.86rem;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 24, 32, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
  }

  .nav-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  .site-header:not(.scrolled) .nav-toggle span {
    background: var(--white);
  }

  .grid-2,
  .grid-3,
  .process-steps,
  .split,
  .split.reverse,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-nav-btn { display: none; }
}

@media (max-width: 640px) {
  :root { --nav-h: 70px; }
  .grid-4,
  .stats-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.05rem; }
  .fab { width: 48px; height: 48px; }
  .fab-stack { right: 0.75rem; bottom: 0.75rem; }
  .hero { min-height: 92vh; }
  section { padding: 3.5rem 0; }
}

/* Print / a11y */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
