/*
Theme Name: CFTMA - Center for Traditional Martial Arts
Theme URI: https://www.cftmartialarts.com
Author: CFTMA Development
Description: Custom Dojo theme — light base with dark accents and traditional Japanese atmosphere.
Version: 2.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cftma
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
*/

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
  /* Dark palette (header, footer, hero, accent sections) */
  --sumi: #0a0a0f;
  --sumi-light: #12121a;
  --sumi-mid: #1A1A2E;
  --gold: #D4A843;
  --gold-dim: rgba(212,168,67,0.3);
  --gold-glow: rgba(212,168,67,0.15);
  --beni: #B91C1C;
  --beni-bright: #d42626;
  --beni-glow: rgba(185,28,28,0.3);
  --shiro: #F8F6F0;

  /* Light palette (body, content sections) */
  --bg-body: #F8F6F0;
  --bg-white: #FFFFFF;
  --bg-warm: #F0EDE5;
  --text-dark: #1a1a2e;
  --text-body: #444444;
  --text-muted: #888888;
  --border-light: rgba(0,0,0,0.08);
  --border-gold-light: rgba(212,168,67,0.25);
  --card-shadow: 0 2px 20px rgba(0,0,0,0.06);
  --card-shadow-hover: 0 8px 30px rgba(0,0,0,0.12);

  /* Dark section helpers */
  --shiro-dim: rgba(248,246,240,0.5);
  --shiro-muted: rgba(248,246,240,0.35);
  --text-on-dark: rgba(248,246,240,0.55);
  --text-muted-dark: rgba(248,246,240,0.3);
  --border-subtle: rgba(255,255,255,0.06);
  --border-gold: rgba(212,168,67,0.15);

  /* Typography */
  --font-heading: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-jp: 'Noto Serif JP', serif;

  /* Spacing */
  --section-pad: 60px;
  --container-max: 1200px;
  --gap: 2rem;

  /* Transitions */
  --ease: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-fast: 0.25s ease;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--gold); text-decoration: none; transition: color var(--ease-fast); }
a:hover { color: var(--beni-bright); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1;
  letter-spacing: 2px;
}
h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1.2em; }
ul, ol { padding-left: 1.5em; margin-bottom: 1.2em; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 40px; }

.section { padding: var(--section-pad) 0; position: relative; background: var(--bg-white); }
.section--dark {
  background: var(--sumi);
  color: var(--text-on-dark);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--shiro); }
.section--dark p { color: var(--text-on-dark); }
.section--dark a { color: var(--gold); }

.section--mid { background: var(--bg-warm); }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   ATMOSPHERIC BACKGROUNDS (dark sections only)
   ========================================================================== */

/* Seigaiha wave pattern overlay */
.pattern-seigaiha::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.03;
  background-image:
    radial-gradient(circle at 50% 100%, transparent 68%, var(--gold) 68.5%, var(--gold) 69%, transparent 69.5%),
    radial-gradient(circle at 0% 100%, transparent 68%, var(--gold) 68.5%, var(--gold) 69%, transparent 69.5%),
    radial-gradient(circle at 100% 100%, transparent 68%, var(--gold) 68.5%, var(--gold) 69%, transparent 69.5%);
  background-size: 60px 30px;
}

/* Atmospheric radial glow */
.atmosphere::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 80%, var(--beni-glow) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, var(--gold-glow) 0%, transparent 50%);
}

/* Vertical side kanji decoration */
.kanji-side {
  position: absolute; top: 0; left: 30px; bottom: 0;
  writing-mode: vertical-rl;
  font-family: var(--font-jp); font-size: 16px;
  letter-spacing: 20px; color: rgba(212,168,67,0.05);
  display: flex; align-items: center;
  user-select: none; pointer-events: none;
}

/* Animated diagonal slash accents */
.slash-accents { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.slash {
  position: absolute; top: -30%; height: 160%;
  transform: rotate(18deg); opacity: 0;
  animation: slashPulse 4s ease-in-out infinite;
}
.slash:nth-child(1) { right: 8%; width: 3px; background: linear-gradient(180deg, transparent, var(--beni), transparent); animation-delay: 0s; }
.slash:nth-child(2) { right: 11%; width: 1px; background: linear-gradient(180deg, transparent, var(--gold), transparent); animation-delay: 1.5s; }
.slash:nth-child(3) { right: 15%; width: 2px; background: linear-gradient(180deg, transparent, var(--beni), transparent); animation-delay: 3s; }

@keyframes slashPulse {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.4; }
}

