/* ==========================================================================
   CheMed Scientific PLC — Prototype UI
   Design system + components. Vanilla CSS, no framework.
   ========================================================================== */

/* ---------- 0. Typefaces (self-hosted variable fonts) ---------------------
   Sora for display/headings — geometric, slightly technical, distinct at
   large sizes. Inter for body/UI — designed for screen legibility at small
   sizes, with tabular figures for specs and prices.
   Self-hosted, not CDN-linked: the preview sandbox has no network access. */
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-var.woff2") format("woff2-variations"),
       url("../fonts/cinzel-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Candal";
  src: url("../fonts/candal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2-variations"),
       url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. Design tokens ---------------------------------------------- */
:root {
  /* Brand palette, sampled from the CheMed logo */
  --navy-900: #10143c;
  --navy-800: #1b2159;
  --navy-700: #262d6e;
  --navy-600: #343c85;
  --cyan-600: #0089c7;
  --cyan-500: #00a7e6;
  --cyan-400: #29bcf5;
  --cyan-100: #e2f5fd;
  --cyan-50:  #f2fbff;

  /* Neutrals */
  --ink-900: #10131f;
  --ink-700: #333a4d;
  --ink-500: #5b6479;
  --ink-400: #7d869b;
  --line:    #e2e6ef;
  --line-2:  #eef1f7;
  --surface: #ffffff;
  --surface-2: #f6f8fc;

  /* Semantic */
  --ok-600:   #0f7a4d;
  --ok-100:   #e3f6ec;
  --warn-700: #8a5a00;
  --warn-100: #fdf1d8;
  --danger-600: #b3261e;

  /* Type scale */
  --font-sans: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  /* Two-tier display system.
     --font-display (Cinzel): ceremonial serif for h1/h2 and hero titles only.
     --font-alt (Candal): sturdy grotesque for h3-h5, nav, eyebrows, numerals
     — Cinzel is an inscriptional face and turns to mush below ~1.2rem. */
  --font-display: "Cinzel", "Times New Roman", Georgia, serif;
  --font-alt: "Candal", "Segoe UI", Roboto, Arial, system-ui, sans-serif;
  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0:  clamp(0.97rem, 0.95rem + 0.12vw, 1.05rem);
  --step-1:  clamp(1.12rem, 1.05rem + 0.35vw, 1.32rem);
  --step-2:  clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --step-3:  clamp(1.65rem, 1.35rem + 1.4vw, 2.4rem);
  --step-4:  clamp(2rem, 1.5rem + 2.4vw, 3.2rem);

  /* Space + shape */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4.5rem;
  --radius-sm: 6px; --radius: 12px; --radius-lg: 18px; --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 20, 60, .06), 0 1px 3px rgba(16, 20, 60, .08);
  --shadow-md: 0 6px 18px rgba(16, 20, 60, .08), 0 2px 6px rgba(16, 20, 60, .05);
  --shadow-lg: 0 18px 45px rgba(16, 20, 60, .14);
  --container: 1200px;
  --header-h: 78px;
}

/* ---------- 2. Reset / base ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv05" 1, "ss03" 1;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  color: var(--navy-800); line-height: 1.15; margin: 0 0 var(--sp-3);
  text-wrap: balance;
}
/* Ceremonial tier */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;        /* Cinzel is already generously spaced */
}
/* Structural tier — Candal ships a single weight, so never ask for bold
   or the browser synthesises a smeared faux-bold. */
h3, h4, h5 {
  font-family: var(--font-alt);
  font-weight: 400;
  letter-spacing: -0.005em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { margin: 0 0 var(--sp-4); }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }
ul, ol { padding-left: 1.15rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }
small { font-size: var(--step--1); }

/* Accessibility: visible, consistent focus ring everywhere */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--cyan-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 200;
  background: var(--navy-800); color: #fff; padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--radius) var(--radius); font-weight: 600; text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; color: #fff; }
.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;
}

/* ---------- 3. Layout helpers --------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 860px); margin-inline: auto; }
.section { padding: var(--sp-4) 0; }
.section--tight { padding: var(--sp-7) 0; }
.section--alt { background: var(--surface-2); }
.section--navy { background: var(--navy-800); color: #cfd6f0; }
.section--navy h2, .section--navy h3 { color: #fff; }
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr)); }
.stack > * + * { margin-top: var(--sp-4); }
.flow-center { text-align: center; }
.mb-0 { margin-bottom: 0; }

/* Section heading block */
.section-head { max-width: 46rem; margin-bottom: var(--sp-6); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--step--1); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cyan-600); margin-bottom: var(--sp-2);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--cyan-500); border-radius: 2px;
}
.section-head.center .eyebrow::before { display: none; }
.lede { font-size: var(--step-1); color: var(--ink-500); }

