/* ==========================================================================
   Reantis Pharmaceuticals stylesheet
   Plain CSS. No build step. Works on any static host.
   ========================================================================== */

/* ---------- 1. Design tokens ---------------------------------------------- */
:root {
  /* brand colours, sampled from the Reantis logo */
  --navy:        #383f92;   /* brand colour for text, links and accents      */
  --brand-solid: #383f92;   /* brand colour behind white text (buttons etc.) */
  --navy-600:    #2e3479;
  --navy-700:    #262b63;
  --ink:         #101736;   /* heading colour, flips light in dark mode      */
  --ink-soft:    #1b2450;
  --ink-const:   #101736;   /* always the dark navy, never flips             */
  --red:         #e22a2d;   /* solid red behind white text                   */
  --red-ink:     #e22a2d;   /* red used as a foreground (icons, numerals)    */
  --red-600:     #c41f22;
  --sky:         #1e9ad6;
  --sky-soft:    #e8f4fc;

  /* neutrals */
  --white:       #ffffff;
  --bg:          #ffffff;                /* page background                  */
  --surface:     #ffffff;                /* card / input background          */
  --surface-tr:  rgba(255,255,255,.88);  /* translucent sticky bars          */
  --paper:       #f7f8fc;
  --paper-2:     #eef1f8;
  --footer-bg:   #101736;
  --line:        #e2e6f0;
  --line-strong: #cdd4e6;
  --text:        #1c2233;
  --text-muted:  #5d6480;
  --text-faint:  #6e7591;

  /* type */
  --font-display: "Outfit", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* spacing + shape */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;

  --shadow-xs: 0 1px 2px rgba(16, 23, 54, .06);
  --shadow-sm: 0 2px 8px rgba(16, 23, 54, .06), 0 1px 2px rgba(16, 23, 54, .04);
  --shadow-md: 0 10px 30px -12px rgba(16, 23, 54, .18), 0 2px 8px rgba(16, 23, 54, .05);
  --shadow-lg: 0 28px 60px -20px rgba(16, 23, 54, .28), 0 4px 12px rgba(16, 23, 54, .06);

  color-scheme: light dark;

  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-600); }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--brand-solid); color: #fff; }

/* ---------- 3. Typography ------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.75rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
h4 { font-size: 1.0625rem; font-weight: 600; }
p  { text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-size: .8125rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--red-ink), var(--navy));
}
.eyebrow--center { justify-content: center; }

.lead { font-size: clamp(1.02rem, .97rem + .3vw, 1.175rem); color: var(--text-muted); }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }

/* ---------- 4. Layout ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(3.25rem, 2rem + 5vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 1.75rem + 3vw, 4rem); }
.section--paper { background: var(--paper); }
.section--line { border-top: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3rem); }
.section-head > * + * { margin-top: .85rem; }
.section-head--center { margin-inline: auto; text-align: center; }

.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: clamp(1rem, .7rem + 1vw, 1.5rem); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink-const); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 600;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- 5. Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  line-height: 1; text-align: center;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .15s var(--ease),
              box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--primary { background: var(--brand-solid); color: #fff; box-shadow: 0 6px 18px -8px rgba(56,63,146,.75); }
.btn--primary:hover { background: var(--navy-600); color: #fff; box-shadow: 0 10px 26px -10px rgba(56,63,146,.85); }

.btn--accent { background: var(--red); color: #fff; box-shadow: 0 6px 18px -8px rgba(226,42,45,.7); }
.btn--accent:hover { background: var(--red-600); color: #fff; }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--sky-soft); }

.btn--onDark { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #fff; }
.btn--onDark:hover { background: #fff; color: var(--ink-const); border-color: #fff; }

.btn--sm { padding: .6rem 1.05rem; font-size: .875rem; }
.btn--wide { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-display); font-weight: 600; color: var(--navy);
}
.link-arrow svg { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- 6. Header / navigation ---------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface-tr);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 1rem;
}

.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; flex: none; }
.brand img { height: 34px; width: auto; }

/* Logo variants. The swap has to follow the *resolved* theme, not the system
   preference, or forcing a theme with the toggle leaves the wrong logo. */
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .brand .logo-light { display: none; }
  :root:not([data-theme]) .brand .logo-dark  { display: block; }
}
:root[data-theme="dark"]  .brand .logo-light { display: none; }
:root[data-theme="dark"]  .brand .logo-dark  { display: block; }
:root[data-theme="light"] .brand .logo-light { display: block; }
:root[data-theme="light"] .brand .logo-dark  { display: none; }
.brand-text { display: none; line-height: 1.05; }
.brand-text b {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: .95rem; color: var(--ink); letter-spacing: -.01em;
}
.brand-text span {
  display: block; font-size: .625rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-faint); font-weight: 600;
}

