/* PATCH 2.3.3 — Fix opacity/fade issues on Light theme
   Goal: make hero + sections readable (remove accidental opacity/filter on containers)
*/

:root{
  --spin-text: #0f172a;
  --spin-muted: rgba(15,23,42,.72);
}

/* 1) Remove any global opacity/filter on hero/landing wrappers */
.hero, .hero-section, .landing-hero, .masthead, .hero-wrap,
.public-hero, .home-hero, .page-hero{
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* Some templates put opacity on children wrapper */
.hero .container, .hero-section .container, .landing-hero .container, .masthead .container, .hero-wrap .container,
.hero .row, .hero-section .row, .landing-hero .row{
  opacity: 1 !important;
  filter: none !important;
}

/* 2) Force readable text colors (in case text-white/text-light remains) */
.hero, .hero-section, .landing-hero, .masthead, .hero-wrap,
.hero *, .hero-section *, .landing-hero *, .masthead *, .hero-wrap *{
  opacity: 1 !important;
  color: var(--spin-text) !important;
}

.hero p, .hero-section p, .landing-hero p, .masthead p,
.hero .lead, .hero-section .lead, .landing-hero .lead, .masthead .lead{
  color: var(--spin-muted) !important;
}

/* 3) Kill dimming overlays */
.hero::before, .hero-section::before, .landing-hero::before, .masthead::before, .hero-wrap::before,
.hero::after,  .hero-section::after,  .landing-hero::after,  .masthead::after,  .hero-wrap::after{
  content: none !important;
  display: none !important;
}

/* 4) Make sure cards are not washed out */
.card, .glass, .panel, .feature-card, .stat-card, .box{
  opacity: 1 !important;
  filter: none !important;
  color: var(--spin-text) !important;
}

/* 5) If there is a global 'dim' class used, neutralize it */
.dim, .faded, .muted-overlay, .bg-fade{
  opacity: 1 !important;
  filter: none !important;
}

/* 6) Ensure buttons stay visible */
.btn, button, .btn-primary, .btn-outline-light, .btn-outline-secondary{
  opacity: 1 !important;
}
