/* ============================================================
   Evil Ballet Scout — Stage Black
   Polished dark mode proposal for Ballet Scout.
   ============================================================ */

:root {
  --bg:           #08090A;
  --surface-1:    #121315;
  --surface-2:    #1A1C1F;
  --surface-3:    #0C0D10;
  --border:       #23262A;
  --border-soft:  rgba(205, 168, 92, 0.18);
  --ink:          #ECE7DA;
  --ink-muted:    #8F9296;
  --gold:         #CDA85C;
  --gold-bright:  #E5C079;
  --gold-deep:    #8C6E2E;
  --green-tint:   #3A6B52;
}

/* ---------- Base ---------- */

html, body {
  background: var(--bg) !important;
  color: var(--ink) !important;
  overflow-x: hidden !important;
}

/* Kill the old radial gradient blobs — no orbs, no glow. */
body::before { content: none !important; display: none !important; }

a { color: var(--gold); }
a:hover { color: var(--gold-bright) !important; text-decoration: none; }

::selection { background: var(--gold); color: #14110A; }

p, li, .lead,
.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
  color: var(--ink) !important;
}

.lead, .ft-school-text, .font-14 {
  color: var(--ink-muted) !important;
}

/* ---------- Navbar ---------- */

.fixed-top {
  background: var(--surface-3) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 1px 0 var(--border-soft);
  backdrop-filter: none;
}

.navbar-default .navbar-nav .nav-link,
.nav-link,
.dropdown-item {
  color: var(--ink) !important;
  font-weight: 500;
}

.navbar-default .navbar-nav .nav-link:hover,
.dropdown-item:hover {
  color: var(--gold-bright) !important;
  background-color: transparent !important;
}

.dropdown-menu {
  background: var(--surface-1) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  padding: 4px !important;
}

.dropdown-item {
  border-radius: 4px;
  padding: 8px 12px !important;
}

.navbar-toggler .icon-bar {
  background-color: var(--gold) !important;
}

/* The fat tan strip(s) used as a gold accent rule. Catch the inline
   pt-1 footer-style elements that use #C39f66 as a divider — but NOT
   the Subscribe button (which uses `background:` not background-color). */
.fixed-top .footer.pt-1.text-body,
.work-sans + .pt-1.text-body,
div.pt-1.text-body[style*="C39f66"]:not(a) {
  background-color: var(--gold) !important;
  background-image: none !important;
  padding: 0 !important;
  height: 1px !important;
  min-height: 1px !important;
  margin-bottom: 0 !important;
}

/* Subscribe button in the navbar */
a.btn.btn-sm.btn-login[href*="subscription_overview"] {
  background: var(--gold) !important;
  color: #14110A !important;
  border: 1px solid var(--gold-deep) !important;
  font-weight: 600;
  border-radius: 4px !important;
}

a.btn.btn-sm.btn-login[href*="subscription_overview"] img {
  filter: brightness(0) saturate(100%);
}

/* Sign Up / Log In nav buttons */
.btn-login.btn-primary {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid var(--border) !important;
  border-radius: 4px !important;
  font-weight: 500;
}

.btn-login.btn-primary:hover {
  border-color: var(--gold) !important;
  color: var(--gold-bright) !important;
}

/* ---------- Hero ---------- */

.container.mt-6.mb-6 {
  margin-top: 3rem !important;
  margin-bottom: 4rem !important;
  padding: 1rem;
}

.container.mt-6.mb-6 img[alt*="ballerinas"] {
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  filter: saturate(0.9) contrast(1.05) brightness(0.85);
}

.gold-font,
.search_links_number {
  color: var(--gold-bright) !important;
}

/* "EVIL" eyebrow */
.h3.gold-font {
  font-size: 0.85rem !important;
  letter-spacing: 0.25em !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  display: inline-block;
  padding-bottom: 0.25rem;
}

/* ---------- Search boxes ---------- */