/* ---------- 4. Buttons ----------------------------------------------------- */
.btn {
  --btn-bg: var(--cyan-600); --btn-fg: #fff; --btn-bd: var(--cyan-600);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.72rem 1.4rem; min-height: 46px;
  font: inherit; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-pill); cursor: pointer;
  transition: transform .12s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow-md); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn--navy   { --btn-bg: var(--navy-800); --btn-bd: var(--navy-800); }
.btn--ghost  { --btn-bg: transparent; --btn-fg: var(--navy-800); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bg: var(--cyan-50); --btn-bd: var(--cyan-500); filter: none; }
.btn--onnavy { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); }
.btn--onnavy:hover { --btn-bg: #fff; --btn-fg: var(--navy-800); filter: none; }
.btn--sm { padding: .45rem .95rem; min-height: 38px; font-size: var(--step--1); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- 5. Header / navigation ---------------------------------------- */
.topbar {
  background: var(--navy-900); color: #b9c2e6; font-size: var(--step--1);
}
.topbar__inner { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); align-items: center; justify-content: space-between; padding: .5rem 0; }
.topbar ul { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); list-style: none; margin: 0; padding: 0; }
.topbar a { color: #dbe2ff; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; }

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { height: 72px; width: auto; }
.brand__text { display: none; }

.nav { display: flex; align-items: center; gap: var(--sp-2); }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block; padding: .6rem .85rem; border-radius: var(--radius-sm);
  color: var(--navy-800); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.nav__link:hover { background: var(--cyan-50); color: var(--cyan-600); }
.nav__link[aria-current="page"] { color: var(--cyan-600); }
.nav__link[aria-current="page"]::after {
  content: ""; display: block; height: 3px; border-radius: 3px; background: var(--cyan-500); margin-top: 4px;
}
.header-actions { display: flex; align-items: center; gap: var(--sp-3); }

/* Cart button */
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 21px; height: 21px; padding: 0 5px;
  display: grid; place-items: center; border-radius: var(--radius-pill);
  background: var(--navy-800); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1;
  border: 2px solid #fff;
}
.cart-count[data-empty="true"] { display: none; }

