/* =====================================================================
   CONSORT HEALTH  —  "Premium Clinical" design system (v3)
   ---------------------------------------------------------------------
   Dark-default, glassmorphism, engineering-grid canvas in clinical blue.
   Fonts: Instrument Serif (editorial headings) + Plus Jakarta Sans (UI)
          + JetBrains Mono (micro-labels).
   Theme: class-based — <html class="dark"> (default) / <html class="light">.
          Toggle + persistence handled by consort-theme.js (key: cw-theme).
   Namespace: .ct-*  (kept distinct from the legacy .cw-* mint overlay).
   Works alongside Tailwind CDN (layout utilities) but every identity
   component below is fully self-contained so the site degrades gracefully.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700;800&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

/* ------------------------------------------------------------------ *
 * 1. Tokens
 * ------------------------------------------------------------------ */
:root {
  /* clinical blue ramp */
  --ct-50:  #f0f7ff;
  --ct-100: #e0effe;
  --ct-400: #3b8fe0;
  --ct-500: #0066cc;   /* primary */
  --ct-600: #0052a3;
  --ct-700: #003d7a;
  --ct-950: #030812;   /* ink */
  /* wellness accent */
  --ct-mint: #10b981;
  --ct-teal: #14b8a6;

  --ct-primary: var(--ct-500);
  --ct-primary-600: var(--ct-600);

  /* dark theme (default) */
  --ct-bg:        #030812;
  --ct-bg-2:      #02050b;
  --ct-surface:   rgba(255,255,255,.015);
  --ct-surface-2: rgba(255,255,255,.03);
  --ct-solid:     #070e1b;   /* solid panels: dropdowns, modals */
  --ct-glass:     rgba(255,255,255,.015);
  --ct-glass-2:   rgba(3,8,18,.80);
  --ct-border:    rgba(255,255,255,.06);
  --ct-border-2:  rgba(255,255,255,.10);
  --ct-grid:      rgba(0,102,204,.028);

  --ct-heading:   #ffffff;
  --ct-text:      #cbd5e1;   /* slate-300 */
  --ct-muted:     #94a3b8;   /* slate-400 */
  --ct-faint:     #64748b;   /* slate-500 */
  --ct-link:      #4d9fe6;

  --ct-shadow:    0 10px 40px -10px rgba(0,0,0,.55);
  --ct-shadow-lg: 0 30px 70px -24px rgba(0,0,0,.72);
  --ct-glow:      0 0 50px -10px rgba(0,102,204,.30);
  --ct-premium:   0 10px 40px -10px rgba(0,102,204,.16);

  --ct-radius:    14px;
  --ct-radius-lg: 20px;
  --ct-radius-sm: 10px;

  --ct-font:  'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ct-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --ct-mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ct-nav-h: 76px;
  --ct-ease:  cubic-bezier(.16,1,.3,1);
}

html.light {
  --ct-bg:        #fafafa;
  --ct-bg-2:      #f0f4fa;
  --ct-surface:   rgba(255,255,255,.75);
  --ct-surface-2: rgba(255,255,255,.9);
  --ct-solid:     #ffffff;
  --ct-glass:     rgba(255,255,255,.72);
  --ct-glass-2:   rgba(255,255,255,.88);
  --ct-border:    rgba(0,102,204,.12);
  --ct-border-2:  rgba(0,102,204,.18);
  --ct-grid:      rgba(0,102,204,.045);

  --ct-heading:   #0b1220;
  --ct-text:      #334155;   /* slate-700 */
  --ct-muted:     #64748b;
  --ct-faint:     #94a3b8;
  --ct-link:      #0052a3;

  --ct-shadow:    0 10px 40px -12px rgba(15,40,80,.14);
  --ct-shadow-lg: 0 30px 70px -26px rgba(15,40,80,.20);
  --ct-glow:      0 0 50px -12px rgba(0,102,204,.20);
  --ct-premium:   0 10px 40px -12px rgba(0,102,204,.10);
}

/* ------------------------------------------------------------------ *
 * 2. Base
 * ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html.ct { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.ct-body {
  margin: 0;
  font-family: var(--ct-font);
  font-weight: 400;
  color: var(--ct-text);
  background-color: var(--ct-bg);
  background-image:
    linear-gradient(to right,  var(--ct-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ct-grid) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color .4s ease, color .4s ease;
}

body.ct-body::before {   /* ambient top glow */
  content: "";
  position: fixed;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(0,102,204,.10), transparent 62%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: ct-pulse 8s ease-in-out infinite;
}

