/* Region 9 — modern martial arts regional site */
:root {
  --navy: #0a1628;
  --navy-mid: #12243d;
  --navy-light: #1a3354;
  --crimson: #b91c2c;
  --crimson-hover: #9a1724;
  --gold: #c9a227;
  --gold-muted: #d4b85a;
  --white: #ffffff;
  --gray-50: #f4f6f8;
  --gray-100: #e8ecf0;
  --gray-600: #5c6778;
  --gray-800: #2d3748;
  --shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --header-h: 72px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--crimson); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--crimson-hover); }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--navy);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; line-height: 1.7; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 2vw, 1.5rem);
}

/* Header & hero: flush left with minimal gutter */
.site-header .container,
.hero--home .hero-inner {
  margin-left: 0;
  margin-right: auto;
  max-width: 1280px;
  padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
  padding-right: clamp(1rem, 3vw, 2rem);
}

/* Force vertical document flow — prevents section overlap */
main {
  display: block;
  width: 100%;
}
main > section {
  display: block;
  position: relative;
  width: 100%;
  clear: both;
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--navy);
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
  flex-wrap: nowrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}
.brand-text { min-width: 0; }
.brand:hover { color: var(--white); opacity: 0.95; }
.brand-logo,
.footer-logo {
  display: block;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  max-width: 52px;
  max-height: 52px;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
}
.footer-logo {
  width: 64px;
  height: 64px;
  max-width: 64px;
  max-height: 64px;
}
.brand-org {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-region {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--crimson);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
}

.site-nav {
  flex-shrink: 1;
  min-width: 0;
}
.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.site-nav a,
.dropdown-trigger {
  display: block;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}
.site-nav a:hover,
.site-nav a.is-active,
.dropdown-trigger:hover { color: var(--gold-muted); }
.has-dropdown { position: relative; }
.has-dropdown.is-open { z-index: 110; }
.site-nav .dropdown-menu {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 260px;
  background: rgba(18, 36, 61, 0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.65rem 0;
  z-index: 110;
}
.has-dropdown.is-open .dropdown-menu {
  display: flex;
}
.dropdown-menu a {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.6rem 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-primary {
  background: var(--crimson);
  color: var(--white);
  border-color: var(--crimson);
}
.btn-primary:hover {
  background: var(--crimson-hover);
  border-color: var(--crimson-hover);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: rgba(201, 162, 39, 0.15);
  color: var(--white);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-light);
  color: var(--white);
}
.btn-icon::before {
  font-size: 1rem;
  line-height: 1;
}
.btn-pin::before { content: "📍"; }
.btn-cal::before { content: "📅"; }

/* Hero */
.hero {
  position: relative;
  width: 100%;
  display: block;
  color: var(--white);
  overflow: hidden;
  background-color: var(--navy);
}
.hero--home {
  min-height: clamp(380px, 48vw, 520px);
  padding: 1.25rem 0 2.5rem;
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg,
      rgba(5, 15, 31, 0.96) 0%,
      rgba(5, 15, 31, 0.88) 31%,
      rgba(5, 15, 31, 0.50) 50%,
      rgba(5, 15, 31, 0.10) 72%,
      rgba(5, 15, 31, 0.02) 100%),
    var(--hero-banner, none);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.hero-inner {
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.hero-content {
  position: relative;
  width: min(100%, 575px);
  margin-left: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-left: 4px solid var(--crimson);
  background: linear-gradient(90deg, rgba(10,22,40,.55), rgba(10,22,40,.18));
  border-radius: var(--radius-lg);
  backdrop-filter: blur(1.5px);
}
.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 700;
  color: var(--gold-muted);
  letter-spacing: 0.02em;
  margin-bottom: 0.65rem;
  max-width: 34rem;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  max-width: 16em;
}
.hero-states {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 800;
  color: var(--gold-muted);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.hero-lead {
  max-width: 32rem;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  opacity: 0.96;
  margin-bottom: 1.5rem;
  line-height: 1.55;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.hero-actions .btn {
  padding: 0.9rem 1.35rem;
  font-size: 0.78rem;
}
.hero-tagline,
.hero h1,
.hero-states {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

/* Quick links */
.quick-links {
  padding: 4rem 0;
  background: var(--gray-50);
  border-top: 4px solid var(--crimson);
}
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.quick-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
}
.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.quick-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--navy);
}
.quick-card h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.quick-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.quick-card-link {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* About block */
.about-section {
  padding: 5rem 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, var(--navy-mid), var(--navy-light));
  position: relative;
}
.about-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--about-image, var(--navy-mid)) center/cover;
  opacity: 0.85;
}
.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.5rem;
}
.about-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Leadership */
.leadership-section {
  padding: 5rem 0;
  background: var(--gray-50);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
  max-width: 100%;
}
.section-heading::before,
.section-heading::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: var(--gray-100);
}
.section-heading h2 {
  flex-shrink: 0;
  color: var(--crimson);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  text-align: center;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.leader-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.leader-photo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gray-100);
}
.leader-rank {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
}
.leader-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0.25rem 0;
}
.leader-role { font-size: 0.9rem; color: var(--gray-600); margin: 0; }

