/* ============================================================
   G7 Implantes — Design tokens & shared styles
   Built on top of Tailwind CDN. Palette: clinic-cyan.
   ============================================================ */

:root {
  /* G7 Implantes navy blue palette — original brand colors */
  --clinic-50:  #EEF1FA;
  --clinic-100: #DAE0F2;
  --clinic-200: #B6C2E8;
  --clinic-300: #8FA1E5;
  --clinic-400: #476BF1; /* royal blue accent — original site (used in headline highlights) */
  --clinic-500: #213680; /* PRIMARY brand color — original site (buttons, brand surfaces) */
  --clinic-600: #1A2C6B; /* hover dark */
  --clinic-700: #162556;
  --clinic-800: #111E45;
  --clinic-900: #0A1330;
  --clinic-950: #060B22;

  --zinc-50:  #FAFAFA;
  --zinc-100: #F4F4F5;
  --zinc-200: #E4E4E7;
  --zinc-500: #71717A;
  --zinc-700: #3F3F46;
  --zinc-900: #18181B;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color: var(--zinc-900);
  background: var(--zinc-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-display { font-family: 'DM Sans', 'Inter', sans-serif; }
.font-mono    { font-family: 'JetBrains Mono', ui-monospace, monospace; }

::selection { background: var(--clinic-100); color: var(--clinic-800); }

/* ---------- Reveal-on-scroll ---------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-100 { transition-delay: .1s; }
.delay-200 { transition-delay: .2s; }
.delay-300 { transition-delay: .3s; }
.delay-500 { transition-delay: .5s; }

/* ---------- Pulse dot (live signal) ---------- */
@keyframes alba-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(71, 107, 241, 0.55); opacity: 1; }
  50%      { box-shadow: 0 0 0 8px rgba(71, 107, 241, 0); opacity: .85; }
}
.alba-pulse { animation: alba-pulse 2.2s ease-in-out infinite; }

/* ---------- Navy glow on CTA (kept class name .cyan-glow for backward compat) ---------- */
@keyframes cyan-glow {
  0%, 100% {
    box-shadow:
      0 15px 33px -12px rgba(33, 54, 128, 0.55),
      inset 0 4px 6px rgba(218, 224, 242, .85),
      inset 0 -5px 6px rgba(17, 30, 69, 0.6);
  }
  50% {
    box-shadow:
      0 18px 36px -10px rgba(33, 54, 128, 0.75),
      inset 0 4px 6px rgba(218, 224, 242, .9),
      inset 0 -5px 6px rgba(17, 30, 69, 0.7);
  }
}
.cyan-glow { animation: cyan-glow 3s ease-in-out infinite; }

/* ---------- Dot grid background ---------- */
.dot-grid {
  background-image: radial-gradient(rgba(10, 19, 48, 0.10) 1px, transparent 1px);
  background-size: 14px 14px;
}

