/*
Theme Name: Chinese Martial Arts
Theme URI: https://chinesemartialarts.us
Author: Chinese Kung-Fu Inc.
Author URI: https://chinesemartialarts.us
Description: A dark, elegant WordPress theme for Chinese Martial Arts — Kung-Fu, Tai Chi, Qigong, and Weaponry. Deep black backgrounds with crimson red and gold accents.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chinese-martial-arts
Tags: dark, martial-arts, one-page, custom-menu, featured-images, full-width-template
*/

/* ============================================================
   CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
  --bg-primary:    #0d0d0d;
  --bg-dark:       #080808;
  --bg-card:       #161616;
  --border-subtle: #2a2a2a;

  --red-primary:   #8B0000;
  --red-hover:     #a00000;
  --gold:          #c8a84b;

  --text-white:    #ffffff;
  --text-muted:    rgba(255,255,255,0.60);
  --text-dim:      rgba(255,255,255,0.50);
  --text-ghost:    rgba(255,255,255,0.30);

  --font-heading:  "Playfair Display", Georgia, serif;
  --font-body:     "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 4vw, 1.5rem);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-primary);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-white);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   Layout Helpers
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--red-primary);
  color: var(--text-white);
}
.btn-primary:hover { background: var(--red-hover); }

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1px solid rgba(255,255,255,0.30);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.60);
  background: rgba(255,255,255,0.05);
}

.btn-gold {
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.2s;
}
.btn-gold:hover { color: var(--text-white); }
.btn-gold svg { width: 14px; height: 14px; }

/* ============================================================
   Header / Navigation
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s, box-shadow 0.3s;
}
#site-header.scrolled {
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo */
.site-logo a {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-logo .logo-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.05em;
}
.site-logo .logo-tagline {
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* Desktop nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.primary-nav a,
.primary-nav .nav-dropdown > button {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.70);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.primary-nav a:hover,
.primary-nav .nav-dropdown > button:hover { color: var(--text-white); }
.primary-nav a.current-menu-item { color: var(--gold); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  display: none;
  flex-direction: column;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.70);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: var(--red-primary); color: var(--text-white); }
.chevron { width: 14px; height: 14px; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  color: rgba(255,255,255,0.70);
  transition: color 0.2s;
  padding: 0.5rem;
}
.mobile-toggle:hover { color: var(--text-white); }
.mobile-toggle svg { width: 22px; height: 22px; }

/* Mobile menu */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border-subtle);
  padding: 1rem 0;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.70);
  border-radius: 2px;
  transition: color 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.current-menu-item { color: var(--gold); }
.mobile-menu .nav-group-label {
  padding: 0.5rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}
.mobile-menu .nav-group-children a { padding-left: 1.5rem; color: rgba(255,255,255,0.55); }

@media (max-width: 1023px) {
  .primary-nav { display: none; }
  .mobile-toggle { display: flex; }
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay-lr {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #0d0d0d, rgba(13,13,13,0.80) 60%, transparent);
}
.hero-overlay-bt {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0d0d0d, transparent 50%);
}
.hero-content {
  position: relative;
  padding: 6rem 0;
}
.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  max-width: 750px;
}
.hero h1 span { color: var(--red-primary); }
.hero-sub {
  color: rgba(255,255,255,0.70);
  font-size: 1.125rem;
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ============================================================
   Page Header (inner pages)
   ============================================================ */
.page-hero {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-subtle);
  padding: 4rem 0;
}
.page-hero .section-label { margin-bottom: 0.75rem; }
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--text-white);
}

/* ============================================================
   Section Defaults
   ============================================================ */
.section-dark  { background: var(--bg-primary); padding: 6rem 0; }
.section-darker { background: var(--bg-dark); padding: 6rem 0; }
.section-center { text-align: center; }
.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 2rem;
}
.section-body {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* ============================================================
   History / About Section (Homepage)
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1000px;
  margin-inline: auto;
}
@media (max-width: 1023px) { .about-grid { grid-template-columns: 1fr; } }

.about-img-wrap {
  position: relative;
}
.about-img-wrap::before {
  content: '';
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(139,0,0,0.30);
  border-radius: 2px;
}
.about-img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 2px;
  position: relative;
}
@media (max-width: 1023px) { .about-img-wrap img { height: 320px; } }