.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: .25rem; }
.nav a {
  display: block; position: relative;
  padding: .5rem .8rem; border-radius: 8px;
  font-family: var(--font-display); font-weight: 500; font-size: .95rem;
  color: var(--text); transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav a:hover { color: var(--navy); background: var(--paper); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .18rem;
  height: 2px; border-radius: 2px; background: var(--red-ink);
}

.header-cta { display: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -.4rem;
  border-radius: 10px; color: var(--ink);
  border: 1px solid var(--line);
}
.nav-toggle:hover { background: var(--paper); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open  { display: none; }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--surface);
  padding: 1.25rem var(--gutter) 2.5rem;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.mobile-nav ul { display: grid; gap: .2rem; }
.mobile-nav ul a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .95rem .25rem; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink);
}
.mobile-nav ul a[aria-current="page"] { color: var(--navy); }
.mobile-nav ul a svg { width: 1rem; height: 1rem; color: var(--text-faint); }
.mobile-nav .btn-row { margin-top: 1.75rem; }
body.nav-open { overflow: hidden; }

@media (min-width: 480px) { .brand-text { display: block; } }
@media (min-width: 1000px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
}

/* ---------- 7. Hero ------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90rem 40rem at 88% -10%, rgba(30,154,214,.16), transparent 62%),
    radial-gradient(70rem 36rem at -8% 8%, rgba(56,63,146,.13), transparent 58%),
    linear-gradient(180deg, #fbfcff 0%, #f2f5fc 100%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(56,63,146,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,63,146,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 78%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 78%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; gap: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
}
.hero-copy > * + * { margin-top: 1.15rem; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--navy) 20%, var(--sky) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 46ch; }

.stat-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.25rem;
  margin-top: 2.25rem; padding-top: 1.75rem;
  border-top: 1px solid var(--line-strong);
}
@media (min-width: 560px) { .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) and (max-width: 1120px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat b {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.55rem, 1.3rem + .9vw, 2rem); color: var(--navy); line-height: 1.1;
}
.stat--text b { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); padding-top: .28rem; }
.stat span { display: block; font-size: .82rem; color: var(--text-muted); margin-top: .2rem; }

/* rotating card stack */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 260px; }
.card-stack {
  position: relative; width: min(100%, 540px); aspect-ratio: 1.295;
  perspective: 1400px;
}
.card-stack figure {
  position: absolute; inset: 0;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  opacity: 0; transform: translate3d(0, 18px, -60px) rotate(-2deg) scale(.96);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.card-stack figure img { width: 100%; height: 100%; object-fit: cover; }
.card-stack figure.is-active { opacity: 1; transform: none; z-index: 3; }
.card-stack figure.is-prev { opacity: .45; transform: translate3d(-4%, 4%, -70px) rotate(-3.5deg) scale(.93); z-index: 2; }
.card-stack figure.is-next { opacity: .32; transform: translate3d(4%, -4%, -110px) rotate(3deg) scale(.9); z-index: 1; }
.card-stack figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.25rem .95rem .8rem;
  background: linear-gradient(to top, rgba(10,15,35,.88), rgba(10,15,35,0));
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .9rem;
}
.card-stack figcaption em { display: block; font-style: normal; font-weight: 400; font-size: .78rem; opacity: .82; }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 4rem; }
}