/* ---------- Fine grid background (from Orkelya design system) ---------- */
.bg-grid-fine {
  background-image:
    linear-gradient(rgba(33, 54, 128, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 54, 128, .08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.bg-grid-fine-dark {
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---------- Gradient blobs (re-usable) ---------- */
.blob-navy-soft {
  background: radial-gradient(rgba(71, 107, 241, 0.22) 0%, rgba(143, 161, 229, 0.10) 40%, transparent 75%);
}
.blob-navy-deep {
  background: radial-gradient(rgba(33, 54, 128, 0.32) 0%, rgba(33, 54, 128, 0.10) 45%, transparent 75%);
}
.blob-light-tint {
  background: radial-gradient(rgba(218, 224, 242, 0.55) 0%, rgba(182, 194, 232, 0.18) 40%, transparent 75%);
}

/* ---------- Insurance notice strip (top of every page) ---------- */
.notice-strip {
  width: 100%;
  background: linear-gradient(90deg, #FFFBEB 0%, #FEF3C7 50%, #FFFBEB 100%);
  border-bottom: 1px solid #FDE68A;
  color: #92400E;
}
.notice-strip .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: .55rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  flex-wrap: wrap;
  font-size: .78rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.35;
}
.notice-strip iconify-icon {
  color: #B45309;
  flex-shrink: 0;
}
.notice-strip strong { color: #78350F; font-weight: 700; }

/* ---------- Border-gradient helper (for glass pill) ---------- */
[style*="--border-gradient"]::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: var(--border-radius-before, inherit);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  background: var(--border-gradient);
  pointer-events: none;
}

/* ---------- Section index pill ---------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.section-eyebrow .num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: .15em;
  font-size: .7rem;
  color: var(--clinic-700);
  background: rgba(218, 224, 242, .6);
  padding: 2px 8px;
  border-radius: 4px;
}
.section-eyebrow .line {
  height: 1px; width: 2rem;
  background: rgba(143, 161, 229, .6);
}
.section-eyebrow .label {
  font-size: .7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--clinic-800);
}

/* ---------- Header (Frosted Slate Gray — gray-leaning variant of E) ---------- */
/* RGB(69, 74, 85) = #454A55 — neutral dark slate; subtle cool undertone, mostly gray */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(69, 74, 85, .82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 1px 0 rgba(10, 19, 48, 0);
  transition:
    background-color .4s cubic-bezier(.2, .8, .3, 1),
    border-color .4s cubic-bezier(.2, .8, .3, 1),
    box-shadow .4s cubic-bezier(.2, .8, .3, 1),
    backdrop-filter .4s cubic-bezier(.2, .8, .3, 1);
}
.site-header.is-scrolled {
  background: rgba(69, 74, 85, .55);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-bottom-color: transparent;
  box-shadow: none;
}

/* Fading frosted slate trail — starts at the SAME opacity as the header
   for a seamless transition (no visible step / dark line at the edge). */
.site-header::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  height: 48px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(69, 74, 85, .28) 0%,
    rgba(69, 74, 85, .12) 45%,
    rgba(69, 74, 85, 0) 100%
  );
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
          mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  opacity: 0;
  transition: opacity .4s cubic-bezier(.2, .8, .3, 1);
}
.site-header.is-scrolled::after {
  opacity: 1;
}
.site-header .inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 4.5rem;
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  transition: height .4s cubic-bezier(.2, .8, .3, 1);
}
.site-header.is-scrolled .inner {
  height: 3.75rem;
}
.site-header a.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  color: #fff;
  text-decoration: none;
}
.site-header a.brand img {
  height: 38px;
  width: auto;
  display: block;
  transition: height .4s cubic-bezier(.2, .8, .3, 1);
  /* invert dark logo → white so it reads on the navy bar */
  filter: brightness(0) invert(1);
}
.site-header.is-scrolled a.brand img {
  height: 30px;
}

/* Nav links: light text on navy; override any inline color (active states) */
.site-header .nav-primary > a,
.site-header .nav-item-dropdown > button {
  color: rgba(255, 255, 255, .76) !important;
  transition: color .15s ease;
}
.site-header .nav-primary > a:hover,
.site-header .nav-item-dropdown > button:hover {
  color: #fff !important;
}

/* "Agendar Avaliação" — inverted: white bg with navy text to pop on dark header */
.site-header .btn-solid {
  background: #fff;
  color: var(--clinic-500);
  transition:
    height .4s cubic-bezier(.2, .8, .3, 1),
    padding .4s cubic-bezier(.2, .8, .3, 1),
    background .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}
.site-header .btn-solid:hover {
  background: var(--clinic-50);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -8px rgba(10, 19, 48, .35);
}
.site-header.is-scrolled .btn-solid {
  height: 2.4rem;
  padding: 0 1.2rem;
}

/* Mobile menu toggle */
.site-header .mobile-toggle {
  color: rgba(255, 255, 255, .85);
}
.site-header .mobile-toggle:hover {
  color: #fff;
}

.nav-primary {
  display: none;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 1024px) { .nav-primary { display: flex; } }
.nav-primary a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--zinc-500);
  text-decoration: none;
  transition: color .15s ease;
}
.nav-primary a:hover { color: var(--clinic-600); }

/* dropdown */
.nav-item-dropdown {
  position: relative;
  padding: .35rem 0; /* vertical hit area on the trigger itself */
}
/* Invisible hover bridge extending DOWN from the trigger to the panel.
   Pseudo-elements count toward parent's hover area, keeping the panel open. */
