/* ============================================================
   Aplonis Healthcare — Design System
   Display: Space Grotesk · Body: IBM Plex Sans · Data: IBM Plex Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root{
  --ink:#132420;
  --ink-soft:#3E5851;
  --paper:#F3F6F3;
  --card:#FFFFFF;
  --deep:#0D3B34;
  --deep-2:#0A2E29;
  --brand:#1F8A6F;
  --brand-light:#DCEEE6;
  --amber:#E2A63B;
  --amber-deep:#B87D1F;
  --line:#DAE4DE;
  --line-strong:#B8CBC3;
  --shadow: 0 1px 2px rgba(13,59,52,.06), 0 8px 24px -12px rgba(13,59,52,.18);

  --display: 'Space Grotesk', sans-serif;
  --body: 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
  --radius: 14px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--body);
  color:var(--ink);
  background:var(--paper);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--display); margin:0; color:var(--deep); line-height:1.12; letter-spacing:-0.01em; }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }

:focus-visible{ outline:2.5px solid var(--amber); outline-offset:3px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--mono); font-size:12.5px; font-weight:600;
  letter-spacing:.08em; text-transform:uppercase; color:var(--brand);
}
.eyebrow::before{ content:""; width:16px; height:2px; background:var(--amber); display:inline-block; }

.section{ padding:88px 0; }
.section--tight{ padding:64px 0; }
.section-head{ max-width:640px; margin-bottom:48px; }
.section-head h2{ font-size:clamp(28px,3.4vw,40px); margin-top:14px; }
.section-head p{ margin-top:14px; color:var(--ink-soft); font-size:16.5px; }
.section--deep{ background:var(--deep); color:#EAF3EF; }
.section--deep h2,.section--deep h3,.section--deep .eyebrow{ color:#EAF3EF; }
.section--deep .eyebrow{ color:#8FD6BC; }
.section--soft{ background:var(--brand-light); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px; border-radius:999px; font-weight:600; font-size:15px;
  border:1.5px solid transparent; transition:transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-1px); }
.btn-primary{ background:var(--amber); color:var(--deep-2); box-shadow:0 6px 18px -8px rgba(226,166,59,.65); }
.btn-primary:hover{ background:#EEB456; }
.btn-outline{ background:transparent; border-color:rgba(255,255,255,.4); color:inherit; }
.btn-outline:hover{ border-color:var(--amber); }
.btn-dark{ background:var(--deep); color:#fff; }
.btn-dark:hover{ background:var(--deep-2); }
.btn-sm{ padding:10px 18px; font-size:13.5px; }

/* ---------- Header / Nav ---------- */
.topbar{
  background:var(--deep-2); color:#CFE6DC; font-family:var(--mono); font-size:12.5px;
  padding:8px 0;
}
.topbar .container{ display:flex; align-items:center; justify-content:space-between; gap:16px; }
.topbar a{ color:#F2C879; font-weight:600; }

.site-header{
  position:sticky; top:0; z-index:100; background:rgba(243,246,243,.92);
  backdrop-filter:blur(10px); border-bottom:1px solid var(--line);
}
.nav{ display:flex; align-items:center; justify-content:space-between; padding:16px 0; gap:20px; }
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--display); font-weight:700; font-size:20px; color:var(--deep); }
.brand .mark{
  width:36px; height:36px; border-radius:10px; background:var(--deep);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; position:relative;
}
.brand .mark::before{
  content:""; width:16px; height:16px; border-radius:50%;
  background:linear-gradient(135deg, var(--amber) 50%, var(--brand) 50%);
}
.nav-links{ display:flex; align-items:center; gap:32px; font-weight:500; font-size:15px; }
.nav-links a{ position:relative; padding:6px 0; color:var(--ink); }
.nav-links a::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--amber); transform:scaleX(0); transition:transform .2s ease; transform-origin:left; }
.nav-links a:hover::after, .nav-links a.active::after{ transform:scaleX(1); }
.nav-links a.active{ color:var(--brand); font-weight:600; }
.nav-actions{ display:flex; align-items:center; gap:12px; }
.nav-actions .phone{ display:flex; align-items:center; gap:8px; font-family:var(--mono); font-size:14px; font-weight:600; color:var(--deep); }