/* ---------- 8. Cards & tiles ---------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-xs);
}

/* therapeutic segment tiles */
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.cat-tile {
  display: flex; flex-direction: column; gap: .55rem;
  padding: 1.35rem 1.3rem 1.25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); position: relative; overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.cat-tile::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--brand-solid), var(--sky));
  opacity: 0; transition: opacity .25s var(--ease);
}
.cat-tile:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-3px); color: var(--text); }
.cat-tile:hover::before { opacity: 1; }
.cat-tile .ico {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px; background: var(--sky-soft); color: var(--navy); margin-bottom: .35rem;
}
.cat-tile .ico svg { width: 22px; height: 22px; }
.cat-tile h3 { font-size: 1.0625rem; }
.cat-tile .count { font-size: .82rem; color: var(--text-muted); margin-top: auto; padding-top: .5rem; }

/* product cards */
.prod-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 265px), 1fr)); }
.prod-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--text); height: 100%;
  transition: border-color .2s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.prod-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-4px); color: var(--text); }
.prod-card:hover .prod-card__img img { transform: scale(1.045); }

.prod-card__img {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.prod-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s var(--ease); }
.prod-card__body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.prod-card__body h3 { font-size: 1.125rem; }
.prod-card__comp {
  font-size: .82rem; color: var(--text-muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-card__meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: .6rem; }

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .26rem .62rem; border-radius: 999px;
  font-family: var(--font-display); font-size: .72rem; font-weight: 600;
  letter-spacing: .02em; white-space: nowrap;
}
.badge--form { background: var(--brand-solid); color: #fff; }
.badge--cat  { background: var(--paper-2); color: var(--ink-soft); }
.badge--soft { background: var(--sky-soft); color: var(--navy-700); }
.badge--line { background: var(--surface); border: 1px solid var(--line-strong); color: var(--text-muted); }

/* ---------- 9. Product catalogue filters ---------------------------------- */
.catalogue-bar {
  position: sticky; top: var(--header-h); z-index: 40;
  background: var(--surface-tr);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-block: .9rem;
}
.filter-top { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

.search-field { position: relative; flex: 1 1 240px; min-width: 0; }
.search-field svg {
  position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-faint); pointer-events: none;
}
.search-field input {
  width: 100%; padding: .72rem 2.4rem .72rem 2.6rem;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font-size: .95rem; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.search-field input::placeholder { color: var(--text-faint); }
.search-field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(56,63,146,.12); }
.search-clear {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: none; place-items: center;
  border-radius: 50%; color: var(--text-muted);
}
.search-clear:hover { background: var(--paper-2); }
.search-field.has-value .search-clear { display: grid; }

.select-field { position: relative; flex: 0 1 auto; }
.select-field select {
  appearance: none; -webkit-appearance: none;
  padding: .72rem 2.3rem .72rem 1rem;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font-size: .9rem; font-family: var(--font-display); font-weight: 500; cursor: pointer;
}
.select-field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(56,63,146,.12); }
.select-field::after {
  content: ""; position: absolute; right: 1rem; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

.chip-row {
  display: flex; gap: .45rem; margin-top: .75rem;
  overflow-x: auto; padding-bottom: .3rem;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 34px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 34px), transparent 100%);
}
@media (min-width: 1240px) { .chip-row { -webkit-mask-image: none; mask-image: none; flex-wrap: wrap; } }
.chip-row::-webkit-scrollbar { height: 4px; }
.chip-row::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.chip {
  flex: none; padding: .45rem .9rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface);
  font-family: var(--font-display); font-size: .84rem; font-weight: 500; color: var(--text-muted);
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--brand-solid); border-color: var(--brand-solid); color: #fff; }
.chip .n { margin-left: .3rem; font-size: .78em; color: var(--text-faint); }
.chip[aria-pressed="true"] .n { color: rgba(255,255,255,.82); }

.result-line {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline;
  margin-bottom: 1.5rem; font-size: .9rem; color: var(--text-muted);
}
.result-line b { color: var(--ink); font-family: var(--font-display); }

.empty-state {
  text-align: center; padding: clamp(3rem, 8vw, 5rem) 1rem;
  border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--paper);
}
.empty-state svg { width: 44px; height: 44px; color: var(--text-faint); margin: 0 auto 1rem; }