.nav-item-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -1rem; right: -1rem;
  height: 1rem;
  /* invisible but participates in hover testing */
}
.nav-item-dropdown > button {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .875rem; font-weight: 500;
  color: var(--zinc-500);
  background: none; border: 0; cursor: pointer;
  transition: color .15s ease;
}
.nav-item-dropdown > button:hover { color: var(--clinic-500); }

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + .75rem);
  left: 50%; transform: translateX(-50%) translateY(8px);
  opacity: 0; pointer-events: none;
  background: #fff;
  border: 1px solid var(--zinc-200);
  border-radius: 1rem;
  box-shadow: 0 30px 60px -25px rgba(10, 19, 48, .25);
  padding: .5rem;
  min-width: 240px;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 60;
}
.nav-item-dropdown:hover .nav-dropdown-panel,
.nav-item-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-panel a {
  display: block;
  font-size: .85rem;
  color: var(--zinc-700);
  padding: .55rem .75rem;
  border-radius: .5rem;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav-dropdown-panel a:hover {
  background: var(--clinic-50);
  color: var(--clinic-700);
}

/* mobile menu trigger */
.mobile-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent; border: 0; color: var(--zinc-700);
  cursor: pointer;
}
@media (min-width: 1024px) { .mobile-toggle { display: none; } }

#mobile-menu {
  display: none;
  position: fixed; top: 4.5rem; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 49;
  overflow-y: auto;
  padding: 1.5rem;
  transition: top .4s cubic-bezier(.2, .8, .3, 1);
}
.site-header.is-scrolled ~ #mobile-menu {
  top: 3.75rem;
}
#mobile-menu.open { display: block; }
#mobile-menu nav { display: flex; flex-direction: column; gap: .25rem; }
#mobile-menu a {
  display: block;
  padding: .85rem 1rem;
  border-radius: .75rem;
  font-size: .95rem; font-weight: 500;
  color: var(--zinc-700);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
#mobile-menu a:hover { background: var(--clinic-50); color: var(--clinic-700); }
#mobile-menu .group-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--clinic-700);
  padding: 1.25rem 1rem .35rem;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .9rem 1.65rem;
  border-radius: 9999px;
  font-size: .9rem; font-weight: 500;
  color: #fff;
  background: linear-gradient(to right, #2A4ED4, #213680);
  border: 0; cursor: pointer; text-decoration: none;
  position: relative; overflow: hidden;
  transition: transform .3s ease;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(255, 255, 255, .3);
  transform: translateY(100%);
  transition: transform .3s ease;
}
.btn-primary:hover::after { transform: translateY(0); }
.btn-primary > * { position: relative; z-index: 1; }

.btn-solid {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  height: 2.75rem; padding: 0 1.5rem;
  border-radius: 9999px;
  font-size: .875rem; font-weight: 500;
  color: #fff;
  background: var(--clinic-500);
  text-decoration: none;
  transition: background .15s ease;
}
.btn-solid:hover { background: var(--clinic-600); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  height: 2.75rem; padding: 0 1.5rem;
  border-radius: 9999px;
  font-size: .875rem; font-weight: 500;
  color: var(--zinc-900);
  background: #fff;
  border: 1px solid var(--zinc-200);
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.btn-outline:hover { background: var(--zinc-50); border-color: var(--clinic-300); }

.btn-ghost-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .875rem; font-weight: 500;
  color: var(--clinic-700);
  text-decoration: none;
  transition: color .15s ease;
}
.btn-ghost-link:hover { color: var(--clinic-900); }
.btn-ghost-link iconify-icon { transition: transform .2s ease; }
.btn-ghost-link:hover iconify-icon { transform: translateX(2px); }