/* Mobile menu toggle */
.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: relative; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 4px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: calc(var(--header-h)) 0 auto 0; display: none;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: var(--sp-4) var(--sp-5) var(--sp-6);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav[data-open="true"] { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: .85rem .5rem; border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__link[aria-current="page"] { background: var(--cyan-50); }
}
@media (min-width: 560px) { .brand__text { display: block; } }
.brand__name { font-weight: 800; color: var(--navy-800); font-size: 1.05rem; line-height: 1.1; letter-spacing: -.01em; }
.brand__tag { font-size: .72rem; color: var(--ink-400); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- 6. Hero -------------------------------------------------------- */
.hero {
  position: relative; color: #eaf1ff; background: var(--navy-900);
  background-image: linear-gradient(105deg, rgba(16,20,60,.94) 0%, rgba(16,20,60,.82) 45%, rgba(0,137,199,.55) 100%), url("../img/hero-molecule.jpg");
  background-size: cover; background-position: center;
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  overflow: hidden;
}
.hero__grid { display: grid; gap: var(--sp-7); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 940px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { color: #fff; margin-bottom: var(--sp-4); }
.hero h1 em { font-style: normal; color: var(--cyan-400); }
.hero__lede { font-size: var(--step-1); color: #c8d4f2; max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem .35rem .5rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-pill); font-size: var(--step--1); font-weight: 600; color: #dce6ff;
  margin-bottom: var(--sp-4);
}
.hero__badge b { background: var(--cyan-500); color: #04203a; border-radius: var(--radius-pill); padding: .1rem .55rem; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.hero__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.18); }
.hero__stat b { display: block; font-size: var(--step-2); color: #fff; line-height: 1.1; }
.hero__stat span { font-size: var(--step--1); color: #a9b7e0; }
.hero__panel {
  background: rgba(255,255,255,.97); color: var(--ink-700);
  border-radius: var(--radius-lg); padding: var(--sp-5); box-shadow: var(--shadow-lg);
}
.hero__panel h2 { font-size: var(--step-1); margin-bottom: var(--sp-1); }
.hero__panel p { font-size: var(--step--1); color: var(--ink-500); }

/* Quick-quote mini form in hero */
.quick-form { display: grid; gap: var(--sp-3); }

/* ---------- 7. Page title (interior pages) --------------------------------- */
.page-title {
  background: linear-gradient(90deg, rgba(16,20,60,.93), rgba(27,33,89,.75)), url("../img/page-title-bg.jpg") center/cover;
  color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.page-title h1 { color: #fff; margin-bottom: var(--sp-2); }
.page-title p { color: #c3cdec; max-width: 44rem; margin-bottom: 0; }
.breadcrumb { margin-bottom: var(--sp-3); font-size: var(--step--1); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; color: #9fb0dd; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: #63719e; }
.breadcrumb a { color: #cfd9f6; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: #fff; }

/* ---------- 8. Cards ------------------------------------------------------- */
.card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfd8ea; }
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1 1 auto; }
.card__title { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--cyan-600); }
.card__text { color: var(--ink-500); font-size: var(--step--1); flex: 1 1 auto; }
.card__foot { margin-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }

/* Service card with icon */
.svc-card { padding: var(--sp-5); border-radius: var(--radius); border: 1px solid var(--line); background: #fff; height: 100%; }
.svc-card:hover { border-color: var(--cyan-400); box-shadow: var(--shadow-md); }
.icon-badge {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--cyan-100); color: var(--cyan-600); margin-bottom: var(--sp-4);
}
.icon-badge svg { width: 26px; height: 26px; }
.svc-card ul { color: var(--ink-500); font-size: var(--step--1); margin: 0 0 var(--sp-4); }
.svc-card li + li { margin-top: .3rem; }

/* Feature / value row */
.feature { display: flex; gap: var(--sp-4); align-items: flex-start; }
.feature .icon-badge { flex: 0 0 auto; margin-bottom: 0; width: 46px; height: 46px; border-radius: 12px; }
.feature h3 { font-size: var(--step-1); margin-bottom: .2rem; }
.feature p { font-size: var(--step--1); color: var(--ink-500); margin-bottom: 0; }

/* ---------- 9. Product catalogue ------------------------------------------ */
.shop-layout { display: grid; gap: var(--sp-6); align-items: start; grid-template-columns: 1fr; }
@media (min-width: 900px) { .shop-layout { grid-template-columns: 260px 1fr; } }

.filters { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-5); background: #fff; position: sticky; top: calc(var(--header-h) + 1rem); }
.filters h2 { font-size: var(--step-1); }
.filter-group { border: 0; padding: 0; margin: 0 0 var(--sp-5); }
.filter-group legend { font-weight: 700; color: var(--navy-800); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--sp-2); padding: 0; }
.choice { display: flex; align-items: center; gap: .55rem; padding: .3rem 0; font-size: var(--step--1); cursor: pointer; }
.choice input { width: 18px; height: 18px; accent-color: var(--cyan-600); cursor: pointer; }
.choice span.count { margin-left: auto; color: var(--ink-400); font-size: .78rem; }

.shop-toolbar {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between;
  padding: var(--sp-3) var(--sp-4); background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: var(--sp-5);
}
.shop-toolbar p { margin: 0; font-size: var(--step--1); color: var(--ink-500); }
.toolbar-controls { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

.product-card { position: relative; }
.product-card .card__media { aspect-ratio: 4 / 3; background: #fff; }
.product-card .card__media img { object-fit: contain; padding: var(--sp-4); }
.product-card .card__body { padding: var(--sp-4); }
.tag {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: var(--radius-pill); background: var(--cyan-100); color: var(--cyan-600);
}
.tag--stock { background: var(--ok-100); color: var(--ok-600); }
.tag--lead  { background: var(--warn-100); color: var(--warn-700); }
.tag--float { position: absolute; top: var(--sp-3); left: var(--sp-3); z-index: 2; background: #fff; box-shadow: var(--shadow-sm); }
.product-card .sku { font-size: .75rem; color: var(--ink-400); letter-spacing: .04em; }
.price { font-size: var(--step-1); font-weight: 800; color: var(--navy-800); }
.price small { font-size: .74rem; font-weight: 600; color: var(--ink-400); display: block; letter-spacing: .02em; }
.price--quote { font-size: var(--step-0); color: var(--cyan-600); }
.product-actions { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-2); margin-top: var(--sp-4); }
.spec-list { list-style: none; margin: var(--sp-3) 0 0; padding: 0; font-size: var(--step--1); color: var(--ink-500); }
.spec-list li { display: flex; gap: .5rem; padding: .15rem 0; }
.spec-list li::before { content: "✓"; color: var(--ok-600); font-weight: 700; }

/* Empty state */
.empty-state { text-align: center; padding: var(--sp-8) var(--sp-4); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-500); }

/* ---------- 10. Forms ------------------------------------------------------ */
.field { display: grid; gap: .35rem; margin-bottom: var(--sp-4); }
.field > label, .form-label { font-weight: 600; font-size: var(--step--1); color: var(--navy-800); }
.req { color: var(--danger-600); }
.hint { font-size: .78rem; color: var(--ink-400); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="date"], select, textarea {
  width: 100%; padding: .7rem .85rem; font: inherit; color: var(--ink-900);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:hover, select:hover, textarea:hover { border-color: #c6cede; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan-500); box-shadow: 0 0 0 3px rgba(0,167,230,.18); outline: none; }
textarea { min-height: 130px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6479' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.2rem; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger-600); }
.error-text { color: var(--danger-600); font-size: .8rem; font-weight: 600; min-height: 1em; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow-sm); }
.form-row { display: grid; gap: 0 var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--step--1); color: var(--ink-500); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--cyan-600); flex: 0 0 auto; }

/* Quantity stepper */
.qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.qty button { width: 38px; border: 0; background: var(--surface-2); color: var(--navy-800); font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.qty button:hover { background: var(--cyan-100); color: var(--cyan-600); }
.qty input { width: 54px; border: 0; border-inline: 1.5px solid var(--line); text-align: center; padding: .5rem .25rem; border-radius: 0; }
.qty input:focus { box-shadow: none; }

/* ---------- 11. Cart / enquiry drawer -------------------------------------- */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(16,19,31,.5); opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease; z-index: 140;
}
.drawer-overlay[data-open="true"] { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(420px, 100%);
  background: #fff; z-index: 150; display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .28s cubic-bezier(.22,.61,.36,1);
  box-shadow: var(--shadow-lg);
}
.drawer[data-open="true"] { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font-size: var(--step-1); }
.drawer__body { flex: 1 1 auto; overflow-y: auto; padding: var(--sp-4) var(--sp-5); }
.drawer__foot { border-top: 1px solid var(--line); padding: var(--sp-4) var(--sp-5); background: var(--surface-2); }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--navy-800);
}
.icon-btn:hover { background: var(--cyan-50); border-color: var(--cyan-400); color: var(--cyan-600); }
.cart-line { display: grid; grid-template-columns: 64px 1fr; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line-2); }
.cart-line img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.cart-line h3 { font-size: .95rem; margin: 0 0 .15rem; }
.cart-line .meta { font-size: .78rem; color: var(--ink-400); }
.cart-line__row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-top: .4rem; }
.link-danger { background: none; border: 0; padding: 0; color: var(--danger-600); font: inherit; font-size: .8rem; cursor: pointer; text-decoration: underline; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; color: var(--navy-800); margin-bottom: var(--sp-3); }
.cart-total span:last-child { font-size: var(--step-1); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--navy-800); color: #fff; padding: .8rem 1.2rem; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg); font-size: var(--step--1); font-weight: 600; z-index: 200;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.toast[data-show="true"] { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- 12. Modal (enquiry) -------------------------------------------- */
.modal {
  border: 0; padding: 0; border-radius: var(--radius-lg); width: min(560px, calc(100% - 2rem));
  box-shadow: var(--shadow-lg); color: inherit;
}
.modal::backdrop { background: rgba(16,19,31,.55); }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-5) var(--sp-5) 0; }
.modal__head h2 { font-size: var(--step-2); margin-bottom: .2rem; }
.modal__body { padding: var(--sp-4) var(--sp-5) var(--sp-5); }

/* ---------- 13. Content blocks -------------------------------------------- */
.split { display: grid; gap: var(--sp-7); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.15fr .85fr; } }
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.media-frame img { width: 100%; }
.media-frame--offset::after {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 55%; height: 55%;
  border: 3px solid var(--cyan-400); border-radius: var(--radius-lg); z-index: -1;
}
.stat-pill {
  position: absolute; left: var(--sp-4); bottom: var(--sp-4); background: rgba(255,255,255,.95);
  border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); box-shadow: var(--shadow-md);
}
.stat-pill b { display: block; font-size: var(--step-2); color: var(--navy-800); line-height: 1; }
.stat-pill span { font-size: .78rem; color: var(--ink-500); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list li::before {
  content: "✓"; flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--cyan-100); color: var(--cyan-600); display: grid; place-items: center; font-size: .78rem; font-weight: 800;
}
.section--navy .check-list li::before { background: rgba(255,255,255,.14); color: var(--cyan-400); }

