/* BLOOMERS public site — organic shapes, overflow effects, motion helpers */

html { scroll-behavior: smooth; }

body { background-color: #FBF7EE; }

/* Soft blurred blob accents used for background atmosphere (flat colour washes, not gradients) */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* Wavy divider echoing the logo's leaping arcs */
.wave-divider {
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
}

/* Marquee strip for partner logos */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Section reveal: visible by default. JS (site.js) applies the hidden
   "pre-animation" state itself, only once GSAP/ScrollTrigger have actually
   loaded — so content is never stuck invisible if a script fails or a
   network/ad-blocker blocks the animation CDN. */
.reveal { opacity: 1; }
.reveal.js-armed { opacity: 0; transform: translateY(36px); }

/* Hard time-boxed guarantee on top of the above: 2.5s after page load,
   force every animated element back to fully visible no matter what a
   stalled or misbehaving script left it at. */
.force-visible { opacity: 1 !important; transform: none !important; }

/* Hero photo slideshow — plain opacity crossfade, no layout shift */
.hero-slide { opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; }

/* Number counters */
.stat-value { font-variant-numeric: tabular-nums; }

/* Animated hero fallback (shown when no hero image/video is uploaded yet).
   Pure CSS so it always animates, with no dependency on JS/CDN availability. */
.hero-shape { animation: hero-pulse 6s ease-in-out infinite; }
.hero-shape:nth-child(2) { animation-duration: 7.5s; animation-delay: .4s; }
.hero-shape:nth-child(3) { animation-duration: 5.5s; animation-delay: .8s; }
@keyframes hero-pulse {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.06) translateY(-8px); }
}
#hero-orbit { animation: hero-orbit-spin 24s linear infinite; }
@keyframes hero-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
#hero-orbit > div { animation: hero-orbit-spin 24s linear infinite reverse; }

@media (prefers-reduced-motion: reduce) {
  .hero-shape, #hero-orbit, #hero-orbit > div { animation: none; }
}

/* Brand logo — topbar & footer: same calm, professional treatment used in
   the portal sidebar. No idle animation — just a confident pop on hover. */
.brand-logo {
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), filter .35s ease;
  transform-origin: center;
}
.brand-logo:hover {
  transform: scale(1.08) rotate(-3deg);
  filter: drop-shadow(0 6px 16px rgba(120,194,87,.3));
}

/* Soft glow halo behind the footer logo (dark background) */
.footer-logo-glow { position: relative; }
.footer-logo-glow::before {
  content: "";
  position: absolute;
  inset: -18px;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 72%);
  filter: blur(4px);
  z-index: 0;
  pointer-events: none;
}
.footer-logo-glow img { position: relative; z-index: 1; }

/* Nice focus ring for accessibility without heavy borders */
a:focus-visible, button:focus-visible {
  outline: 2px solid #78C257;
  outline-offset: 3px;
}

/* Hide scrollbar on horizontal chip rows */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

::selection { background: #78C257; color: #fff; }

/* Rich text (CKEditor-authored) content — Tailwind's reset strips default
   list/link styling, so restore sane defaults for editor-authored HTML. */
.richtext p { margin-bottom: .85em; }
.richtext p:last-child { margin-bottom: 0; }
.richtext ul, .richtext ol { margin: .85em 0; padding-left: 1.25em; }
.richtext ul { list-style: disc; }
.richtext ol { list-style: decimal; }
.richtext li { margin-bottom: .35em; }
.richtext strong, .richtext b { font-weight: 700; }
.richtext em, .richtext i { font-style: italic; }
.richtext a { color: #78C257; text-decoration: underline; text-underline-offset: 2px; }
.richtext a:hover { color: #2D3748; }
.richtext blockquote {
  border-left: 3px solid #78C257;
  padding-left: 1em;
  margin: .85em 0;
  font-style: italic;
  color: inherit;
  opacity: .85;
}
.richtext-dark a { color: #FFC107; }
.richtext-dark a:hover { color: #fff; }
.richtext-dark blockquote { border-left-color: #FFC107; }

/* Editorial "lead paragraph" treatment for article-style pages (e.g. a
   focus area's page) — makes the opening paragraph read like the deck of
   a magazine feature, distinct from the body copy that follows it. */
.richtext-lead p:first-of-type {
  font-size: 1.2em;
  color: #2D3748;
  font-weight: 500;
}
