/* ==========================================================================
   ONYX DEFENSE ACADEMY — stylesheet
   Palette: onyx (near-black) + red + steel/gunmetal, sampled directly from
            the real Onyx Defense Academy logo. Black-dominant throughout
            for a tactical feel — white surfaces are reserved for official
            certification seals, which need to stay legible/authentic.
   Type: Big Shoulders Display (stamped-steel headlines) / Barlow (clean,
         utilitarian body) / IBM Plex Mono (scorecard data)
   ========================================================================== */

:root {
  /* --- Color tokens --- */
  --onyx:        #14151a;   /* primary dark surface */
  --onyx-deep:   #0a0b0e;   /* alternate dark surface + darkest (footer) */
  --onyx-raised: #202226;   /* cards/panels, sits above either dark surface */
  --bone:        #f3efe6;   /* primary text on dark surfaces */
  --bone-dim:    #a9a49a;   /* secondary text on dark surfaces */
  --ink-dim:     #5b5648;   /* text on white card surfaces (badges) */

  --red:         #ad1420;   /* primary accent — sampled from the logo's chrome-red ONYX lettering */
  --red-bright:  #e0505a;   /* text/labels on dark surfaces */
  --red-hover:   #c41f2c;   /* button hover fill */
  --red-dim:     #6e1119;   /* muted borders/hairlines */

  --steel:       #8f9195;   /* secondary accent — sampled from the logo's silver pistols/ring */
  --steel-bright:#b7b9bc;   /* lighter steel */
  --steel-deep:  #3d4245;   /* darker steel, for text on white card surfaces */

  --hairline:    rgba(224, 80, 90, 0.28);
  --hairline-steel: rgba(143, 145, 149, 0.28);

  /* --- Type --- */
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Courier New", monospace;

  /* --- Layout --- */
  --container-w: 1120px;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --radius-sm: 2px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--onyx);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; color: var(--bone); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

/* Respect reduced motion globally */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
  background: var(--onyx);
}
.section--alt { background: var(--onyx-deep); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1rem;
  color: var(--red-bright);
}
.eyebrow::before {
  content: "";
  width: 0.9em;
  height: 0.4em;
  background: currentColor;
  clip-path: polygon(0 0, 70% 0, 100% 100%, 30% 100%);
  flex: none;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-lede {
  font-family: var(--font-body);
  font-size: 1.125rem;
  max-width: 46em;
  color: var(--bone-dim);
}

/* Small chevron ornament between sections instead of a plain rule.
   Not a numbered sequence -- classes/sections aren't ordered steps,
   so this is a neutral mark, not a "01 / 02 / 03" counter. */
.divider {
  display: flex;
  justify-content: center;
  margin-bottom: 2.75rem;
  line-height: 0;
}
.divider svg { width: 30px; height: 16px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 1.6em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--red {
  background: var(--red);
  color: var(--bone);
  border-color: var(--red);
}
.btn--red:hover { background: var(--red-hover); border-color: var(--red-hover); }

.btn--outline {
  background: transparent;
  border-color: var(--steel-deep);
  border-color: rgba(143, 145, 149, 0.5);
  color: var(--bone);
}
.btn--outline:hover { border-color: var(--red-bright); color: var(--red-bright); }

.btn--block { width: 100%; justify-content: center; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 14, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--red-dim);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.brand-mark { height: 46px; width: auto; flex: none; }
.brand strong { color: var(--red-bright); }

.nav-links {
  display: flex;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a {
  text-decoration: none;
  color: var(--bone-dim);
  padding: 0.4em 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover { color: var(--red-bright); border-color: var(--red-bright); }

.nav-links a.active { color: var(--red-bright); border-color: var(--red-bright); }

.nav-cta { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline-steel);
  color: var(--bone);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-links { 
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--onyx-deep);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--red-dim);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links a { padding: 0.9em 0; border-bottom: 1px solid rgba(224,80,90,0.18); width: 100%; }
  .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-cta .btn--outline { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background:
    radial-gradient(ellipse 90% 70% at 82% -5%, rgba(173,20,32,0.30), transparent 60%),
    radial-gradient(ellipse 60% 50% at 8% 100%, rgba(143,145,149,0.10), transparent 60%),
    var(--onyx-deep);
  padding: clamp(4.5rem, 12vw, 8rem) 0 var(--section-pad);
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 0.98;
  text-transform: uppercase;
  color: var(--bone);
}
.hero h1 em {
  font-style: normal;
  color: var(--red-bright);
}
.hero-sub {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--bone-dim);
  max-width: 34em;
  margin: 1.25rem 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.5rem; }

.credential-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.credential-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 0.8em;
  border: 1px solid rgba(224,80,90,0.35);
  border-radius: var(--radius-sm);
}
.credential-strip span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red-bright);
  flex: none;
}