#search-boxes { gap: 0.6rem; display: flex; flex-direction: column; }

.search-box {
  background: var(--surface-1) !important;
  border: 1px solid var(--border) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  border-radius: 6px !important;
  padding: 0.9rem 1.1rem !important;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.search-box:hover {
  border-color: var(--gold) !important;
  background: var(--surface-2) !important;
  transform: none !important;
}

.search-box-text,
.search-box-text span {
  color: var(--ink) !important;
}

.search-box-text b.search_links_number {
  color: var(--gold-bright) !important;
  font-weight: 700;
}

.search-box-arrow {
  color: var(--gold) !important;
  font-weight: 700;
  font-size: 1.25rem;
}

/* ---------- Section bands ---------- */

/* The dark green inline-styled bands (#00320f) — match page bg so they
   feel like one continuous dark surface; bracket with thin gold hairlines
   so the band still reads as an intentional section. */
[style*="background-color:#00320f"],
[style*="background-color:#00320F"],
[style*="background-color: #00320F"],
[style*="background-color: #00320f"] {
  background: var(--bg) !important;
  background-image: none !important;
  border-top: 1px solid rgba(205, 168, 92, 0.22) !important;
  border-bottom: 1px solid rgba(205, 168, 92, 0.22) !important;
  color: var(--ink) !important;
}

[style*="background-color:#00320f"] h3,
[style*="background-color:#00320F"] h3,
[style*="background-color:#00320f"] p,
[style*="background-color:#00320F"] p {
  color: var(--ink) !important;
}

[style*="background-color:#00320f"] .lead,
[style*="background-color:#00320F"] .lead {
  color: var(--ink-muted) !important;
}

/* The light grey bands (#F3F3F3) — Adaptive Dance + tools jumbotron wrap.
   Use a slightly raised surface so the embedded jumbotron card still has
   visual separation from the band; the dark-green bands stay flat. */
[style*="background-color:#F3F3F3"],
[style*="background-color: #F3F3F3"],
[style*="background: #F3F3F3"] {
  background: var(--bg) !important;
  border-top: 1px solid rgba(205, 168, 92, 0.22) !important;
  border-bottom: 1px solid rgba(205, 168, 92, 0.22) !important;
}

[style*="background-color:#F3F3F3"] h6,
[style*="background-color:#F3F3F3"] p,
[style*="background-color: #F3F3F3"] h6,
[style*="background-color: #F3F3F3"] p {
  color: var(--ink) !important;
}

[style*="background-color:#F3F3F3"] .lead,
[style*="background-color: #F3F3F3"] .lead {
  color: var(--ink-muted) !important;
}

/* ---------- Cards / surfaces ---------- */

[style*="background-color:#FFFFFF"],
[style*="background-color: #FFFFFF"],
.bg-white,
.card,
.modal-content,
.jumbotron,
.list-group-item {
  background-color: var(--surface-1) !important;
  color: var(--ink) !important;
  border-color: var(--border) !important;
}

.jumbotron {
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45) !important;
}

.rounded-bottom,
.rounded-top,
.border {
  border-color: var(--border) !important;
}

/* Featured org cards — tone down brand-white logo panels so they read
   like aged playbill paper, not stark printer-white screaming on a
   black field. */
#featured_schools .mb-4 > a img {
  background: var(--surface-2) !important;
  padding: 1rem;
  border-radius: 8px 8px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  filter: brightness(0.72) saturate(0.85) contrast(1.02);
  transition: filter 180ms ease;
}

#featured_schools .mb-4 > a:hover img {
  filter: brightness(0.95) saturate(0.95);
}

/* lightSlider pager dots — kill the bright Bootstrap-blue active dot,
   use gold to match the rest of the palette. */
.lSPager.lSpg > li a,
.lSSlideOuter .lSPager.lSpg > li a {
  background-color: var(--ink-muted) !important;
  opacity: 0.45 !important;
}

