/* Healthlink 211 Pharma Inc. Brand colours sampled from the logo file:
   primary #0e12b6 (wordmark), secondary #0725a7, soft #96a3d9, pale #ccd2ec. Mobile first. */
:root {
  --blue: #0e12b6;
  --blue-2: #0725a7;
  --blue-deep: #0a0d7a;
  --soft: #96a3d9;
  --pale: #ccd2ec;
  --tint: #f3f5fc;
  --ink: #1b1f3b;
  --muted: #5a6078;
  --line: #e2e6f3;
  --paper: #ffffff;
  --radius: 10px;
  --bleed: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.6; }
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--bleed); }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[id] { scroll-margin-top: 76px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); transition: box-shadow .2s, border-color .2s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(14,18,182,.06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { height: 40px; width: auto; }
.nav { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--blue); font: 600 12px/1 var(--font); letter-spacing: .14em; cursor: pointer; }
.menu-btn__bars { position: relative; width: 22px; height: 12px; }
.menu-btn__bars i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, top .25s; }
.menu-btn__bars i:first-child { top: 1px; }
.menu-btn__bars i:last-child { top: 9px; }
.nav-open .menu-btn__bars i:first-child { top: 5px; transform: rotate(45deg); }
.nav-open .menu-btn__bars i:last-child { top: 5px; transform: rotate(-45deg); }
.drawer { position: fixed; inset: 64px 0 0 0; z-index: 49; background: var(--blue); color: #fff; padding: 12px var(--bleed) calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.drawer[hidden] { display: none; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li { border-bottom: 1px solid rgba(255,255,255,.18); opacity: 0; transform: translateY(6px); animation: drawerIn .3s forwards; }
.drawer li:nth-child(2) { animation-delay: .04s; } .drawer li:nth-child(3) { animation-delay: .08s; } .drawer li:nth-child(4) { animation-delay: .12s; } .drawer li:nth-child(5) { animation-delay: .16s; } .drawer li:nth-child(6) { animation-delay: .2s; }
@keyframes drawerIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .drawer li { animation: none; opacity: 1; transform: none; } }
.drawer a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; color: #fff; text-decoration: none; font-size: 22px; font-weight: 600; letter-spacing: .04em; }
.drawer a::after { content: "\2192"; color: var(--pale); }
.drawer__foot { margin: 24px 0 0; color: var(--pale); font-style: italic; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; background: var(--blue); color: #fff; text-decoration: none; font: 600 14px/1 var(--font); letter-spacing: .1em; border: 2px solid var(--blue); cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn--light { background: #fff; color: var(--blue); border-color: #fff; }
.btn--light:hover { background: var(--pale); border-color: var(--pale); color: var(--blue-deep); }

/* Hero: brand-colour panel in the slot where the Wix stock photo was */
.hero { background: linear-gradient(160deg, var(--tint) 0%, #e6eafa 55%, var(--pale) 100%); padding: 28px 0 36px; }
.hero__inner { display: grid; gap: 26px; }
.hero__logo { width: min(100%, 420px); height: auto; }
.hero__tagline { margin: 18px 0 0; color: var(--blue); font-size: clamp(22px, 5.4vw, 34px); font-weight: 800; font-style: italic; letter-spacing: .06em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero__tile { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 6px 20px rgba(14,18,182,.08); }
.hero__tile img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
@media (max-width: 519px) { .hero__actions .btn { flex: 1 1 100%; } }
/* Home hero with the pharmacy photo behind (phone: photo on top, text over a white fade at the bottom) */
.hero--photo { position: relative; overflow: hidden; padding: 0; background: #f4f6fb; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 20%; }
.hero--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.93) 36%, rgba(255,255,255,.5) 48%, rgba(255,255,255,0) 60%); }
.hero--photo .hero__inner { position: relative; z-index: 2; min-height: min(calc(100svh - 64px), 760px); align-content: end; padding-top: 48px; padding-bottom: 36px; }

/* Bands (brand-colour panels) */
.band { background: var(--blue); color: #fff; padding: 44px 0; }
.band--services { background: linear-gradient(135deg, var(--blue-deep), var(--blue) 60%, var(--blue-2)); }
.band--promo { background: linear-gradient(135deg, var(--blue-2), var(--blue) 70%); }
.band__inner { display: grid; gap: 22px; align-items: center; }
.band__title { font-size: clamp(28px, 7vw, 44px); font-weight: 800; letter-spacing: .03em; }
.band--promo .band__title { font-weight: 700; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc { border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius); padding: 22px 16px; text-align: center; font-weight: 700; letter-spacing: .16em; background: rgba(255,255,255,.06); }

/* Sections */
.section { padding: 48px 0; }
.section--tint { background: var(--tint); }
.sec-title { color: var(--blue); font-size: clamp(28px, 7vw, 40px); font-weight: 800; letter-spacing: .03em; position: relative; padding-top: 18px; }
.sec-title::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 5px; background: var(--soft); border-radius: 3px; }
.split { display: grid; gap: 18px; }
.prose p { margin: 0 0 1em; color: var(--ink); }
.lede { color: var(--muted); margin: 14px 0 0; }
.eyebrow { margin: 0; color: var(--blue); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }

/* Product cards */
.cards { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line); height: 100%; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14,18,182,.1); }
.card__img img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.card__name { display: block; padding: 12px 14px 14px; font-weight: 700; color: var(--blue); font-size: 15px; }

