/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Hide floating widgets when mobile menu is open */
body.mobile-menu-open [class*="fixed bottom-6"] {
  display: none !important;
}

/* Homepage redesign: lightweight visual system */
.home-hero-bg {
  background:
    radial-gradient(1200px 500px at 75% -20%, rgba(37, 99, 235, 0.15), transparent 60%),
    radial-gradient(1000px 400px at 10% -15%, rgba(220, 38, 38, 0.14), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.home-grid-pattern {
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0));
}

.home-glow {
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.35) 0%, rgba(59, 130, 246, 0) 70%);
  filter: blur(16px);
}

.home-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.home-section-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #2563eb;
}

.home-pill {
  padding: 0.375rem 0.625rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  font-weight: 600;
}

.home-reveal {
  opacity: 0;
  transform: translateY(18px);
}

@media (prefers-reduced-motion: no-preference) {
  .home-card {
    transition: transform 160ms ease, box-shadow 160ms ease;
  }

  .home-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
  }

  .home-reveal {
    transition:
      opacity 460ms ease,
      transform 460ms ease;
    transition-delay: var(--home-reveal-delay, 0ms);
  }

  .home-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

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