/* ═══════════════════════════════════════════════════════════════
   XPRT Ventures — Shared Design System  ·  "Refined Medical"
   Redesign by Glen Tenorio.
   Keeps the trustworthy MEDICAL BLUE identity — clean clinical white,
   deep navy ink, one confident blue accent — but strips the AI-template
   tells: no gradient text, no dot-grids, no radial glows, no coloured
   glow shadows, no blue+green combo, no pill "tag" chips.
   Think Philips / GE Healthcare, not a startup landing page.
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&display=swap');

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

/* ── TOKENS ── */
:root {
  /* Deep navy ink — structure, panels, primary buttons, text */
  --ink:        #0E2340;
  --ink-soft:   #28405F;
  --text:       #0E2340;
  --text-muted: #54657B;
  --text-soft:  #8B99AC;

  /* Clean clinical surfaces (cool white, not warm paper) */
  --bg:         #F4F7FB;
  --bg-soft:    #E9F0F8;
  --surface:    #FFFFFF;
  --paper:      #F4F7FB;   /* alias used by homepage layer */
  --paper-2:    #E9F0F8;   /* soft blue-tint fills (screens, thumbs, tiles) */

  /* One confident medical blue accent */
  --primary:      #1565C0;
  --primary-dark: #104E97;
  --primary-darker:#0B3B73;
  --primary-light: #E7F0FC;
  --primary-xlight:#F2F7FD;

  /* Accent aliases point at the medical blue (single-hue system) */
  --accent:       #1565C0;
  --accent-dark:  #104E97;
  --accent-tint:  #E7F0FC;
  --accent-light: #E7F0FC;
  --accent-xlight:#F2F7FD;

  /* Legacy aliases kept so inner pages using old names resolve cleanly */
  --primary-xdark: var(--ink);
  --white:         #FFFFFF;

  /* Rating amber (universal, not part of the blue system) */
  --star: #E0A63C;

  /* Borders — cool hairlines */
  --border:        #E1E8F1;
  --border-base:   #E1E8F1;
  --border-strong: #C6D3E3;

  /* Radii — clean & professional (not bubbly) */
  --r-sm:  6px;
  --r-md:  9px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-2xl: 20px;
  --r-pill: 999px;

  /* Shadows — subtle, neutral-cool (hairlines do most of the work) */
  --shadow-xs:   0 1px 2px rgba(14,35,64,.04);
  --shadow-sm:   0 1px 3px rgba(14,35,64,.06);
  --shadow-md:   0 8px 28px rgba(14,35,64,.08);
  --shadow-lg:   0 18px 46px rgba(14,35,64,.10);
  --shadow-xl:   0 26px 66px rgba(14,35,64,.12);
  --shadow-float:0 6px 18px rgba(14,35,64,.07);

  --ease: .26s cubic-bezier(.2,.7,.2,1);

  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  /* "mono" aliased to the sans so kicker labels read as clean caps, not code */
  --mono: 'Geist', system-ui, sans-serif;
}

/* ── BASE ── */
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -.025em;
}

a  { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 16px; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--primary); color: #fff;
  padding: 8px 16px; border-radius: 0 0 6px 6px;
  font-weight: 600; font-size: 14px; z-index: 9999;
}
.skip-link:focus { top: 0; outline: 3px solid var(--primary-dark); }

/* ── CONTAINER ── */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 32px; }

/* ── TOPBAR — thin deep-navy utility strip ── */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.68);
  font-size: 12.5px;
  padding: 9px 0;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar-left { display: flex; align-items: center; gap: 20px; }
.topbar-left svg { flex-shrink: 0; opacity: .6; }
.topbar-right { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.55); }
.topbar-right .sep { opacity: .3; }
.topbar-right a { color: #fff; font-weight: 600; }
.topbar-right a:hover { color: #9FC4EE; }

/* ── NAVBAR — clean flat white bar with a hairline (no floating glass pill) ── */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border);
  margin: 0; padding: 0;
}
.nav-inner {
  max-width: 1240px; margin-inline: auto;
  display: flex; align-items: center; gap: 14px;
  height: 72px; padding: 0 32px;
  background: none; border: 0; border-radius: 0; box-shadow: none;
}

/* Logo — flat blue mark, no gradient/glow */
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.logo-icon {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.logo-text { font-family: var(--sans); font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.03em; }
.logo-text span { color: var(--primary); }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  font-size: 14.5px; font-weight: 500; color: var(--text-muted);
  padding: 8px 14px; border-radius: 7px;
  transition: color var(--ease), background-color var(--ease);
  white-space: nowrap;
}
.nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-link.active { color: var(--primary); font-weight: 600; background: transparent; box-shadow: inset 0 -2px 0 var(--primary); border-radius: 0; }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--border-strong); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); background: var(--surface);
  transition: color var(--ease), border-color var(--ease);
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.hamburger {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--border-strong); border-radius: 8px;
  align-items: center; justify-content: center;
  color: var(--ink); margin-left: auto; background: var(--surface);
}