/* ============================================================
   Discipline Cards
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin-inline: auto;
}
@media (max-width: 767px) { .cards-grid { grid-template-columns: 1fr; } }
@media (min-width: 768px) and (max-width: 1023px) { .cards-grid { grid-template-columns: 1fr 1fr; } }

.discipline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 2rem;
  transition: transform 0.2s, border-color 0.2s;
}
.discipline-card:hover { transform: translateY(-6px); border-color: rgba(139,0,0,0.40); }

.discipline-card .card-icon {
  margin-bottom: 1.5rem;
  width: 32px;
  height: 32px;
}
.discipline-card h3 {
  font-size: 1.5rem;
  color: var(--text-white);
  margin-bottom: 1rem;
}
.discipline-card p {
  color: rgba(255,255,255,0.50);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ============================================================
   CTA Banner Section
   ============================================================ */
.cta-section {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-overlay { position: absolute; inset: 0; background: rgba(13,13,13,0.85); }
.cta-inner {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  max-width: 1000px;
  margin-inline: auto;
}
@media (max-width: 767px) { .cta-inner { flex-direction: column; } }
.cta-ctas { display: flex; flex-direction: column; gap: 1rem; }

/* ============================================================
   Self Defense / Prose Section
   ============================================================ */
.prose-section { max-width: 56rem; margin-inline: auto; text-align: center; }
.prose-section .section-body { font-size: 1.125rem; }

/* ============================================================
   Instructor Page
   ============================================================ */
.instructor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1000px;
  margin-inline: auto;
}
@media (max-width: 1023px) { .instructor-grid { grid-template-columns: 1fr; } }

.instructor-portrait {
  position: relative;
}
.instructor-portrait::before {
  content: '';
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(139,0,0,0.30);
  border-radius: 2px;
  pointer-events: none;
}
.instructor-portrait img {
  width: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.inline-portrait {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-subtle);
  width: 8rem;
}
.inline-portrait img { width: 100%; display: block; }

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2.5rem 0;
  clear: both;
}
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  border-radius: 2px;
}
.skill-card .skill-name { font-weight: 600; font-size: 0.875rem; margin-bottom: 0.25rem; }
.skill-card .skill-sub { font-size: 0.75rem; color: rgba(255,255,255,0.40); }

.action-photo { border: 1px solid var(--border-subtle); margin-top: 4rem; display: inline-block; }
.action-photo img { display: block; }

/* ============================================================
   Location Page
   ============================================================ */
.location-photo {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 0;
}
.location-photo img { width: 100%; display: block; }
.location-photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.70), transparent);
}
.location-photo-caption .caption-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.location-photo-caption .caption-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-white);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
@media (max-width: 1023px) { .location-grid { grid-template-columns: 1fr; } }

.info-list { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-icon {
  width: 40px;
  height: 40px;
  background: var(--red-primary);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.info-icon svg { width: 18px; height: 18px; color: white; }
.info-label { font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.25rem; }
.info-text { color: var(--text-muted); font-size: 0.875rem; line-height: 1.7; }

.options-list { display: flex; flex-direction: column; gap: 1rem; }
.option-card {
  padding: 1.5rem;
  border-radius: 2px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}
.option-card.highlight {
  background: rgba(139,0,0,0.10);
  border-color: rgba(139,0,0,0.40);
}
.option-card .opt-title { font-weight: 600; margin-bottom: 0.5rem; }
.option-card .opt-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* ============================================================
   Qigong / Tai Chi / Weaponry Pages
   ============================================================ */
.inner-hero {
  position: relative;
  height: clamp(18rem, 30vw, 24rem);
  overflow: hidden;
}
.inner-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inner-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0d0d0d 0%, rgba(13,13,13,0.60) 50%, transparent 100%);
}
.inner-hero-content {
  position: absolute;
  bottom: 0; left: 0;
  padding-bottom: 2.5rem;
}
.inner-hero-content .section-label { margin-bottom: 0.5rem; }
.inner-hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--text-white);
}

.content-grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 767px) { .content-grid-3 { grid-template-columns: 1fr; } }

.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 1.75rem;
}
.sidebar-box h3 { font-size: 1.125rem; margin-bottom: 1.25rem; }
.sidebar-list { display: flex; flex-direction: column; gap: 0.625rem; }
.sidebar-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.sidebar-list .bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Weapons grid */
.weapons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
@media (max-width: 767px) { .weapons-grid { grid-template-columns: 1fr; } }
@media (min-width: 768px) and (max-width: 1023px) { .weapons-grid { grid-template-columns: 1fr 1fr; } }

