:root {
  --bg: #0e0e0f;
  --bg-soft: #171819;
  --surface: #1f2021;
  --surface-alt: #272829;
  --line: #3a3b3c;
  --text: #f5f1e8;
  --muted: #c1bcae;
  --brand: #ffcc01;
  --brand-dark: #d8ab00;
  --olive: #2f372f;
  --olive-soft: #727365;
  --danger: #c54a4a;
  --success: #62c287;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(47, 55, 47, 0.18), transparent 35%),
    linear-gradient(180deg, var(--bg), #121314 42%, var(--bg-soft));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #2e2f31;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  color: #f5f1e8;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 0.88rem;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

nav a {
  color: #ddd9cd;
  text-decoration: none;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.84rem;
  transition: all 0.2s ease;
}

nav a:hover {
  background: rgba(255, 204, 1, 0.12);
  border-color: rgba(255, 204, 1, 0.42);
  color: #fff7d1;
}

nav a.active {
  background: linear-gradient(135deg, var(--brand), #f7d652);
  color: #1a1a1a;
  border-color: transparent;
  font-weight: 800;
}

main {
  padding: 2rem 0 2.7rem;
}

.hero,
.card,
.tab-panel,
.accordion-item,
.academy-cta,
.schedule,
.image-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.hero {
  padding: 2rem;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
}

.hero.short {
  padding: 1.65rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.1rem;
  align-items: stretch;
}

.kicker {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
  font-weight: 800;
}

.about-kicker {
  color: #ffffff;
  font-size: 0.9rem;
}

.home-kicker {
  font-size: 0.86rem;
  color: #ffffff;
}

h1,
h2 {
  font-family: "Arial Black", "Arial Narrow Bold", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

h1 {
  margin: 0.7rem 0 1.1rem;
  font-size: clamp(1.72rem, 2.35vw, 2.85rem);
  line-height: 1.12;
  color: #fff5d0;
  font-weight: 900;
}

.about-main-title {
  font-size: clamp(1.2rem, 1.8vw, 2rem);
  color: gold;
}

.home-title {
  color: var(--brand);
}

h2 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
  color: #ffeb9d;
  font-weight: 900;
}

p {
  margin: 0.56rem 0 0;
  color: var(--muted);
  line-height: 1.58;
}

ul {
  margin: 0.7rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

li {
  margin-top: 0.33rem;
  line-height: 1.5;
}

strong {
  color: #fff2c7;
}

.button {
  display: inline-block;
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--brand), #f4db6f);
  color: #1b1b1b;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.68rem 1.08rem;
  font-weight: 800;
}

.hero-media {
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem;
}

.hero-media-visual {
  display: grid;
  gap: 0.65rem;
}

.hero-service-banner {
  margin-top: calc(1.35rem + 1in);
  padding: 0.95rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 204, 1, 0.6);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 235, 157, 0.34), transparent 42%),
    linear-gradient(135deg, rgba(255, 204, 1, 0.3), rgba(255, 255, 255, 0.03)),
    #151617;
  color: #fff6cf;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 1.12rem;
  line-height: 1.12;
  font-weight: 900;
  text-align: center;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.about-intro-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.about-intro-copy p {
  margin-top: 0.65rem;
}

.about-intro-media {
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem;
}

.about-intro-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.hero-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.program-hero-media img {
  width: 92%;
  margin: 0 auto;
}

.tag-row {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.74rem;
  color: #fff3c0;
  border: 1px solid rgba(255, 204, 1, 0.38);
  background: rgba(255, 204, 1, 0.13);
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  font-weight: 700;
}

.grid {
  margin: 1.1rem 0 1.8rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 1.15rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.visitation-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.visitation-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1rem;
  align-items: center;
}

.visitation-copy {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.visitation-photo {
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.grid .card:nth-child(3n + 1) {
  border-top: 3px solid #ffcc01;
}

.grid .card:nth-child(3n + 2) {
  border-top: 3px solid #8b8e78;
}

.grid .card:nth-child(3n + 3) {
  border-top: 3px solid #7a8a73;
}

.split {
  margin: 1.1rem 0 1.8rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.9rem;
}

.schedule {
  padding: 1rem;
  background: linear-gradient(165deg, #202721, #1a1d1c);
}

.schedule h2 {
  color: #ffe68f;
}

.schedule p {
  color: #d0cbbe;
}

.visual-grid {
  margin: 0 0 2rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.psych-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.psych-copy p:first-child {
  margin-top: 0;
}

.psych-images {
  margin-bottom: 0;
  grid-template-columns: 1fr;
  align-self: start;
}

.psych-images .image-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.cqct-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1rem;
  align-items: center;
}

.cqct-copy p:first-child {
  margin-top: 0;
}

.cqct-image {
  margin-top: 0;
  background: #111;
  width: min(100%, 330px);
  justify-self: end;
  align-self: center;
}

.image-card {
  overflow: hidden;
}

.image-card img {
  width: 100%;
  height: 172px;
  object-fit: cover;
  display: block;
}

.cqct-image img {
  height: auto;
  object-fit: contain;
  width: 100%;
}

.daily-training-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.25fr);
  gap: 1rem;
  align-items: center;
}

.daily-training-copy p:first-child {
  margin-top: 0;
}

.daily-training-image {
  width: 100%;
  max-width: 420px;
  justify-self: start;
}

.daily-training-image img {
  height: auto;
  object-fit: contain;
  width: 100%;
}

.image-card .caption {
  padding: 0.85rem;
}

.quote {
  font-style: italic;
  color: #d6d1c3;
}

.divider {
  margin: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.muted-small {
  color: #b6b0a2;
  font-size: 0.9rem;
}

.tabs {
  margin-top: 1rem;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tab-buttons button {
  border: 1px solid #54544e;
  background: #262626;
  color: #ddd6c4;
  border-radius: 999px;
  padding: 0.45rem 0.82rem;
  cursor: pointer;
  font-weight: 700;
}

.tab-buttons button.active {
  background: linear-gradient(135deg, var(--brand), #f2d860);
  color: #1a1a1a;
  border-color: transparent;
}

.tab-panel {
  padding: 1rem;
}

.accordion {
  display: grid;
  gap: 0.65rem;
}

.accordion-item {
  overflow: hidden;
}

.accordion-item button {
  position: relative;
  width: 100%;
  border: 0;
  background: #242526;
  text-align: left;
  color: #f5e6b0;
  padding: 0.95rem 2.6rem 0.95rem 1rem;
  cursor: pointer;
  font-weight: 800;
}

.accordion-item button:hover {
  background: #2f3031;
}

.accordion-item button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.accordion-item button::after {
  content: "+";
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 1.2rem;
}

.accordion-item.open button {
  background: #313232;
}

.accordion-item.open button::after {
  content: "-";
}

.accordion-content {
  display: none;
  padding: 0 1rem 1rem;
}

.accordion-item.open .accordion-content {
  display: block;
}

.long-copy {
  white-space: pre-wrap;
  line-height: 1.55;
  color: #cdc8b9;
}

.academy-cta {
  margin: 1.2rem 0 2rem;
  padding: 1.25rem;
  border-color: rgba(255, 204, 1, 0.52);
  background: linear-gradient(130deg, #2f372f, #232323, #3a3322);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.36);
}

.academy-cta h2 {
  color: #ffe390;
  font-size: clamp(1.22rem, 1.9vw, 1.62rem);
  margin-bottom: 0.15rem;
}

.academy-cta p {
  color: #e4dece;
}

.academy-cta .cta-row {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.56rem;
  flex-wrap: wrap;
}

.academy-cta .cta-btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.54rem 0.95rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.academy-cta .cta-btn.primary {
  background: linear-gradient(135deg, var(--brand), #f3d860);
  color: #1b1b1b;
}

.academy-cta .cta-btn.secondary {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.academy-cta .cta-note {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: #f6efdc;
}

body.booking-open {
  overflow: hidden;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.booking-modal-card {
  position: relative;
  z-index: 1;
  width: min(580px, 92%);
  margin: 6vh auto 0;
  background: #1c1d1e;
  border: 1px solid #444;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.45);
}

.booking-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: 1px solid #5b5b5b;
  background: #292a2b;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  cursor: pointer;
}

.booking-kicker {
  margin: 0;
  color: var(--brand);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.booking-sub {
  margin-top: 0.3rem;
}

.booking-form {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.65rem;
}

.booking-form label {
  display: grid;
  gap: 0.28rem;
  color: #e1dbcd;
  font-size: 0.9rem;
}

.booking-form input,
.booking-form select {
  border: 1px solid #5a5a53;
  background: #2a2b2c;
  color: #f3f0e7;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
}

.booking-form input:focus,
.booking-form select:focus {
  outline: 2px solid rgba(255, 204, 1, 0.38);
  outline-offset: 1px;
}

#booking-date {
  cursor: pointer;
}

.booking-calendar {
  border: 1px solid #5a5a53;
  border-radius: 12px;
  background: #232425;
  padding: 0.65rem;
  margin-top: -0.15rem;
}

.booking-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.booking-calendar-head button {
  border: 1px solid #6d6d66;
  background: #2d2e2f;
  color: #fff0ba;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.booking-calendar-weekdays,
.booking-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
}

.booking-calendar-weekdays {
  margin-bottom: 0.3rem;
}

.booking-calendar-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  color: #bdb8aa;
}

.calendar-spacer {
  height: 34px;
}

.calendar-day {
  border: 1px solid #4f4f49;
  background: #2c2d2e;
  color: #f5edcf;
  border-radius: 8px;
  height: 34px;
  cursor: pointer;
}

.calendar-day:hover:not(.disabled) {
  background: #3a3b3c;
}

.calendar-day.selected {
  background: linear-gradient(135deg, var(--brand), #f4db6d);
  color: #1a1a1a;
  border-color: transparent;
  font-weight: 800;
}

.calendar-day.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.booking-submit {
  margin-top: 0.3rem;
  border: 0;
  border-radius: 10px;
  padding: 0.62rem 0.9rem;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand), #f4db6d);
  color: #1a1a1a;
}

.booking-error {
  color: #f58b8b;
  margin: 0.1rem 0 0;
}

.booking-success {
  margin-top: 0.8rem;
  color: #9fdfb8;
}

@media (max-width: 980px) {
  .hero-grid,
  .about-intro-grid,
  .split,
  .grid,
  .grid.two-col,
  .visual-grid,
  .psych-layout {
    grid-template-columns: 1fr;
  }

  .psych-images {
    grid-template-columns: 1fr;
  }

  .visitation-layout {
    grid-template-columns: 1fr;
  }

  .cqct-layout {
    grid-template-columns: 1fr;
  }

  .daily-training-layout {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
  }

  .brand {
    font-size: 0.82rem;
  }
}