/* Real logo, featured as the hero's signature element */
.hero-logo { position: relative; width: 100%; max-width: 400px; margin-inline: auto; }
.hero-logo::before {
  content: "";
  position: absolute;
  inset: -14%;
  background: radial-gradient(circle, rgba(173,20,32,0.35), transparent 65%);
  z-index: 0;
}
.hero-logo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 25px 45px rgba(0,0,0,0.65));
  animation: logoEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-logo-tagline {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--red-bright);
  margin: 1.1rem 0 0;
}
@keyframes logoEntrance {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo img { animation: none; }
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-logo { max-width: 260px; order: -1; margin-bottom: 0.5rem; }
}

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   CLASSES / PRICING
   ========================================================================== */
.class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 900px) { .class-grid { grid-template-columns: 1fr 1fr; } }
/* With 7 cards the last one lands alone on its own row -- centre it so it
   reads as intentional rather than orphaned. Harmless at other card counts. */
.class-grid > :last-child:nth-child(3n + 1) { grid-column: 2; }
@media (max-width: 900px) { .class-grid > :last-child:nth-child(3n + 1) { grid-column: auto; } }
@media (max-width: 640px) { .class-grid { grid-template-columns: 1fr; } }

.class-card {
  background: var(--onyx-raised);
  color: var(--bone);
  border-top: 3px solid var(--red);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.class-card__price {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--red-bright);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.class-card__price strong { font-size: 1.6rem; display: block; color: var(--bone); font-family: var(--font-display); }
.class-card h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.class-card p {
  color: var(--bone-dim);
  font-size: 1rem;
  flex-grow: 1;
}
.class-card__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bone-dim);
  border-top: 1px solid rgba(224,80,90,0.22);
  padding-top: 1rem;
  margin-top: 1rem;
}
.class-card__cta { margin-top: 1.25rem; }

/* ---- Tappable class cards (jump to that class's scheduled date) ---- */
.class-card--tappable { cursor: pointer; }
.class-card--tappable:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.class-card__notice {
  margin: 1.25rem 0 0;
  padding: 0.8rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--bone);
  background: rgba(224, 80, 90, 0.10);
  border-left: 3px solid var(--red);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.class-card__notice.is-showing { opacity: 1; transform: translateY(0); }
.class-card__notice strong { display: block; margin-bottom: 0.2rem; }

.schedule-row.is-flagged { animation: onyx-flag 2.4s ease; }
@keyframes onyx-flag {
  0%, 100% { background-color: transparent; }
  12%, 55% { background-color: rgba(224, 80, 90, 0.16); }
}
@media (prefers-reduced-motion: reduce) {
  .class-card__notice { transition: none; }
  .schedule-row.is-flagged { animation: none; }
}

/* ==========================================================================
   STUDENT REVIEWS  (content lives in reviews-data.js)
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.review-card {
  margin: 0;
  padding: 1.75rem 1.5rem 1.4rem;
  background: var(--onyx-raised);
  border-top: 3px solid var(--red);
  display: flex;
  flex-direction: column;
}
.review-card__stars {
  color: var(--red-bright);
  line-height: 0;
  margin-bottom: 0.9rem;
}
.review-card__stars svg {
  width: 96px;
  height: auto;
  display: block;
}
.review-card blockquote {
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
  font-size: 1.03rem;
  line-height: 1.6;
  color: var(--bone);
}
.review-card blockquote::before { content: "\201C"; }
.review-card blockquote::after  { content: "\201D"; }
.review-card figcaption {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.review-card__class {
  display: block;
  margin-top: 0.3rem;
  color: var(--steel);
  letter-spacing: 0.05em;
}
.reviews-source {
  margin-top: 2.25rem;
  font-size: 0.92rem;
  color: var(--bone-dim);
  text-align: center;
}
.reviews-source a { color: var(--red-bright); }

/* ==========================================================================
   INQUIRY FORM  (contact.html — hidden until a form endpoint is set)
   ========================================================================== */