/* ---------- 10. Product detail -------------------------------------------- */
.breadcrumb { font-size: .84rem; color: var(--text-muted); padding-block: 1.25rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.breadcrumb li { display: flex; align-items: center; gap: .4rem; }
.breadcrumb li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

/* Mobile order: title → visual → composition & clinical detail.
   Desktop: text column on the left, sticky visual on the right. */
.detail-grid { display: grid; gap: clamp(1.5rem, 1.1rem + 2vw, 2.25rem); align-items: start; }
@media (min-width: 940px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    grid-template-areas:
      "head    visual"
      "body    visual"
      "actions visual";
    align-content: start;
    column-gap: clamp(2rem, 1.2rem + 3vw, 3.5rem);
    row-gap: 1.75rem;
  }
  .detail-head    { grid-area: head; }
  .detail-body    { grid-area: body; }
  .detail-actions { grid-area: actions; }
  .detail-visual  { grid-area: visual; position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.detail-head > * + * { margin-top: .8rem; }
.detail-head h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.85rem); }
.detail-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.detail-tagline { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; color: var(--navy); font-style: italic; }

.spec-box {
  margin-top: 0; padding: 1.15rem 1.25rem;
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--brand-solid);
  border-radius: var(--radius-sm);
}
.spec-box dt {
  font-family: var(--font-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .3rem;
}
.spec-box dd { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--ink); }
.spec-box dd + dt { margin-top: 1rem; }

.info-block { margin-top: 2rem; }
.info-block > h2 {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-faint); font-family: var(--font-display); margin-bottom: .85rem;
}
.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag-list li {
  padding: .4rem .8rem; border-radius: 999px;
  background: var(--sky-soft); color: var(--navy-700);
  font-size: .85rem; font-weight: 500;
}
.tick-list { display: grid; gap: .65rem; }
.tick-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; line-height: 1.55; }
.tick-list svg { width: 19px; height: 19px; flex: none; color: var(--red-ink); margin-top: .16rem; }

.detail-visual figure {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--surface);
}
.zoomable { display: block; width: 100%; cursor: zoom-in; position: relative; }
.zoomable img { width: 100%; }
.zoom-hint {
  position: absolute; right: .8rem; bottom: .8rem;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .75rem; border-radius: 999px;
  background: rgba(16,23,54,.78); color: #fff; font-size: .78rem; font-weight: 500;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.zoom-hint svg { width: 14px; height: 14px; }
.visual-caption { margin-top: .7rem; font-size: .8rem; color: var(--text-faint); text-align: center; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: clamp(.75rem, 3vw, 2.5rem);
  background: rgba(8, 12, 30, .93);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), visibility .22s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%; max-height: 88vh; width: auto;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  transform: scale(.97); transition: transform .25s var(--ease);
}
.lightbox.is-open img { transform: none; }
.lightbox-close {
  position: absolute; top: clamp(.75rem, 3vw, 1.5rem); right: clamp(.75rem, 3vw, 1.5rem);
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255,255,255,.14); color: #fff;
}
.lightbox-close:hover { background: rgba(255,255,255,.28); }
.lightbox-close svg { width: 22px; height: 22px; }