.weapon-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--red-primary);
  border-radius: 2px;
  padding: 1.5rem;
}
.weapon-card h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--gold); font-family: var(--font-body); font-weight: 600; }
.weapon-card p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   Classes / Gallery Page
   ============================================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
@media (max-width: 1023px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .photo-grid { grid-template-columns: repeat(2, 1fr); } }

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-card);
  cursor: pointer;
  aspect-ratio: 3/4;
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.photo-item:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Shopping Page
   ============================================================ */
.shop-info-bar {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 1.5rem;
  margin-bottom: 3rem;
}
.shop-info-item { display: flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; color: var(--text-muted); }
.shop-info-item svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

.shop-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
@media (max-width: 1023px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover { border-color: rgba(139,0,0,0.40); transform: translateY(-4px); }
.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.product-info { padding: 0.75rem; }
.product-name { font-size: 0.75rem; font-weight: 600; color: var(--text-white); margin-bottom: 0.5rem; }
.product-link {
  font-size: 0.7rem;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s;
}
.product-link:hover { color: var(--text-white); }
.product-link svg { width: 11px; height: 11px; }

.dit-da-section { margin-top: 3rem; }
.dit-da-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 2.5rem;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
@media (max-width: 767px) { .dit-da-card { flex-direction: column; } }
.dit-da-card img { width: 160px; height: 160px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.dit-da-content h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.dit-da-content p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1rem; }
.dit-da-price { font-size: 1.125rem; color: var(--gold); font-weight: 600; margin-bottom: 1rem; }

/* ============================================================
   Footer
   ============================================================ */
#site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  color: rgba(255,255,255,0.60);
  padding-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}
.footer-brand .brand-tag {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }

.footer-col-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { font-size: 0.875rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--text-white); }

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.30);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a:hover { color: rgba(255,255,255,0.60); }

/* ============================================================
   Utility
   ============================================================ */
.clearfix::after { content: ''; display: table; clear: both; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* WordPress alignment classes */
.alignleft   { float: left;  margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright  { float: right; margin-left: 1.5rem;  margin-bottom: 1rem; }
.aligncenter { display: block; margin: 0 auto 1rem; text-align: center; }
.wp-caption  { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 0.5rem; }

/* Admin bar spacing */
.admin-bar #site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar #site-header { top: 46px; } }

/* ============================================================
   Black Belt Honor Roll Scroll
   ============================================================ */
.bb-scroll-wrap {
  max-width: 800px;
  margin-inline: auto;
  padding: 0 0 2rem;
}

.bb-knobs {
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}
.bb-knobs-top  { margin-bottom: -5px; }
.bb-knobs-bottom { margin-top: -5px; }

.bb-knob {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #6b0000;
  border: 2px solid #a00000;
  display: block;
}

.bb-scroll-rod-top {
  display: block;
  width: 100%;
  height: 24px;
  background: var(--red-primary);
  border-radius: 4px 4px 0 0;
}
.bb-scroll-rod-bottom {
  display: block;
  width: 100%;
  height: 24px;
  background: var(--red-primary);
  border-radius: 0 0 4px 4px;
}

.bb-scroll-body {
  background: #111111;
  border-left: 3px solid var(--red-primary);
  border-right: 3px solid var(--red-primary);
  padding: 3rem 3.5rem 3.5rem;
}

.bb-eyebrow {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.625rem;
  font-family: var(--font-body);
}

.bb-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.375rem;
  font-family: var(--font-heading);
}

.bb-subtitle {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(200,168,75,0.65);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2.25rem;
  font-family: var(--font-body);
}

.bb-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.25rem;
}
.bb-line {
  flex: 1;
  height: 1px;
  background: #2a2a2a;
  display: block;
}

.bb-names-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
@media (max-width: 767px) {
  .bb-names-grid { grid-template-columns: repeat(2, 1fr); }
  .bb-scroll-body { padding: 2rem 1.5rem 2.5rem; }
}
@media (max-width: 480px) {
  .bb-names-grid { grid-template-columns: 1fr; }
}

.bb-name-entry {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #1e1e1e;
  transition: background 0.15s;
}
.bb-name-entry:hover { background: #161616; }

.bb-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red-primary);
  flex-shrink: 0;
}

.bb-name {
  font-size: 0.9375rem;
  color: #e8d9b0;
  letter-spacing: 0.02em;
  font-family: var(--font-body);
}

.bb-footer {
  text-align: center;
  margin-top: 2.25rem;
  font-size: 0.75rem;
  color: rgba(200,168,75,0.4);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-body);
}