/* Red accent left bar */
.accent-bar-left::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, transparent, var(--beni), var(--gold), transparent);
}

/* ==========================================================================
   HEADER (stays dark — two-row layout)
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

/* --- Top row: logo + CTA --- */
.header-top {
  border-bottom: 1px solid var(--border-subtle);
}
.header-top-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container-max); margin: 0 auto;
  padding: 12px 40px;
}

/* Logo */
.site-logo a {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.site-logo img { max-height: 55px; width: auto; border-radius: 4px; }
.site-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 30px; letter-spacing: 5px; color: var(--shiro);
  line-height: 1;
}
.site-logo .logo-sub {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); font-family: var(--font-body); font-weight: 500;
  margin-top: 2px;
}

/* --- Bottom row: desktop navigation bar --- */
.header-nav-bar {
  border-top: 1px solid var(--border-subtle);
}
.header-nav-bar .nav-inner {
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 40px;
}
.header-nav-bar .menu {
  display: flex; list-style: none; gap: 0; align-items: center;
  justify-content: center;
}
.header-nav-bar .menu > li { position: relative; }
.header-nav-bar .menu > li > a {
  display: block; padding: 12px 16px;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--shiro-dim); font-weight: 600;
  white-space: nowrap;
  transition: color var(--ease-fast);
}
.header-nav-bar .menu > li > a:hover,
.header-nav-bar .menu > li.current-menu-item > a,
.header-nav-bar .menu > li.current-menu-ancestor > a {
  color: var(--gold);
}

/* Desktop Dropdown */
.header-nav-bar .menu > li > ul.sub-menu {
  position: absolute; top: 100%; left: 0;
  background: rgba(10,10,15,0.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--beni);
  min-width: 240px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all var(--ease-fast);
  padding: 8px 0;
  list-style: none;
  z-index: 1000;
}
.header-nav-bar .menu > li:nth-last-child(-n+3) > ul.sub-menu {
  left: auto; right: 0;
}
.header-nav-bar .menu > li:hover > ul.sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.header-nav-bar ul.sub-menu li a {
  padding: 10px 24px; font-size: 11px;
  white-space: nowrap;
  border-left: 2px solid transparent;
}
.header-nav-bar ul.sub-menu li a:hover {
  color: var(--gold);
  border-left-color: var(--beni);
  background: rgba(255,255,255,0.02);
}

/* --- Mobile nav (outside header, no backdrop-filter trap) --- */
.mobile-nav {
  display: none;
}

/* Header CTA — move this comment to keep structure clean */

/* Header CTA */
.header-cta .btn {
  padding: 10px 28px;
  background: var(--beni); color: var(--shiro);
  font-family: var(--font-heading); font-size: 14px;
  letter-spacing: 3px; border: none; cursor: pointer;
  transition: all var(--ease-fast);
  box-shadow: 0 0 20px var(--beni-glow);
}
.header-cta .btn:hover {
  background: var(--beni-bright);
  box-shadow: 0 0 35px rgba(185,28,28,0.5);
  transform: translateY(-1px);
}

/* Mobile toggle */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative;
}
.menu-toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--shiro); position: absolute; left: 0;
  transition: all var(--ease-fast);
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }
.menu-toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ==========================================================================
   HERO SECTION (stays dark)
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 120px;
  overflow: hidden;
  background: var(--sumi);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 60px 0; max-width: 800px;
}
.hero .kicker {
  font-size: 12px; letter-spacing: 6px; text-transform: uppercase;
  color: var(--beni); font-weight: 600; margin-bottom: 24px;
  display: flex; align-items: center; gap: 16px;
}
.hero .kicker::before {
  content: ''; width: 50px; height: 2px; background: var(--beni);
}
.hero h1 {
  font-size: 5.5rem; letter-spacing: 4px;
  line-height: 0.9; margin-bottom: 28px;
  color: var(--shiro);
}
.hero h1 .gold { color: var(--gold); }
.hero .tagline {
  font-size: 17px; color: var(--text-on-dark);
  font-weight: 300; line-height: 1.8; margin-bottom: 48px;
  max-width: 500px;
}
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-block; padding: 16px 48px;
  font-family: var(--font-heading); font-size: 18px;
  letter-spacing: 3px; text-decoration: none;
  transition: all var(--ease-fast); position: relative;
  cursor: pointer; border: none;
}
.btn--primary {
  background: var(--beni); color: var(--shiro);
  box-shadow: 0 0 30px var(--beni-glow);
}
.btn--primary:hover {
  background: var(--beni-bright); color: var(--shiro);
  box-shadow: 0 0 50px rgba(185,28,28,0.5);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  border: 1px solid var(--gold-dim); color: var(--gold);
}
.btn--outline:hover {
  border-color: var(--gold);
  background: rgba(212,168,67,0.08);
  color: var(--gold);
}
.btn--small {
  padding: 10px 32px; font-size: 14px; letter-spacing: 2px;
}

