/* =========================================================
   Wasp MMA Gym, design tokens & custom styles
   Built on Bootstrap 5 primitives (grid, modal, carousel,
   accordion, navbar-collapse). No Start-Bootstrap theme CSS.
   ========================================================= */

:root {
  --ink: #0b0b0c;
  --panel: #161616;
  --panel-2: #1e1e1e;
  --gold: #ffc800;
  --gold-dim: #caa100;
  --off-white: #e4e4e1;
  --muted: #8a8a86;
  --red: #c4141c;
  --line: rgba(228, 228, 225, 0.12);

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --container-max: 1180px;
  --radius: 2px;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--off-white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: #fff; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #fff;
}

.container-wasp {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.page-section { padding: 6rem 0; }
@media (max-width: 767.98px) { .page-section { padding: 4rem 0; } }

.bg-panel { background: var(--panel); }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.btn-gold:hover {
  background: #fff;
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 200, 0, 0.18);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.8rem 1.9rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--ink); }

/* ---------- section head (signature: fight-card bout header) ---------- */
.section-head { margin-bottom: 3rem; }
.section-head .eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.section-head .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.section-head .rule-gold {
  width: 64px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto;
}
.section-head.text-start .rule-gold { margin: 0; }
.section-head .lede {
  color: var(--muted);
  max-width: 640px;
  margin: 1rem auto 0;
  font-size: 1.05rem;
}
.section-head.text-start .lede { margin-inline: 0; }

/* ---------- navbar ---------- */
#mainNav {
  background: rgba(11, 11, 12, 0.75);
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
  padding: 1.1rem 0;
  border-bottom: 1px solid transparent;
}
#mainNav.navbar-shrink {
  background: rgba(11, 11, 12, 0.96);
  padding: 0.6rem 0;
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
#mainNav .container-wasp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* logo: left-aligned, compact, normal flow on mobile */
#mainNav .navbar-brand {
  margin: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  background: var(--off-white);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: padding 0.25s ease;
}
#mainNav.navbar-shrink .navbar-brand { padding: 0.25rem 0.65rem; }
#mainNav .navbar-brand img { height: 56px; width: auto; display: block; transition: height 0.25s ease; }
#mainNav.navbar-shrink .navbar-brand img { height: 44px; }

#mainNav .nav-links-wrap { display: flex; flex-direction: column; width: 100%; }
#mainNav .nav-links-left,
#mainNav .nav-links-right { margin: 0; }
#mainNav .nav-logo-spacer { display: none; }

#mainNav .nav-link {
  color: var(--off-white);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  padding: 0.6rem 1rem !important;
  transition: color 0.2s ease;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active { color: var(--gold); }
#mainNav .nav-link.btn-merch {
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  margin-left: 0.4rem;
}
.navbar-toggler { border: none; box-shadow: none !important; padding: 0.4rem; }

/* animated hamburger -> X */
.hamburger-box { position: relative; display: inline-block; width: 26px; height: 18px; }
.hamburger-line {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 8px; }
.hamburger-line:nth-child(3) { top: 16px; }
.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(1) { top: 8px; transform: rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* mobile menu: slide-down panel below the navbar */
@media (max-width: 991.98px) {
  #mainNav .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    border-top: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
    max-height: calc(100svh - 100%);
    overflow-y: auto;
  }
  #mainNav .nav-links-wrap { padding: 0.5rem 1.25rem 1.5rem; }
  #mainNav .nav-links-wrap .nav-item { border-bottom: 1px solid var(--line); }
  #mainNav .nav-links-wrap .nav-item:last-child { border-bottom: none; }
  #mainNav .nav-link { padding: 0.9rem 0 !important; }
  #mainNav .nav-link.btn-merch { display: block; width: 100%; margin: 1rem 0 0; text-align: center; }
}

/* desktop: logo centered + enlarged, nav links flank it either side */
@media (min-width: 992px) {
  #mainNav .navbar-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0.4rem 1.1rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  }
  #mainNav.navbar-shrink .navbar-brand { padding: 0.3rem 0.9rem; }
  #mainNav .navbar-brand img { height: 55px; }
  #mainNav.navbar-shrink .navbar-brand img { height: 50px; }

  #mainNav .nav-links-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  #mainNav .nav-links-left,
  #mainNav .nav-links-right {
    display: flex;
    align-items: center;
    flex: 1;
  }
  #mainNav .nav-links-left { justify-content: flex-end; }
  #mainNav .nav-links-right { justify-content: flex-start; }
  #mainNav .nav-logo-spacer { display: block; flex: 0 0 190px; }
}

