/* ==========================================================================
   MediVision Eye Care — design system
   Brand: purple #6C3D94 + orange #F16139 (extracted from live site)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* brand */
  --purple:        #6C3D94;
  --purple-deep:   #4A2668;
  --purple-mid:    #7E4EA8;
  --purple-light:  #A57FC7;
  --purple-wash:   #F6F1FA;
  --orange:        #F16139;
  --orange-deep:   #EA5426;
  --orange-text:   #C4421C;   /* orange as TEXT on light bg — 5.07:1 white, 4.76:1 wash */
  --orange-wash:   #FFF6F1;
  --green:         #1FA855;
  --green-deep:    #17833F;

  /* neutrals */
  --ink:      #161616;
  --body:     #3A3A44;
  --muted:    #6B6B78;
  --faint:    #74747F;   /* AA on white: 4.62:1 — do not lighten */
  --line:     rgba(22, 22, 22, .09);
  --line-soft:rgba(22, 22, 22, .05);
  --white:    #fff;
  --bg:       #fff;
  --bg-soft:  #FAF8FC;
  --bg-warm:  #FFF8F4;

  /* gradients */
  --grad-cta:    linear-gradient(160deg, #F16139 0%, #EA5426 100%);
  --grad-brand:  linear-gradient(135deg, #6C3D94 0%, #4A2668 100%);
  --grad-tint:   linear-gradient(180deg, #FFF6F1 0%, #FFEEE6 100%);
  --grad-soft:   linear-gradient(180deg, #FAF8FC 0%, #FFFFFF 100%);
  --grad-text:   linear-gradient(120deg, #6C3D94 0%, #F16139 100%);

  /* radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  /* elevation — layered, never a single blurry drop */
  --sh-1: 0 1px 2px rgba(22,22,22,.05), 0 4px 12px -4px rgba(22,22,22,.06);
  --sh-2: 0 1px 2px rgba(22,22,22,.06), 0 12px 32px -8px rgba(22,22,22,.10);
  --sh-3: 0 2px 4px rgba(22,22,22,.06), 0 24px 56px -12px rgba(22,22,22,.16);
  --sh-purple: 0 12px 32px -10px rgba(108,61,148,.45);
  --sh-orange: 0 12px 32px -10px rgba(241,97,57,.45);

  /* rhythm */
  --section-y: clamp(72px, 10vw, 148px);
  --gutter:    clamp(20px, 5vw, 56px);
  --maxw:      1240px;
  --maxw-wide: 1440px;
  --measure:   66ch;

  /* type */
  --font: "General Sans", system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --cta-bar-h: 0px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: var(--cta-bar-h);
}

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

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

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

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 999;
  background: var(--purple); color: #fff;
  padding: 12px 20px; border-radius: var(--r-xs); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

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

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -.038em;
  line-height: 1.02;
}
.h1 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); letter-spacing: -.034em; }
.h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); letter-spacing: -.03em; }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); letter-spacing: -.022em; line-height: 1.2; }
.h4 { font-size: 1.125rem; letter-spacing: -.015em; line-height: 1.3; }

p { text-wrap: pretty; }
.lede {
  font-size: clamp(1.075rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: var(--measure);
}
.small { font-size: .9375rem; }
.tiny  { font-size: .8125rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--purple);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--grad-cta);
}
.eyebrow.is-light { color: rgba(255,255,255,.85); }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.measure { max-width: var(--measure); }
.center  { text-align: center; }
.center .lede, .center .measure { margin-inline: auto; }

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

.section { padding-block: var(--section-y); position: relative; }
.section-sm { padding-block: clamp(52px, 7vw, 92px); }
.section.soft { background: var(--bg-soft); }
.section.warm { background: var(--grad-tint); }