/* ==========================================================================
   STATS BAR (stays dark)
   ========================================================================== */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  background: var(--sumi-light);
}
.stat {
  text-align: center; padding: 48px 20px;
  border-right: 1px solid var(--border-subtle);
}
.stat:last-child { border-right: none; }
.stat .number {
  font-family: var(--font-heading);
  font-size: 52px; color: var(--gold); line-height: 1;
  margin-bottom: 8px;
}
.stat .label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-muted-dark);
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-header { margin-bottom: 60px; }
.section-header .eyebrow {
  font-size: 12px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--beni); font-weight: 600; margin-bottom: 12px;
}
.section-header h2 { font-size: 3.2rem; letter-spacing: 3px; }
.section-header h2 .gold { color: var(--gold); }
.section-header p {
  margin-top: 16px; max-width: 600px;
  color: var(--text-body); font-weight: 300; line-height: 1.8;
}

/* Dark section headers */
.section--dark .section-header h2 { color: var(--shiro); }
.section--dark .section-header p { color: var(--text-on-dark); }

.section-header--center { text-align: center; }
.section-header--center p { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   CARDS (light background)
   ========================================================================== */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: 44px 32px; position: relative; overflow: hidden;
  transition: all var(--ease);
  box-shadow: var(--card-shadow);
  border-radius: 4px;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-gold-light);
}

/* Card icon */
.card-icon {
  width: 56px; height: 56px; margin-bottom: 24px;
  border: 1px solid rgba(185,28,28,0.3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-jp); font-size: 24px; color: var(--beni);
  transition: all var(--ease);
}
.card:hover .card-icon {
  box-shadow: 0 0 20px var(--beni-glow);
  border-color: var(--beni);
}

.card h3 {
  font-size: 1.7rem; letter-spacing: 2px; margin-bottom: 12px;
  color: var(--text-dark);
}
.card p { color: var(--text-body); line-height: 1.8; font-size: 14px; }

.card-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px; font-size: 12px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold); font-weight: 600;
}
.card:hover .card-link { color: var(--beni); }

/* Cards in dark sections keep dark styling */
.section--dark .card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}
.section--dark .card h3 { color: var(--shiro); }
.section--dark .card p { color: var(--text-on-dark); }
.section--dark .card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* ==========================================================================
   TESTIMONIAL SECTION (stays dark)
   ========================================================================== */
.testimonial-section {
  position: relative; padding: 120px 0; overflow: hidden;
  background: linear-gradient(180deg, var(--sumi), var(--sumi-light), var(--sumi));
}
.testimonial-inner {
  max-width: 900px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center;
}
.testimonial-inner .quote-mark {
  font-family: var(--font-heading);
  font-size: 180px; color: rgba(185,28,28,0.15); line-height: 0.8;
}
.testimonial-inner blockquote {
  font-size: 22px; color: rgba(248,246,240,0.65);
  line-height: 1.9; font-weight: 300; font-style: italic;
  border: none; padding: 0; margin: 0; background: none;
}
.testimonial-inner cite {
  display: flex; align-items: center; gap: 16px;
  margin-top: 32px; font-style: normal;
}
.testimonial-inner cite::before {
  content: ''; width: 30px; height: 1px; background: var(--gold);
}
.testimonial-inner cite span {
  font-family: var(--font-heading);
  font-size: 18px; letter-spacing: 4px; color: var(--gold);
}

/* Inline testimonials on pages (light background) */
.entry-content blockquote {
  background: var(--bg-warm);
  border-left: 4px solid var(--beni);
  padding: 28px 32px; margin: 2.5rem 0;
  font-style: italic; font-size: 16px;
  color: var(--text-body); line-height: 1.9;
  position: relative;
  border-radius: 4px;
}
.entry-content blockquote::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0;
  width: 60px;
  background: linear-gradient(90deg, rgba(185,28,28,0.04), transparent);
  pointer-events: none;
}
.entry-content blockquote strong { color: var(--text-dark); font-style: normal; }

