/* ============================================================
   Kanova Pharma — site styles
   ============================================================ */
:root {
  --navy-950: #071430;
  --navy-900: #0b1d45;
  --navy-800: #12295e;
  --navy-700: #1c3a80;
  --navy-600: #2a4ea3;
  --red-600: #d71a2a;
  --red-500: #e8283a;
  --red-50: #fdecee;
  --ink: #0f1a2e;
  --body: #4a556b;
  --muted: #7a8599;
  --line: #e4e9f2;
  --soft: #f4f7fc;
  --soft-2: #eaf0fa;
  --white: #fff;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-xs: 0 1px 2px rgba(11, 29, 69, .06);
  --shadow-sm: 0 2px 8px rgba(11, 29, 69, .06), 0 1px 2px rgba(11, 29, 69, .04);
  --shadow: 0 18px 40px -18px rgba(11, 29, 69, .28);
  --shadow-lg: 0 30px 60px -24px rgba(11, 29, 69, .40);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --container: 1200px;
  --gutter: 24px;
  --header-h: 84px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
svg.i { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--navy-700); color: #fff; }
:focus-visible { outline: 3px solid rgba(232, 40, 58, .45); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 104px 0; }
.section--tight { padding: 72px 0; }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy-900); color: #c6d0e4; }
.section--navy h2, .section--navy h3 { color: #fff; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red-600); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section--navy .eyebrow, .on-dark .eyebrow { color: #ff8a95; }
.h-display { font-size: clamp(36px, 5.2vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.h-section { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; color: var(--body); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head p { margin-top: 12px; }
.text-red { color: var(--red-600); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn svg.i { font-size: 18px; transition: transform .25s var(--ease); }
.btn:hover svg.i { transform: translateX(3px); }
.btn--primary { background: var(--red-600); color: #fff; box-shadow: 0 14px 28px -14px rgba(215, 26, 42, .8); }
.btn--primary:hover { background: var(--red-500); transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(215, 26, 42, .9); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn--outline { background: transparent; color: var(--navy-800); border: 1.5px solid var(--line); }
.btn--outline:hover { border-color: var(--navy-800); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--red-600); }
.link-arrow svg.i { transition: transform .25s var(--ease); }
.link-arrow:hover svg.i { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); color: #aab6cf; font-size: 13.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar-list { display: flex; gap: 28px; flex-wrap: wrap; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #fff; }
.topbar svg.i { color: #ff6b78; font-size: 15px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -20px rgba(11, 29, 69, .35); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav > li > a, .nav > li > button {
  display: inline-flex; align-items: center; gap: 4px;
  height: 44px; padding: 0 14px; border-radius: 10px;
  background: none; border: 0; cursor: pointer;
  font-weight: 600; font-size: 15px; color: var(--ink);
  transition: color .2s, background .2s;
}
.nav > li > a:hover, .nav > li > button:hover, .nav > li:focus-within > button { color: var(--red-600); }
.nav > li > a[aria-current="page"], .nav > li.is-active > button { color: var(--red-600); }
.nav > li > a[aria-current="page"]::after, .nav > li.is-active > button::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--red-600);
}
.nav .chev { font-size: 15px; transition: transform .25s var(--ease); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: -8px; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.dropdown--wide { min-width: 460px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown, .has-drop.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-drop:hover .chev, .has-drop.is-open .chev { transform: rotate(180deg); }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink); transition: background .2s, color .2s; }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--soft); color: var(--red-600); }
.dropdown a .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .2s; }
.dropdown a:hover .dot { background: var(--red-600); }
.dropdown .all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; color: var(--red-600); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; cursor: pointer; font-size: 22px; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: var(--navy-950); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; animation: heroZoom 18s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(95deg, rgba(7, 20, 48, .96) 0%, rgba(11, 29, 69, .86) 38%, rgba(11, 29, 69, .35) 70%, rgba(11, 29, 69, .15) 100%),
    linear-gradient(0deg, rgba(7, 20, 48, .55) 0%, transparent 40%);
}
.hero > .container { min-height: min(760px, calc(100vh - 126px)); display: flex; flex-direction: column; justify-content: center; padding-top: 72px; padding-bottom: 170px; }
.hero__content { max-width: 680px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  font-size: 13.5px; font-weight: 600; color: #dbe3f3; margin-bottom: 28px; backdrop-filter: blur(8px);
}
.hero__badge b { background: var(--red-600); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 span { color: #ff6b78; }
.hero p.lead { color: #c9d3e8; max-width: 560px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(7, 20, 48, .55); border-top: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.hero__stats ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero__stats li { padding: 26px 24px; border-left: 1px solid rgba(255, 255, 255, .1); }
.hero__stats li:first-child { border-left: 0; padding-left: 0; }
.hero__stats strong { display: block; font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.1; }
.hero__stats span { font-size: 13.5px; color: #a9b6d1; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; isolation: isolate; color: #fff; background: var(--navy-950); overflow: hidden; }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(7, 20, 48, .95) 0%, rgba(11, 29, 69, .82) 50%, rgba(11, 29, 69, .45) 100%); }
.page-hero .container { padding-top: 96px; padding-bottom: 96px; }
.page-hero h1 { color: #fff; font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 14px; max-width: 760px; }
.page-hero p { color: #c9d3e8; max-width: 640px; font-size: 18px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: #a9b6d1; margin-bottom: 20px; }
.crumbs a:hover { color: #fff; }
.crumbs svg.i { font-size: 14px; opacity: .6; }
.crumbs [aria-current] { color: #fff; font-weight: 600; }

/* ---------- Generic layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split--wide-left { grid-template-columns: 1.1fr .9fr; }
.split--wide-right { grid-template-columns: .9fr 1.1fr; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stack > * + * { margin-top: 18px; }

/* ---------- Media frames ---------- */
.media { position: relative; }
.media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); object-fit: cover; }
.media--tall img { aspect-ratio: 4 / 5; }
.media--wide img { aspect-ratio: 16 / 11; }
.media__accent { position: absolute; z-index: -1; width: 70%; height: 70%; right: -24px; bottom: -24px; border-radius: var(--radius-lg); background: repeating-linear-gradient(45deg, var(--soft-2) 0 2px, transparent 2px 12px); }
.media__badge {
  position: absolute; left: -28px; bottom: 36px; display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-lg); max-width: 270px;
}
.media__badge .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--red-50); color: var(--red-600); font-size: 24px; flex: none; }
.media__badge strong { display: block; color: var(--ink); font-size: 15px; line-height: 1.3; }
.media__badge span { font-size: 13px; color: var(--muted); }
.media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.media-pair img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.media-pair img:nth-child(2) { margin-top: 48px; }

/* ---------- Chips & checklists ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--navy-800); }
.chip svg.i { color: var(--red-600); }
.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--red-50); color: var(--red-600); font-size: 15px; margin-top: 1px; }
.checklist--cols { grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.section--navy .checklist .tick { background: rgba(255, 107, 120, .15); color: #ff8a95; }

/* ---------- Cards ---------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-xs);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { margin: 0; font-size: 15.5px; }
.icon-box { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; color: var(--red-600); background: var(--red-50); margin-bottom: 22px; transition: background .3s, color .3s, transform .3s var(--ease); }
.card:hover .icon-box { background: var(--red-600); color: #fff; transform: rotate(-6deg); }
.card .num { position: absolute; top: 24px; right: 28px; font-size: 44px; font-weight: 800; color: var(--soft-2); line-height: 1; letter-spacing: -.04em; }

.img-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.img-card .img { aspect-ratio: 16 / 10; overflow: hidden; }
.img-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.img-card:hover .img img { transform: scale(1.06); }
.img-card .body { padding: 28px 28px 32px; flex: 1; }

/* Service tiles on dark */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service {
  position: relative; display: flex; flex-direction: column; gap: 18px; min-height: 190px;
  padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .35s var(--ease), background .35s, border-color .35s;
}
.service:hover { transform: translateY(-6px); background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); border-color: rgba(255, 107, 120, .5); }
.service .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: rgba(255, 107, 120, .14); color: #ff8a95; }
.service h3 { font-size: 18px; margin: auto 0 0; color: #fff; line-height: 1.35; }
.service .go { position: absolute; top: 28px; right: 26px; color: rgba(255, 255, 255, .35); font-size: 20px; transition: color .3s, transform .3s var(--ease); }
.service:hover .go { color: #ff8a95; transform: translate(3px, -3px); }

/* Product category cards */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat {
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 168px;
  padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.cat .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cat .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--soft); color: var(--navy-700); transition: background .3s, color .3s; }
.cat:hover .ic { background: var(--navy-800); color: #fff; }
.cat .count { font-size: 12.5px; font-weight: 700; color: var(--red-600); background: var(--red-50); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.cat .count.muted { color: var(--muted); background: var(--soft); }
.cat h3 { font-size: 17px; margin: 0; letter-spacing: -.01em; }
.cat--feature { grid-column: span 2; grid-row: span 2; background: var(--navy-900); border-color: var(--navy-900); color: #c6d0e4; padding: 32px; position: relative; overflow: hidden; isolation: isolate; }
.cat--feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../images/pills-top.jpg") center / cover; opacity: .16; }
.cat--feature h3 { color: #fff; font-size: 28px; }
.cat--feature .ic { background: rgba(255, 255, 255, .1); color: #fff; }
.cat--feature .count { background: var(--red-600); color: #fff; }
.cat--feature p { margin: 10px 0 0; max-width: 360px; }

/* ---------- Feature rows (alternating) ---------- */
.feature-row + .feature-row { margin-top: 96px; }
.feature-row:nth-child(even) .media { order: 2; }

/* ---------- Highlight / stat boxes ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat .ic { font-size: 26px; color: var(--red-600); margin-bottom: 16px; }
.stat strong { display: block; color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 4px; }
.stat span { font-size: 14.5px; color: var(--muted); }

/* ---------- Quote ---------- */
.quote { position: relative; padding: 40px 44px; border-radius: var(--radius-lg); background: var(--navy-900); color: #dbe3f3; overflow: hidden; }
.quote::before { content: "\201C"; position: absolute; top: -30px; right: 24px; font-size: 200px; line-height: 1; color: rgba(255, 255, 255, .06); font-weight: 800; }
.quote p { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.55; color: #fff; font-weight: 600; letter-spacing: -.01em; margin: 0 0 18px; }
.quote cite { font-style: normal; font-size: 14px; color: #ff8a95; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); padding: 56px; background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #c9d3e8; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta-band::after { content: ""; position: absolute; z-index: -1; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 40, 58, .45), transparent 65%); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin-bottom: 10px; }
.cta-band p { margin: 0; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; justify-self: end; }
.cta-band .contact-line { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 18px; }
.cta-band .contact-line svg.i { color: #ff8a95; }

/* ---------- Products page ---------- */
.prod-toolbar { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 16px 0; }
.prod-toolbar .container { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.search { position: relative; flex: 1 1 280px; max-width: 380px; }
.search input { width: 100%; height: 48px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--soft); padding: 0 18px 0 46px; transition: border-color .2s, background .2s, box-shadow .2s; }
.search input:focus { outline: none; border-color: var(--navy-700); background: #fff; box-shadow: 0 0 0 4px rgba(28, 58, 128, .12); }
.search svg.i { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; padding: 2px; }
.filters::-webkit-scrollbar { display: none; }
.filter { height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 700; color: var(--navy-800); cursor: pointer; white-space: nowrap; transition: all .2s; }
.filter:hover { border-color: var(--navy-700); }
.filter.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.filter small { opacity: .65; font-weight: 600; margin-left: 4px; }
.prod-results { font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.prod-block { scroll-margin-top: calc(var(--header-h) + 100px); }
.prod-block + .prod-block { margin-top: 56px; }
.prod-block__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.prod-block__head h2 { font-size: 26px; margin: 0; display: flex; align-items: center; gap: 14px; }
.prod-block__head h2 .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--red-50); color: var(--red-600); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-xs); }
.api-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.api-table th { text-align: left; background: var(--soft); color: var(--navy-800); font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.api-table td { padding: 13px 20px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.api-table tr:last-child td { border-bottom: 0; }
.api-table tbody tr { transition: background .15s; }
.api-table tbody tr:hover { background: #fafbfe; }
.api-table td.cas { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-weight: 500; color: var(--body); font-size: 14px; }
.api-table td.act { text-align: right; width: 1%; white-space: nowrap; }
.api-table .enq { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--red-600); padding: 6px 12px; border-radius: 999px; transition: background .2s; }
.api-table .enq:hover { background: var(--red-50); }
.api-table td.idx { width: 1%; color: var(--muted); font-weight: 600; font-size: 13px; }
.api-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.api-cols .api-table:first-child { border-right: 1px solid var(--line); }
.prod-empty { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 26px 28px; border-radius: var(--radius); border: 1.5px dashed #cdd6e6; background: var(--soft); }
.prod-empty p { margin: 0; }
.prod-none { display: none; text-align: center; padding: 60px 20px; border-radius: var(--radius); background: var(--soft); }
mark { background: #ffe7a3; color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: var(--soft);
  padding: 14px 16px; font-size: 15px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy-700); background: #fff; box-shadow: 0 0 0 4px rgba(28, 58, 128, .12); }
.form-note { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #e8f7ee; color: #116b35; font-weight: 600; font-size: 14.5px; }
.form-status.is-visible { display: block; }

.info-list { display: grid; gap: 16px; }
.info { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: box-shadow .3s, transform .3s var(--ease); }
.info:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.info .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--navy-900); color: #fff; flex: none; }
.info h3 { font-size: 16px; margin-bottom: 6px; }
.info p, .info a { margin: 0; font-size: 15px; }
.info a:hover { color: var(--red-600); }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Jobs ---------- */
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.job { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; transition: box-shadow .3s, transform .3s var(--ease); }
.job:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.job .dept { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red-600); display: flex; align-items: center; gap: 8px; }
.job ul { display: grid; gap: 8px; }
.job li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--soft); color: var(--ink); font-weight: 600; font-size: 15px; }
.job li b { color: var(--navy-700); font-weight: 800; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: #9eabc6; padding-top: 88px; font-size: 15px; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; left: -200px; top: -200px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(42, 78, 163, .35), transparent 65%); pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1.3fr; gap: 48px; position: relative; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 22px; letter-spacing: 0; }
.footer-logo { display: inline-block; background: #fff; border-radius: 14px; padding: 10px 14px; margin-bottom: 20px; }
.footer-logo img { height: 46px; width: auto; }
.footer-links { display: grid; gap: 12px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s, transform .2s var(--ease); }
.footer-links a:hover { color: #fff; transform: translateX(3px); }
.footer-contact { display: grid; gap: 16px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg.i { color: #ff6b78; font-size: 18px; margin-top: 3px; }
.footer-contact a:hover { color: #fff; }
.hours { display: grid; gap: 6px; margin-top: 22px; padding: 16px 18px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.hours div { display: flex; justify-content: space-between; gap: 12px; }
.hours b { color: #fff; font-weight: 600; }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #fff; transition: background .2s, transform .2s var(--ease); }
.socials a:hover { background: var(--red-600); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom { margin-top: 64px; border-top: 1px solid rgba(255, 255, 255, .08); padding: 24px 0; font-size: 14px; position: relative; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: #fff; font-weight: 600; }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--red-600); color: #fff; display: grid; place-items: center; font-size: 20px; cursor: pointer; box-shadow: 0 12px 24px -10px rgba(215, 26, 42, .8); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy-800); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .nav > li > a, .nav > li > button { padding: 0 10px; font-size: 14.5px; }
  .header-cta .btn { display: none; }
  .services-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .section { padding: 80px 0; }
  .menu-toggle { display: inline-flex; }
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .brand img { height: 44px; }
  .nav-wrap {
    position: fixed; top: calc(var(--header-h) + 42px); left: 0; right: 0; bottom: 0; z-index: 99;
    border-top: 1px solid var(--line);
    background: #fff; overflow-y: auto; padding: 16px var(--gutter) 40px;
    transform: translateX(100%); transition: transform .35s var(--ease); visibility: hidden;
  }
  .nav-open .nav-wrap { transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > li { border-bottom: 1px solid var(--line); }
  .nav > li > a, .nav > li > button { width: 100%; justify-content: space-between; height: 58px; padding: 0 4px; font-size: 17px; }
  .nav > li > a[aria-current="page"]::after, .nav > li.is-active > button::after { display: none; }
  .dropdown, .dropdown--wide { position: static; min-width: 0; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; grid-template-columns: 1fr 1fr; }
  .has-drop:hover .dropdown { display: none; }
  .has-drop.is-open .dropdown { display: grid; }
  .dropdown::before { display: none; }
  .hero__stats ul { grid-template-columns: repeat(2, 1fr); }
  .hero__stats li { padding: 18px 16px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .hero__stats li:first-child { padding-left: 16px; }
  .hero__stats li:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .1); }
  .hero__stats li:nth-child(-n+2) { border-top: 0; }
  .hero > .container { padding-bottom: 250px; min-height: 0; padding-top: 64px; }
  .media__accent { right: -10px; bottom: -14px; }
  .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; gap: 48px; }
  .feature-row:nth-child(even) .media { order: 0; }
  .grid-3, .jobs { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 32px; }
  .cta-band .actions { justify-self: start; }
  .media__badge { left: 16px; }
  .prod-toolbar { top: var(--header-h); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .topbar .hide-sm { display: none; }
  .topbar-list { gap: 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .services-grid, .grid-2, .grid-3, .grid-4, .jobs, .stat-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat { padding: 16px; min-height: 132px; min-width: 0; }
  .cat h3 { font-size: 14.5px; overflow-wrap: anywhere; }
  .cat .count { font-size: 11px; padding: 4px 8px; }
  .cat .ic { width: 40px; height: 40px; font-size: 19px; }
  .api-table { table-layout: fixed; }
  .api-table th.act, .api-table td.act { width: 52px; }
  .api-table .enq { font-size: 0; padding: 8px; gap: 0; }
  .api-table .enq svg.i { font-size: 16px; }
  .api-table td.name { overflow-wrap: anywhere; }
  .api-table td.cas { width: 112px; font-size: 13px; }
  .api-table th:nth-child(3) { width: 112px; }
  .hero__stats li { padding: 14px 12px; }
  .hero__stats span { font-size: 12.5px; }
  .cat--feature { grid-column: 1 / -1; grid-row: auto; }
  .checklist--cols { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .card { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .media-pair img:nth-child(2) { margin-top: 24px; }
  .api-cols { grid-template-columns: 1fr; }
  .api-cols .api-table:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .api-table td, .api-table th { padding: 12px 14px; }
  .api-table td.idx { display: none; }
  .api-table th.idx { display: none; }
  .quote { padding: 32px 26px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .dropdown, .dropdown--wide { grid-template-columns: 1fr; }
  .feature-row + .feature-row { margin-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