/* ---------- Service card ---------- */
.service-card {
  display: flex; flex-direction: column;
  padding: 2rem;
  border-radius: 1rem;
  background: var(--zinc-50);
  border: 1px solid var(--zinc-200);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.service-card:hover {
  background: #fff;
  border-color: var(--clinic-300);
  transform: translateY(-2px);
}
.service-card .icon-wrap {
  width: 3rem; height: 3rem;
  border-radius: .85rem;
  background: #fff;
  border: 1px solid var(--zinc-200);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--clinic-600);
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  transition: background .25s ease, border-color .25s ease;
}
.service-card:hover .icon-wrap {
  background: var(--clinic-50);
  border-color: var(--clinic-200);
}
.service-card h3 {
  font-size: 1.125rem; font-weight: 600;
  letter-spacing: -.01em;
  color: var(--zinc-900);
  margin-bottom: .5rem;
}
.service-card p {
  font-size: .875rem;
  color: var(--zinc-500);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* ---------- Stat row ---------- */
.stat-row {
  display: flex; align-items: center; gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(228, 228, 231, .6);
}
.stat-row .stat { display: flex; flex-direction: column; }
.stat-row .stat .value {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 1.75rem;
  letter-spacing: -.02em;
  color: var(--zinc-900);
  line-height: 1;
}
.stat-row .stat .value.accent { color: var(--clinic-500); }
.stat-row .stat .label {
  font-size: .8rem;
  font-weight: 500;
  color: var(--zinc-500);
  margin-top: .35rem;
}
.stat-row .divider {
  width: 1px; height: 2.5rem;
  background: var(--zinc-200);
}

/* ---------- Form inputs ---------- */
.form-field {
  display: flex; flex-direction: column;
  gap: .35rem;
}
.form-field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--clinic-700);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: .8rem 1rem;
  font-size: .9rem;
  font-family: 'Inter', sans-serif;
  color: var(--zinc-900);
  background: #fff;
  border: 1px solid var(--zinc-200);
  border-radius: .75rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--clinic-500);
  box-shadow: 0 0 0 3px rgba(33, 54, 128, .18);
}
.form-field textarea { min-height: 130px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--zinc-900);
  color: #fff;
  padding: 5rem 0 2rem;
  margin-top: 5rem;
}
.site-footer .container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.site-footer h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--clinic-300);
  margin-bottom: 1.25rem;
}
.site-footer p, .site-footer li, .site-footer a {
  font-size: .875rem;
  color: rgba(255, 255, 255, .7);
  line-height: 1.7;
}
.site-footer a { text-decoration: none; transition: color .15s ease; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .55rem; }
.site-footer .socials {
  display: flex; gap: .75rem; margin-top: 1.25rem;
}
.site-footer .socials a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  color: #fff;
  transition: background .15s ease, border-color .15s ease;
}
.site-footer .socials a:hover {
  background: var(--clinic-500);
  border-color: var(--clinic-500);
}
.site-footer .legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
  text-align: center;
}

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  z-index: 40;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  color: #fff;
  background: #25D366;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .45);
  text-decoration: none;
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.05); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding-top: 4rem; padding-bottom: 5rem;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(71, 107, 241, .18) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(218, 224, 242, .55) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(33, 54, 128, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 54, 128, .07) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: .7;
}
/* Ensure all page-hero content sits above grid/blob backgrounds */
.page-hero > .container,
.page-hero > * {
  position: relative;
  z-index: 1;
}
.page-hero .container {
  position: relative;
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
}
.page-hero h1 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: 1.05;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  color: var(--zinc-900);
}
.page-hero p.lead {
  margin-top: 1.25rem;
  max-width: 38rem;
  font-size: 1.05rem;
  color: var(--zinc-500);
  line-height: 1.7;
}

/* ---------- Treatment page client-side navigation transitions ---------- */
#tx-hero,
#tx-content,
#tx-related {
  transition: opacity .22s cubic-bezier(.4, 0, .2, 1),
              transform .35s cubic-bezier(.4, 0, .2, 1);
  will-change: opacity, transform;
}
body.tx-transitioning #tx-hero,
body.tx-transitioning #tx-content,
body.tx-transitioning #tx-related {
  opacity: 0;
  transform: translateY(6px);
}
/* Progress bar at the top during navigation */
body.tx-transitioning::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clinic-400), var(--clinic-500));
  z-index: 9999;
  transform-origin: left;
  animation: tx-progress 1.2s cubic-bezier(.2, .8, .3, 1) forwards;
}
@keyframes tx-progress {
  0%   { transform: scaleX(0); opacity: 1; }
  50%  { transform: scaleX(.55); opacity: 1; }
  100% { transform: scaleX(.85); opacity: 1; }
}

/* ---------- Treatment sidebar nav ---------- */
.tx-nav {
  background: #fff;
  border: 1px solid var(--zinc-200);
  border-radius: 1.25rem;
  padding: .6rem;
  box-shadow: 0 12px 28px -20px rgba(10, 19, 48, .18);
  overflow: hidden;
}
.tx-nav-group + .tx-nav-group {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--zinc-100);
}
.tx-nav-header {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .65rem;
  color: var(--clinic-500);
  padding: .35rem .85rem .5rem;
}
.tx-nav-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem;
  padding: .65rem .85rem;
  border-radius: .65rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--zinc-700);
  text-decoration: none;
  background: transparent;
  transition: background .15s ease, color .15s ease;
}
.tx-nav-item iconify-icon {
  color: var(--zinc-400);
  flex-shrink: 0;
  transition: transform .15s ease, color .15s ease;
}
.tx-nav-item:hover {
  background: var(--clinic-50);
  color: var(--clinic-500);
}
.tx-nav-item:hover iconify-icon {
  color: var(--clinic-500);
  transform: translateX(2px);
}
.tx-nav-item.is-active {
  background: var(--clinic-500);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px -8px rgba(33, 54, 128, .55);
}
.tx-nav-item.is-active iconify-icon {
  color: rgba(255, 255, 255, .85);
}
.tx-nav-item.is-active:hover {
  background: var(--clinic-600);
}