/* ==========================================================================
   CTA BANNER (stays dark/red)
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--beni), #8b1515);
  padding: 72px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(212,168,67,0.15), transparent 50%);
}
.cta-banner h2 {
  font-size: 2.5rem; letter-spacing: 3px; margin-bottom: 24px;
  position: relative; color: var(--shiro);
}
.cta-banner .btn {
  background: var(--shiro); color: var(--beni);
  box-shadow: none; position: relative;
}
.cta-banner .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  color: var(--beni);
}

/* ==========================================================================
   PAGE HEADER (stays dark)
   ========================================================================== */
.page-header {
  background: var(--sumi-mid); padding: 170px 0 60px;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 100%, rgba(185,28,28,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 0%, rgba(212,168,67,0.05) 0%, transparent 50%);
}
.page-header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.page-header h1 {
  font-size: 3rem; letter-spacing: 4px;
  position: relative; margin-bottom: 12px;
  color: var(--shiro);
}
.page-header .breadcrumbs {
  font-size: 12px; letter-spacing: 2px; color: var(--text-muted-dark);
  position: relative;
}
.page-header .breadcrumbs a { color: var(--gold-dim); }
.page-header .breadcrumbs a:hover { color: var(--gold); }

/* ==========================================================================
   ENTRY CONTENT (light background)
   ========================================================================== */
.entry-content {
  color: var(--text-body); line-height: 1.8;
  max-width: 900px;
}
.entry-content h2 {
  font-size: 2rem; margin: 2.5rem 0 1rem; letter-spacing: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-dark);
}
.entry-content h3 {
  font-size: 1.4rem; margin: 2rem 0 0.8rem; letter-spacing: 2px;
  color: var(--sumi-mid);
}
.entry-content p { margin-bottom: 1.4em; }
.entry-content ul, .entry-content ol { margin-bottom: 1.4em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content strong { color: var(--text-dark); }
.entry-content a { color: var(--beni); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--beni-bright); }

/* Program info boxes */
.entry-content .program-info {
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--gold);
  padding: 28px 32px; margin: 2.5rem 0;
  border-radius: 4px;
}
.entry-content .program-info h3 {
  color: var(--text-dark); border: none; margin-top: 0; padding: 0;
}
.entry-content .program-info-item {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}
.entry-content .program-info-item:last-child { border-bottom: none; }
.entry-content .program-info-item .label { color: var(--text-muted); min-width: 140px; font-weight: 600; }
.entry-content .program-info-item .value { color: var(--text-body); }

/* Entry CTA buttons */
.entry-content .btn { margin-top: 1rem; }
.entry-content .btn--primary {
  background: var(--beni); color: var(--shiro);
  box-shadow: 0 0 20px var(--beni-glow);
  font-family: var(--font-heading); font-size: 16px;
  letter-spacing: 3px; padding: 14px 40px;
}
.entry-content .btn--primary:hover {
  background: var(--beni-bright); color: var(--shiro);
  box-shadow: 0 0 40px rgba(185,28,28,0.5);
  transform: translateY(-2px);
}

/* ==========================================================================
   INSTRUCTOR CARDS (light background)
   ========================================================================== */
.instructor-card {
  display: flex; gap: 32px; align-items: flex-start;
  padding: 40px; background: var(--bg-white);
  border: 1px solid var(--border-light);
  transition: all var(--ease);
  box-shadow: var(--card-shadow);
  border-radius: 4px;
}
.instructor-card:hover {
  border-color: var(--border-gold-light);
  box-shadow: var(--card-shadow-hover);
}
.instructor-card img {
  width: 200px; height: 260px; object-fit: cover;
  border: 1px solid var(--border-light);
  border-radius: 4px;
}
.instructor-card .rank {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--beni); font-weight: 600; margin-bottom: 8px;
}
.instructor-card h3 { margin-bottom: 8px; color: var(--text-dark); }
.instructor-card .credentials {
  font-size: 13px; color: var(--gold); margin-bottom: 16px;
  list-style: none; padding: 0;
}
.instructor-card .credentials li::before {
  content: '\25C6'; margin-right: 8px; font-size: 8px; color: var(--beni);
}
.instructor-card p { color: var(--text-body); }

/* ==========================================================================
   LOCATION CARDS (light background)
   ========================================================================== */
.location-card {
  padding: 32px; background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--gold);
  transition: all var(--ease);
  box-shadow: var(--card-shadow);
  border-radius: 4px;
}
.location-card:hover {
  background: var(--bg-white);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}