/* ── BUTTONS — solid, clean, no gradient/glow/lift ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 8px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 600; letter-spacing: 0;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
  text-decoration: none;
}
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-accent { background: var(--ink); color: #fff; }         /* secondary = navy */
.btn-accent:hover { background: #081a30; color: #fff; }

.btn-outline { background: var(--surface); color: var(--primary); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-xlight); color: var(--primary); }

.btn-white { background: #fff; color: var(--primary); border-color: #fff; }
.btn-white:hover { background: var(--primary-light); border-color: var(--primary-light); color: var(--primary-dark); }

.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.42); }
.btn-ghost-white:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 15px 26px; font-size: 15.5px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--primary); font-weight: 600; font-size: 14px;
  transition: gap var(--ease);
}
.arrow-link:hover { gap: 11px; color: var(--primary-dark); }

/* ── SECTION HEADERS — clean uppercase blue eyebrow (no pill, no gradient) ── */
.section-head { text-align: center; margin-bottom: 58px; max-width: 680px; margin-inline: auto; }
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--primary);
  background: none; border: 0; padding: 0; margin-bottom: 18px;
}
.section-tag::before { content: ''; width: 20px; height: 2px; background: var(--primary); border-radius: 2px; flex-shrink: 0; }
.section-title {
  font-family: var(--sans);
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700; letter-spacing: -.03em;
  margin-bottom: 18px; line-height: 1.08; color: var(--ink);
}
.section-title em { font-style: normal; color: var(--primary); background: none; -webkit-text-fill-color: currentColor; }
.section-desc { font-size: 17px; color: var(--text-muted); max-width: 620px; margin-inline: auto; line-height: 1.7; }

/* ── PAGE HERO (inner pages) — clean clinical band, no dots ── */
.page-hero {
  background: var(--bg);
  padding: 90px 0 66px; text-align: center; color: var(--ink);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero::before { content: none; }
.page-hero-inner { position: relative; z-index: 1; }
.breadcrumb {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 22px; background: none; padding: 0; border: 0; box-shadow: none;
}
.breadcrumb a { color: var(--primary); font-weight: 600; }
.breadcrumb a:hover { color: var(--primary-dark); }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 700; letter-spacing: -.03em; margin-bottom: 16px; color: var(--ink); line-height: 1.05; }
.page-hero h1 em { font-style: normal; color: var(--primary); background: none; -webkit-text-fill-color: currentColor; }
.page-hero p { font-size: 18px; color: var(--text-muted); max-width: 620px; margin-inline: auto; line-height: 1.7; }

/* ── FOOTER — flat deep navy, hairline dividers (no gradient, no dots) ── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.6);
  padding: 74px 0 0; position: relative; overflow: hidden;
}
.footer::before { content: none; }
.footer .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .logo-text { color: #fff; }
.footer .logo-text span { color: #9FC4EE; }
.footer .logo-icon { background: #fff; color: var(--primary); box-shadow: none; }
.footer-tagline { font-size: 14px; line-height: 1.7; margin-top: 18px; color: rgba(255,255,255,.5); max-width: 300px; }
.footer-badges { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.badge {
  background: rgba(21,101,192,.24);
  border: 1px solid rgba(255,255,255,.18);
  color: #cfe0f5;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 6px;
}
.footer-h { font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px; }
.footer-ul { display: flex; flex-direction: column; gap: 11px; }
.footer-ul a { font-size: 14px; color: rgba(255,255,255,.55); transition: color var(--ease); }
.footer-ul a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: rgba(255,255,255,.6); }
.footer-contact-item svg { flex-shrink: 0; margin-top: 3px; opacity: .6; color: #9FC4EE; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; font-size: 13px; color: rgba(255,255,255,.4); flex-wrap: wrap; gap: 10px; }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { color: rgba(255,255,255,.42); transition: color var(--ease); }
.footer-legal a:hover { color: rgba(255,255,255,.85); }

/* Legacy helper — flatten any old dot pattern to a plain band */
.dot-pattern-bg { background: var(--bg-soft); }

/* ── ACCESSIBILITY ── */
*:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ══ RESPONSIVE ═══════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 768px) {
  .topbar-right { display: none; }
  .nav-links { display: none; }
  .nav-actions .btn-sm { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-inner { height: 64px; padding: 0 20px; }
}
@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .topbar-left { font-size: 11px; gap: 14px; }
}