body.ct-body img { max-width: 100%; height: auto; }
/* Base link color applies ONLY to plain (class-less) content links, so it never
   overrides component anchors like .ct-btn-primary / .ct-navlink via specificity. */
body.ct-body a:not([class]) { color: var(--ct-link); text-decoration: none; transition: color .25s; }
body.ct-body a:not([class]):hover { color: var(--ct-primary); }
body.ct-body a[class] { text-decoration: none; }
/* Guarantee readable text on filled buttons regardless of anchor rules */
.ct-btn-primary, .ct-btn-primary:hover, a.ct-btn-primary, a.ct-btn-primary:hover { color: #fff; }
.ct-btn-soft, a.ct-btn-soft { color: var(--ct-primary); }
.ct-btn-soft:hover, a.ct-btn-soft:hover { color: #fff; }
.ct-btn-dark, a.ct-btn-dark { color: var(--ct-bg); }
.ct-btn-dark:hover, a.ct-btn-dark:hover { color: #fff; }

::selection { background: rgba(0,102,204,.28); color: #fff; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--ct-bg-2); }
::-webkit-scrollbar-thumb { background: var(--ct-border-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ct-primary); }

/* ------------------------------------------------------------------ *
 * 3. Typography
 * ------------------------------------------------------------------ */
.ct-serif { font-family: var(--ct-serif); font-weight: 400; }
.ct-mono  { font-family: var(--ct-mono); }

.ct-display,
.ct-h1, .ct-h2, .ct-h3 {
  font-family: var(--ct-serif);
  color: var(--ct-heading);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.08;
  margin: 0;
}
.ct-display { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.ct-h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.ct-h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.ct-h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.ct-display .it, .ct-h1 .it, .ct-h2 .it { font-style: italic; color: var(--ct-muted); }

.ct-eyebrow {
  font-family: var(--ct-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ct-primary);
  display: inline-block;
}
.ct-lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ct-muted); font-weight: 300; line-height: 1.7; }
.ct-muted { color: var(--ct-muted); }
.ct-faint { color: var(--ct-faint); }
.ct-strong-heading { color: var(--ct-heading); font-weight: 700; font-family: var(--ct-font); letter-spacing: -.01em; }

/* ------------------------------------------------------------------ *
 * 4. Layout helpers
 * ------------------------------------------------------------------ */
.ct-container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.ct-container-wide { max-width: 1440px; }
.ct-section { padding: clamp(56px, 9vw, 112px) 0; position: relative; }
.ct-section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.ct-divider-top { border-top: 1px solid var(--ct-border); }
.ct-page { position: relative; z-index: 1; }

.ct-grid { display: grid; gap: 28px; }
.ct-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ct-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ct-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .ct-grid-3, .ct-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ct-grid-2, .ct-grid-3, .ct-grid-4 { grid-template-columns: 1fr; } }

.ct-center { text-align: center; }
.ct-max-2xl { max-width: 42rem; }
.ct-mx-auto { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------------ *
 * 5. Glass / cards
 * ------------------------------------------------------------------ */
.ct-glass {
  background: var(--ct-glass);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-lg);
  transition: transform .5s var(--ct-ease), border-color .3s, box-shadow .3s, background .3s;
}
.ct-card {
  background: var(--ct-glass);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-lg);
  padding: 34px;
  box-shadow: var(--ct-premium);
  transition: transform .5s var(--ct-ease), border-color .3s, box-shadow .3s;
}
.ct-card--hover:hover { transform: translateY(-6px); border-color: rgba(0,102,204,.28); box-shadow: var(--ct-glow); }
.ct-card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,102,204,.10); color: var(--ct-primary);
  transition: background .4s, color .4s;
}
.ct-card--hover:hover .ct-card__icon { background: var(--ct-primary); color: #fff; }
.ct-card__icon svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ *
 * 6. Buttons
 * ------------------------------------------------------------------ */
.ct-btn {
  --_bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--ct-font);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  padding: 15px 26px; border-radius: var(--ct-radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ct-ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
  text-align: center; line-height: 1; white-space: nowrap;
}
.ct-btn svg { width: 15px; height: 15px; }
.ct-btn:active { transform: scale(.985); }
.ct-btn-primary { background: var(--ct-primary); color: #fff; box-shadow: var(--ct-premium); }
.ct-btn-primary:hover { background: var(--ct-primary-600); color: #fff; transform: translateY(-2px); }
.ct-btn-dark { background: var(--ct-heading); color: var(--ct-bg); }
.ct-btn-dark:hover { background: var(--ct-primary); color: #fff; }
.ct-btn-ghost { background: transparent; color: var(--ct-text); border-color: var(--ct-border-2); }
.ct-btn-ghost:hover { color: var(--ct-heading); border-color: var(--ct-primary); }
.ct-btn-soft { background: rgba(0,102,204,.10); color: var(--ct-primary); }
.ct-btn-soft:hover { background: var(--ct-primary); color: #fff; }
.ct-btn-sm { padding: 10px 16px; font-size: .66rem; }
.ct-btn-lg { padding: 17px 34px; font-size: .8rem; }
.ct-btn-block { display: flex; width: 100%; }

/* ------------------------------------------------------------------ *
 * 7. Pills / badges / status dots
 * ------------------------------------------------------------------ */
.ct-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px;
  background: rgba(0,102,204,.06); border: 1px solid rgba(0,102,204,.14);
  font-family: var(--ct-mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ct-primary);
}
html.light .ct-pill { background: rgba(0,102,204,.05); }
.ct-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ct-primary); position: relative; display: inline-flex; }
.ct-dot--ping::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: var(--ct-primary); opacity: .75; animation: ct-ping 1.6s cubic-bezier(0,0,.2,1) infinite;
}
.ct-dot--emerald { background: var(--ct-mint); }
.ct-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ct-mono); font-size: .6rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ct-primary);
}