/* ---------- hero ---------- */
.masthead {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: url("../images/herobanner_9-16_mobile.png") center/cover no-repeat;
}
@media (min-width: 768px) {
  .masthead {
    background: url("../images/herobanner_16-9_desktop.png") center/cover no-repeat;
  }
}
.masthead::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,0) 0, rgba(0,0,0,0) 3px, rgba(0,0,0,0.06) 4px);
  pointer-events: none;
}
.masthead .eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  display: inline-block;
}
.masthead h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 6px 30px rgba(0,0,0,0.5);
  margin-bottom: 1.75rem;
}
.masthead h1 .accent { color: var(--gold); }
.masthead .lede { color: var(--off-white); font-size: 1.15rem; max-width: 520px; margin-bottom: 2.25rem; }

/* ---------- taped-corner photo motif (signature decorative element) ---------- */
.tape-frame { position: relative; display: inline-block; width: 100%; }
.tape-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tape-frame::before,
.tape-frame::after {
  content: "";
  position: absolute;
  width: 46px; height: 16px;
  background: rgba(228, 228, 225, 0.85);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  z-index: 2;
}
.tape-frame::before { top: -8px; left: 14px; transform: rotate(-8deg); }
.tape-frame::after { bottom: -8px; right: 14px; transform: rotate(-8deg); }

/* ---------- welcome/intro ---------- */
.intro-copy { font-size: 1.15rem; color: var(--off-white); max-width: 780px; margin: 0 auto; }

/* ---------- about carousel (progress-tab style) ---------- */
.carousel-stage { position: relative; margin-bottom: 1.5rem; }
.carousel-slide {
  display: none;
  animation: carousel-fade 0.4s ease;
}
.carousel-slide.is-active { display: block; }
@keyframes carousel-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.carousel-stage .tape-frame { width: 100%; }
.carousel-stage .tape-frame img { aspect-ratio: 16 / 14; }

.slide-caption {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: none;
  padding: 1.5rem 1.75rem;
}

@media (min-width: 768px) {
  .carousel-slide.is-active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .carousel-stage .tape-frame img { aspect-ratio: 1 / 1; }
  .slide-caption {
    border-top: 1px solid var(--line);
    border-left: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2.5rem;
  }
}
.slide-caption .stamp {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.75rem;
}
.slide-caption h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.slide-caption p { color: var(--muted); margin-bottom: 0; }

.carousel-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.carousel-tab {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  text-align: center;
  background: var(--panel);
  color: inherit;
  border: 0;
  padding: 1rem 0.75rem 0.85rem;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.25s ease, background 0.25s ease;
}
.carousel-tab:hover { opacity: 0.85; }
.carousel-tab.is-active { opacity: 1; background: var(--panel-2); }

.carousel-tab .stamp {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}
.carousel-tab h3 {
  font-size: 0.85rem;
  margin: 0.55rem 0 0;
  display: none;
}
.carousel-tab .stamp-short { display: none; }
@media (max-width: 767.98px) {
  .carousel-tab .stamp-full { display: none; }
  .carousel-tab .stamp-short { display: inline; }
}

@media (min-width: 768px) {
  .carousel-tab { text-align: left; padding: 1.25rem 1.25rem 1rem; }
  .carousel-tab h3 { display: block; }
}

.tab-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: transparent;
}
.tab-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gold);
}
.carousel-tab.is-active .tab-progress-fill { transition: width 0.1s linear; }

/* ---------- classes grid ---------- */
.class-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  aspect-ratio: 4 / 5;
  background: var(--panel);
  border: 1px solid var(--line);
}
.class-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: grayscale(35%) brightness(0.75);
}
.class-card:hover img { transform: scale(1.06); filter: grayscale(0%) brightness(0.85); }
.class-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0) 35%, rgba(11,11,12,0.94) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.25rem;
}
.class-card .tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.4rem;
}
.class-card h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.class-card p { font-size: 0.85rem; color: var(--muted); margin: 0; }

.class-card .tap-indicator {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  z-index: 1;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(11, 11, 12, 0.65);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  backdrop-filter: blur(4px);
}