/* Stats strip */
.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-5); text-align: center; }
.stat b { display: block; font-size: var(--step-3); color: var(--cyan-400); line-height: 1.05; }
.section--navy .stat span { color: #b7c1e4; font-size: var(--step--1); }

/* Steps / process */
.steps { counter-reset: step; display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.step { position: relative; padding-top: var(--sp-5); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-size: var(--step-1); font-weight: 800; color: var(--cyan-500);
}
.step h3 { font-size: var(--step-1); margin-bottom: .25rem; }
.step p { font-size: var(--step--1); color: var(--ink-500); margin: 0; }
.step::after { content: ""; position: absolute; top: 10px; left: 44px; right: -12px; height: 2px; background: var(--line); }
.step:last-child::after { display: none; }
@media (max-width: 700px) { .step::after { display: none; } }

/* Testimonials */
.quote-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--cyan-500); border-radius: var(--radius); padding: var(--sp-5); }
.quote-card blockquote { margin: 0 0 var(--sp-4); font-size: var(--step-1); color: var(--navy-800); line-height: 1.5; }
.quote-card figcaption { display: flex; align-items: center; gap: .7rem; font-size: var(--step--1); }
.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--cyan-100); }
.quote-card cite { font-style: normal; font-weight: 700; color: var(--navy-800); display: block; }
.quote-card .role { color: var(--ink-400); font-size: .8rem; }

