/* ===================================================
   MultiOp Website — Main Stylesheet
   =================================================== */

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

:root {
  --navy:        #1a2e4a;
  --navy-dark:   #102035;
  --navy-mid:    #1e3a5f;
  --teal:        #2a9d8f;
  --teal-dark:   #1f7a6e;
  --teal-light:  #e6f6f4;
  --clinic-blue: #0284c7;
  --gray-bg:     #f4f6f9;
  --gray-light:  #e8ecf1;
  --gray-mid:    #9aa5b4;
  --gray-text:   #4a5568;
  --white:       #ffffff;
  --text-dark:   #1a2e4a;
  --text-body:   #374151;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:   0 10px 30px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
  --radius:      8px;
  --radius-lg:   14px;
  --transition:  0.2s ease;
  --font:        'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-w:       1180px;
  --header-h:    92px;
}

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

body {
  font-family: var(--font);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .75rem;
}

.section-heading {
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--gray-text);
  max-width: 720px;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  box-shadow: 0 4px 14px rgba(42,157,143,.30);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(42,157,143,.38);
}

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

.btn-ghost {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-ghost:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.btn-sm {
  padding: .55rem 1.2rem;
  font-size: .88rem;
}

/* --- Site Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -.01em;
}
.logo:hover { color: var(--white); }

.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  flex-shrink: 0;
}

.logo-text span { color: var(--teal); }

/* ── Brand logo (image-based, seasonal switcher) ── */
.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand-logo--seasonal {
  background: #ffffff;
  border-radius: 10px;
  padding: 5px 14px;
}
.brand-logo img {
  display: block;
  height: auto;
  max-height: 58px;
  max-width: 520px;
  width: auto;
}

.main-nav { display: flex; align-items: center; gap: .25rem; }

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .55rem .85rem;
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link[aria-expanded="true"] {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.nav-link svg { width: 14px; height: 14px; transition: transform var(--transition); }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  pointer-events: none;
}
.nav-item.is-open .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown a {
  display: block;
  padding: .6rem .9rem;
  color: var(--text-body);
  font-size: .9rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.dropdown a:hover { background: var(--gray-bg); color: var(--navy); }

.nav-cta { margin-left: .75rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 60%, #1a4a5e 100%);
  color: var(--white);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 70% 50%, rgba(42,157,143,.12) 0%, transparent 60%),
    radial-gradient(ellipse 500px 400px at 20% 80%, rgba(42,157,143,.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-label {
  display: inline-block;
  background: rgba(42,157,143,.20);
  color: #6eddd4;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(42,157,143,.30);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.hero-trust {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(42,157,143,.40);
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-stack {
  width: 100%;
  max-width: 440px;
  position: relative;
}

.hero-dashboard {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(8px);
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.dashboard-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
}
.dashboard-dot:first-child { background: #f87171; }
.dashboard-dot:nth-child(2) { background: #fbbf24; }
.dashboard-dot:nth-child(3) { background: #34d399; }

.dashboard-title {
  font-size: .78rem;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  margin-left: 4px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid rgba(255,255,255,.06);
}
.stat-num { font-size: 1.5rem; font-weight: 700; color: var(--white); }
.stat-label { font-size: .72rem; color: rgba(255,255,255,.5); margin-top: 2px; }
.stat-card.accent .stat-num { color: #6eddd4; }

.dashboard-rows { display: flex; flex-direction: column; gap: 8px; }
.dashboard-row {
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255,255,255,.05);
}
.row-label { font-size: .78rem; color: rgba(255,255,255,.65); }
.row-badge {
  font-size: .68rem;
  font-weight: 600;
  padding: .18rem .55rem;
  border-radius: 100px;
}
.badge-teal { background: rgba(42,157,143,.25); color: #6eddd4; }
.badge-yellow { background: rgba(251,191,36,.2); color: #fde68a; }
.badge-blue { background: rgba(96,165,250,.2); color: #93c5fd; }
.badge-green { background: rgba(52,211,153,.2); color: #6ee7b7; }

/* --- Section Defaults --- */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-bg); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy .section-heading { color: var(--white); }
.section-navy .section-intro { color: rgba(255,255,255,.75); }

/* BEM modifier aliases used by inner pages */
.section--light { background: var(--gray-bg); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy .section-heading,
.section--navy .split-heading { color: var(--white); }
.section--navy .section-intro,
.section--navy .split-text { color: rgba(255,255,255,.80); }
.section--cta { background: var(--gray-bg); }

.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-intro { margin: 0 auto; }

/* --- Cards --- */
.card-grid {
  display: grid;
  gap: 1.5rem;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(42,157,143,.25);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.card-icon svg { width: 24px; height: 24px; color: var(--teal); }

.card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: .5rem;
}
.card p {
  font-size: .92rem;
  color: var(--gray-text);
  line-height: 1.65;
}

.card-navy {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
}
.card-navy:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(42,157,143,.35);
}
.card-navy h3 { color: var(--white); }
.card-navy p { color: rgba(255,255,255,.70); }
.card-navy .card-icon { background: rgba(42,157,143,.18); }
.card-navy .card-icon svg { color: #6eddd4; }

/* BEM card modifier aliases */
.card--feature { /* inherits base .card styles — no additional rules needed */ }
.card--dark {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
}
.card--dark:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(42,157,143,.35);
}
.card--dark h3, .card--dark .card-title { color: var(--white); }
.card--dark p, .card--dark .card-text { color: rgba(255,255,255,.70); }
.card--dark .card-icon { background: rgba(42,157,143,.18); }
.card--dark .card-icon svg { color: #6eddd4; }

/* Card icon colour variants */
.card-icon--blue  { background: rgba(37,99,235,.12); }
.card-icon--blue svg { color: #2563eb; }
.card-icon--teal  { background: var(--teal-light); }
.card-icon--teal svg { color: var(--teal); }
.card-icon--teal-dark { background: rgba(42,157,143,.18); }
.card-icon--teal-dark svg { color: #6eddd4; }
.card-icon--clinic-blue { background: rgba(2,132,199,.12); }
.card-icon--clinic-blue svg { color: var(--clinic-blue); }
.card-icon--clinic-blue-dark { background: rgba(2,132,199,.18); }
.card-icon--clinic-blue-dark svg { color: #60b8f0; }

.card-solution {
  display: flex;
  flex-direction: column;
}
.card-solution .card-body { flex: 1; margin-bottom: 1.25rem; }
.card-solution .btn { align-self: flex-start; }

/* --- Who MultiOp Helps --- */
.helps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

/* --- Two-column text sections --- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-content .section-label { margin-bottom: .5rem; }
.split-content .section-heading { margin-bottom: 1rem; }
.split-content p { color: var(--gray-text); margin-bottom: 1rem; line-height: 1.75; }
.split-content p:last-of-type { margin-bottom: 1.5rem; }

.split-visual {
  background: var(--gray-bg);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--gray-light);
}

.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow-sm);
}
.feature-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-row-icon svg { width: 18px; height: 18px; color: var(--teal); }
.feature-row-text strong { display: block; font-size: .88rem; color: var(--navy); margin-bottom: .1rem; }
.feature-row-text span { font-size: .8rem; color: var(--gray-mid); }

/* --- Split layout (used on inner pages) --- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .75rem;
}

.split-heading {
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.split-text {
  font-size: 1.0rem;
  color: var(--gray-text);
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* --- Feature checklist (used inside split-visual panels) --- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: .875rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: .875rem;
  font-size: .9375rem;
  color: var(--navy);
}

.feature-check {
  width: 26px;
  height: 26px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 700px 400px at 50% 100%, rgba(42,157,143,.15), transparent);
  pointer-events: none;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; position: relative; }
.cta-banner p { color: rgba(255,255,255,.75); max-width: 580px; margin: 0 auto 2rem; position: relative; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* --- Footer --- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.65);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(255,255,255,.50);
  max-width: 280px;
}

.footer-col h4 {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a {
  font-size: .88rem;
  color: rgba(255,255,255,.50);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--teal); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}

/* --- Responsive --- */

/* Logo tiers: scale down as viewport narrows */
@media (max-width: 1200px) {
  .brand-logo img { max-height: 60px; max-width: 460px; }
}
@media (max-width: 992px) {
  :root { --header-h: 82px; }
  .brand-logo img { max-height: 54px; max-width: 340px; }
  .nav-link { padding: .5rem .65rem; font-size: .86rem; }
}
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .brand-logo img { max-height: 46px; max-width: 240px; }
}

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

@media (max-width: 768px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }

  .section { padding: 56px 0; }

  .card-grid-2, .card-grid--2,
  .card-grid-3, .card-grid--3 { grid-template-columns: 1fr; }

  .helps-grid { grid-template-columns: repeat(2, 1fr); }

  .split-section { grid-template-columns: 1fr; gap: 36px; }
  .split-layout { grid-template-columns: 1fr; gap: 36px; }
  .split-visual { display: none; }

  .cta-banner { padding: 40px 24px; }

  .main-nav { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1rem 24px 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    gap: .25rem;
    align-items: flex-start;
  }
  .main-nav.open .nav-cta { display: flex; margin-top: .5rem; margin-left: 0; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 .75rem;
    pointer-events: auto;
    display: none;
  }
  .nav-item.is-open .dropdown { display: block; }
  .dropdown a { color: rgba(255,255,255,.65); font-size: .88rem; }
  .dropdown a:hover { background: rgba(255,255,255,.06); color: var(--white); }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}

@media (max-width: 480px) {
  .helps-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* --- Utility --- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ─── SCROLL MARGIN for fixed header ─── */
section[id], [id].card { scroll-margin-top: 5rem; }

/* ─── SYSTEM OVERVIEW FIGURE ─── */
.overview-figure {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow-lg), 0 0 0 3px rgba(42,157,143,.07);
  overflow: hidden;
  margin: 2rem 0 .5rem;
  line-height: 0;
}

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

.overview-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.overview-zone {
  position: absolute;
  pointer-events: auto;
  border-radius: var(--radius);
  background: transparent;
  border: 2px solid transparent;
  transition: background var(--transition), border-color var(--transition);
  cursor: pointer;
  display: block;
}

.overview-zone:hover {
  background: rgba(42,157,143,.16);
  border-color: rgba(42,157,143,.5);
}

.overview-zone:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  background: rgba(42,157,143,.12);
  border-color: var(--teal);
}

.overview-note {
  text-align: center;
  font-size: .875rem;
  color: var(--gray-text);
  margin-top: .625rem;
  font-style: italic;
}

/* Mobile link fallback — hidden on desktop */
.overview-links {
  display: none;
  margin-top: 1.5rem;
}

.overview-links-heading {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--gray-mid);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .75rem;
}

.overview-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
}

.overview-link-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .625rem .875rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  color: var(--text-dark);
  font-size: .875rem;
  font-weight: 500;
  transition: border-color var(--transition), background var(--transition);
  text-decoration: none;
}

.overview-link-item:hover {
  background: var(--teal-light);
  border-color: var(--teal);
  color: var(--navy);
}

.overview-link-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ─── MODULE GRID (mobile fallback for overview figures) ─── */
.module-grid { display: none; }
.module-grid-inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: 1.5rem; }
.module-card { background: var(--navy-mid); border: 1px solid rgba(42,157,143,.18); border-left: 3px solid var(--teal); border-radius: var(--radius-lg); padding: 1rem 1.125rem; }
.module-card-title { font-size: .875rem; font-weight: 700; color: var(--teal); margin-bottom: .3rem; line-height: 1.3; }
.module-card-text { font-size: .8rem; color: rgba(255,255,255,.72); line-height: 1.5; margin: 0; }
.module-grid-cta { text-align: center; margin-top: 1.25rem; }
.overview-caption { text-align: center; font-size: .875rem; color: var(--gray-text); margin-top: .75rem; font-style: italic; }

/* View-full-image button: hidden on desktop where the image is readable, shown when image is too small */
.overview-view-btn-wrap { display: none; text-align: center; margin-top: 1rem; }
@media (max-width: 1024px) {
  .overview-view-btn-wrap { display: block; }
}

@media (max-width: 768px) {
  .overview-overlay  { display: none; }
  .overview-links    { display: block; }
  .overview-links-grid { grid-template-columns: 1fr; }
  .overview-figure   { display: none; }
  .overview-caption  { display: none; }
  .overview-note     { display: none; }
  .module-grid       { display: block; }
}

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

/* ─── ZOOM TRIGGER (click-to-enlarge affordance on overview figures) ─── */
.zoom-trigger {
  display: block;
  line-height: 0;
  cursor: zoom-in;
  text-decoration: none;
}

.zoom-trigger .overview-img {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zoom-trigger:hover .overview-img,
.zoom-trigger:focus-visible .overview-img {
  transform: scale(1.015);
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(42,157,143,.35);
}

.zoom-trigger:focus-visible {
  outline: none;
}

.overview-zoom-hint {
  text-align: center;
  font-size: .8125rem;
  color: var(--gray-text);
  margin-top: .5rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .overview-zoom-hint { display: none; }
}

/* ─── SYSTEM GRAPHIC SECTION ─── */
/* Used for responsive full-width product overview graphics on dark sections.
   Unlike .overview-figure, this is NOT hidden on mobile. */
.system-graphic-wrapper {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(42, 157, 143, .25);
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(42, 157, 143, .10);
  overflow: hidden;
  max-width: 1060px;
  margin: 0 auto;
  line-height: 0;
}
.system-graphic-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}
.system-graphic-section .overview-zoom-hint {
  color: rgba(255, 255, 255, .45);
}
@media (max-width: 768px) {
  .system-graphic-section .section-header { margin-bottom: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .zoom-trigger .overview-img { transition: none; }
  .zoom-trigger:hover .overview-img,
  .zoom-trigger:focus-visible .overview-img { transform: none; box-shadow: none; }
}

/* ─── IMAGE LIGHTBOX ────────────────────────────────────────────────────────
   Reusable for any overview figure (MOASMS, Licensing System, etc.).
   Activate by wrapping an <img> in:
     <a class="zoom-trigger" href="full-image.png" data-zoom-alt="...">
   The lightbox DOM is injected once by initImageLightbox() in main.js.
   ─────────────────────────────────────────────────────────────────────── */
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.img-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.img-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, .88);
  cursor: zoom-out;
}

.img-lightbox__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-lightbox__img {
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-lg);
  cursor: zoom-out;
  box-shadow: 0 8px 48px rgba(0, 0, 0, .6);
}

.img-lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .3);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  z-index: 2;
}

.img-lightbox__close:hover {
  background: rgba(42, 157, 143, .35);
  border-color: var(--teal);
}

.img-lightbox__close:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .img-lightbox { transition: none; }
}

body.lightbox-open { overflow: hidden; }