.location-card h3 { font-size: 1.4rem; margin-bottom: 12px; color: var(--text-dark); }
.location-card p { font-size: 14px; color: var(--text-body); margin-bottom: 4px; }

/* Location cards in dark sections */
.section--dark .location-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold);
  box-shadow: none;
}
.section--dark .location-card h3 { color: var(--shiro); }
.section--dark .location-card p { color: var(--text-on-dark); }
.section--dark .location-card:hover {
  background: rgba(255,255,255,0.04);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* ==========================================================================
   FAQ ACCORDION (light background)
   ========================================================================== */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  transition: all var(--ease-fast);
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 24px 0;
  font-family: var(--font-heading); font-size: 1.3rem;
  letter-spacing: 2px; color: var(--text-dark);
  background: none; border: none; cursor: pointer;
  text-align: left; transition: color var(--ease-fast);
}
.faq-question:hover { color: var(--gold); }
.faq-question::after {
  content: '+'; font-family: var(--font-heading);
  font-size: 1.6rem; color: var(--beni);
  transition: transform var(--ease-fast);
}
.faq-item.active .faq-question::after {
  content: '\2212'; transform: rotate(180deg);
}
.faq-item.active .faq-question { color: var(--gold); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer-inner {
  padding: 0 0 24px;
  color: var(--text-body); line-height: 1.8;
}

/* ==========================================================================
   BLOG ARCHIVE (light background)
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.post-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  overflow: hidden; transition: all var(--ease);
  box-shadow: var(--card-shadow);
  border-radius: 4px;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-gold-light);
}
.post-card-image {
  height: 220px; overflow: hidden;
  background: var(--bg-warm);
}
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 28px; }
.post-card-body .date {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--beni); margin-bottom: 12px;
}
.post-card-body h3 { font-size: 1.4rem; margin-bottom: 12px; }
.post-card-body h3 a { color: var(--text-dark); }
.post-card-body h3 a:hover { color: var(--gold); }
.post-card-body p { font-size: 14px; color: var(--text-body); }

/* Pagination */
.pagination {
  display: flex; justify-content: center; gap: 16px;
  padding: 48px 0;
}
.pagination a, .pagination span {
  padding: 10px 20px; font-family: var(--font-heading);
  font-size: 16px; letter-spacing: 2px;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }

/* ==========================================================================
   SINGLE POST
   ========================================================================== */
.single-featured-image {
  max-height: 500px; overflow: hidden; margin-bottom: 40px;
  border-bottom: 2px solid var(--beni);
  border-radius: 4px;
}
.single-featured-image img { width: 100%; object-fit: cover; }

.post-meta {
  display: flex; gap: 24px; margin-bottom: 32px;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted);
}
.post-meta .author { color: var(--gold); }

/* ==========================================================================
   FOOTER (stays dark)
   ========================================================================== */
.site-footer {
  background: var(--sumi-light);
  border-top: 1px solid var(--border-gold);
  padding: 80px 0 0;
  position: relative;
}
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 60px;
}
.footer-col h4 {
  font-size: 1rem; letter-spacing: 3px; color: var(--gold);
  margin-bottom: 20px;
}
.footer-col p { font-size: 14px; color: var(--text-muted-dark); line-height: 1.7; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px; color: var(--text-muted-dark);
  transition: color var(--ease-fast);
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-col .contact-line {
  display: flex; gap: 8px; margin-bottom: 8px;
  font-size: 14px; color: var(--text-muted-dark);
}
.footer-col .contact-line strong { color: var(--shiro-dim); }

/* Social links */
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a {
  width: 40px; height: 40px;
  border: 1px solid var(--border-subtle); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted-dark); font-size: 14px;
  transition: all var(--ease-fast);
}
.social-links a:hover {
  border-color: var(--gold); color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0; text-align: center;
  font-size: 13px; color: var(--text-muted-dark);
}

.footer-service-area {
  text-align: center;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--shiro-dim);
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   BLURBS / VALUE PROPS (light background)
   ========================================================================== */
.blurb {
  text-align: center; padding: 32px 20px;
}
.blurb-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  border: 1px solid var(--border-gold-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-jp); font-size: 24px; color: var(--gold);
}
.blurb h3 { font-size: 1.2rem; margin-bottom: 10px; letter-spacing: 2px; color: var(--text-dark); }
.blurb p { font-size: 14px; color: var(--text-muted); }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-grid img {
  width: 100%; height: 280px; object-fit: cover;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  transition: all var(--ease);
}
.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--card-shadow-hover);
}