.menu-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:42px; height:42px; border-radius:10px; border:1.5px solid var(--line-strong);
  background:var(--card);
}
.menu-toggle span{ width:20px; height:2px; background:var(--deep); margin:0 auto; transition:transform .25s ease, opacity .25s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{ position:relative; overflow:hidden; padding:72px 0 56px; }
.hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:center; }
.hero h1{ font-size:clamp(34px,4.6vw,56px); margin-top:16px; }
.hero h1 em{ font-style:normal; color:var(--brand); }
.hero p.lead{ margin-top:20px; font-size:18px; color:var(--ink-soft); max-width:520px; }
.hero-ctas{ display:flex; gap:14px; margin-top:30px; flex-wrap:wrap; }
.hero-badges{ display:flex; gap:22px; margin-top:40px; flex-wrap:wrap; }
.hero-badges div{ font-family:var(--mono); font-size:12.5px; color:var(--ink-soft); display:flex; align-items:center; gap:8px; }
.hero-badges strong{ color:var(--deep); font-size:14px; }

.blister{
  --dot: var(--brand);
  width:100%; aspect-ratio:1/1; border-radius:28px; background:var(--deep);
  position:relative; overflow:hidden; box-shadow:var(--shadow);
}
.blister-grid{ position:absolute; inset:0; display:grid; grid-template-columns:repeat(5,1fr); grid-template-rows:repeat(5,1fr); padding:22px; gap:14px; }
.blister-cell{ border-radius:50%; background:radial-gradient(circle at 35% 30%, #2BA582, #0D3B34 72%); border:1px solid rgba(255,255,255,.08); }
.blister-cell.amber{ background:radial-gradient(circle at 35% 30%, #F2C879, #B87D1F 72%); }
.blister-card{
  position:absolute; left:20px; bottom:20px; right:20px; background:rgba(19,36,32,.85); backdrop-filter:blur(6px);
  border-radius:14px; padding:18px 20px; color:#fff;
}
.blister-card .stat-row{ display:flex; justify-content:space-between; align-items:baseline; }
.blister-card .num{ font-family:var(--mono); font-size:26px; font-weight:600; color:var(--amber); }
.blister-card .lbl{ font-size:12px; color:#BFD9CD; }

/* ---------- Stat strip ---------- */
.stat-strip{ background:var(--deep); }
.stat-strip .container{ display:grid; grid-template-columns:repeat(4,1fr); }
.stat-strip .stat{ padding:26px 20px; text-align:center; border-left:1px solid rgba(255,255,255,.12); }
.stat-strip .stat:first-child{ border-left:none; }
.stat-strip .num{ font-family:var(--mono); font-size:clamp(22px,3vw,30px); font-weight:600; color:#fff; }
.stat-strip .lbl{ font-size:12.5px; color:#9FC9BA; margin-top:4px; text-transform:uppercase; letter-spacing:.04em; }

/* ---------- Cards ---------- */
.grid{ display:grid; gap:24px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }

.card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:26px; box-shadow:var(--shadow); transition:transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform:translateY(-3px); box-shadow:0 14px 30px -14px rgba(13,59,52,.28); }
.card .icon{
  width:44px; height:44px; border-radius:11px; background:var(--brand-light); color:var(--brand);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px; font-size:20px;
}
.card h3{ font-size:18px; margin-bottom:8px; }
.card p{ color:var(--ink-soft); font-size:14.5px; }

/* product card with tear-tab */
.pcard{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow); display:flex; flex-direction:column; transition:transform .18s ease;
}
.pcard:hover{ transform:translateY(-3px); }
.pcard-tag{
  padding:16px 20px; background:var(--deep); color:#fff; display:flex; justify-content:space-between; align-items:center;
  position:relative;
}
.pcard-tag::after{
  content:""; position:absolute; right:16px; top:0; bottom:0; width:1px;
  background-image:repeating-linear-gradient(to bottom, rgba(255,255,255,.35) 0 4px, transparent 4px 9px);
}
.pcard-tag .code{ font-family:var(--mono); font-size:11.5px; color:#9FC9BA; }
.pcard-body{ padding:22px 20px; flex:1; display:flex; flex-direction:column; }
.pcard-body h3{ font-size:17px; margin-bottom:8px; }
.pcard-body p{ color:var(--ink-soft); font-size:14px; flex:1; }
.pcard-foot{ display:flex; justify-content:space-between; align-items:center; margin-top:16px; padding-top:14px; border-top:1px dashed var(--line-strong); }
.pcard-foot .cat{ font-family:var(--mono); font-size:11.5px; color:var(--brand); font-weight:600; text-transform:uppercase; letter-spacing:.04em; }

/* ---------- Process steps ---------- */
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; position:relative; }
.step{ position:relative; padding:0 20px 0 0; }
.step .num{ font-family:var(--mono); font-size:13px; color:var(--amber-deep); background:var(--amber); width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:600; }
.step h4{ font-size:16.5px; margin:16px 0 8px; color:var(--deep); }
.step p{ font-size:14px; color:var(--ink-soft); }
.step::after{ content:""; position:absolute; top:17px; left:44px; right:-10px; height:1px; background:var(--line-strong); background-image:repeating-linear-gradient(to right, var(--line-strong) 0 6px, transparent 6px 11px); }
.step:last-child::after{ display:none; }

/* ---------- Feature list rows ---------- */
.feature-row{ display:flex; gap:16px; padding:20px 0; border-top:1px solid var(--line); }
.feature-row:first-child{ border-top:none; }
.feature-row .icon{ width:38px; height:38px; border-radius:10px; background:var(--brand-light); color:var(--brand); flex-shrink:0; display:flex; align-items:center; justify-content:center; font-weight:700; font-family:var(--mono); font-size:13px; }
.feature-row h4{ font-size:16px; margin-bottom:4px; }
.feature-row p{ color:var(--ink-soft); font-size:14.5px; }

/* ---------- Certifications strip ---------- */
.cert-strip{ display:flex; flex-wrap:wrap; gap:14px; }
.cert-chip{ display:flex; align-items:center; gap:8px; padding:10px 16px; border:1px solid var(--line-strong); border-radius:999px; font-family:var(--mono); font-size:12.5px; font-weight:600; color:var(--deep); background:var(--card); }
.cert-chip .dot{ width:8px; height:8px; border-radius:50%; background:var(--brand); }

/* ---------- Forms ---------- */
.form-card{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:32px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:13px; font-weight:600; color:var(--deep); margin-bottom:6px; }
.field input, .field select, .field textarea{
  width:100%; padding:12px 14px; border:1.5px solid var(--line-strong); border-radius:9px;
  font-family:var(--body); font-size:14.5px; background:#fff; color:var(--ink); transition:border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--brand); outline:none; }
.field textarea{ resize:vertical; min-height:90px; }
.field-radios{ display:flex; gap:18px; margin-top:6px; }
.field-radios label{ display:flex; align-items:center; gap:6px; font-weight:500; font-size:14px; color:var(--ink-soft); }
.form-note{ font-size:12.5px; color:var(--ink-soft); text-align:center; margin-top:14px; }

/* ---------- CTA banner ---------- */
.cta-banner{
  background:linear-gradient(120deg, var(--deep) 0%, #114A41 100%); color:#fff; border-radius:20px;
  padding:48px; display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;
  position:relative; overflow:hidden;
}
.cta-banner::before{
  content:""; position:absolute; right:-40px; top:-40px; width:220px; height:220px; border-radius:50%;
  background:radial-gradient(circle, rgba(226,166,59,.28), transparent 70%);
}
.cta-banner h3{ color:#fff; font-size:26px; max-width:420px; }
.cta-banner p{ color:#BFD9CD; margin-top:8px; max-width:420px; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--deep-2); color:#BFD9CD; padding:64px 0 0; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; padding-bottom:48px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer-grid h5{ color:#fff; font-family:var(--display); font-size:14px; letter-spacing:.03em; text-transform:uppercase; margin-bottom:18px; }
.footer-grid li{ margin-bottom:10px; font-size:14.5px; }
.footer-grid a:hover{ color:var(--amber); }
.footer-brand p{ color:#9FC9BA; font-size:14px; margin-top:14px; max-width:280px; }
.footer-bottom{ display:flex; justify-content:space-between; padding:22px 0; font-size:13px; color:#7FA99A; flex-wrap:wrap; gap:10px; }

/* ---------- Breadcrumb / page header ---------- */
.page-hero{ background:var(--deep); color:#fff; padding:56px 0 44px; position:relative; overflow:hidden; }
.page-hero .crumb{ font-family:var(--mono); font-size:12.5px; color:#9FC9BA; }
.page-hero .crumb a:hover{ color:var(--amber); }
.page-hero h1{ color:#fff; font-size:clamp(28px,4vw,42px); margin-top:12px; }
.page-hero p{ color:#BFD9CD; margin-top:12px; max-width:600px; }

/* ---------- Sticky enquiry / WhatsApp ---------- */
.float-actions{ position:fixed; right:20px; bottom:20px; display:flex; flex-direction:column; gap:12px; z-index:90; }
.float-btn{ width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow); font-size:20px; }
.float-btn.whatsapp{ background:#25D366; color:#fff; }
.float-btn.call{ background:var(--amber); color:var(--deep-2); }

/* ---------- Filters (products page) ---------- */
.filter-bar{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:32px; }
.filter-chip{ padding:9px 18px; border-radius:999px; border:1.5px solid var(--line-strong); font-size:13.5px; font-weight:600; background:#fff; color:var(--ink-soft); transition:all .15s ease; }
.filter-chip.is-active, .filter-chip:hover{ background:var(--deep); border-color:var(--deep); color:#fff; }

/* ---------- Product detail ---------- */
.pd-grid{ display:grid; grid-template-columns:.85fr 1.15fr; gap:48px; align-items:start; }
.pd-visual{ background:var(--deep); border-radius:20px; aspect-ratio:4/3.2; position:relative; overflow:hidden; box-shadow:var(--shadow); }
.spec-table{ width:100%; border-collapse:collapse; margin-top:16px; }
.spec-table td{ padding:12px 0; border-top:1px solid var(--line); font-size:14.5px; }
.spec-table td:first-child{ color:var(--ink-soft); width:38%; font-family:var(--mono); font-size:12.5px; text-transform:uppercase; letter-spacing:.03em; }
.spec-table tr:first-child td{ border-top:none; }

/* ---------- Utilities ---------- */
.mt-8{ margin-top:8px;} .mt-16{ margin-top:16px;} .mt-24{ margin-top:24px;} .mt-32{ margin-top:32px;} .mt-48{ margin-top:48px;}
.text-center{ text-align:center; margin-left:auto; margin-right:auto; }
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero .blister{ max-width:380px; margin:0 auto; }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .stat-strip .container{ grid-template-columns:repeat(2,1fr); }
  .stat-strip .stat:nth-child(3){ border-left:none; }
  .steps{ grid-template-columns:repeat(2,1fr); gap:32px 20px; }
  .step::after{ display:none; }
  .pd-grid{ grid-template-columns:1fr; }
  .two-col{ grid-template-columns:1fr; gap:32px; }
}

@media (max-width: 760px){
  .topbar .container{ font-size:11px; }
  .topbar .hide-mobile{ display:none; }
  .nav-links{
    position:fixed; inset:64px 0 0 0; background:var(--paper); flex-direction:column; align-items:flex-start;
    padding:28px 24px; gap:6px; transform:translateX(100%); transition:transform .28s ease; overflow-y:auto;
  }
  .nav-links.is-open{ transform:translateX(0); }
  .nav-links a{ width:100%; padding:14px 0; font-size:17px; border-bottom:1px solid var(--line); }
  .nav-links a::after{ display:none; }
  .nav-actions .phone{ display:none; }
  .menu-toggle{ display:flex; }
  .grid-4, .grid-3, .grid-2{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .cta-banner{ flex-direction:column; text-align:center; align-items:center; padding:36px 24px; }
  .cta-banner p{ margin-left:auto; margin-right:auto; }
  .section{ padding:56px 0; }
  .steps{ grid-template-columns:1fr; }
  .filter-bar{ overflow-x:auto; flex-wrap:nowrap; padding-bottom:6px; }
}
