/* =========================================================
   VGRUPS Healthcare — site styles
   Product-showcase layout: pearl surfaces, floating product
   renders on a lit "stage", spec callouts around the product.
   ========================================================= */

:root {
  --paper: #EDF0F3;
  --paper-2: #F7F8FA;
  --surface: #FFFFFF;
  --ink: #13202F;
  --ink-2: #4A5868;
  --ink-3: #7C8896;
  --line: #D3D9E0;
  --brand: #0B6E99;
  --brand-deep: #08506F;

  /* division accents */
  --c-devices: #2C6BD6;
  --c-onco: #7A4BB8;
  --c-odf: #1F9D7A;
  --c-contrast: #C98A12;

  --accent: var(--brand);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --r-lg: 28px;
  --r-md: 16px;
  --r-sm: 10px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

body.p-devices  { --accent: var(--c-devices); }
body.p-onco     { --accent: var(--c-onco); }
body.p-odf      { --accent: var(--c-odf); }
body.p-contrast { --accent: var(--c-contrast); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--f-display); font-weight: 650; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.03em; }
h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 34em; }
.muted { color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.5em; border-radius: 999px;
  font: 600 .98rem/1 var(--f-body); text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--accent); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.head-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; }
.logo-word { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1; }
.logo-word small { display: block; font-family: var(--f-body); font-weight: 500; font-size: .7rem; letter-spacing: .02em; color: var(--ink-3); margin-top: 3px; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-2);
  padding: .55em .9em; border-radius: 999px; transition: background .2s, color .2s;
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.nav a[aria-current="page"]::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-right: .5em; vertical-align: middle; transform: translateY(-1px);
}
.nav .btn { margin-left: 8px; padding: .65em 1.2em; }
.nav a.btn-solid, .nav a.btn-solid:hover { color: #fff; }
.nav a.btn-solid:hover { background: var(--accent); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; transition: transform .25s, opacity .2s; }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper-2); padding: 16px var(--gutter) 24px; gap: 2px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav a { padding: .9em 1em; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
  body.menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  body.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-copy .kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; color: var(--accent); margin-bottom: 22px; }
.hero-copy .kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy .lede { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* the stage: a lit disc with fine concentric rings, product floating above */
.stage-wrap { position: relative; width: 100%; max-width: 600px; margin-left: auto; }
.stage { position: relative; aspect-ratio: 1 / 1; width: 100%; }
.stage-disc {
  position: absolute; inset: 6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, #fff 0%, color-mix(in srgb, var(--accent) 10%, #fff) 38%, color-mix(in srgb, var(--accent) 22%, var(--paper)) 72%, transparent 73%);
}
.stage-rings { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent); opacity: .5; }
.stage-product {
  position: absolute; inset: 10%;
  display: grid; place-items: center;
  animation: product-in 1.1s cubic-bezier(.2,.8,.2,1) both;
}
.stage-product img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 40px rgba(19,32,47,.18)); animation: float 7s ease-in-out 1.2s infinite; }

.callout {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 14px; padding: 10px 14px 10px 10px;
  box-shadow: 0 10px 30px -12px rgba(19,32,47,.25);
  font-size: .86rem; line-height: 1.25; max-width: 210px;
  animation: callout-in .7s cubic-bezier(.2,.8,.2,1) both;
}
.callout b { display: block; font-family: var(--f-display); font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; }
.callout span { color: var(--ink-2); }
.callout i {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-style: normal;
}
.callout i svg { width: 18px; height: 18px; }
.callout:nth-of-type(1) { animation-delay: .7s; }
.callout:nth-of-type(2) { animation-delay: .85s; }
.callout:nth-of-type(3) { animation-delay: 1s; }
.c-tl { top: 9%; left: -4%; }
.c-r  { top: 44%; right: -6%; }
.c-bl { bottom: 8%; left: 2%; }

