/* Fix styles for home page */

/* Smooth scrolling for anchor navigation (progressive enhancement) */
html {
  scroll-behavior: smooth;
  /* Reserve space for scrollbar so layout width does not jump when overflow toggles */
  scrollbar-gutter: stable;
}

body {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html,
  body {
    scroll-behavior: auto;
  }
}

/* Hero copy + CTAs: shared soft slide/blur entrance, staggered via --hhr-delay */
@keyframes homeHeroRevealIn {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.bp_fn_hero .home-hero-reveal {
  animation: homeHeroRevealIn 1.05s cubic-bezier(0.22, 1, 0.36, 1) var(--hhr-delay, 0s) both;
}

.bp_fn_hero span.home-hero-reveal {
  display: inline-block;
}

.bp_fn_hero .home-hero-reveal--d0 {
  --hhr-delay: 0s;
}
.bp_fn_hero .home-hero-reveal--d1 {
  --hhr-delay: 0.12s;
}
.bp_fn_hero .home-hero-reveal--d2 {
  --hhr-delay: 0.24s;
}
.bp_fn_hero .home-hero-reveal--d3 {
  --hhr-delay: 0.36s;
}
.bp_fn_hero .home-hero-reveal--d4 {
  --hhr-delay: 0.48s;
}
.bp_fn_hero .home-hero-reveal--d5 {
  --hhr-delay: 0.6s;
}
.bp_fn_hero .home-hero-reveal--d6 {
  --hhr-delay: 0.72s;
}
.bp_fn_hero .home-hero-reveal--d7 {
  --hhr-delay: 0.84s;
}

@media (prefers-reduced-motion: reduce) {
  .bp_fn_hero .home-hero-reveal {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Scroll-triggered slide-up (Focus Areas + Pricing cards) */
.reveal-slide-up {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-slide-up--visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-slide-up,
  .reveal-slide-up--visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}

/* Focus Areas + Pricing + Data services: horizontal translate3d driven by scroll (useScrollLinkedHorizontalList) */
.home-focus-areas .bp_fn_services,
.home-pricing-section .bp_fn_services,
.data-services-section .bp_fn_services {
  overflow-x: hidden;
}

.home-focus-areas.home-focus-areas--scroll-shift .bp_fn_services > ul > li,
.home-pricing-section.home-pricing-section--scroll-shift .bp_fn_services > ul > li,
.data-services-section.data-services-section--scroll-shift .bp_fn_services > ul > li {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .home-focus-areas .bp_fn_services > ul > li,
  .home-pricing-section .bp_fn_services > ul > li,
  .data-services-section .bp_fn_services > ul > li {
    transform: none !important;
    opacity: 1 !important;
    will-change: auto !important;
  }
}

/* In-page nav targets: ids live on headings (not section wrappers) */
#offering,
#pricing-plans,
#section-advertise,
#section-contact,
#clients-marquee,
#data-services-intro,
#data-services-tech-stack {
  scroll-margin-top: 96px;
}

.bp_fn_footer .footer_top--home-contact {
  padding: 0 0 48px;
}

.bp_fn_footer .footer_top--home-contact .ft_in--home-contact {
  max-width: 1100px;
}

.bp_fn_footer .footer-contact-embed .info_list .email:hover {
  color: #ccc;
  border-bottom-color: #aaa;
}

.home-deferred-placeholder {
  min-height: 220px;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(130, 108, 253, 0.24);
  background: linear-gradient(180deg, rgba(12, 14, 22, 0.78), rgba(20, 21, 34, 0.58));
}

.home-deferred-placeholder--advertise {
  min-height: 300px;
}

.home-deferred-placeholder__line,
.home-deferred-placeholder__grid {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.home-deferred-placeholder__line {
  height: 16px;
  width: 72%;
  margin-bottom: 12px;
}

.home-deferred-placeholder__line--short {
  width: 44%;
  margin-bottom: 24px;
}

.home-deferred-placeholder__grid {
  height: 140px;
}

.home-deferred-placeholder__line::after,
.home-deferred-placeholder__grid::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.22) 48%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: bp-skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes bp-skeleton-shimmer {
  100% {
    left: 100%;
  }
}

/* Home only: advertise block wrapper (deep link still targets #section-advertise on the h2) */
.home-advertise-section {
  background: #fff;
}

.advertise-promotion-title {
  margin: 0 0 16px;
  padding: 0;
  font-size: 22px;
  font-weight: 500;
  color: var(--themeClrDrk);
}

.advertise-title-cta {
  margin: 1.25rem 0 0;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

/* Hero section fixes - static heroes use image; home uses video (HomeHeroBackgroundVideo) */
.bp_fn_hero .bg_image {
  background-image: url("/img/hero/hero-purple.jpg");
}

.bp_fn_hero .hero-bg-video-host,
.bp_fn_hero .hero-bg-theme-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bp_fn_hero .hero-bg-video-host {
  z-index: 1;
  overflow: hidden;
}

/* Static full-bleed video layer (no JS parallax - avoids hover/scroll jitter) */
.bp_fn_hero .hero-bg-video-parallax {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bp_fn_hero .hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Brand #473687 - very light wash over video, under dim overlay */
.bp_fn_hero .hero-bg-theme-tint {
  z-index: 2;
  background-color: rgba(71, 54, 135, 0.08);
}

/* .bp_fn_hero .hero_content and .bp_fn_hero .content - see /public/css/style.css */

/* Hero: same bp_fn_title + line pattern as Focus Areas / Pricing; light text on image */
.bp_fn_hero .bp_fn_title .fn_title {
  color: #fff;
}

.bp_fn_hero .bp_fn_title .fn_title--sub {
  color: rgba(255, 255, 255, 0.95);
  margin: 15px 0;
}

.bp_fn_hero .bp_fn_title .line span,
.bp_fn_hero .bp_fn_title .line:after,
.bp_fn_hero .bp_fn_title .line span:before,
.bp_fn_hero .bp_fn_title .line span:after {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

.bp_fn_hero .bp_fn_title .line:hover span,
.bp_fn_hero .bp_fn_title .line:hover:after,
.bp_fn_hero .bp_fn_title .line:hover span:before,
.bp_fn_hero .bp_fn_title .line:hover span:after {
  background-color: rgba(255, 255, 255, 1) !important;
}

/* Button styles */
.buttonsmain {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 2rem;
}

.button-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* Single invite label below both hero CTAs */
.hero-shared-invite-label {
  margin-left: 0 !important;
  margin-top: 0.15rem;
  vertical-align: middle !important;
  top: 0 !important;
  position: relative !important;
}

/* Plan cards: keep default text colors on hover (global rules force white on purple) */
.home-pricing-section .bp_fn_services .item:hover .item_content {
  color: var(--themeClrDrk);
}

.home-pricing-section .bp_fn_services .item:hover .item_content h3,
.home-pricing-section .bp_fn_services .item:hover .item_content p {
  color: var(--themeClrDrk);
}

/* Hero button grid only; global button look is in /styles/button-consistency.css */

/* Dim overlay over hero video (home + data-services share BpFnHeroWithVideo) */
.bp_fn_hero .bg_overlay .bg_color {
  background-color: rgba(0, 0, 0, 0.6);
}

/* Scroll down button */
.bp_fn_down {
  position: absolute;
  bottom: 24px;
  z-index: 15;
  text-decoration: none;
  color: #eee;
  font-size: 14px;
  text-transform: uppercase;
  font-family: var(--hff);
  letter-spacing: 1px;
  padding-top: 60px;
}

.bp_fn_down:hover {
  color: var(--mc);
}

.bp_fn_down .icon {
  position: absolute;
  display: block;
  top: -16px;
  left: 50%;
  width: 18px;
  height: 40px;
  color: #aaa;
  margin-left: -9px;
  animation: bottomArrow 1.5s infinite;
  transition: all 0.3s ease;
}

.bp_fn_down .icon:after {
  content: "";
  position: absolute;
  width: 2px;
  height: 40px;
  background-color: #aaa;
  left: 50%;
  margin-left: -1px;
  transition: all 0.3s ease;
}

.bp_fn_down:hover .icon {
  color: var(--mc);
}

.bp_fn_down:hover .icon:after {
  background-color: var(--mc);
}

@keyframes bottomArrow {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(0px, 20px);
    opacity: 0;
  }
}