.class-card.card-featured {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(255,200,0,0.12), var(--panel) 55%);
}
.class-card.card-featured .tag { color: #fff; }
.class-card.card-featured .tap-indicator { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ---------- modal (class / team) ---------- */
.modal-content {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--off-white);
}
.modal-header { border-bottom: 1px solid var(--line); }
.modal-header .modal-title { font-size: 1.6rem; }
.modal-footer { border-top: 1px solid var(--line); }
.btn-close { filter: invert(1) grayscale(100%) brightness(1.4); }
.modal .tape-frame { margin-bottom: 1.25rem; }
.gear-list { list-style: none; padding: 0; margin: 0; }
.gear-list li {
  display: inline-block;
  font-size: 0.78rem;
  border: 1px solid var(--line);
  padding: 0.3rem 0.7rem;
  margin: 0 0.4rem 0.4rem 0;
  color: var(--off-white);
}
.gear-list li i { color: var(--gold); margin-right: 0.4rem; }

/* ---------- facilities ---------- */
.facility-tile { position: relative; overflow: hidden; aspect-ratio: 1/1; border: 1px solid var(--line); }
.facility-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.facility-tile:hover img { transform: scale(1.08); }
.facility-tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(11,11,12,0.92));
  padding: 0.9rem 1rem 0.7rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}

/* ---------- why train with us ---------- */
.value-card { text-align: center; padding: 0 1rem; }
.value-card .tape-frame { max-width: 260px; margin: 0 auto 1.5rem; border-radius: 50%; overflow: hidden; }
.value-card .tape-frame img { border-radius: 50%; aspect-ratio: 1/1; }
.value-card .tape-frame::before,
.value-card .tape-frame::after { display: none; }
.value-card h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.value-card p { color: var(--muted); }

/* ---------- testimonials ---------- */
.testimonial-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.testimonial-card img {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 1.25rem; border: 2px solid var(--gold);
}
.testimonial-card .quote-mark { font-family: var(--font-display); font-size: 3rem; color: var(--gold); line-height: 1; }
.testimonial-card blockquote { font-size: 1.15rem; font-style: italic; color: var(--off-white); margin: 0.5rem 0 1.25rem; }
.testimonial-card .name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; color: #fff; }
.testimonial-card .role { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; }
#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next { width: 5%; opacity: 0.6; }
#testimonialCarousel .carousel-control-prev:hover,
#testimonialCarousel .carousel-control-next:hover { opacity: 1; }

/* ---------- team ---------- */
.coach-card { cursor: pointer; text-align: center; }
.coach-card .tape-frame { aspect-ratio: 3/4; margin-bottom: 1rem; position: relative; }
.coach-card .view-profile-tag {
  position: absolute;
  bottom: 0.6rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.coach-card h3 { font-size: 1.2rem; margin-bottom: 0.15rem; }
.coach-card .role { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; }
.coach-social { margin-top: 0.75rem; }
.coach-social a { color: var(--muted); margin: 0 0.4rem; font-size: 0.95rem; }
.coach-social a:hover { color: var(--gold); }
.modal .coach-bio-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.modal .coach-bio-list li { padding: 0.4rem 0; border-bottom: 1px dashed var(--line); }
.modal .coach-bio-list li:last-child { border-bottom: none; }

/* ---------- partnership / collab ---------- */
.partner-logo {
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16/7;
  overflow: hidden;
}
.partner-logo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(60%); transition: filter 0.3s ease; }
.partner-logo:hover img { filter: grayscale(0%); }
.coffee-block { border-top: 1px solid var(--line); margin-top: 4rem; padding-top: 4rem; }
.coffee-hours { color: var(--muted); font-size: 0.9rem; }
#coffeeCarousel img { aspect-ratio: 4/3; object-fit: cover; }

/* ---------- FAQ ---------- */
.accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0 !important;
}
.accordion-button {
  background: transparent;
  color: #fff;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  padding: 1.5rem 0;
  box-shadow: none !important;
}
.accordion-button:not(.collapsed) { background: transparent; color: var(--gold); }
.accordion-button::after { filter: invert(70%) sepia(70%) saturate(900%) hue-rotate(2deg); }
.accordion-body { color: var(--muted); padding: 0 0 1.75rem; }
.accordion-body strong { color: var(--off-white); }

/* ---------- contact ---------- */
.contact-band {
  background: radial-gradient(ellipse at center, var(--panel) 0%, var(--ink) 70%);
  text-align: center;
  padding: 7rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact-band h2 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 1rem; }
.contact-band .lede { color: var(--muted); margin-bottom: 2.25rem; }

/* ---------- footer ---------- */
footer { padding: 2.5rem 0; background: var(--ink); }
footer .copyright { color: var(--muted); font-size: 0.85rem; }
footer .social-icons a {
  color: var(--off-white);
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 0.6rem;
  transition: all 0.2s ease;
}
footer .social-icons a:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- misc ---------- */
.text-muted-wasp { color: var(--muted) !important; }
hr.divider { border-color: var(--line); opacity: 1; }