/* Logos strip */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-6); }
.logos img { max-height: 46px; width: auto; filter: grayscale(1); opacity: .65; transition: filter .2s, opacity .2s; }
.logos img:hover { filter: none; opacity: 1; }

/* Accordion (FAQ) */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.accordion details + details { border-top: 1px solid var(--line); }
.accordion summary {
  cursor: pointer; padding: var(--sp-4) var(--sp-5); font-weight: 600; color: var(--navy-800);
  display: flex; justify-content: space-between; gap: var(--sp-4); align-items: center; list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.3rem; color: var(--cyan-600); line-height: 1; }
.accordion details[open] summary::after { content: "–"; }
.accordion summary:hover { background: var(--cyan-50); }
.accordion .acc-body { padding: 0 var(--sp-5) var(--sp-5); color: var(--ink-500); font-size: var(--step--1); }

/* Contact info tiles */
.info-tile { display: flex; gap: var(--sp-4); padding: var(--sp-5); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 100%; }
.info-tile h3 { font-size: var(--step-0); margin-bottom: .2rem; }
.info-tile p, .info-tile address { margin: 0; font-size: var(--step--1); color: var(--ink-500); font-style: normal; }
.info-tile a { color: var(--cyan-600); text-decoration: none; word-break: break-word; }
.info-tile a:hover { text-decoration: underline; }
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 320px; background: var(--surface-2); }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* CTA band */
.cta-band {
  background: linear-gradient(100deg, var(--navy-800), var(--cyan-600));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 3rem);
  display: grid; gap: var(--sp-5); align-items: center; grid-template-columns: 1fr;
}
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p { color: #dce6ff; margin: 0; }
.cta-band .btn { --btn-bg: #fff; --btn-fg: var(--navy-800); --btn-bd: #fff; }

/* Alert / success message */
.alert { display: flex; gap: .7rem; padding: var(--sp-4); border-radius: var(--radius); font-size: var(--step--1); border: 1px solid; }
.alert--ok { background: var(--ok-100); border-color: #b8e3cb; color: #0b5c3a; }
.alert--info { background: var(--cyan-50); border-color: #b9e5f8; color: #075a80; }
[hidden] { display: none !important; }

/* ---------- 14. Footer ----------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #a9b4d8; padding-top: var(--sp-8); font-size: var(--step--1); }
.site-footer h3 { color: #fff; font-size: var(--step-0); margin-bottom: var(--sp-4); }
.footer-grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); padding-bottom: var(--sp-7); }
.site-footer a { color: #c7d0ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-brand img { height: 46px; background: #fff; padding: 6px 10px; border-radius: var(--radius-sm); }
.newsletter { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: var(--sp-3); }
.newsletter input { flex: 1 1 160px; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: #fff; }
.newsletter input::placeholder { color: #8a97c4; }
.footer-bottom {     padding: var(--sp-4) 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    justify-content: center;
    align-items: center !important;}
.social { display: flex; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--cyan-600); }
.social svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- 15. Motion preferences ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- 16. Print ------------------------------------------------------ */
@media print {
  .site-header, .topbar, .site-footer, .drawer, .drawer-overlay, .hero__cta, .nav-toggle { display: none !important; }
  body { color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