/* ==========================================================================
   CONTACT FORM (light background)
   ========================================================================== */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-family: var(--font-body); font-size: 14px;
  transition: border-color var(--ease-fast);
  margin-bottom: 16px;
  border-radius: 4px;
}
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea { border-color: var(--gold); outline: none; }

.wpcf7 input[type="submit"] {
  background: var(--beni); color: var(--shiro);
  border: none; padding: 16px 48px;
  font-family: var(--font-heading); font-size: 18px;
  letter-spacing: 3px; cursor: pointer;
  transition: all var(--ease-fast);
  box-shadow: 0 0 20px var(--beni-glow);
  border-radius: 4px;
}
.wpcf7 input[type="submit"]:hover {
  background: var(--beni-bright);
  box-shadow: 0 0 40px rgba(185,28,28,0.5);
  transform: translateY(-2px);
}

.wpcf7 label {
  display: block; margin-bottom: 4px;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   LOCATION PAGES
   ========================================================================== */
.location-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

.location-map iframe {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.nap-block {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--card-shadow);
}

.nap-block h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.nap-item {
  margin-bottom: 20px;
}

.nap-item strong {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.nap-item address {
  font-style: normal;
  color: var(--text-dark);
  line-height: 1.6;
}

.nap-item a {
  color: var(--beni);
  text-decoration: none;
}

.nap-item a:hover {
  text-decoration: underline;
}

.schedule-placeholder {
  text-align: center;
  padding: 40px;
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  max-width: 500px;
  margin: 0 auto;
}

.schedule-placeholder p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ==========================================================================
   PROGRAM LAYOUT (2-col: content + sidebar)
   ========================================================================== */
.program-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .program-layout { grid-template-columns: 1fr; }
}

/* ==========================================================================
   LOCATION HUB GRID
   ========================================================================== */
.location-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

@media (max-width: 768px) {
  .location-hub-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .header-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: 40px; }

  .container { padding: 0 20px; }
  .header-top-inner { padding: 10px 20px; }
  .page-header { padding-top: 120px; }

  /* Hide desktop nav bar, show mobile nav */
  .header-nav-bar { display: none; }
  .menu-toggle { display: block; }
  .site-logo img { max-height: 40px; }
  .site-logo .logo-sub { display: none; }

  .mobile-nav {
    display: block;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: #0a0a0f;
    transform: translateX(100%);
    transition: transform var(--ease);
    overflow-y: auto;
    z-index: 9999;
    padding: 80px 20px 20px;
  }
  .mobile-nav.active { transform: translateX(0); }
  .mobile-nav .menu {
    display: flex; flex-direction: column;
    list-style: none; padding: 0; margin: 0;
  }
  .mobile-nav .menu > li > a {
    display: block; padding: 16px 0;
    font-size: 16px; color: #F8F6F0;
    letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .mobile-nav .menu > li > a:hover { color: var(--gold); }
  .mobile-nav ul.sub-menu {
    list-style: none; padding: 0 0 0 20px; margin: 0;
  }
  .mobile-nav ul.sub-menu li a {
    display: block; padding: 10px 0; font-size: 14px;
    color: rgba(248,246,240,0.6);
    border-left: 1px solid rgba(255,255,255,0.06);
    padding-left: 16px;
  }
  .mobile-nav ul.sub-menu li a:hover { color: var(--gold); }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .hero { min-height: 80vh; }
  .hero h1 { font-size: 3.2rem; }
  .hero-content { padding: 40px 0; }
  .hero-buttons { flex-direction: column; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .location-layout { grid-template-columns: 1fr; }

  .testimonial-inner { grid-template-columns: 1fr; }
  .testimonial-inner .quote-mark { display: none; }

  .instructor-card { flex-direction: column; }
  .instructor-card img { width: 100%; height: 200px; }

  .footer-grid { grid-template-columns: 1fr; }

  .site-logo img { max-height: 40px; }
  .site-logo .logo-sub { display: none; }

  .kanji-side { display: none; }
  .slash-accents { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.4rem; }
  .btn { padding: 14px 32px; font-size: 16px; width: 100%; text-align: center; }
  .stat .number { font-size: 36px; }
}

/* ==========================================================================
   UTILITY
   ========================================================================== */
.text-gold { color: var(--gold); }
.text-red { color: var(--beni); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