.inquiry-wrap { margin-top: 4rem; }
.inquiry-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem 1.35rem;
  margin-top: 2.25rem;
  text-align: left;
}
.inquiry-row { display: flex; flex-direction: column; }
.inquiry-row--wide { grid-column: 1 / -1; }
.inquiry-form label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 0.45rem;
}
.inquiry-form label span {
  text-transform: none;
  letter-spacing: 0;
  color: var(--steel-deep);
}
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--bone);
  background: var(--onyx-deep);
  border: 1px solid var(--hairline-steel);
  border-radius: var(--radius-sm);
}
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--red-bright);
}
.inquiry-form textarea { resize: vertical; }
.inquiry-form button[type="submit"] { grid-column: 1 / -1; justify-self: start; }
.inquiry-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.95rem;
  min-height: 1.2em;
}
.inquiry-status.is-ok  { color: var(--bone); }
.inquiry-status.is-err { color: var(--red-bright); }

.reciprocity-map {
  margin-top: 2.5rem;
  max-width: 100%;
  border: 1px solid rgba(224,80,90,0.25);
}
.reciprocity-disclaimer {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--bone-dim);
  max-width: 60em;
}

/* ==========================================================================
   PAGE BANNER (subpage header, replaces the full hero on Classes/About/Contact)
   ========================================================================== */
.page-banner {
  background:
    radial-gradient(ellipse 90% 70% at 82% -5%, rgba(173,20,32,0.22), transparent 60%),
    var(--onyx-deep);
  padding: clamp(3.5rem, 9vw, 5.5rem) 0 clamp(2.5rem, 6vw, 3.5rem);
}
.page-banner h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  text-transform: uppercase;
  line-height: 1.02;
  margin-bottom: 0.75rem;
}
.page-banner .section-lede { margin-top: 0; }

/* ==========================================================================
   HOME PAGE TEASERS
   ========================================================================== */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (max-width: 760px) { .teaser-grid { grid-template-columns: 1fr; } }
.teaser-grid > :last-child:nth-child(3n + 1) { grid-column: 2; }
@media (max-width: 760px) { .teaser-grid > :last-child:nth-child(3n + 1) { grid-column: auto; } }

.teaser-card {
  background: var(--onyx-raised);
  border-top: 3px solid var(--red);
  padding: 1.75rem;
  text-decoration: none;
  color: var(--bone);
  display: block;
  transition: transform 0.15s ease;
}
.teaser-card:hover { transform: translateY(-2px); }
.teaser-card__price {
  font-family: var(--font-mono);
  color: var(--red-bright);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.teaser-card h3 { font-size: 1.3rem; text-transform: uppercase; margin-bottom: 0.4rem; }
.teaser-card p { color: var(--bone-dim); font-size: 0.92rem; margin: 0; }

.section-more {
  margin-top: 2.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-bright);
  text-decoration: none;
}
.section-more:hover { color: var(--red-hover); }

.teaser-notary-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(224,80,90,0.22);
  color: var(--bone-dim);
  font-size: 0.95rem;
}
.teaser-notary-note .section-more { margin-top: 0; margin-left: 0.4em; }

/* ==========================================================================
   FREE RESOURCES (USCCA partner offers)
   ========================================================================== */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 900px) { .offer-grid { grid-template-columns: 1fr; } }

.offer-card {
  background: var(--onyx-raised);
  border: 1px solid rgba(224,80,90,0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.offer-card__image-link {
  display: block;
  aspect-ratio: 1200 / 628;
  overflow: hidden;
}
.offer-card__image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.offer-card__image-link:hover img { transform: scale(1.04); }
.offer-card__body { padding: 1.25rem; }

.offer-disclosure {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--bone-dim);
  max-width: 60em;
}

.instructor-teaser {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2.5rem;
}
@media (max-width: 760px) { .instructor-teaser { grid-template-columns: 1fr; } }
.instructor-teaser .instructor-photo { aspect-ratio: 1 / 1; max-width: 260px; }
.instructor-teaser-copy p { color: var(--bone-dim); font-size: 1.05rem; }

/* ==========================================================================
   ADDITIONAL SERVICES (Notary today; more services reuse this same pattern)
   ========================================================================== */
.service-item { margin-top: 3rem; }
.service-item:first-child { margin-top: 0; }
.service-item + .service-item {
  padding-top: 3rem;
  border-top: 1px solid rgba(224,80,90,0.18);
}
.service-item__title {
  font-size: 1.6rem;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.service-item__lede { color: var(--bone-dim); font-size: 1.05rem; margin-bottom: 0; }

.service-block {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  margin-top: 1.75rem;
  background: var(--onyx-raised);
  border-top: 3px solid var(--red);
  padding: 2.25rem;
}
@media (max-width: 760px) { .service-block { grid-template-columns: 1fr; } }

.service-copy p { color: var(--bone-dim); font-size: 1.05rem; }
.service-fees {
  margin: 1.5rem 0;
  border-top: 1px solid rgba(224,80,90,0.22);
}
.service-fees li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(224,80,90,0.22);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.service-fees li span { color: var(--bone-dim); text-transform: uppercase; letter-spacing: 0.03em; }
.service-fees li strong { color: var(--bone); font-family: var(--font-display); font-size: 1.1rem; }

.service-highlight {
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--red);
  background: rgba(173,20,32,0.08);
  font-size: 0.95rem;
  color: var(--bone);
}

.service-cta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: center;
}