/* Find a school */
.find-school {
  padding: 5rem 0;
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.find-school::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background: radial-gradient(circle at 70% 50%, var(--gold) 0%, transparent 50%);
}
.find-school .container { position: relative; }
.find-school h2 {
  color: var(--white);
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.find-school .underline {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--crimson);
  margin: 0 auto 2rem;
}
.search-bar {
  display: flex;
  max-width: 640px;
  margin: 0 auto 2rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.search-bar input {
  flex: 1;
  border: none;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}
.search-bar button {
  padding: 0 1.25rem;
  background: var(--navy-light);
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 1.25rem;
}
.state-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.state-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 72px;
  padding: 0.75rem 0.5rem;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.state-btn:hover,
.state-btn.is-active {
  border-color: var(--crimson);
  background: rgba(185, 28, 44, 0.2);
}
.state-btn svg { width: 36px; height: 36px; opacity: 0.9; }
.find-school-cta { text-align: center; }

.studio-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 0.5rem;
  clear: both;
}
.studio-preview-grid:empty::after {
  content: "No studios match your search. Try another city, school name, or state.";
  display: block;
  text-align: center;
  padding: 2rem;
  opacity: 0.8;
  grid-column: 1 / -1;
}
.studio-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.25rem;
  color: var(--white);
}
.studio-card h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.studio-card h3 a { color: var(--gold-muted); }
.studio-card h3 a:hover { color: var(--white); }
.studio-card .meta {
  font-size: 0.88rem;
  opacity: 0.85;
  line-height: 1.5;
}
.studio-card .state-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.5rem;
  background: var(--crimson);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 4px;
}

/* Inner pages */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.9; max-width: 40rem; margin: 0 auto; }
.page-content { padding: 3rem 0 4rem; }
.page-content .container-narrow { max-width: 720px; }

.studios-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}
.studios-toolbar input {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1rem;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  font-size: 1rem;
}
.state-filters--page {
  justify-content: flex-start;
  margin: 0 0 2rem;
}
.studio-count {
  font-size: 0.9rem;
  color: var(--gray-600);
  white-space: nowrap;
}
.studios-toolbar .state-btn {
  background: var(--gray-50);
  border-color: var(--gray-100);
  color: var(--navy);
  min-width: 56px;
}
.studios-toolbar .state-btn.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.studios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.studios-grid .studio-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
  color: inherit;
}
.studios-grid .studio-card h3 { color: var(--navy); }
.studios-grid .studio-card h3 a { color: var(--crimson); }
.studios-grid .studio-card .state-badge {
  background: var(--navy);
  color: var(--white);
}

.resource-list {
  display: grid;
  gap: 1rem;
}
.resource-item {
  padding: 1.25rem 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border-left: 4px solid var(--crimson);
}
.resource-item h3 { margin-bottom: 0.35rem; font-size: 1rem; }

.events-embed {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.events-embed iframe {
  width: 100%;
  min-height: 500px;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-region strong { color: var(--crimson); font-size: 1.25rem; }
.footer-col h3 {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col a { color: rgba(255,255,255,0.9); }
.footer-col a:hover { color: var(--gold-muted); }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  opacity: 0.75;
}
.footer-disclaimer p { margin: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image { max-height: 280px; }
}
@media (min-width: 1101px) {
  .site-nav > ul {
    flex-wrap: nowrap;
  }
  .has-dropdown:hover .dropdown-menu,
  .has-dropdown:focus-within .dropdown-menu {
    display: flex;
  }
}

@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: auto;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--navy-mid);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    z-index: 99;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav > ul {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
  }
  .site-nav .dropdown-menu {
    position: static;
    box-shadow: none;
    background: rgba(0,0,0,0.2);
    margin-top: 0.25rem;
    border: none;
    min-width: 0;
  }
  .brand { max-width: none; }
}
@media (max-width: 768px) {
  .section-heading::before,
  .section-heading::after { max-width: 48px; }
  .leader-card { flex-direction: column; align-items: center; text-align: center; }
}

body.nav-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .quick-card:hover { transform: none; }
}


/* Homepage polish fixes */
@media (max-width: 900px) {
  .hero--home {
    min-height: auto;
    padding: 1rem 0 2rem;
    background-position: 62% center;
  }
  .hero-content {
    width: min(100%, 540px);
  }
}

@media (max-width: 640px) {
  .hero--home {
    background-image:
      linear-gradient(90deg, rgba(5,15,31,.94), rgba(5,15,31,.76)),
      var(--hero-banner, none);
  }
  .hero-content {
    padding: 1.25rem;
    border-left-width: 3px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