/* Mobile: keep visible but make it compact and scroll-friendly */
@media (max-width: 1023px) {
  .tx-nav {
    max-height: 360px;
    overflow-y: auto;
  }
}

/* ---------- Prose for article-like treatment pages ---------- */
.prose-clinic { color: var(--zinc-700); }
.prose-clinic h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  letter-spacing: -.02em;
  font-size: 1.75rem;
  color: var(--zinc-900);
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
}
.prose-clinic h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--zinc-900);
  margin: 2rem 0 .75rem;
}
.prose-clinic p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--zinc-700);
  margin-bottom: 1rem;
}
.prose-clinic ul {
  margin: 1rem 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--zinc-700);
}
.prose-clinic ul li {
  margin-bottom: .55rem;
  line-height: 1.65;
  position: relative;
  padding-left: 1.1rem;
  list-style: none;
}
.prose-clinic ul li::before {
  content: "";
  position: absolute; left: 0; top: .55rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clinic-500);
}
.prose-clinic strong { color: var(--zinc-900); font-weight: 600; }

/* ---------- Hero slider ---------- */
.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 86vh;
  display: flex;
  align-items: center;
}
.hero-slider .slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* Each slide has an EXPLICIT position via data-pos. This avoids any global
   direction state from accidentally re-animating parked slides.
   translate3d forces a dedicated GPU layer so adjacent slides composite at
   exact pixel boundaries — no sub-pixel "seam" between them during transition. */
.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  transform: translate3d(100%, 0, 0); /* default: parked off-screen right */
  transition: transform 1.15s cubic-bezier(.55, .05, .15, 1);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hero-slider .slide[data-pos="active"] {
  transform: translate3d(0, 0, 0);
  z-index: 3;
  pointer-events: auto;
}
.hero-slider .slide[data-pos="left"] {
  transform: translate3d(-100%, 0, 0);
  z-index: 2;
}
.hero-slider .slide[data-pos="right"] {
  transform: translate3d(100%, 0, 0);
  z-index: 2;
}

.hero-slider .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Ken Burns removed — was causing visible scale-snap when a slide left "active" state */
}
/* Overlay is intentionally HORIZONTALLY symmetric so that when two slides
   are moving past each other during a transition, no visible "seam"
   appears between them (the gradient looks identical at every X position). */
.hero-slider .slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 19, 48, .48) 0%, rgba(10, 19, 48, .72) 100%),
    radial-gradient(ellipse at 50% 55%, rgba(71, 107, 241, .14) 0%, transparent 70%);
}
.hero-slider .slide-content {
  position: absolute;
  inset: 0;
  padding: 4rem 1.5rem 5rem;
  display: flex;
  align-items: center;
}
.hero-slider .slide-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.hero-slider .slide .text-block {
  max-width: 36rem;
  color: #fff;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease .35s, transform 1s ease .35s;
}
.hero-slider .slide[data-pos="active"] .text-block {
  opacity: 1;
  transform: translateY(0);
}
.hero-slider .slide .eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  margin-bottom: 1.5rem;
}
.hero-slider .slide .eyebrow .num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: .15em;
  font-size: .7rem;
  color: var(--clinic-100);
  background: rgba(218, 224, 242, .15);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(218, 224, 242, .2);
}
.hero-slider .slide .eyebrow .line {
  height: 1px; width: 2rem;
  background: rgba(218, 224, 242, .35);
}
.hero-slider .slide .eyebrow .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--clinic-100);
}
.hero-slider .slide h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: 1.05;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero-slider .slide h2 .accent {
  color: var(--clinic-300);
  font-weight: 400;
}
.hero-slider .slide p.lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 2.25rem;
  max-width: 32rem;
}
.hero-slider .slide .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Slider controls */
.hero-slider .slider-controls {
  position: absolute;
  bottom: 2.25rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
}
.hero-slider .slider-controls > * { pointer-events: auto; }
.hero-slider .dots {
  display: flex;
  gap: .65rem;
  align-items: center;
}
.hero-slider .dots button {
  width: 22px;
  height: 4px;
  background: rgba(255, 255, 255, .32);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition:
    width .6s cubic-bezier(.5, .05, .15, 1),
    height .45s cubic-bezier(.4, 0, .2, 1),
    background .35s ease,
    box-shadow .35s ease,
    transform .35s cubic-bezier(.2, .8, .3, 1);
}
.hero-slider .dots button:hover {
  background: rgba(255, 255, 255, .55);
  transform: scaleY(1.25);
}
.hero-slider .dots button.is-active {
  width: 88px;
  height: 6px;
  background: rgba(255, 255, 255, .28);
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .35);
  transform: none;
}
.hero-slider .dots button.is-active::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #fff 0%, var(--clinic-200) 100%);
  animation: slider-progress 6.5s linear forwards;
  box-shadow: 0 0 12px rgba(255, 255, 255, .55);
}
@keyframes slider-progress {
  from { width: 0; }
  to   { width: 100%; }
}
.hero-slider .arrows {
  display: flex;
  gap: .5rem;
}
.hero-slider .arrows button {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.hero-slider .arrows button:hover {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .4);
}