/* ------------------------------------------------------------------ *
 * 8. Forms
 * ------------------------------------------------------------------ */
.ct-label {
  display: block; font-family: var(--ct-mono); font-size: .64rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ct-faint); margin-bottom: 8px;
}
.ct-input, .ct-select, .ct-textarea {
  width: 100%; font-family: var(--ct-font); font-size: .95rem; color: var(--ct-heading);
  background: var(--ct-surface-2); border: 1px solid var(--ct-border-2);
  border-radius: var(--ct-radius-sm); padding: 13px 15px; transition: border-color .25s, box-shadow .25s, background .25s;
}
.ct-textarea { min-height: 130px; resize: vertical; }
.ct-input::placeholder, .ct-textarea::placeholder { color: var(--ct-faint); }
.ct-input:focus, .ct-select:focus, .ct-textarea:focus {
  outline: none; border-color: var(--ct-primary); box-shadow: 0 0 0 3px rgba(0,102,204,.18);
}
.ct-select { appearance: none; -webkit-appearance: none; background-image:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2394a3b8' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.ct-field { margin-bottom: 18px; }

/* ------------------------------------------------------------------ *
 * 9. Header / nav
 * ------------------------------------------------------------------ */
.ct-header {
  position: sticky; top: 0; left: 0; width: 100%; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--ct-nav-h); padding: 0 clamp(18px, 4vw, 48px);
  background: color-mix(in srgb, var(--ct-bg) 78%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ct-border);
  transition: background .4s, border-color .3s, box-shadow .3s;
}
.ct-header.is-scrolled { box-shadow: var(--ct-shadow); }

.ct-brand { display: inline-flex; align-items: center; gap: 13px; }
.ct-brand__badge {
  position: relative; width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ct-primary); color: #fff; box-shadow: var(--ct-premium);
  transition: transform .4s var(--ct-ease);
}
.ct-brand:hover .ct-brand__badge { transform: scale(1.06); }
.ct-brand__badge svg { width: 20px; height: 20px; }
.ct-brand__badge i { font-size: 17px; }
.ct-brand__name { font-size: 1.06rem; font-weight: 800; letter-spacing: -.01em; color: var(--ct-heading); text-transform: uppercase; line-height: 1; }
.ct-brand__sub  { display: block; font-size: .55rem; letter-spacing: .42em; text-transform: uppercase; color: var(--ct-primary); font-weight: 600; margin-top: 3px; }

.ct-nav { display: flex; align-items: center; gap: 34px; }
.ct-navlink {
  font-size: .74rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ct-muted); padding: 8px 0; position: relative; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.ct-navlink:hover, .ct-navlink.active { color: var(--ct-heading); }
.ct-navlink svg { width: 13px; height: 13px; }