.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .h2 { margin-top: 14px; }
.section-head .lede { margin-top: 18px; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-auto { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.g-auto-sm { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

@media (max-width: 900px) {
  .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
}

.stack   { display: flex; flex-direction: column; }
.row     { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--purple);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: var(--r-full);
  font-size: 1rem; font-weight: 600; letter-spacing: -.01em;
  white-space: nowrap; cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease);
  will-change: transform;
}
.btn:hover  { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary { background: var(--grad-cta); box-shadow: var(--sh-orange); }
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(241,97,57,.55); }

.btn-purple { background: var(--grad-brand); box-shadow: var(--sh-purple); }
.btn-purple:hover { box-shadow: 0 16px 40px -10px rgba(108,61,148,.55); }

.btn-wa { background: linear-gradient(160deg, #25D366, var(--green-deep)); }

.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--purple), var(--sh-1); color: var(--purple); }

.btn-light {
  background: rgba(255,255,255,.14); color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.32);
  backdrop-filter: blur(8px);
}
.btn-light:hover { background: rgba(255,255,255,.24); }

.btn-white { background: #fff; color: var(--purple); }

.btn-sm { min-height: 44px; padding: 10px 20px; font-size: .9375rem; }
.btn-lg { min-height: 60px; padding: 18px 36px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-group { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--purple); font-weight: 600; font-size: .9375rem;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .22s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(255,255,255,.88);
}

.topbar {
  background: var(--grad-brand); color: rgba(255,255,255,.9);
  font-size: .8125rem;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding-block: 3px; }
.topbar a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.topbar svg { width: 14px; height: 14px; }
.topbar-right { display: flex; gap: 20px; align-items: center; }
@media (max-width: 860px) { .topbar { display: none; } }

.navbar { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { flex: none; }
.brand img { height: 46px; width: auto; }
@media (max-width: 500px) { .brand img { height: 38px; } }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
@media (max-width: 1080px) { .nav { display: none; } }

.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 14px; border-radius: var(--r-full);
  font-size: .9375rem; font-weight: 500; color: var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-link:hover, .nav-item:hover > .nav-link, .nav-link[aria-current="page"] {
  background: var(--purple-wash); color: var(--purple);
}
.nav-link svg { width: 12px; height: 12px; opacity: .55; transition: transform .22s var(--ease); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 560px; padding: 22px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-3);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav-item:hover .mega, .nav-item:focus-within .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega.mega-right { left: auto; right: 0; transform: translateY(-8px); }
.nav-item:hover .mega.mega-right, .nav-item:focus-within .mega.mega-right { transform: translateY(0); }

.mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px; }
.mega-grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.mega-link {
  display: block; padding: 11px 14px; border-radius: var(--r-sm);
  transition: background .18s var(--ease);
}
.mega-link:hover { background: var(--purple-wash); }
.mega-link strong { display: block; font-size: .9375rem; font-weight: 600; color: var(--ink); letter-spacing: -.012em; }
.mega-link span { display: block; font-size: .8125rem; color: var(--faint); margin-top: 2px; line-height: 1.4; }
.mega-link:hover strong { color: var(--purple); }

.mega-foot {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}

.nav-cta { display: flex; gap: 10px; align-items: center; flex: none; }
@media (max-width: 1080px) { .nav-cta { margin-left: auto; } }
@media (max-width: 720px)  { .nav-cta .btn span { display: none; } .nav-cta .btn { padding: 12px 16px; } }
@media (max-width: 420px)  { .nav-cta .btn-ghost { display: none; } }

.burger {
  display: none; width: 46px; height: 46px; flex: none;
  align-items: center; justify-content: center;
  border-radius: var(--r-full); background: var(--purple-wash); color: var(--purple);
}
@media (max-width: 1080px) { .burger { display: inline-flex; } }
.burger svg { width: 22px; height: 22px; }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(22,22,22,.45); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer-panel {
  position: absolute; inset-block: 0; right: 0; width: min(420px, 88vw);
  background: #fff; overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .38s var(--ease-out);
  display: flex; flex-direction: column;
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2;
}
.drawer-head img { height: 40px; }
.drawer-body { padding: 12px 14px 28px; }
.drawer-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 14px; border-radius: var(--r-sm);
  font-size: 1.0625rem; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  width: 100%; text-align: left;
}
.drawer-link:hover { background: var(--purple-wash); color: var(--purple); }
.drawer-link svg { width: 16px; height: 16px; opacity: .5; transition: transform .25s var(--ease); }
.drawer-group.is-open > .drawer-link svg { transform: rotate(180deg); }
.drawer-sub {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .32s var(--ease);
}
.drawer-group.is-open .drawer-sub { grid-template-rows: 1fr; }
.drawer-sub > div { overflow: hidden; }
.drawer-sub a {
  display: block; padding: 11px 14px 11px 26px;
  font-size: .9375rem; color: var(--muted);
}
.drawer-sub a:hover { color: var(--purple); }
.drawer-foot { margin-top: auto; padding: 20px 22px 28px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* ---------- 7. Hero ---------- */
.hero { position: relative; overflow: hidden; }

.hero-dark {
  background: var(--grad-brand); color: #fff;
  padding-block: clamp(72px, 11vw, 140px);
}
.hero-dark h1, .hero-dark .h1, .hero-dark .display { color: #fff; }
.hero-dark .lede { color: rgba(255,255,255,.78); }

/* purple mesh glow — the luxury signature */
.mesh::before, .mesh::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none; z-index: 0;
}
.mesh::before {
  width: 620px; height: 620px; top: -260px; right: -180px;
  background: radial-gradient(circle, rgba(241,97,57,.42), transparent 68%);
}
.mesh::after {
  width: 560px; height: 560px; bottom: -280px; left: -160px;
  background: radial-gradient(circle, rgba(165,127,199,.38), transparent 68%);
}
.mesh > * { position: relative; z-index: 1; }

.hero-split {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
@media (max-width: 940px) { .hero-split { grid-template-columns: 1fr; } }

.hero-media {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--sh-3); aspect-ratio: 4/3.2; background: var(--purple-wash);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: var(--r-full);
  font-size: .8125rem; font-weight: 600; letter-spacing: -.005em;
  background: var(--purple-wash); color: var(--purple);
}
.badge svg { width: 14px; height: 14px; }
.badge.is-light { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.badge.is-warm  { background: var(--orange-wash); color: var(--orange-text); }
.badge.is-green { background: rgba(31,168,85,.1); color: var(--green-deep); }

/* page hero (interior pages) */
.pagehero {
  background: var(--grad-brand); color: #fff;
  padding-block: clamp(56px, 8vw, 104px);
  position: relative; overflow: hidden;
}
.pagehero .display, .pagehero .h1 { color: #fff; }
.pagehero .lede { color: rgba(255,255,255,.78); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .8125rem; color: rgba(255,255,255,.62); margin-bottom: 18px; }
.crumbs a:hover { color: #fff; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; opacity: .5; }
.crumbs ol { display: contents; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs a { display: inline-block; padding-block: 3px; min-height: 24px; }

/* ---------- 8. Stat strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
}
.stats.on-dark { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.16); }
.stat { background: #fff; padding: clamp(20px, 3vw, 32px) 20px; text-align: center; }
.stats.on-dark .stat { background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.stat b {
  display: block; font-size: clamp(1.6rem, 3.2vw, 2.5rem); font-weight: 600;
  letter-spacing: -.035em; line-height: 1; color: var(--purple);
}
.stats.on-dark .stat b { color: #fff; }
.stat span { display: block; margin-top: 8px; font-size: .8125rem; color: var(--muted); letter-spacing: -.005em; }
.stats.on-dark .stat span { color: rgba(255,255,255,.7); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 9. Cards ---------- */
.card {
  position: relative; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 32px);
  box-shadow: var(--sh-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  display: flex; flex-direction: column; height: 100%;
}
a.card:hover, .card.is-hoverable:hover {
  transform: translateY(-4px); box-shadow: var(--sh-2); border-color: rgba(108,61,148,.22);
}
.card .h3, .card .h4 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .9375rem; }
.card .link-arrow { margin-top: auto; padding-top: 18px; }

.card-icon {
  width: 56px; height: 56px; flex: none;
  display: grid; place-items: center; margin-bottom: 20px;
  border-radius: var(--r); background: var(--purple-wash); color: var(--purple);
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon.is-warm { background: var(--orange-wash); color: var(--orange-deep); }
.card-icon img { width: 32px; height: 32px; object-fit: contain; }

.card-num {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  border-radius: var(--r-full); background: var(--grad-brand); color: #fff;
  font-weight: 600; font-size: 1.0625rem; margin-bottom: 18px;
}

/* media card (image on top) */
.card-media { padding: 0; overflow: hidden; }
.card-media > figure { aspect-ratio: 16/10; overflow: hidden; background: var(--purple-wash); }
.card-media > figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
a.card-media:hover figure img { transform: scale(1.05); }
.card-media > .card-body { padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; flex: 1; }

/* ---------- 10. Split section ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split.is-flipped .split-media { order: -1; }
@media (max-width: 900px) { .split.is-flipped .split-media { order: 0; } }

.split-media {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--sh-2); aspect-ratio: 4/3; background: var(--purple-wash);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* floating stat card over an image */
.float-card {
  position: absolute; bottom: 22px; left: 22px; right: 22px;
  padding: 18px 22px; border-radius: var(--r);
  background: rgba(255,255,255,.9); backdrop-filter: blur(16px);
  box-shadow: var(--sh-2); display: flex; gap: 22px; justify-content: space-around;
}
.float-card b { display: block; font-size: 1.35rem; color: var(--purple); letter-spacing: -.03em; line-height: 1.1; }
.float-card span { font-size: .75rem; color: var(--muted); }

/* ---------- 11. Checklist ---------- */
.checks { display: grid; gap: 14px; }
.checks li { display: flex; gap: 13px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--purple); margin-top: 1px; }
.checks.is-warm svg { color: var(--orange-deep); }
.checks.on-dark svg { color: #fff; opacity: .9; }
.checks strong { display: block; color: var(--ink); font-weight: 600; letter-spacing: -.012em; }
.checks.on-dark strong { color: #fff; }
.checks span { font-size: .9375rem; color: var(--muted); }
.checks.on-dark span { color: rgba(255,255,255,.72); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--r-full);
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: .875rem; font-weight: 500; color: var(--body);
  transition: all .2s var(--ease);
}
a.chip:hover, .chip.is-active { background: var(--purple); border-color: var(--purple); color: #fff; }

/* ---------- 12. Steps timeline ---------- */
.steps { display: grid; gap: clamp(18px, 2.4vw, 26px); counter-reset: step; }
.steps.is-row { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step {
  position: relative; padding: clamp(24px, 2.8vw, 32px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .1em;
  color: var(--orange-text); margin-bottom: 14px;
}
.step .h4 { margin-bottom: 8px; }
.step p { font-size: .9375rem; color: var(--muted); }

/* ---------- 13. FAQ accordion ---------- */
.faq { display: grid; gap: 12px; max-width: 920px; margin-inline: auto; }
.faq-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq-item[open] { border-color: rgba(108,61,148,.28); box-shadow: var(--sh-1); }
.faq-q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 21px 24px; cursor: pointer; list-style: none;
  font-size: 1.0625rem; font-weight: 600; color: var(--ink); letter-spacing: -.015em;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--purple); }
.faq-q svg { width: 20px; height: 20px; flex: none; color: var(--purple); transition: transform .28s var(--ease); margin-top: 2px; }
.faq-item[open] .faq-q svg { transform: rotate(45deg); }
.faq-a { padding: 0 24px 22px; color: var(--muted); font-size: .9688rem; max-width: 76ch; }
.faq-a p + p { margin-top: 12px; }

/* ---------- 14. CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--grad-brand); color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 76px) clamp(26px, 5vw, 72px);
  text-align: center;
}
.cta-band .h2 { color: #fff; }
.cta-band .lede { color: rgba(255,255,255,.78); margin-inline: auto; }
.cta-band .btn-group { justify-content: center; margin-top: 32px; }

.cta-full {
  background: var(--grad-brand); color: #fff;
  padding-block: clamp(56px, 8vw, 108px); position: relative; overflow: hidden;
}
.cta-full .h2, .cta-full .display { color: #fff; }
.cta-full .lede { color: rgba(255,255,255,.78); }

/* emergency strip */
.emergency {
  display: flex; align-items: center; gap: clamp(18px, 3vw, 40px);
  flex-wrap: wrap; justify-content: space-between;
  padding: clamp(26px, 3.4vw, 40px) clamp(24px, 4vw, 48px);
  border-radius: var(--r-xl);
  background: var(--grad-cta); color: #fff;
  box-shadow: var(--sh-orange);
}
.emergency .h3 { color: #fff; }
.emergency p { color: rgba(255,255,255,.88); font-size: .9375rem; margin-top: 6px; }

/* ---------- 15. Testimonials ---------- */
.quote {
  display: flex; flex-direction: column; gap: 20px;
  padding: clamp(26px, 3vw, 36px);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1); height: 100%;
}
.quote-stars { display: flex; gap: 3px; color: #F5A623; }
.quote-stars svg { width: 17px; height: 17px; }
.quote blockquote { font-size: 1.0625rem; line-height: 1.6; color: var(--body); letter-spacing: -.012em; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.quote-avatar {
  width: 44px; height: 44px; border-radius: var(--r-full); flex: none;
  display: grid; place-items: center; background: var(--grad-brand);
  color: #fff; font-weight: 600; font-size: 1rem;
}
.quote figcaption strong { display: block; font-size: .9375rem; color: var(--ink); }
.quote figcaption span { display: block; font-size: .8125rem; color: var(--faint); }

/* ---------- 16. Rails (horizontal scroll) ---------- */
.rail {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 14px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; flex: 0 0 clamp(240px, 30vw, 320px); }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.rail::-webkit-scrollbar-thumb:hover { background: var(--purple-light); }

.equip figure { aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; background: var(--bg-soft); }
.equip figure img { width: 100%; height: 100%; object-fit: cover; }
.equip strong { display: block; margin-top: 14px; font-size: .9375rem; color: var(--ink); letter-spacing: -.012em; }
.equip span { display: block; margin-top: 3px; font-size: .8125rem; color: var(--faint); }

/* ---------- 17. Doctor cards ---------- */
.doc {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--purple-wash); aspect-ratio: 4/5;
  box-shadow: var(--sh-1);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
  display: block;
}
.doc:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.doc img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.doc-info {
  position: absolute; inset-inline: 0; bottom: 0; padding: 22px 20px 18px;
  background: linear-gradient(to top, rgba(20,10,30,.92) 12%, rgba(20,10,30,.6) 55%, transparent);
  color: #fff;
}
.doc-info strong { display: block; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.018em; line-height: 1.25; }
.doc-info span { display: block; margin-top: 4px; font-size: .8125rem; color: rgba(255,255,255,.78); line-height: 1.35; }
.doc-tag {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 12px; border-radius: var(--r-full);
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--purple);
}

/* ---------- 18. Gallery / lightbox ---------- */
.masonry { columns: 3; column-gap: 16px; }
@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 560px) { .masonry { columns: 1; } }
.masonry > * { break-inside: avoid; margin-bottom: 16px; }
.shot {
  display: block; width: 100%; border-radius: var(--r); overflow: hidden;
  background: var(--bg-soft); box-shadow: var(--sh-1); cursor: zoom-in;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.shot:hover { transform: scale(1.015); box-shadow: var(--sh-2); }
.shot img { width: 100%; display: block; }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(12,6,18,.94); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .28s var(--ease), visibility .28s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1200px, 94vw); max-height: 88vh; border-radius: var(--r); object-fit: contain; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; width: 48px; height: 48px;
  display: grid; place-items: center; border-radius: var(--r-full);
  background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(8px);
}
.lightbox-close:hover { background: rgba(255,255,255,.26); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: var(--r-full); background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(8px);
}
.lightbox-nav:hover { background: rgba(255,255,255,.26); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
@media (max-width: 620px) { .lightbox-nav { display: none; } }

/* tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.tab {
  padding: 10px 22px; border-radius: var(--r-full);
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: .9375rem; font-weight: 500; color: var(--body);
  transition: all .2s var(--ease);
}
.tab:hover { border-color: var(--purple-light); color: var(--purple); }
.tab.is-active { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: var(--sh-purple); }

/* ---------- 19. Video facade ---------- */
.video {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 16/9; background: #120a1c; cursor: pointer; display: block;
  box-shadow: var(--sh-2);
}
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.video:hover img { transform: scale(1.04); opacity: .82; }
.video-play {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.video-play i {
  width: 76px; height: 76px; border-radius: var(--r-full);
  background: var(--grad-cta); box-shadow: 0 12px 40px rgba(241,97,57,.5);
  display: grid; place-items: center;
  transition: transform .28s var(--ease);
}
.video:hover .video-play i { transform: scale(1.08); }
.video-play svg { width: 26px; height: 26px; color: #fff; margin-left: 4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 20. Logo wall ---------- */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.logos li { background: #fff; display: grid; place-items: center; padding: 24px 18px; min-height: 108px; }
.logos img { max-height: 46px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .25s, opacity .25s; }
.logos li:hover img { filter: none; opacity: 1; }

/* marquee trust strip */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { display: flex; gap: 56px; width: max-content; animation: slide 42s linear infinite; }
.marquee img { height: 40px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .55; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee ul { animation: none; } }

/* ---------- 21. Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-1); }
table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .9375rem; }
thead th {
  background: var(--purple-wash); color: var(--purple);
  font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: 15px 20px; text-align: left; white-space: nowrap;
}
tbody td { padding: 16px 20px; border-top: 1px solid var(--line); color: var(--muted); vertical-align: top; }
tbody td:first-child { color: var(--ink); font-weight: 600; letter-spacing: -.012em; }
tbody tr:hover td { background: var(--bg-soft); }
.yes { color: var(--green-deep); font-weight: 600; }
.no  { color: var(--faint); }

/* ---------- 22. Forms ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .8125rem; font-weight: 600; color: var(--ink); letter-spacing: -.005em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; min-height: 52px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: 1rem; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 108px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(108,61,148,.12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(24px, 3.2vw, 38px); box-shadow: var(--sh-3);
}
.form-note { font-size: .75rem; color: var(--faint); line-height: 1.5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- 23. Footer ---------- */
.footer {
  background: var(--grad-brand); color: rgba(255,255,255,.72);
  padding-block: clamp(52px, 7vw, 88px) 0; position: relative; overflow: hidden;
}
.footer h2 {
  color: #fff; font-size: .8125rem; font-weight: 700; line-height: 1.3;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px;
}
.footer a { transition: color .2s var(--ease); }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: clamp(28px, 4vw, 56px);
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-links { display: grid; gap: 4px; font-size: .9375rem; }
.footer-links a { display: inline-block; padding-block: 4px; min-height: 24px; }
.footer-logo { background: #fff; border-radius: var(--r); padding: 14px 18px; display: inline-block; margin-bottom: 20px; }
.footer-logo img { height: 44px; width: auto; }
.footer-contact { display: grid; gap: 14px; font-size: .9375rem; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; }
.footer-contact a { display: inline-block; padding-block: 3px; min-height: 24px; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; opacity: .75; }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  width: 42px; height: 42px; border-radius: var(--r-full);
  display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: #fff;
  transition: background .22s var(--ease), transform .22s var(--ease);
}
.socials a:hover { background: var(--grad-cta); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: clamp(40px, 5vw, 60px); padding-block: 24px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 14px 26px;
  justify-content: space-between; align-items: center; font-size: .8125rem;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom nav a { display: inline-block; padding-block: 4px; min-height: 24px; }

/* ---------- 24. Sticky CTA bar (mobile) ---------- */
.ctabar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 150;
  display: none; gap: 8px; padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px -8px rgba(22,22,22,.14);
  transform: translateY(110%);
  transition: transform .34s var(--ease-out);
}
.ctabar.is-visible { transform: none; }
.ctabar a {
  flex: 1; min-height: 50px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: var(--r-sm); color: #fff;
  font-size: .75rem; font-weight: 600; letter-spacing: -.005em;
}
.ctabar a svg { width: 19px; height: 19px; }
.ctabar .cta-wa   { background: linear-gradient(160deg, #25D366, var(--green-deep)); }
.ctabar .cta-call { background: var(--grad-brand); }
.ctabar .cta-book { background: var(--grad-cta); }

@media (max-width: 767px) {
  .ctabar { display: flex; }
  :root { --cta-bar-h: 78px; }
}

/* desktop floating pill */
.floatcta {
  position: fixed; right: 20px; bottom: 24px; z-index: 140;
  display: grid; gap: 10px;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.floatcta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.floatcta a {
  width: 54px; height: 54px; border-radius: var(--r-full);
  display: grid; place-items: center; color: #fff;
  box-shadow: var(--sh-2); transition: transform .22s var(--ease);
}
.floatcta a:hover { transform: scale(1.08); }
.floatcta svg { width: 23px; height: 23px; }
.floatcta .f-wa   { background: linear-gradient(160deg, #25D366, var(--green-deep)); }
.floatcta .f-call { background: var(--grad-brand); }
@media (max-width: 767px) { .floatcta { display: none; } }

/* ---------- 25. Reveal animation ---------- */
/* Content is hidden for the reveal animation ONLY when JS is running.
   Without the .js class (script blocked/failed) everything renders normally —
   a hospital site must stay readable even if JavaScript never executes. */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .doc:hover { transform: none; }
}

/* ---------- 26. Prose (blog / legal) ---------- */
.prose { max-width: 74ch; font-size: 1.0625rem; line-height: 1.75; color: var(--body); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-top: 2em; letter-spacing: -.028em; }
.prose h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); margin-top: 1.6em; letter-spacing: -.02em; }
.prose ul, .prose ol { display: grid; gap: 10px; padding-left: 4px; }
.prose ul li { display: flex; gap: 12px; }
.prose ul li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--grad-cta); margin-top: 11px;
}
.prose ol { counter-reset: n; }
.prose ol li { display: flex; gap: 14px; }
.prose ol li::before {
  counter-increment: n; content: counter(n);
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: var(--purple-wash); color: var(--purple);
  display: grid; place-items: center; font-size: .8125rem; font-weight: 700; margin-top: 2px;
}
.prose a { color: var(--purple); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--orange-text); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--orange); padding: 4px 0 4px 22px;
  font-size: 1.15rem; color: var(--ink); letter-spacing: -.015em;
}
.prose img { border-radius: var(--r); box-shadow: var(--sh-1); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.2em; }

/* ---------- 27. Utilities ---------- */
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}
.mt-4{margin-top:32px}.mt-5{margin-top:44px}.mt-6{margin-top:60px}
.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:32px}
@media(max-width:620px){.hide-mobile{display:none!important}}
.only-mobile{display:none}@media(max-width:620px){.only-mobile{display:block}}
.full-bleed { width: 100vw; margin-inline: calc(50% - 50vw); }

/* ---------- 28. Service ticker (scrolling strip, from live site) ---------- */
.ticker {
  background: var(--grad-brand); color: #fff;
  overflow: hidden; padding-block: 15px; position: relative;
}
.ticker-track {
  display: flex; width: max-content;
  animation: ticker-marquee 38s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 26px;
  padding-inline: 13px; white-space: nowrap;
  font-size: .9375rem; font-weight: 600; letter-spacing: .01em;
  color: rgba(255,255,255,.92);
}
.ticker-item::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad-cta); flex: none;
}
a.ticker-item:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
@keyframes ticker-marquee { to { transform: translateX(-50%); } }

/* ---------- 29. YouTube Shorts (vertical video facades) ---------- */
.shorts-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
  max-width: 920px; margin-inline: auto;
}
@media (max-width: 720px) {
  .shorts-grid { grid-template-columns: 1fr; max-width: 400px; }
}
.video.is-short { aspect-ratio: 9/16; border-radius: var(--r-lg); }
.video.is-short .video-play i { width: 62px; height: 62px; }
.video.is-short .video-play svg { width: 22px; height: 22px; }