/* Mini-info card on right of slider (desktop only) */
.hero-slider .side-info {
  position: absolute;
  right: 1.5rem;
  bottom: 6rem;
  z-index: 8;
  max-width: 280px;
  display: none;
}
@media (min-width: 1024px) { .hero-slider .side-info { display: block; } }
.hero-slider .side-info .info-card {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 1.25rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 24px 50px -20px rgba(10, 19, 48, .5);
}
.hero-slider .side-info .info-card + .info-card { margin-top: .75rem; }
.hero-slider .side-info .info-row {
  display: flex; align-items: center; gap: .75rem;
}
.hero-slider .side-info .ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--clinic-50);
  color: var(--clinic-700);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-slider .side-info .meta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--clinic-700);
  line-height: 1;
  margin-bottom: .25rem;
}
.hero-slider .side-info .meta-value {
  font-size: .9rem;
  font-weight: 600;
  color: var(--zinc-900);
  line-height: 1.2;
}

/* ---------- 360° Tour section ---------- */
.tour-360-section {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
  background: var(--zinc-50);
}
.tour-360-section .grid-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(71, 107, 241, .12) 0%, transparent 60%) 0% 0%/600px 480px no-repeat,
    radial-gradient(rgba(218, 224, 242, .35) 0%, transparent 60%) 100% 100%/560px 440px no-repeat;
  pointer-events: none;
}
.tour-360-section .container {
  position: relative;
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
  z-index: 1;
}
.tour-frame {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  background: var(--clinic-950);
  box-shadow: 0 32px 60px -28px rgba(10, 19, 48, .5);
  border: 1px solid rgba(218, 224, 242, .25);
}
.tour-frame iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
}
@media (max-width: 768px) {
  .tour-frame iframe { height: 420px; }
}
.tour-frame .tour-toolbar {
  position: absolute; top: 1rem; left: 1rem;
  z-index: 2;
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: .4rem .85rem;
  border: 1px solid rgba(255, 255, 255, .7);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--clinic-800);
}
.tour-frame .tour-toolbar .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--clinic-500);
}
.tour-frame .tour-hint {
  position: absolute; bottom: 1rem; right: 1rem;
  z-index: 2;
  background: rgba(10, 19, 48, .82);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: .75rem;
  padding: .55rem .9rem;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid rgba(255, 255, 255, .15);
}

/* Room chips */
.tour-rooms {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.25rem;
}
.tour-room {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--zinc-200);
  font-size: .8rem;
  font-weight: 500;
  color: var(--zinc-700);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
  cursor: default;
}
.tour-room iconify-icon { color: var(--clinic-600); }
.tour-room:hover {
  border-color: var(--clinic-300);
  background: var(--clinic-50);
  color: var(--clinic-800);
}

/* ============================================================
   PREMIUM ANIMATIONS LAYER
   ============================================================ */

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* No-JS fallback — if scripts fail or are disabled, content must still be visible.
   This rule activates when JS hasn't added a marker class to <html>.
   We use the inverse: <html class="js"> is added by JS (below), so without JS
   the elements stay revealed by default. */