.schedule-list { margin-top: 2.5rem; border-top: 1px solid rgba(224,80,90,0.22); }
.schedule-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(224,80,90,0.22);
}
.schedule-row__date {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--red-bright);
  line-height: 1.3;
}
.schedule-row__date .weekday { display: block; font-size: 0.7rem; color: var(--bone-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.schedule-row__info h4 { font-size: 1.15rem; text-transform: uppercase; margin-bottom: 0.3rem; }
.schedule-row__info p { margin: 0; font-size: 0.92rem; color: var(--bone-dim); font-family: var(--font-mono); }
.schedule-row__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3em 0.6em;
  border: 1px solid var(--red-dim);
  color: var(--red-bright);
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.4rem;
}

@media (max-width: 640px) {
  .schedule-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .schedule-row__cta { justify-self: start; }
}

.schedule-empty {
  margin-top: 2.5rem;
  border: 1px dashed var(--hairline-steel);
  padding: 3rem 2rem;
  text-align: center;
}
.schedule-empty p:first-child {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 0.5rem;
}
.schedule-empty p { color: var(--bone-dim); }
.schedule-empty .btn { margin-top: 1rem; }

/* ==========================================================================
   ABOUT / INSTRUCTOR
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  margin-top: 3rem;
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.instructor-photo {
  aspect-ratio: 4 / 5;
  background: var(--onyx-raised);
  border: 1px solid rgba(224,80,90,0.3);
  position: relative;
  overflow: hidden;
}
.instructor-photo img { width: 100%; height: 100%; object-fit: cover; }
.instructor-photo .photo-fallback {
  position: absolute; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--bone-dim);
}
.instructor-photo .photo-fallback svg { width: 64px; height: 64px; opacity: 0.6; }
.instructor-photo .photo-fallback span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.instructor-photo.has-error .photo-fallback { display: flex; }
.instructor-photo.has-error img { display: none; }

/* Certification badges -- mixes real official seals (USCCA, NCDOJ, Notary)
   with plain marks for credentials that don't have a supplied logo. Cards
   stay white/light on purpose: official seals need to read as authentic,
   and the white pops hard against the black section around them. */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1.75rem;
}
@media (max-width: 700px) { .badge-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .badge-grid { grid-template-columns: 1fr; } }

.badge-card {
  background: #ffffff;
  border-top: 3px solid var(--red);
  padding: 1rem 0.65rem;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
}
.badge-card img { max-height: 58px; width: auto; max-width: 100%; object-fit: contain; }
.badge-card span {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-dim);
  line-height: 1.3;
}
.badge-card--text .badge-mark {
  width: 38px; height: 38px;
  border: 1px solid var(--steel-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--steel-deep);
}

.bio .role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 1.25rem;
  display: block;
}
.bio h3 {
  font-size: 1.9rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.bio p { color: var(--bone-dim); font-size: 1.05rem; }

/* ==========================================================================
   SERVICE AREA
   ========================================================================== */
.area-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2.5rem;
}
@media (max-width: 860px) { .area-wrap { grid-template-columns: 1fr; } }

.radius-graphic {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 340px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.radius-ring {
  position: absolute;
  border: 1px solid rgba(224,80,90,0.3);
  border-radius: 50%;
}
.radius-ring--1 { inset: 0; }
.radius-ring--2 { inset: 15%; }
.radius-ring--3 { inset: 30%; border-color: var(--steel); }
.radius-center {
  position: relative;
  z-index: 2;
  text-align: center;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.radius-center strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--red-bright);
  letter-spacing: 0.02em;
}
.radius-center span { font-size: 0.65rem; letter-spacing: 0.1em; color: var(--bone-dim); }

