/* Continuum Medicine overrides on top of the Avenir Webflow export.
   Keep this file additive. Preserve template classes and structure whenever possible. */

:root {
  --site-reveal-distance: 24px;
  --site-reveal-duration: 700ms;
  --site-reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   Webflow IX2 support for grafted sections

   Sections copied from one Webflow-exported page to another may
   keep inline opacity and data-w-id attributes, but their original
   IX2 page-id animations may not fire. Recreate broken behavior here
   with pure CSS and small vanilla JS rather than forking webflow.js.
   ============================================================ */

[data-reveal],
.site-reveal {
  opacity: 0;
  transform: translate3d(0, var(--site-reveal-distance), 0);
  transition:
    opacity var(--site-reveal-duration) var(--site-reveal-ease),
    transform var(--site-reveal-duration) var(--site-reveal-ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible,
.site-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes site-marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.site-marquee-track {
  display: flex;
  width: max-content;
  animation: site-marquee-scroll var(--marquee-duration, 32s) linear infinite;
}

.site-marquee-track:hover {
  animation-play-state: paused;
}

.site-accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms ease;
}

.site-accordion-panel > * {
  min-height: 0;
  overflow: hidden;
}

.site-accordion-item.is-open .site-accordion-panel {
  grid-template-rows: 1fr;
}

/* Add grafted sections with inline opacity here:
   .section.example-section [style*="opacity:0"] {
     opacity: 1 !important;
   }
*/

/* Cookie banner - removed for Continuum (not needed; was blocking the UI). */
.master_cookies {
  display: none !important;
}

/* Nav starts transparent in Avenir and only solidifies on scroll - unreadable
   over Continuum's dark wood hero. Keep a frosted light pill always visible. */
.master_navigation .nav-bg_desktop.is-base {
  opacity: 1;
  background-color: rgba(247, 246, 245, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px 0 rgba(11, 46, 60, 0.08);
}

@media screen and (max-width: 991px) {
  .master_navigation .nav-bg_mobile {
    opacity: 1;
    background-color: rgba(247, 246, 245, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-general-default, 0.75rem);
  }
}

/* Continuum Medicine nav wordmark - fits inside Avenir's centered .brand_navbar
   box (max-width: 5.8rem) without touching the template's own token file. */
.continuum-brand-mark {
  font-family: var(--font-lora-editorial), "Lora", serif;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-align: center;
  color: currentColor;
}

/* Widen the brand container so the larger top-left wordmark fits (base 5.8rem). */
.brand_navbar {
  max-width: 11rem;
}

/* Approach section: keep the white page background (the dark base made the
   section's text unreadable). Stacking effect is unaffected. */
.section_expertise {
  background-color: #fff;
}

/* Keep the top nav visible at all times on mobile. It's position:fixed, but a
   scroll interaction hides it on scroll-down; pin it so it never gets hidden. */
@media screen and (max-width: 991px) {
  .master_navigation {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Preloader: white Continuum wordmark; skipped after first page in a session
   (and when prefers-reduced-motion is on) via html.preloader-seen. */
html.preloader-seen .preloader {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.preloader .wrap_preloader-logo {
  max-width: min(16rem, 78vw);
}

.preloader-wordmark {
  font-family: var(--font-lora-editorial), "Lora", serif;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
  color: #fff;
}

/* Center the wordmark: base .logo-preloader is a flex row defaulting to
   justify-content: flex-start, which left-shifts the wordmark inside the
   16rem wrap. Center it horizontally and let text-align do the rest. */
.preloader .logo-preloader {
  justify-content: center;
  align-items: center;
}

.preloader .preloader-wordmark {
  width: 100%;
}

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

  [data-reveal],
  .site-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