html:not(.js) .reveal-on-scroll,
html:not(.js) .reveal-up,
html:not(.js) .reveal-left,
html:not(.js) .reveal-right,
html:not(.js) .reveal-scale,
html:not(.js) .reveal-stagger > *,
html:not(.js) .word-reveal .word {
  opacity: 1 !important;
  transform: none !important;
}
html:not(.js) .hero-slider .slide {
  /* Without JS, only the first slide should be visible — others stay hidden. */
}
html:not(.js) .page-loader {
  display: none !important;
}

/* ---------- Reading progress bar (top of page) ---------- */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--clinic-400), var(--clinic-500));
  z-index: 100;
  pointer-events: none;
  transition: width .08s ease-out;
  box-shadow: 0 0 8px rgba(71, 107, 241, .4);
}

/* ---------- Page loader (initial) ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--zinc-50);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: opacity .5s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .5s;
}
.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
}
.page-loader .loader-mark {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--clinic-100);
  border-top-color: var(--clinic-500);
  animation: loader-spin .8s linear infinite;
}
@keyframes loader-spin { to { transform: rotate(360deg); } }

/* ---------- Cursor dot follower (desktop only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background: var(--clinic-500);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: difference;
    transition: transform .15s cubic-bezier(.4, 0, .2, 1), opacity .25s ease, width .25s ease, height .25s ease;
    transform: translate(-50%, -50%);
    will-change: transform;
    opacity: 0;
  }
  .cursor-dot.is-visible { opacity: 1; }
  .cursor-dot.is-hovering {
    width: 36px; height: 36px;
    background: rgba(71, 107, 241, .25);
    mix-blend-mode: normal;
  }

  .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 32px; height: 32px;
    border: 1.5px solid rgba(33, 54, 128, .35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    transition: opacity .3s ease, width .3s ease, height .3s ease;
    will-change: transform;
    opacity: 0;
  }
  .cursor-ring.is-visible { opacity: 1; }
  .cursor-ring.is-hovering {
    width: 60px; height: 60px;
    border-color: rgba(71, 107, 241, .4);
  }
}

/* ---------- Magnetic buttons ---------- */
.magnetic-area {
  display: inline-block;
  transition: transform .35s cubic-bezier(.2, .8, .3, 1);
  will-change: transform;
}
.magnetic-area > * {
  transition: transform .35s cubic-bezier(.2, .8, .3, 1);
  pointer-events: auto;
}

/* ---------- 3D tilt cards ---------- */
.tilt-card {
  transition: transform .5s cubic-bezier(.2, .8, .3, 1), box-shadow .5s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt-card .tilt-inner {
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}
.tilt-card:hover .tilt-inner > * {
  transform: translateZ(20px);
}

/* ---------- Reveal variants with directional slide ---------- */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition: opacity 1s cubic-bezier(.2, .8, .2, 1), transform 1s cubic-bezier(.2, .8, .2, 1);
  will-change: opacity, transform;
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(.94); }
.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 560ms; }

/* ---------- Word-by-word reveal for titles ---------- */
.word-reveal { display: inline-flex; flex-wrap: wrap; gap: .25em; }
.word-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40%);
  transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1);
}
.word-reveal.is-visible .word { opacity: 1; transform: translateY(0); }
.word-reveal.is-visible .word:nth-child(1)  { transition-delay: 0ms; }
.word-reveal.is-visible .word:nth-child(2)  { transition-delay: 70ms; }
.word-reveal.is-visible .word:nth-child(3)  { transition-delay: 140ms; }
.word-reveal.is-visible .word:nth-child(4)  { transition-delay: 210ms; }
.word-reveal.is-visible .word:nth-child(5)  { transition-delay: 280ms; }
.word-reveal.is-visible .word:nth-child(6)  { transition-delay: 350ms; }
.word-reveal.is-visible .word:nth-child(7)  { transition-delay: 420ms; }
.word-reveal.is-visible .word:nth-child(8)  { transition-delay: 490ms; }
.word-reveal.is-visible .word:nth-child(9)  { transition-delay: 560ms; }
.word-reveal.is-visible .word:nth-child(10) { transition-delay: 630ms; }

/* ---------- Parallax image (subtle) ---------- */
[data-parallax] {
  will-change: transform;
}

