/* ==========================================================================
   EMG Health — Design System v2
   Inspired by getfreed.ai: light background, bold rounded headlines,
   clean blue accent, generous whitespace. Wordmark-only logo (no icon).
   ========================================================================== */

:root {
  /* Brand palette — sky blue, approved v3 */
  --blue: #0284c7;
  --blue-dark: #026aa7;
  --blue-light: #e0f2fe;
  --blue-tint: #f0f9ff;
  --blue-bright: #4fc3f7;
  --coral: #ee6c4d;
  --ink: #14181f;
  --slate: #5b6472;
  --mist: #f7f8fa;
  --white: #ffffff;
  --border: #e7e9ee;

  --font-head: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-logo: 'Space Grotesk', 'Inter', -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(20, 30, 60, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 30, 60, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 30, 60, 0.12);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--white);
  background-image: radial-gradient(circle, #dbe2ea 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  line-height: 1.55;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

.grad-text {
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--slate); font-size: 1rem; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }

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

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}

.lede {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 620px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-teal { background: var(--ink); color: #fff; }
.btn-teal:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-tint); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #fff;
  border-bottom: 3px solid #97a2b2;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand .accent { font-weight: 500; color: var(--blue-bright); }
.brand .mark { display: none; }
.brand small {
  display: none;
}
.footer-brand .brand { border-color: rgba(255,255,255,0.25); }

/* ---------- Value band ---------- */
.value-band {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
}
.value-band .section-head.center h2 { color: #fff; }
.value-band .section-head.center .eyebrow { color: var(--blue-bright); }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.value-stat .num {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 2rem;
  color: var(--blue-bright);
  display: block;
  margin-bottom: 8px;
}
.value-stat p { color: rgba(255,255,255,0.75); margin: 0; line-height: 1.5; }

/* ---------- Contrast band (blue gradient — lighter alternative to the dark value-band) ---------- */
.contrast-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 44px 40px 48px;
  background-image: linear-gradient(120deg, var(--blue-dark), var(--blue) 65%), radial-gradient(circle, rgba(255,255,255,0.14) 1.4px, transparent 1.4px);
  background-size: cover, 20px 20px;
}
.contrast-band .icon-card { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.2); }
.contrast-band .icon-card:hover { background: rgba(255,255,255,0.16); }
.contrast-band .icon-card i { background: rgba(255,255,255,0.18); color: #fff; }
.contrast-band .icon-card h3 { color: #fff; }
.contrast-band .icon-card p { color: rgba(255,255,255,0.82); }
.contrast-band .section-head { margin-bottom: 0; }
.contrast-band .section-head.center h2 { color: #fff; }
.contrast-band .section-head.center .eyebrow { color: rgba(255,255,255,0.85); }
.contrast-band .section-head.center .lede { color: rgba(255,255,255,0.85); }
.contrast-band .card { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.2); box-shadow: none; }
.contrast-band .card .icon { background: rgba(255,255,255,0.18); color: #fff; }
.contrast-band .card h3 { color: #fff; }
.contrast-band .card p { color: rgba(255,255,255,0.82); }
.contrast-band .card a { color: #fff; }
a.card { display: block; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; white-space: nowrap; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 12px 12px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.main-nav > ul > li > a:hover { background: var(--blue-tint); color: var(--blue); }
.main-nav .has-mega { }
.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: none;
  gap: 24px;
  width: max-content;
  max-width: 720px;
}
.main-nav .has-mega:hover .mega,
.main-nav .has-mega:focus-within .mega { display: grid; grid-template-columns: repeat(3, 1fr); }
.mega a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 400;
}
.mega a:hover { background: var(--blue-tint); color: var(--blue); }
.mega .mega-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 10px 4px;
}
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  background-image: linear-gradient(180deg, var(--blue-tint) 0%, #ffffff 70%), radial-gradient(circle, rgba(20,24,31,0.05) 1.4px, transparent 1.4px);
  background-size: cover, 26px 26px;
  color: var(--ink);
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero.small { padding: 64px 0 72px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { color: var(--ink); }
.hero .lede { color: var(--slate); }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--blue); }
.hero-stats div span { font-size: 0.8rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.06em; }
.hero-art {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.hero-art ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hero-art li {
  background: var(--blue-tint);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.hero-art li .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.umbrella-list li i { font-size: 1.05rem; color: var(--blue); flex-shrink: 0; width: 20px; text-align: center; }
.card .icon i { font-size: 2rem; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--mist); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 700;
  font-family: var(--font-head);
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.pill {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin: 0 8px 8px 0;
}

/* ---------- Division / Institute page header ---------- */
.division-hero {
  background-color: var(--blue-tint);
  background-image: radial-gradient(circle, rgba(20,24,31,0.06) 1.4px, transparent 1.4px);
  background-size: 24px 24px;
  color: var(--ink);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}
.division-hero .eyebrow { color: var(--blue); }
.division-hero h1 { color: var(--ink); }
.breadcrumb { font-size: 0.85rem; color: var(--slate); margin-bottom: 18px; }
.breadcrumb a { color: var(--slate); }

.service-list { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.service-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.service-item .num {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blue);
  font-size: 0.9rem;
  background: var(--blue-light);
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-item h4 { margin: 0 0 4px; font-size: 1rem; color: var(--ink); }
.service-item p { margin: 0; font-size: 0.88rem; }

/* ---------- Scannable service panel (photo band + icon tiles) ---------- */
.service-panel { background: var(--mist); border-radius: var(--radius-md); overflow: hidden; }
.service-photo-band {
  position: relative;
  height: 150px;
  background-image: linear-gradient(120deg, var(--blue-dark), var(--blue) 65%), radial-gradient(circle, rgba(255,255,255,0.14) 1.4px, transparent 1.4px);
  background-size: cover, 20px 20px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 32px;
}
.service-photo-band .banner-icon { position: absolute; right: -22px; top: -26px; font-size: 210px; color: rgba(255,255,255,0.12); }
.service-photo-band .banner-content { position: relative; color: #fff; }
.service-photo-band .banner-eyebrow { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; margin-bottom: 6px; }
.service-photo-band .banner-title { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; }
.service-panel-body { padding: 28px; }
.icon-tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.icon-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.icon-tile:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.icon-tile i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--blue-light);
  font-size: 30px;
  color: var(--blue);
}
.icon-tile .tile-label { font-weight: 700; font-size: 0.85rem; color: var(--ink); margin-top: 12px; }
.icon-tile .tile-desc { font-size: 0.8rem; color: var(--slate); margin-top: 8px; display: none; text-align: left; line-height: 1.45; }
.icon-tile.open .tile-desc { display: block; }
.icon-tile .tile-toggle { font-size: 0.72rem; color: var(--blue); margin-top: 8px; font-weight: 600; }

/* ---------- Homepage service bands (icon cards on dark contrast band) ---------- */
.icon-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.icon-card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.icon-card {
  display: block;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 26px 16px;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.icon-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.1); }
.icon-card i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  font-size: 32px;
  color: var(--blue-bright);
  margin-bottom: 14px;
}
.icon-card h3 { color: #fff; font-size: 0.98rem; margin-bottom: 6px; }
.icon-card p { color: rgba(255,255,255,0.65); font-size: 0.82rem; margin: 0; line-height: 1.5; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band p { color: rgba(255,255,255,0.75); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.footer-grid h5 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.9rem; max-width: 280px; }
.footer-brand .brand { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.45); }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--mist);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
}
.form-note { font-size: 0.82rem; color: var(--slate); }
.form-success {
  background: var(--blue-light); color: var(--blue-dark);
  padding: 16px 20px; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 18px;
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.flex { display: flex; }
.gap-12 { gap: 12px; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .icon-card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  section { padding: 56px 0; }
  .value-grid { grid-template-columns: 1fr; gap: 24px; }
  .value-band { padding: 36px 24px; }
  .contrast-band { padding: 32px 22px 36px; }
  .icon-tile-grid { grid-template-columns: 1fr 1fr; }
  .service-panel-body { padding: 20px; }
  .icon-card-grid { grid-template-columns: 1fr 1fr; }
  .service-photo-band { height: 130px; }
  .service-photo-band .banner-title { font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .icon-tile-grid { grid-template-columns: 1fr; }
  .icon-card-grid, .icon-card-grid.cols-4 { grid-template-columns: 1fr; }
}