.area-copy p { color: var(--bone-dim); font-size: 1.05rem; }
.area-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--steel);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--bone-dim);
  line-height: 1.7;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--onyx-raised);
  border-top: 3px solid var(--steel);
  padding: 2rem 1.5rem;
  text-align: left;
  text-decoration: none;
  color: var(--bone);
  transition: border-color 0.15s ease, transform 0.15s ease;
  display: block;
}
.contact-card:hover { border-color: var(--red); transform: translateY(-2px); }
.contact-card .eyebrow { margin-bottom: 1rem; }
.contact-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.contact-card span { font-family: var(--font-mono); font-size: 0.85rem; color: var(--bone-dim); }

.social-row {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--bone-dim);
}
.social-row a {
  width: 40px; height: 40px;
  border: 1px solid var(--hairline-steel);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--bone);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.social-row a:hover { border-color: var(--red-bright); color: var(--red-bright); }
.social-row svg { width: 18px; height: 18px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--onyx-deep);
  color: var(--bone-dim);
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--red-dim);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 0.4rem;
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.9;
}
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(224,80,90,0.18);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--bone-dim);
  opacity: 0.7;
  letter-spacing: 0.03em;
}


/* ==========================================================================
   INTERACTIVE RECIPROCITY MAP
   Colors come from reciprocity-data.js; geometry from us-map-paths.js.
   Each status class sets --st (the fill/swatch color) plus a lighter text
   color that stays readable on the dark background.
   ========================================================================== */
.recip-status--yes            { --st: #1faf46; color: #35c25a; }
.recip-status--constitutional { --st: #2c51a9; color: #6f97e8; }
.recip-status--restricted     { --st: #f2c322; color: #f2c322; }
.recip-status--no             { --st: #ca264b; color: #e0505a; }
.recip-status--home           { --st: #b9bec6; color: #b9bec6; }
.recip-status--unknown        { --st: #4a4d52; color: #8f9195; }

.recip-live { margin-top: 2.5rem; }

.recip-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.35rem;
  margin-bottom: 1.5rem;
}
.recip-key {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.recip-swatch {
  width: 13px;
  height: 13px;
  margin-right: 0.5rem;
  background: var(--st);
  flex: 0 0 auto;
}

.recip-map {
  background: var(--onyx-deep);
  border: 1px solid var(--hairline-steel);
  padding: 0.5rem;
}
.recip-svg { width: 100%; height: auto; display: block; }

.recip-state {
  fill: var(--st);
  stroke: var(--onyx-deep);
  stroke-width: 1;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.recip-state:hover { opacity: 0.72; }
.recip-state:focus { outline: none; }
.recip-state:focus-visible,
.recip-state.is-selected {
  stroke: var(--bone);
  stroke-width: 2.5;
}
.recip-label {
  fill: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.5);
  stroke-width: 2.5px;
}

.recip-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.recip-chip {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--st);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
  min-width: 46px;
  cursor: pointer;
}
.recip-chip.is-selected { border-color: var(--bone); }

.recip-hint {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--bone-dim);
}

.recip-panel {
  margin-top: 1.75rem;
  padding: 1.5rem;
  background: var(--onyx-raised);
  border-left: 3px solid var(--red);
  text-align: left;
}
.recip-panel__state {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--bone);
}
.recip-panel__status {
  margin: 0.35rem 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}
.recip-panel__status::before {
  content: "";
  width: 11px;
  height: 11px;
  margin-right: 0.5rem;
  background: var(--st);
  flex: 0 0 auto;
}
.recip-panel p { color: var(--bone-dim); }
.recip-panel__note {
  border-left: 2px solid var(--hairline-steel);
  padding-left: 0.75rem;
  font-size: 0.94rem;
}
.recip-panel__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.15rem 0 0.35rem;
}
.recip-panel__disclaimer {
  margin-bottom: 0;
  font-size: 0.82rem;
  color: var(--steel-deep);
}
.recip-asof {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--steel-deep);
}

@media (max-width: 620px) {
  .recip-label { font-size: 18px; }
  .recip-chip { min-width: 54px; padding: 0.55rem 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .recip-state { transition: none; }
}
