/* ========================================================
   Vigilan Pharmaceuticals — Design System
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Color */
  --ink: #0B2E52;
  --ink-dark: #062036;
  --green: #3CB54A;
  --green-dark: #2E9639;
  --bg: #F6F8FA;
  --bg-alt: #EEF2F5;
  --white: #FFFFFF;
  --slate: #4A5568;
  --slate-light: #7A8797;
  --line: #DCE3EA;
  --line-dark: #1A3F63;

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --max-width: 1180px;
  --radius: 3px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

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

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--green);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 248, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-link img { height: 34px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 36px; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slate);
  position: relative;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-dark); }
.btn-accent { background: var(--green); color: var(--white); }
.btn-accent:hover { background: var(--green-dark); }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,0.3); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.nav-toggle { display: none; }

/* ---------- Blister motif (signature element) ---------- */
.blister {
  --dot: #123A5E;
  background-image: radial-gradient(circle, var(--dot) 1.6px, transparent 1.7px);
  background-size: 26px 26px;
}
.blister-light {
  --dot: rgba(11,46,82,0.14);
}

.blister-strip {
  display: flex;
  gap: 6px;
  align-items: center;
}
.blister-strip .pod {
  width: 14px;
  height: 20px;
  border-radius: 40%;
  background: var(--line);
  border: 1px solid #C9D3DC;
}
.blister-strip .pod.filled {
  background: var(--green);
  border-color: var(--green-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink-dark);
  color: var(--white);
  overflow: hidden;
  padding: 96px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-copy .eyebrow { color: var(--green); }

.hero h1 {
  font-size: clamp(36px, 4.6vw, 58px);
  color: var(--white);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero-sub {
  font-size: 17.5px;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; margin-bottom: 56px; }

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
}
.hero-stats .stat-label {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual .plate {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: linear-gradient(160deg, #0E3A63, #0B2E52);
  border: 1px solid rgba(255,255,255,0.1);
}
.hero-visual .plate-dots {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 14px;
  padding: 28px;
}
.hero-visual .plate-dots span {
  border-radius: 40%;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.14);
}
.hero-visual .plate-dots span.active {
  background: var(--green);
  border-color: var(--green-dark);
  box-shadow: 0 0 0 4px rgba(60,181,74,0.16);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(60,181,74,0.16); }
  50% { box-shadow: 0 0 0 8px rgba(60,181,74,0.08); }
}
.hero-visual .plate-dots span.active { animation: pulse 2.6s ease-in-out infinite; }

.hero-band {
  margin-top: 64px;
  height: 42px;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
}
.section-head p {
  color: var(--slate);
  font-size: 16px;
  margin-top: 14px;
}
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / grids ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--green-dark);
}
.pillar h3 { font-size: 18px; margin-bottom: 10px; }
.pillar p { color: var(--slate); font-size: 15px; }

/* ---------- Products ---------- */
.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.product-search {
  flex: 1;
  min-width: 240px;
  position: relative;
}
.product-search input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--white);
}
.product-search input:focus { border-color: var(--ink); outline: none; }
.product-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-light);
}
.product-count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate-light);
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.product-card:hover { border-color: var(--ink); transform: translateY(-2px); }

.product-media {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.product-media img { max-height: 100%; object-fit: contain; }

.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.product-comp {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--slate);
  flex: 1;
}
.product-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: rgba(60,181,74,0.09);
  padding: 4px 9px;
  border-radius: 3px;
  width: fit-content;
}

.no-results {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--slate-light);
  font-family: var(--font-mono);
  font-size: 14px;
}

/* ---------- Timeline (about) ---------- */
.timeline { position: relative; padding-left: 28px; border-left: 1px solid var(--line); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--green);
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green-dark);
  margin-bottom: 6px;
}
.timeline-item h3 { font-size: 18px; margin-bottom: 8px; }
.timeline-item p { color: var(--slate); font-size: 15px; max-width: 560px; }

/* ---------- Leadership ---------- */
.leaders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.leader-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.leader-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 18px;
}
.leader-card h3 { font-size: 16.5px; margin-bottom: 4px; }
.leader-card p { font-size: 13.5px; color: var(--slate-light); font-family: var(--font-mono); }

/* ---------- Address / info cards ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.info-card .eyebrow { margin-bottom: 12px; }
.info-card p { color: var(--slate); font-size: 14.5px; line-height: 1.7; }
.info-card a { color: var(--ink); font-weight: 600; }
.info-card a:hover { color: var(--green-dark); }

/* ---------- Contact form ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--white);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink);
  outline: none;
}
.form-note {
  font-size: 12.5px;
  color: var(--slate-light);
  margin-top: 14px;
}
.form-success {
  display: none;
  background: rgba(60,181,74,0.09);
  border: 1px solid rgba(60,181,74,0.3);
  color: var(--green-dark);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 20px;
}

.map-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 220px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink-dark);
  color: var(--white);
  border-radius: 6px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); font-size: 28px; max-width: 460px; }
.cta-band p { color: rgba(255,255,255,0.65); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-dark);
  color: rgba(255,255,255,0.65);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; max-width: 260px; color: rgba(255,255,255,0.55); }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14.5px; color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-social a:hover { border-color: var(--green); color: var(--green); }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--ink-dark);
  color: var(--white);
  padding: 64px 0 48px;
}
.page-header .eyebrow { color: var(--green); }
.page-header h1 { color: var(--white); font-size: clamp(30px, 4vw, 44px); }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  margin-top: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 280px; order: -1; }
  .pillars, .leaders, .info-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .main-nav ul { display: none; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
  }
  .header-inner .btn-primary { display: none; }
  .pillars, .leaders, .info-grid, .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  section { padding: 56px 0; }
  .header-inner { padding: 14px 20px; }
  .wrap { padding: 0 20px; }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ink-dark);
  z-index: 200;
  padding: 24px;
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-nav-top img { height: 30px; }
.mobile-nav-close { background: none; border: none; color: var(--white); font-size: 28px; cursor: pointer; line-height: 1; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 24px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav .btn { margin-top: 28px; }

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  z-index: 999;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgba(0,0,0,0.32);
}
.whatsapp-float svg { width: 28px; height: 28px; }

@media (max-width: 680px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--ink);
  background-image: linear-gradient(135deg, var(--ink) 0%, var(--ink-dark) 100%);
  padding: 64px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-block {
  text-align: center;
  color: var(--white);
  padding: 0 12px;
  border-left: 1px solid rgba(255,255,255,0.14);
}
.stat-block:first-child { border-left: none; }
.stat-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(60,181,74,0.16);
  color: var(--green);
}
.stat-block .stat-figure {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-block .stat-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* ---------- Hospital network ---------- */
.network-section { padding: 80px 0; background: var(--white); }
.network-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 44px;
}
.network-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  aspect-ratio: 1;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.network-logo:hover { border-color: var(--ink); transform: translateY(-2px); }
.network-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .stat-block:nth-child(3) { border-left: none; }
  .network-logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-block { border-left: none; }
  .network-logos { grid-template-columns: repeat(2, 1fr); }
}