/* ---------- 11. Feature / value blocks ------------------------------------ */
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.feature {
  padding: 1.6rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.feature .ico {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 13px; background: linear-gradient(145deg, var(--brand-solid), #4b53b5);
  color: #fff; margin-bottom: 1rem; box-shadow: 0 8px 18px -10px rgba(56,63,146,.9);
}
.feature .ico svg { width: 23px; height: 23px; }
.feature h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.feature p { font-size: .93rem; color: var(--text-muted); }

.step-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; }
.step { position: relative; padding: 1.6rem 1.4rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem;
  color: var(--red-ink); opacity: .85; margin-bottom: .5rem; line-height: 1;
}
.step h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.step p { font-size: .93rem; color: var(--text-muted); }

/* ---------- 12. CTA band -------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(125deg, #101736 0%, #262b63 45%, #383f92 100%);
  color: #fff;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(38rem 22rem at 85% 12%, rgba(30,154,214,.42), transparent 65%),
    radial-gradient(30rem 20rem at 8% 96%, rgba(226,42,45,.3), transparent 62%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); }
.cta-inner { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 860px) {
  .cta-inner { grid-template-columns: 1fr auto; gap: 3rem; }
}

/* ---------- 13. Contact --------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.15fr; align-items: start; } }

.contact-card { padding: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.contact-list { display: grid; gap: 1.35rem; }
.contact-item { display: flex; gap: .95rem; align-items: flex-start; }
.contact-item .ico {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border-radius: 11px; background: var(--sky-soft); color: var(--navy);
}
.contact-item .ico svg { width: 19px; height: 19px; }
.contact-item h3 {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: .25rem;
}
.contact-item p, .contact-item address { font-style: normal; font-size: .97rem; line-height: 1.6; color: var(--ink); }
.contact-item a { font-weight: 500; }

.map-frame {
  width: 100%;
  height: clamp(300px, 62vw, 440px);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--paper-2);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 900px) { .map-frame { height: 100%; min-height: 520px; } }

.note {
  padding: .9rem 1.1rem; border-radius: var(--radius-sm);
  background: #fffaf0; border: 1px solid #f4e3bd; color: #7a5a12; font-size: .875rem;
}
.note strong { color: #5c430c; }

/* ---------- 14. About page bits ------------------------------------------- */
.pull-quote {
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--sky-soft), #f4f6fd);
  border: 1px solid #d7e6f5;
}
.pull-quote p {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.15rem, 1rem + 1vw, 1.7rem); line-height: 1.35;
  color: var(--ink); letter-spacing: -.015em;
}
.pull-quote cite { display: block; margin-top: 1rem; font-style: normal; font-size: .85rem; color: var(--text-muted); }

.split { display: grid; gap: clamp(1.75rem, 1.2rem + 2.5vw, 3.25rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }

.fact-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.fact { padding: 1.35rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fact b { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--navy); line-height: 1; }
.fact span { display: block; margin-top: .4rem; font-size: .88rem; color: var(--text-muted); }

/* ---------- 15. Footer ---------------------------------------------------- */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,.72); font-size: .92rem; }
.footer-top {
  display: grid; gap: 2.25rem;
  padding-block: clamp(2.75rem, 2rem + 3vw, 4rem);
}
@media (min-width: 700px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-top { grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 3rem; } }

.footer-brand img { height: 34px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; font-size: .9rem; line-height: 1.65; }

.site-footer h4 {
  color: #fff; font-size: .74rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem;
}
.site-footer ul { display: grid; gap: .3rem; }
.site-footer ul a { display: inline-block; padding-block: .3rem; }
.site-footer address a { display: inline-block; padding-block: .22rem; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer address { font-style: normal; line-height: 1.7; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; align-items: center;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.13);
  font-size: .82rem; color: rgba(255,255,255,.55);
}
.disclaimer {
  padding: 1.1rem 0 0;
  font-size: .78rem; line-height: 1.6; color: rgba(255,255,255,.62);
  border-top: 1px solid rgba(255,255,255,.09);
}

/* ---------- 16. Utilities & motion ---------------------------------------- */
/* Reveal-on-scroll. Content is visible by default so the page still reads
   correctly with JavaScript disabled; the hidden state is only applied once
   the inline head script has confirmed JS is running. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 60;
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 50%; background: var(--brand-solid); color: #fff; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy-600); }
.to-top svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .mobile-nav, .to-top, .cta-band, .catalogue-bar, .lightbox { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ---------- 17. Theme toggle ----------------------------------------------- */
/* An explicit "light" choice must also switch native UI (scrollbars, form
   controls) back to light, even when the operating system is set to dark. */
:root[data-theme="light"] { color-scheme: light; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  border-radius: 10px; color: var(--text-muted);
  border: 1px solid var(--line);
  background: transparent;
  transition: color .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease);
}
.theme-toggle:hover { color: var(--navy); border-color: var(--line-strong); background: var(--paper); }
.theme-toggle svg { width: 19px; height: 19px; }

/* Show the icon for the theme the button will switch TO. The sun only appears
   once the dark theme is active, and vice versa. */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Before JavaScript resolves a choice, follow the system so the icon is never
   wrong on first paint. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun  { display: block; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
}

/* No JavaScript means no way to honour a click, so hide the control entirely
   rather than show one that does nothing. */
html:not(.js) .theme-toggle { display: none; }