.lSPager.lSpg > li:hover a,
.lSSlideOuter .lSPager.lSpg > li:hover a {
  background-color: var(--gold) !important;
  opacity: 0.85 !important;
}

.lSPager.lSpg > li.active a,
.lSSlideOuter .lSPager.lSpg > li.active a,
.lSPager.lSpg > li.active:hover a,
.lSSlideOuter .lSPager.lSpg > li.active:hover a {
  background-color: var(--gold) !important;
  opacity: 1 !important;
}

#featured_schools .p-4.bg-white.border.rounded-bottom {
  background: var(--surface-1) !important;
  border: 1px solid var(--border) !important;
  border-top: none !important;
  border-radius: 0 0 8px 8px !important;
}

#featured_schools h3 {
  color: var(--ink) !important;
}

#featured_schools .ft-school-text {
  color: var(--ink-muted) !important;
  font-size: 0.875rem;
  line-height: 1.55;
}

#featured_schools .btn-primary-link {
  color: var(--gold) !important;
  font-weight: 600;
}

#featured_schools .btn-primary-link:hover {
  color: var(--gold-bright) !important;
}

/* Slider arrows */
.slider-previous circle,
.slider-next circle {
  fill: var(--surface-2) !important;
  stroke: var(--border);
}

.slider-previous svg path,
.slider-next svg path {
  fill: var(--gold) !important;
}

.slider-previous:hover circle,
.slider-next:hover circle {
  fill: var(--gold) !important;
}

.slider-previous:hover svg path,
.slider-next:hover svg path {
  fill: #14110A !important;
}

/* ---------- Community engage tiles ---------- */

.engage-col a {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 5.5rem;
  padding: 1.1rem 1.4rem;
  box-shadow: none;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.engage-col a:hover {
  border-color: var(--gold);
  background: var(--surface-2);
}

.engage-col img,
.footer img[src*="bootstrap-icons"] {
  filter: invert(0.92) sepia(0.15) saturate(1.1) hue-rotate(15deg);
}

.engage-col h4 {
  color: var(--ink) !important;
  font-weight: 600;
}

/* ---------- Buttons ---------- */

.btn-primary,
.btn-custom {
  background-color: var(--gold) !important;
  border: 1px solid var(--gold-deep) !important;
  color: #14110A !important;
  font-weight: 600;
  border-radius: 6px !important;
  padding: 0.65rem 1.75rem !important;
  box-shadow: none !important;
  transition: background-color 120ms ease, border-color 120ms ease;
  letter-spacing: 0.01em;
}

.btn-primary:hover,
.btn-custom:hover {
  background-color: var(--gold-bright) !important;
  border-color: var(--gold) !important;
  color: #14110A !important;
}

.btn-primary-link,
.text-primary {
  color: var(--gold) !important;
}

/* ---------- Tools/Resources jumbotron ---------- */

.jumbotron .h2,
.jumbotron h4,
#tools-resources h2,
#tools-resources strong {
  color: var(--ink) !important;
}

#tools-resources .fas,
.fa-check-circle {
  color: var(--gold) !important;
}

/* ---------- Bottom CTA block (Find Success With) ---------- */

#logo_img_bottom_banner {
  max-width: 280px;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--surface-3) !important;
  border-top: 1px solid var(--border) !important;
  color: var(--ink-muted) !important;
}

.footer h4.green-footer-text {
  color: var(--gold) !important;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.footer .list-group-item {
  background: transparent !important;
  border: none !important;
  padding: 0.25rem 0 !important;
}

.footer .list-group-item-link,
.footer .green-footer-text,
.footer a.text-reset {
  color: var(--ink-muted) !important;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 120ms ease;
}

.footer .list-group-item-link:hover,
.footer a.text-reset:hover {
  color: var(--gold-bright) !important;
}

.footer .list-inline-item,
.footer li {
  color: var(--ink-muted) !important;
}

/* ---------- Logo ---------- */
/* Filters dropped — each evil-logo SVG carries its own depth/texture. */

/* ---------- Modals / popups ---------- */

.modal-backdrop {
  background-color: #000 !important;
}

.modal-content {
  background: var(--surface-1) !important;
  border: 1px solid var(--border) !important;
}

.modal-header,
.modal-footer {
  border-color: var(--border) !important;
}

/* ---------- Inputs ---------- */

input,
select,
textarea,
.form-control,
.form-select {
  background: var(--surface-1) !important;
  color: var(--ink) !important;
  border: 1px solid var(--border) !important;
}

input:focus,
.form-control:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px rgba(205, 168, 92, 0.15) !important;
}