@keyframes product-in { from { opacity: 0; transform: translateY(30px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes callout-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage-wrap { margin: 8px auto 0; max-width: 520px; }
}
@media (max-width: 560px) {
  .callout { position: static; max-width: none; animation: none; }
  .stage-callouts { display: grid; gap: 10px; margin-top: 4px; }
}
@media (min-width: 561px) { .stage-callouts { display: contents; } }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head p { color: var(--ink-2); max-width: 32em; justify-self: end; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } .sec-head p { justify-self: start; } }

.band-white { background: var(--paper-2); }
.band-ink { background: var(--ink); color: #E7ECF1; }
.band-ink .muted, .band-ink p { color: #A9B4C0; }

/* ---------- home: division showcase ---------- */
.divisions { display: grid; gap: 20px; }
.div-card {
  --accent: var(--brand);
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch;
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  text-decoration: none; color: var(--ink); min-height: 340px;
  border: 1px solid var(--line);
  transition: border-color .25s;
}
.div-card:hover { border-color: var(--accent); }
.div-card.devices  { --accent: var(--c-devices); }
.div-card.onco     { --accent: var(--c-onco); }
.div-card.odf      { --accent: var(--c-odf); }
.div-card.contrast { --accent: var(--c-contrast); }
.div-card:nth-child(even) { grid-template-columns: 1fr 1.1fr; }
.div-card:nth-child(even) .div-media { order: -1; }
.div-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 16px; }
.div-body .tag { display: inline-flex; align-self: flex-start; gap: 8px; align-items: center; font-size: .85rem; font-weight: 600; color: var(--accent); }
.div-body .tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.div-body h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.03em; }
.div-body p { color: var(--ink-2); max-width: 30em; }
.div-body ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.div-body li { font-size: .85rem; padding: .4em .85em; border-radius: 999px; background: var(--paper); color: var(--ink-2); }
.div-body .go { margin-top: auto; padding-top: 12px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.div-body .go svg { width: 18px; transition: transform .25s; }
.div-card:hover .go svg { transform: translateX(4px); }
.div-media {
  position: relative; display: grid; place-items: center; padding: 28px;
  background: radial-gradient(circle at 50% 45%, #fff 0%, color-mix(in srgb, var(--accent) 12%, #fff) 45%, color-mix(in srgb, var(--accent) 24%, var(--paper)) 100%);
}
.div-media img { width: min(100%, 300px); filter: drop-shadow(0 30px 30px rgba(19,32,47,.16)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.div-card:hover .div-media img { transform: translateY(-6px) rotate(-1.5deg); }
@media (max-width: 860px) {
  .div-card, .div-card:nth-child(even) { grid-template-columns: 1fr; }
  .div-card:nth-child(even) .div-media { order: 0; }
  .div-media { min-height: 260px; }
}

/* ---------- home: about / strengths ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-grid h2 { color: #fff; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #2A3746; border-radius: var(--r-md); overflow: hidden; }
.fact { background: var(--ink); padding: 26px 24px; }
.fact b { display: block; font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; color: #fff; margin-bottom: 6px; letter-spacing: -0.01em; }
.fact p { font-size: .93rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ---------- division pages: range ---------- */
.range { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.range-item { background: var(--surface); padding: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; }
.range-item .ico { width: 64px; height: 64px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.range-item .ico svg { width: 30px; height: 30px; }
.range-item h3 { margin-bottom: 8px; }
.range-item p { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 760px) { .range { grid-template-columns: 1fr; } .range-item { grid-template-columns: 52px 1fr; } .range-item .ico { width: 52px; height: 52px; } }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-media {
  aspect-ratio: 5 / 4; border-radius: var(--r-lg); overflow: hidden; position: relative;
  background: radial-gradient(circle at 40% 35%, #fff, color-mix(in srgb, var(--accent) 18%, var(--paper)) 70%);
  display: grid; place-items: center; padding: 8%;
}
.split-media img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(19,32,47,.18)); }
.split h2 { margin-bottom: 20px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--ink-2); }
.checks li b { color: var(--ink); font-weight: 600; }
.checks li::before {
  content: ""; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313202F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- process (a real sequence) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 22px; border-top: 2px solid #2A3746; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; top: -15px; left: 0;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font: 700 .8rem/1 var(--f-body);
}
.steps b { display: block; font-family: var(--f-display); font-size: 1.15rem; color: #fff; margin: 4px 0 8px; font-weight: 600; }
.steps p { font-size: .94rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- other divisions strip ---------- */
.others { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.other {
  --accent: var(--brand);
  display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center;
  padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  text-decoration: none; transition: border-color .2s;
}
.other:hover { border-color: var(--accent); }
.other.devices  { --accent: var(--c-devices); }
.other.onco     { --accent: var(--c-onco); }
.other.odf      { --accent: var(--c-odf); }
.other.contrast { --accent: var(--c-contrast); }
.other .thumb { width: 84px; height: 84px; border-radius: 12px; display: grid; place-items: center; padding: 8px; background: radial-gradient(circle, #fff, color-mix(in srgb, var(--accent) 18%, #fff)); }
.other b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; }
.other span { font-size: .88rem; color: var(--ink-2); }
@media (max-width: 860px) { .others { grid-template-columns: 1fr; } }

/* ---------- enquiry / contact ---------- */
.enquire { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.enquire h2 { margin-bottom: 18px; }
.addr { margin-top: 30px; display: grid; gap: 18px; }
.addr div { padding-left: 16px; border-left: 2px solid var(--accent); }
.addr b { display: block; font-weight: 600; }
.addr a { color: var(--accent); font-weight: 600; text-decoration: none; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.5vw, 36px); display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink); width: 100%;
  padding: .8em 1em; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--paper-2);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; background: #fff; }
.form textarea { min-height: 120px; resize: vertical; }
.form .btn { justify-self: start; }
.form-note { font-size: .85rem; color: var(--ink-3); }
@media (max-width: 860px) { .enquire { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #A9B4C0; padding: 64px 0 32px; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #2A3746; }
.site-foot .logo-word { color: #fff; }
.site-foot .logo-word small { color: #7C8896; }
.site-foot h4 { color: #fff; font-family: var(--f-display); font-weight: 600; font-size: 1rem; margin: 0 0 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { text-decoration: none; color: #A9B4C0; }
.site-foot a:hover { color: #fff; }
.foot-base { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #7C8896; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

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

/* ---------- home: product cluster on the stage ---------- */
.stage-product.cluster { inset: 0; display: block; }
.cluster img { position: absolute; height: auto; }
.cluster .p1 { width: 54%; left: 3%;  top: 10%; animation-delay: 1.2s; z-index: 1; }
.cluster .p2 { width: 48%; right: 4%; top: 6%;  animation-delay: 2.4s; }
.cluster .p3 { width: 44%; left: 12%; bottom: 6%; animation-delay: 3.1s; }
.cluster .p4 { width: 50%; right: 3%; bottom: 8%; animation-delay: 1.8s; z-index: 1; }
.home-stage .c-r { top: 46%; }