/* Logos */
.logos { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.logo-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; padding: 14px; min-height: 96px; }
.logo-tile img { max-height: 64px; width: auto; object-fit: contain; }

/* Photos */
.photos { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photos img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); }
.photos--wide { grid-template-columns: 1fr; }
.photos--wide img { aspect-ratio: auto; }
.lb { display: block; cursor: zoom-in; }

/* Slot left where the old site used Wix-only stock media */
.slot { width: 100%; border-radius: var(--radius); background: linear-gradient(135deg, var(--pale), var(--soft)); }
.slot--square { aspect-ratio: 1/1; }

/* Contact */
.contact { display: grid; gap: 28px; }
.contact__sub { font-weight: 700; color: var(--blue-2); margin: 16px 0 10px; }
address { font-style: normal; margin-bottom: 12px; }
.contact p { margin: 6px 0; }
.form { display: grid; gap: 12px; }
.form input, .form textarea { width: 100%; font: 16px/1.4 var(--font); color: var(--ink); min-height: 48px; padding: 12px 14px; border: 1px solid #c9cfe6; border-radius: 8px; background: #fff; appearance: none; -webkit-appearance: none; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--soft); border-color: var(--blue); }
.form .is-invalid { border-color: #b3261e; }
.form__note { margin: 0; color: var(--muted); font-size: 13px; }

/* Product pages */
.pbanner img { width: 100%; aspect-ratio: 16/9; object-fit: cover; max-height: 520px; }
.pbanner--panel { aspect-ratio: 16/9; max-height: 340px; width: 100%; background: linear-gradient(135deg, var(--pale) 0%, var(--soft) 55%, var(--blue-2) 100%); }
.product { padding-top: 36px; }
.product__inner { display: grid; gap: 28px; }
.product__title { color: var(--blue); font-size: clamp(30px, 8vw, 50px); font-weight: 800; position: relative; padding-top: 20px; overflow-wrap: anywhere; }
.product__title::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 6px; background: var(--soft); border-radius: 3px; }
.product__sub { margin-top: 16px; }
.product__sub p { margin: 0; font-weight: 700; font-size: 17px; color: var(--ink); overflow-wrap: anywhere; }
.product__inner > *, .hero__inner > *, .split > *, .contact > * { min-width: 0; }
.product .prose { margin-top: 18px; }
.spec-block { margin-top: 22px; }
.spec-block h3 { font-size: 14px; letter-spacing: .1em; color: var(--blue-2); margin-bottom: 6px; }
.spec-block p { margin: 0 0 4px; }
.spec-block p.sub { font-weight: 700; margin-top: 8px; }
.spec { border-collapse: collapse; width: 100%; max-width: 460px; margin: 4px 0 8px; font-size: 15px; }
.spec td { padding: 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; font-weight: 600; }
.product__text > p:last-child { margin-top: 28px; }
.product__media img { border-radius: var(--radius); box-shadow: 0 10px 30px rgba(14,18,182,.1); }
.video-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; min-height: 48px; padding: 0 22px 0 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--blue); }
.video-link__play { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); position: relative; }
.video-link__play::after { content: ""; position: absolute; left: 14px; top: 11px; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.logos--3 { grid-template-columns: 1fr 1fr; }

/* Footer */
.site-footer { background: #23263a; color: #d6d9e6; padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); font-size: 14px; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
.site-footer p { margin: 0; }
.follow { display: inline-flex; align-items: center; gap: 10px; }
.follow a { color: #fff; display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10,12,40,.92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1100px; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { color: #e3e6f5; text-align: center; margin-top: 10px; font-size: 14px; }
.lightbox__close { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 14px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }

/* Reveal (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Desktop */
@media (min-width: 760px) {
  :root { --bleed: 32px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .logos--3 { grid-template-columns: repeat(3, 1fr); }
  .photos { grid-template-columns: repeat(4, 1fr); }
  .photos--wide { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr 1.2fr; gap: 48px; }
  .form { grid-template-columns: 1fr 1fr; }
  .form__wide { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .site-header__inner { height: 76px; }
  .brand img { height: 52px; }
  [id] { scroll-margin-top: 88px; }
  .nav { display: block; }
  .nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
  .nav a { text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .12em; padding: 8px 0; border-bottom: 2px solid transparent; }
  .nav a:hover { color: var(--blue); border-color: var(--soft); }
  .menu-btn, .drawer { display: none !important; }
  .hero { padding: 64px 0 72px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 56px; }
  .hero__grid { gap: 12px; }
  .hero--photo { padding: 0; }
  .hero--photo .hero__bg { left: auto; right: 0; width: 72%; object-position: 50% 30%; }
  .hero--photo::before { background: linear-gradient(90deg, #f4f6fb 0%, #f4f6fb 28%, rgba(244,246,251,.85) 36%, rgba(244,246,251,0) 52%); }
  .hero--photo .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(calc(100vh - 76px), 700px); align-content: center; padding-top: 64px; padding-bottom: 72px; }
  .band { padding: 64px 0; }
  .band__inner { grid-template-columns: 1fr 1.3fr; }
  .band--promo .band__inner { grid-template-columns: 1fr auto; }
  .section { padding: 80px 0; }
  .split { grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .product__inner { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
  .product__media { position: sticky; top: 100px; }
}