/* ---------- Mobile ---------- */

@media (max-width: 991.98px) {
  .container.mt-6.mb-6 {
    margin-top: 1.5rem !important;
    margin-bottom: 2rem !important;
    padding: 1rem 0.5rem;
  }

  .container.mt-6.mb-6 img[alt*="ballerinas"] {
    margin-bottom: 1.5rem;
  }

  .h3.gold-font {
    font-size: 0.75rem !important;
  }

  .search-box {
    padding: 0.85rem 1rem !important;
    min-height: 0;
  }

  .search-box-text {
    font-size: 0.875rem;
    margin: 0;
  }

  .search-box-text span {
    font-size: 0.75rem !important;
  }

  .jumbotron {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
  }

  .jumbotron ul {
    margin-left: 1.5rem !important;
    margin-right: 1.5rem !important;
  }

  #tools-resources h2 {
    font-size: 1rem !important;
  }

  .engage-col {
    margin-bottom: 0.75rem;
  }
}

/* ---------- Small mobile (<= 575px) ---------- */

@media (max-width: 575.98px) {
  /* Global guard: nothing can blow past viewport. */
  body, .container, .container-lg, .container-fluid, .row, [class*="col-"] {
    max-width: 100vw !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
  }
  .container, .container-lg { padding-left: 16px !important; padding-right: 16px !important; }
  [class*="col-"] { padding-left: 8px !important; padding-right: 8px !important; }

  /* All headings: wrap, don't run off. */
  h1, h2, h3, h4, h5, h6,
  .h1, .h2, .h3, .h4, .h5, .h6 {
    overflow-wrap: break-word !important;
    word-break: normal !important;
    white-space: normal !important;
    max-width: 100% !important;
  }

  /* Hero title — the inline calc() blows out at small widths */
  .h4.h1.h1-s.lh-sm,
  h4.h1.h1-s.lh-sm {
    font-size: 2rem !important;
    line-height: 1.1 !important;
  }

  h4.h1.h1-s.lh-sm + h3,
  .col-lg-5 h3:not(.h3) {
    font-size: 1.1rem !important;
  }

  .h1.h1-s.fw-600,
  h5.h1.h1-s.fw-600 {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
  }

  .h2.h2-s,
  h3.h2.h2-s,
  h6.h2.h2-s {
    font-size: 1.3rem !important;
    line-height: 1.25 !important;
  }

  #tools-resources h2,
  .jumbotron h2 {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
  }

  #tools-resources .h2.h2-s.fw-700.display-4 {
    font-size: 1.5rem !important;
  }

  .jumbotron {
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
    padding: 1rem !important;
  }

  .jumbotron ul {
    margin-left: 0.75rem !important;
    margin-right: 0.75rem !important;
    padding-left: 0 !important;
  }

  .container.mt-6.mb-6 {
    padding: 0.5rem 0.25rem !important;
  }

  .search-box-text {
    font-size: 0.8rem;
  }

  .search-box {
    padding: 0.75rem 0.9rem !important;
  }

  .footer {
    text-align: left;
  }

  .footer h4.green-footer-text {
    margin-top: 0.5rem;
  }

  #logo_img_bottom_banner {
    max-width: 200px;
  }

  .pt-7 { padding-top: 2.5rem !important; }
  .pb-1 { padding-bottom: 1rem !important; }
}