/* ---------- 30. NABH certificates, full size ---------- */
.cert-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}
@media (max-width: 720px) { .cert-grid { grid-template-columns: 1fr; } }
.cert {
  padding: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-2); text-align: left;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.cert:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.cert img { width: 100%; border-radius: var(--r-sm); }
.cert figcaption { padding: 12px 6px 4px; font-size: .8125rem; color: var(--muted); }

/* ---------- 31. Service cards — photo + animated blob behind ---------- */
.card-svc { overflow: hidden; }
.card-svc::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--img); background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.1);
  transition: opacity .5s var(--ease), transform .9s var(--ease);
}
.card-svc::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.94) 30%, rgba(255,255,255,.82));
  opacity: 0; transition: opacity .5s var(--ease);
}
.card-svc:hover::before { opacity: 1; transform: scale(1.02); }
.card-svc:hover::after { opacity: 1; }
.card-svc > * { position: relative; z-index: 1; }

/* soft morphing blob rotating behind every service icon */
.card-icon { position: relative; }
.card-svc .card-icon::before {
  content: ""; position: absolute; z-index: -1;
  width: 76px; height: 76px; top: -10px; left: -10px;
  border-radius: 38% 62% 55% 45% / 48% 42% 58% 52%;
  background: linear-gradient(135deg, rgba(108,61,148,.16), rgba(241,97,57,.16));
  animation: blob-spin 14s linear infinite;
}
@keyframes blob-spin { to { transform: rotate(360deg); } }

/* pulse ring on card hover */
a.card:hover .card-icon::after, .card.is-hoverable:hover .card-icon::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; background: var(--grad-cta);
  animation: pulse-ring 1.5s var(--ease) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: .4; }
  75%, 100% { transform: scale(1.55); opacity: 0; }
}

/* ---------- 32. Ambient motion ---------- */
.mesh::before { animation: mesh-drift 17s ease-in-out infinite; }
.mesh::after { animation: mesh-drift 21s ease-in-out infinite reverse; }
@keyframes mesh-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: -44px 30px; }
}

/* shine sweep on primary CTAs */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-20deg); pointer-events: none;
  transition: left .65s var(--ease);
}
.btn-primary:hover::after { left: 130%; }

/* gentle float on the WhatsApp pill */
.floatcta .f-wa { animation: wa-bob 3.2s ease-in-out infinite; }
@keyframes wa-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.floatcta .f-wa:hover { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker { overflow-x: auto; }
  .card-svc .card-icon::before,
  .mesh::before, .mesh::after,
  .floatcta .f-wa { animation: none; }
  a.card:hover .card-icon::after, .card.is-hoverable:hover .card-icon::after { animation: none; content: none; }
  .btn-primary::after { transition: none; }
}