/* ---------- Number counter ---------- */
[data-count] {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ---------- Underline draw on links ---------- */
.link-underline-draw {
  position: relative;
  display: inline-block;
}
.link-underline-draw::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.link-underline-draw:hover::after {
  transform-origin: left;
  transform: scaleX(1);
}

/* ---------- Icon hover responses ---------- */
.icon-hover-spin iconify-icon,
.btn-solid iconify-icon,
.btn-primary iconify-icon {
  transition: transform .3s cubic-bezier(.2, .8, .3, 1);
}
.btn-solid:hover iconify-icon,
.btn-primary:hover iconify-icon {
  transform: translateX(3px);
}

/* Service card icon scales/rotates slightly on hover */
.service-card .icon-wrap {
  transition: transform .45s cubic-bezier(.2, .8, .3, 1), background .25s ease, border-color .25s ease;
}
.service-card:hover .icon-wrap {
  transform: rotate(-4deg) scale(1.06);
}
.service-card:hover .icon-wrap iconify-icon {
  animation: icon-tick .6s cubic-bezier(.4, 0, .2, 1);
}
@keyframes icon-tick {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ---------- Light-leak on hover (for cards/links) ---------- */
.light-leak {
  position: relative;
  overflow: hidden;
}
.light-leak::before {
  content: "";
  position: absolute;
  top: -50%; left: -10%;
  width: 30%; height: 200%;
  background: linear-gradient(115deg,
    rgba(218, 224, 242, 0) 0%,
    rgba(218, 224, 242, .55) 50%,
    rgba(218, 224, 242, 0) 100%);
  transform: translateX(-150%) skewX(-20deg);
  transition: transform .8s cubic-bezier(.2, .8, .3, 1);
  pointer-events: none;
}
.light-leak:hover::before { transform: translateX(400%) skewX(-20deg); }

/* ---------- Mini floating CTA ---------- */
.mini-cta-float {
  position: fixed;
  right: 1.25rem; bottom: 5.5rem;
  z-index: 39;
  padding: .8rem 1.25rem .8rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--clinic-500), var(--clinic-600));
  color: #fff;
  font-size: .82rem; font-weight: 600;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
  box-shadow: 0 16px 30px -10px rgba(33, 54, 128, .5);
  opacity: 0;
  transform: translateY(20px) scale(.85);
  pointer-events: none;
  transition: opacity .4s cubic-bezier(.2, .8, .3, 1),
              transform .4s cubic-bezier(.2, .8, .3, 1);
}
.mini-cta-float.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.mini-cta-float:hover { transform: translateY(-2px) scale(1.03); }
.mini-cta-float iconify-icon { transition: transform .25s ease; }
.mini-cta-float:hover iconify-icon { transform: translateX(2px); }

/* ---------- Marquee ---------- */
.marquee {
  display: flex;
  overflow: hidden;
  width: 100%;
  gap: 3rem;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: 3rem;
  align-items: center;
  min-width: 100%;
  animation: marquee-scroll 50s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
.marquee-item {
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: .85rem;
  color: var(--zinc-700);
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-item iconify-icon { color: var(--clinic-400); flex-shrink: 0; }
.marquee-item strong { color: var(--zinc-900); font-weight: 600; }

/* ---------- Live "atendendo agora" pulsing badge ---------- */
.live-now {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .3rem .65rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, .12);
  border: 1px solid rgba(16, 185, 129, .25);
  font-size: .7rem;
  font-weight: 600;
  color: #047857;
}
.live-now .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, .6);
  animation: live-pulse 1.8s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); }
  50%      { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
}
.live-now.is-closed {
  background: rgba(244, 63, 94, .08);
  border-color: rgba(244, 63, 94, .25);
  color: #be123c;
}
.live-now.is-closed .dot {
  background: #f43f5e;
  animation: none;
}

/* ---------- Confetti (form success) ---------- */
.confetti-burst {
  position: fixed;
  pointer-events: none;
  z-index: 9996;
}
.confetti-piece {
  position: absolute;
  width: 8px; height: 8px;
  opacity: 0;
}
.confetti-piece.fly {
  animation: confetti-fly 1.4s cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes confetti-fly {
  0%   { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--cx, 0), var(--cy, 0)) rotate(var(--cr, 360deg)); }
}

/* ---------- Animated section divider (wavy) ---------- */
.section-divider {
  position: relative;
  height: 60px;
  overflow: hidden;
  pointer-events: none;
}
.section-divider svg {
  width: 200%;
  height: 100%;
  position: absolute;
  left: 0;
  animation: divider-glide 24s linear infinite;
}
@keyframes divider-glide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Utility tweaks ---------- */
.max-w-7xl-c { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.section-pad { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 1024px) {
  .section-pad { padding-top: 6rem; padding-bottom: 6rem; }
}