.ct-nav-cta { display: flex; align-items: center; gap: 12px; }
.ct-iconbtn {
  width: 42px; height: 42px; border-radius: var(--ct-radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--ct-border-2); color: var(--ct-muted);
  cursor: pointer; transition: color .25s, background .25s, border-color .25s; position: relative;
}
.ct-iconbtn:hover { color: var(--ct-heading); background: var(--ct-surface-2); border-color: var(--ct-primary); }
.ct-iconbtn svg { width: 17px; height: 17px; }
.ct-iconbtn i { font-size: 15px; }

.ct-cart-badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--ct-primary); color: #fff;
  font-family: var(--ct-mono); font-size: .6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--ct-bg);
}
.ct-cart-badge:empty { display: none; }
.ct-tel { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ct-mono); font-size: .74rem; font-weight: 600; color: var(--ct-heading); padding: 0 6px; }
.ct-tel svg { width: 15px; height: 15px; color: var(--ct-primary); }

/* search overlay */
.ct-search {
  position: absolute; top: 100%; left: 0; width: 100%;
  background: var(--ct-solid); border-bottom: 1px solid var(--ct-border-2);
  box-shadow: var(--ct-shadow); padding: 18px clamp(18px,4vw,48px);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .25s var(--ct-ease); z-index: 55;
}
.ct-header.search-open .ct-search { opacity: 1; visibility: visible; transform: translateY(0); }
.ct-search__inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.ct-search__inner svg { width: 20px; height: 20px; color: var(--ct-primary); flex: 0 0 auto; }
.ct-search input { border: 0; background: transparent; flex: 1; font-size: 1.1rem; color: var(--ct-heading); outline: none; font-family: var(--ct-font); }
.ct-search input::placeholder { color: var(--ct-faint); }

/* dropdown / mega menu */
.ct-dd { position: relative; }
.ct-mega {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(920px, 92vw); background: var(--ct-solid);
  border: 1px solid var(--ct-border-2); border-radius: var(--ct-radius-lg);
  box-shadow: var(--ct-shadow-lg); padding: 26px; opacity: 0; visibility: hidden;
  transition: opacity .28s, transform .28s var(--ct-ease); z-index: 70;
}
/* Invisible hover-bridge spanning the gap between the trigger and the panel so
   the menu stays open while the cursor crosses the dead space. As a descendant
   of .ct-dd it keeps .ct-dd:hover active. */
.ct-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.ct-dd:hover .ct-mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
/* Small grace delay before the panel fades out, so a quick cursor slip doesn't nuke it. */
.ct-dd .ct-mega { transition-delay: .12s; }
.ct-dd:hover .ct-mega { transition-delay: 0s; }
.ct-mega__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--ct-border); }
.ct-mega__head h4 { margin: 0; font-family: var(--ct-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ct-faint); }
.ct-mega__head a { font-size: .72rem; font-weight: 600; color: var(--ct-primary); }
.ct-mega__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ct-mega h5 { margin: 0 0 10px; font-size: .82rem; font-weight: 700; }
.ct-mega h5 a { color: var(--ct-heading); }
.ct-mega ul { list-style: none; margin: 0; padding: 0; }
.ct-mega li { margin-bottom: 7px; }
.ct-mega li a { font-size: .8rem; color: var(--ct-muted); }
.ct-mega li a:hover { color: var(--ct-primary); }
@media (max-width: 1080px) { .ct-mega__cols { grid-template-columns: repeat(2, 1fr); } }

