/* So Cal Defense Academy — dark main, white header bar */
:root {
  --bg-page: #101014;
  --bg-card: #1a1a22;
  --bg-elevated: #22222c;
  --bg-deep: #101014;
  --text: #ececf2;
  --text-muted: #9ca3af;
  --accent: #ffffff;
  --accent-warm: #fbbf24;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --link: #e4e4e9;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 20px 40px -12px rgb(0 0 0 / 0.45);
  --font-sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Instrument Sans", var(--font-sans);
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--text);
  background: var(--bg-page);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #15151c 0%, var(--bg-page) 45%, #0c0c10 100%);
  z-index: -1;
}

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

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.35);
  text-underline-offset: 0.18em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: #ffffff;
  text-decoration-color: rgb(255 255 255 / 0.75);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header — always light; tokens scoped so nav/logo stay dark */
.site-header {
  --text: #141418;
  --text-muted: #5c5c5c;
  --border: #e4e4e7;
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  backdrop-filter: none;
  color: var(--text);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--text);
}

.logo,
.logo:hover {
  text-decoration: none;
}

.logo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.logo-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  background: #141418;
  color: #ffffff !important;
  padding: 0.55rem 1.2rem;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  box-shadow: none;
}

.nav-cta:hover {
  color: #ffffff !important;
  filter: brightness(1.15);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgb(255 255 255 / 0.92);
  background: transparent;
  border: 1px solid rgb(255 255 255 / 0.22);
  padding: 0.4rem 0.85rem;
  border-radius: 0;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin: 0 0 1rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 36ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 0;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.2s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #ffffff;
  color: #141418 !important;
  box-shadow: none;
}

.btn-primary:hover {
  filter: brightness(0.94);
  color: #141418 !important;
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgb(255 255 255 / 0.45);
}

.btn-ghost:hover {
  background: #ffffff;
  color: #141418 !important;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  display: none;
}

.hero-card h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 1.25rem;
  position: relative;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
}

.stat {
  text-align: center;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
}

.stat span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-card-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
}

/* Sections */
section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-head {
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Services */
.services {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.service-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: rgb(255 255 255 / 0.22);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  margin: 0;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: var(--bg-page);
  border-block: 1px solid var(--border);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-inner h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.cta-inner p {
  margin: 0;
  color: var(--text-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Footer — light band on dark main */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid #d4d4da;
  background: #ececee;
  color: #5b5b64;
  font-size: 0.9rem;
}

.footer-sponsor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  padding: 1.1rem 1.35rem;
  margin-bottom: 1.75rem;
  background: #ffffff;
  border: 1px solid #e0e0e6;
  border-radius: var(--radius);
}

.footer-sponsor-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.footer-sponsor-link:hover {
  text-decoration: none;
  opacity: 0.75;
}

.footer-sponsor-link:focus-visible {
  outline: 2px solid #141418;
  outline-offset: 4px;
  border-radius: 4px;
}

.footer-sponsor-logo {
  height: clamp(2rem, 6.5vw, 3.15rem);
  width: auto;
  max-width: min(100%, 440px);
  object-fit: contain;
  object-position: left center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand > p:first-child {
  margin: 0;
  color: #62626c;
}

.footer-contact {
  margin: 0;
  font-size: 0.88rem;
  color: #62626c;
  max-width: 46ch;
  line-height: 1.5;
}

.footer-contact a {
  color: #141418;
  white-space: nowrap;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
  text-decoration-color: rgb(20 20 24 / 0.45);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: #62626c;
  text-decoration: none;
}

.footer-links a:hover {
  color: #141418;
  text-decoration: underline;
  text-decoration-color: rgb(20 20 24 / 0.4);
}

/* Instructors page */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-page);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.75rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 55ch;
  font-size: 1.1rem;
}

.instructor-grid {
  display: grid;
  gap: 1.25rem;
  padding: 2.5rem 0 4rem;
}

@media (min-width: 600px) {
  .instructor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .instructor-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.instructor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s ease;
}

.instructor-card:hover {
  border-color: rgb(255 255 255 / 0.2);
}

.instructor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #141418;
}

.instructor-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.instructor-card h2 {
  font-size: 1.2rem;
  margin: 0;
}

.instructor-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: -0.25rem;
}

.instructor-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

/* Schedule page */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.schedule-main {
  padding: 0 0 3rem;
}

.schedule-event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.schedule-event-top {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .schedule-event-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.schedule-date-heading {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  margin: 0 0 0.35rem;
}

.schedule-event-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.schedule-pricing-inline {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.schedule-pricing-inline p {
  margin: 0;
}

.schedule-pricing-inline strong {
  color: var(--accent-warm);
  font-weight: 700;
}

.schedule-location {
  display: flex;
  flex-direction: column;
}

.schedule-location-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.schedule-location-name {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}

.schedule-location-address {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.schedule-map-link {
  align-self: flex-start;
}

.schedule-session-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .schedule-session-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.schedule-session-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.schedule-session-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-family: var(--font-display);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.schedule-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 0 0.65rem;
  border-bottom: 1px solid var(--border);
}

.schedule-table th:last-child,
.schedule-table td:last-child {
  text-align: right;
}

.schedule-table td {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.schedule-table td:first-child {
  color: var(--text);
  font-weight: 500;
}

.schedule-table td:last-child {
  color: var(--text-muted);
  white-space: nowrap;
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
  padding-bottom: 0;
}

.schedule-footnote {
  margin: 2rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 52ch;
}