/* cart drawer (dropdown) */
.ct-cart-drop {
  position: absolute; top: calc(100% + 14px); right: 0; width: min(360px, 90vw);
  background: var(--ct-solid); border: 1px solid var(--ct-border-2); border-radius: var(--ct-radius-lg);
  box-shadow: var(--ct-shadow-lg); padding: 18px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s var(--ct-ease); z-index: 70;
}
.ct-cart-wrap.open .ct-cart-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.ct-cart-wrap { position: relative; }
.ct-cart-list { list-style: none; margin: 0 0 14px; padding: 0; max-height: 340px; overflow-y: auto; }
.ct-cart-foot { border-top: 1px solid var(--ct-border); padding-top: 14px; }
.ct-cart-row { margin: 0; padding: 0; }
.ct-cart-link { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; text-decoration: none; transition: background .2s, transform .2s; }
.ct-cart-link:hover { background: var(--ct-surface-2); transform: translateX(2px); }
.ct-cart-link img { width: 48px; height: 48px; border-radius: 8px; object-fit: contain; background: #fff; padding: 4px; flex: 0 0 auto; }
.ct-cart-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ct-cart-name { font-size: .82rem; font-weight: 600; color: var(--ct-heading); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ct-cart-link:hover .ct-cart-name { color: var(--ct-primary); }
.ct-cart-qty { font-family: var(--ct-mono); font-size: .68rem; color: var(--ct-faint); }

/* mobile nav */
.ct-burger { display: none; }
.ct-mobile {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 26px; padding: 40px;
  background: color-mix(in srgb, var(--ct-bg) 97%, transparent);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  transform: translateX(100%); transition: transform .5s var(--ct-ease);
}
.ct-mobile.open { transform: translateX(0); }
.ct-mobile a { font-size: 1.15rem; font-weight: 500; color: var(--ct-text); }
.ct-mobile a:hover { color: var(--ct-primary); }
.ct-mobile__close { position: absolute; top: 22px; right: 22px; }
@media (max-width: 1024px) {
  .ct-nav { display: none; }
  .ct-tel { display: none; }
  .ct-burger { display: inline-flex; }
}

/* ------------------------------------------------------------------ *
 * 10. Topbar (slim announcement strip)
 * ------------------------------------------------------------------ */
.ct-topbar {
  position: relative; z-index: 61;
  background: var(--ct-primary); color: #fff;
  font-family: var(--ct-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 26px;
  padding: 8px 16px; text-align: center;
}
.ct-topbar a { color: #fff; opacity: .92; }
.ct-topbar a:hover { opacity: 1; color: #fff; }
.ct-topbar .sep { opacity: .4; }
@media (max-width: 720px) { .ct-topbar .hide-sm { display: none; } }

/* ------------------------------------------------------------------ *
 * 11. Footer
 * ------------------------------------------------------------------ */
.ct-footer { position: relative; z-index: 1; border-top: 1px solid var(--ct-border); background: var(--ct-bg-2); padding: 64px 0 34px; }

/* newsletter band */
.ct-foot-news { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 34px; padding-bottom: 34px; margin-bottom: 40px; border-bottom: 1px solid var(--ct-border); }
.ct-foot-news h4 { font-family: var(--ct-serif); font-weight: 400; color: var(--ct-heading); font-size: 1.5rem; margin: 0 0 5px; }
.ct-foot-news p { margin: 0; color: var(--ct-muted); font-size: .9rem; font-weight: 300; max-width: 460px; line-height: 1.55; }
.ct-foot-news form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ct-foot-news input[type=email] { background: var(--ct-surface-2); border: 1px solid var(--ct-border-2); border-radius: var(--ct-radius-sm); color: var(--ct-heading); font-family: var(--ct-font); font-size: .92rem; padding: 12px 15px; min-width: 250px; }
.ct-foot-news input[type=email]::placeholder { color: var(--ct-faint); }
.ct-foot-news input[type=email]:focus { outline: none; border-color: var(--ct-primary); box-shadow: 0 0 0 3px rgba(0,102,204,.18); }
.ct-foot-news .nl-msg { font-size: .84rem; font-weight: 600; color: var(--ct-mint); width: 100%; }
@media (max-width: 620px) { .ct-foot-news input[type=email] { min-width: 0; flex: 1; } }

/* footer contact column */
.ct-foot-contact { display: flex; flex-direction: column; gap: 12px; }
.ct-foot-contact > div { display: flex; gap: 10px; font-size: .86rem; line-height: 1.5; color: var(--ct-muted); }
.ct-foot-contact .lbl { color: var(--ct-primary); font-family: var(--ct-mono); font-size: .58rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; min-width: 52px; padding-top: 3px; }
.ct-foot-contact a { color: var(--ct-muted); }
.ct-foot-contact a:hover { color: var(--ct-primary); }
.ct-footer__cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.ct-footer__brand p { color: var(--ct-muted); font-size: .9rem; font-weight: 300; max-width: 320px; margin: 18px 0; line-height: 1.7; }
.ct-footer h5 { font-family: var(--ct-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ct-faint); margin: 0 0 18px; }
.ct-footer ul { list-style: none; margin: 0; padding: 0; }
.ct-footer li { margin-bottom: 11px; }
.ct-footer li a { color: var(--ct-muted); font-size: .88rem; }
.ct-footer li a:hover { color: var(--ct-primary); }
.ct-footer__social { display: flex; gap: 10px; margin-top: 6px; }
.ct-footer__social a { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ct-border-2); color: var(--ct-muted); }
.ct-footer__social a:hover { color: var(--ct-primary); border-color: var(--ct-primary); }
.ct-footer__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--ct-border); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; font-family: var(--ct-mono); font-size: .7rem; letter-spacing: .04em; color: var(--ct-faint); }
.ct-footer__bottom a { color: var(--ct-muted); }
.ct-footer__meta { display: flex; gap: 12px; align-items: center; }
@media (max-width: 900px) { .ct-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ct-footer__cols { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ *
 * 12. Toasts
 * ------------------------------------------------------------------ */
.ct-toasts { position: fixed; bottom: 26px; right: 26px; z-index: 200; display: flex; flex-direction: column; gap: 12px; max-width: 380px; pointer-events: none; }
.ct-toast {
  pointer-events: auto; background: var(--ct-glass-2); backdrop-filter: blur(18px);
  border: 1px solid var(--ct-border-2); border-left: 3px solid var(--ct-primary);
  border-radius: 12px; padding: 14px 16px; box-shadow: var(--ct-shadow-lg);
  transform: translateX(120%); opacity: 0; transition: transform .5s var(--ct-ease), opacity .4s;
}
.ct-toast.show { transform: translateX(0); opacity: 1; }
.ct-toast__title { font-family: var(--ct-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ct-primary); font-weight: 700; margin-bottom: 4px; }
.ct-toast__body { font-size: .85rem; color: var(--ct-text); }

/* ------------------------------------------------------------------ *
 * 13. Product cards (commerce)
 * ------------------------------------------------------------------ */
.ct-prod {
  background: var(--ct-glass); border: 1px solid var(--ct-border); border-radius: var(--ct-radius-lg);
  padding: 18px; display: flex; flex-direction: column; transition: transform .4s var(--ct-ease), border-color .3s, box-shadow .3s;
}
.ct-prod:hover { transform: translateY(-5px); border-color: rgba(0,102,204,.28); box-shadow: var(--ct-glow); }
.ct-prod__media { position: relative; aspect-ratio: 4/3; border-radius: var(--ct-radius); overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; border: 1px solid var(--ct-border); margin-bottom: 16px; }
.ct-prod__media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.ct-prod__title { font-size: 1rem; font-weight: 700; color: var(--ct-heading); margin: 6px 0; line-height: 1.35; }
.ct-prod__title a { color: inherit; }
.ct-prod__title a:hover { color: var(--ct-primary); }
.ct-prod__meta { font-family: var(--ct-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ct-faint); }
.ct-prod__price { font-family: var(--ct-serif); font-size: 1.5rem; color: var(--ct-heading); }
.ct-prod__msrp { font-size: .85rem; color: var(--ct-faint); text-decoration: line-through; margin-left: 8px; }
.ct-prod__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ct-border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ------------------------------------------------------------------ *
 * 14. Misc utilities used by rebuilt pages
 * ------------------------------------------------------------------ */
.ct-flex { display: flex; }
.ct-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ct-items-center { align-items: center; }
.ct-gap-sm { gap: 10px; }
.ct-gap { gap: 18px; }
.ct-wrap { flex-wrap: wrap; }
.ct-stat__label { font-family: var(--ct-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ct-faint); }
.ct-stat__value { font-family: var(--ct-serif); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--ct-heading); line-height: 1.1; }
.ct-stat__value.accent { color: var(--ct-primary); }
.ct-hr { border: 0; border-top: 1px solid var(--ct-border); margin: 0; }
.ct-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ct-ease), transform .7s var(--ct-ease); }
.ct-reveal.in { opacity: 1; transform: none; }

/* ambient orbs used on hero sections */
.ct-orb { position: absolute; border-radius: 999px; filter: blur(120px); pointer-events: none; z-index: 0; }
.ct-orb--a { background: rgba(0,102,204,.14); }
.ct-orb--b { background: rgba(20,184,166,.10); }

/* scroll progress bar */
.ct-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--ct-primary), var(--ct-teal)); z-index: 90; transition: width .1s linear; }

/* ------------------------------------------------------------------ *
 * 15. Animations
 * ------------------------------------------------------------------ */
@keyframes ct-pulse { 0%,100% { opacity:.35; transform: scale(1); } 50% { opacity:.6; transform: scale(1.06); } }
@keyframes ct-ping  { 75%,100% { transform: scale(2.2); opacity: 0; } }
@keyframes ct-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ct-spin  { to { transform: rotate(360deg); } }
.ct-anim-float { animation: ct-float 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  body.ct-body::before { animation: none; }
}
