/* ============================================================
   Black Tower Academy — multi-page components
   Builds on css/style.css tokens. Interior pages, path cards,
   program grids, method row, forms, CTA bands.
   ============================================================ */

/* Active nav state */
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; margin-top: 4px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  border-radius: 2px;
}
.mobile-menu a.active { color: var(--purple-light); }

/* Inline single-row nav (SANS-style): one clean line, no wrapping */
.nav .wrap { max-width: 1340px; }
.nav-inner { gap: 22px; }
.nav-links { gap: 22px; margin-left: 20px; }
.nav-links a { white-space: nowrap; font-size: 0.9rem; }
.nav-cta-wrap { gap: 10px; }
.nav-cta-wrap .btn-sm { padding: 0.62em 1.05em; font-size: 0.84rem; white-space: nowrap; }

@media (max-width: 1240px) {
  .nav-links { display: none; }
  .nav-cta-wrap .btn { display: none; }
  .nav-toggle { display: flex; }
  .brand img { height: 52px; }
}
@media (min-width: 1241px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* ============================================================
   Interior page hero
   ============================================================ */
.page-hero {
  position: relative;
  padding: 150px 0 68px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 10%, rgba(94,110,180,0.22), transparent 46%),
    radial-gradient(circle at 6% 90%, rgba(34,211,238,0.05), transparent 40%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.4;
  background-image:
    linear-gradient(rgba(148,163,184,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 70% at 60% 20%, #000 30%, transparent 78%);
}
.page-hero .wrap { position: relative; z-index: 1; max-width: 900px; }
.page-hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); margin-bottom: 0.5em; }
.page-hero .lede { font-size: clamp(1.06rem, 1.6vw, 1.24rem); color: var(--ink-secondary); max-width: 62ch; }
.page-hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.8em; }

/* Decorative background overlays must never intercept clicks (cross-browser
   safety — masked/positioned pseudo-elements can capture pointer events). */
.hero::before, .page-hero::before, .footer::before, .cta-band::before,
.hero-strip, .grad-frame::before { pointer-events: none; }
/* Guarantee interactive hero content sits above any overlay in every engine */
.hero-inner, .hero-inner .hero-copy, .hero-actions, .page-hero .wrap { position: relative; z-index: 2; }
.hero-actions a, .page-hero .hero-actions a { position: relative; z-index: 2; }

/* Type-forward home hero (radar removed) */
.hero-inner { position: relative; z-index: 2; padding-bottom: 60px; }
.hero-inner .hero-copy { max-width: 100%; }
.hero-inner h1 { max-width: 17ch; margin-bottom: 0.5em; }
.hero-inner .lede { max-width: 60ch; }
.hero-inner .support-line { max-width: 58ch; }
.hero-inner .hero-actions { margin: 2em 0 1.6em; align-items: center; }
.hero-inner .hero-chips { margin-top: 0; }
@media (max-width: 560px) { .hero-inner h1 { max-width: 100%; } }

/* Centered section head helper */
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

/* ============================================================
   Path / choice cards (Home "Choose Your Path" + Contact)
   ============================================================ */
.path-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path-card {
  position: relative;
  background: linear-gradient(180deg, var(--card-elevated), rgba(11,16,32,0.9));
  border: 1px solid var(--line-purple);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-decoration: none;
  color: var(--ink);
  display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.38);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  overflow: hidden;
}
.path-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light), var(--cyan));
  opacity: 0; transition: opacity 0.2s var(--ease);
}
.path-card:hover { transform: translateY(-4px); border-color: var(--line-purple-strong); box-shadow: 0 28px 100px rgba(94,110,180,0.2); }
.path-card:hover::before { opacity: 1; }
.path-card .pc-eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple-light); margin-bottom: 1em; }
.path-card h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 0.5em; }
.path-card p { color: var(--ink-secondary); font-size: 0.98rem; flex-grow: 1; margin-bottom: 1.4em; }
.path-card .pc-go { color: var(--purple-light); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.path-card:hover .pc-go { color: var(--cyan); }
@media (max-width: 780px) { .path-cards { grid-template-columns: 1fr; } .path-card { padding: 30px; } }

/* ============================================================
   Program grid (Home preview + Programs page areas)
   ============================================================ */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.program-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.program-card:hover { transform: translateY(-3px); border-color: var(--line-purple); box-shadow: 0 24px 80px rgba(94,110,180,0.14); }
.program-card .pg-tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple-light); display: block; margin-bottom: 0.9em; }
.program-card h3 { font-size: 1.12rem; margin-bottom: 0.5em; }
.program-card p { font-size: 0.92rem; color: var(--ink-secondary); margin: 0; }
@media (max-width: 900px) { .program-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .program-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Method row — 5 steps (Explain / Demonstrate / Practice / Coach / Assess)
   ============================================================ */
.method-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.method-step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 2px solid var(--purple-light);
  padding: 24px 20px;
}
.method-step .m-num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--purple-light); letter-spacing: 0.1em; display: block; margin-bottom: 0.8em; }
.method-step h4 { font-size: 1.05rem; margin-bottom: 0.4em; }
.method-step p { font-size: 0.86rem; color: var(--muted); margin: 0; }
@media (max-width: 980px) { .method-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .method-row { grid-template-columns: 1fr; } }

/* ============================================================
   Steps list (numbered "How training works" / custom approach)
   Reuses .process-steps from style.css; add a boxed variant
   ============================================================ */
.steps-panel {
  background: var(--card-elevated); border: 1px solid var(--line-purple); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: 0 32px 120px rgba(94,110,180,0.14);
}

/* ============================================================
   CTA band (final CTAs across pages)
   ============================================================ */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(94,110,180,0.22), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(34,211,238,0.06), transparent 45%),
    var(--bg-deep);
  border: 1px solid var(--line-purple);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); max-width: 20ch; margin: 0 auto 0.5em; }
.cta-band p { color: var(--ink-secondary); max-width: 56ch; margin: 0 auto 1.6em; }
.cta-band .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   Mini proof (home) — testimonials + grad preview split
   ============================================================ */
.proof-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.proof-quotes { display: grid; gap: 16px; }
.grad-preview {
  border: 1px solid rgba(94,110,180,0.28); border-radius: var(--radius-lg);
  padding: 16px; background: radial-gradient(circle at 50% 0%, rgba(94,110,180,0.12), transparent 60%), var(--bg-deep);
  box-shadow: 0 24px 80px rgba(94,110,180,0.12);
}
.grad-preview img { border-radius: 10px; }
.grad-preview .gp-cap { font-size: 0.78rem; color: var(--muted); margin: 0.9em 0 0; }
@media (max-width: 900px) { .proof-split { grid-template-columns: 1fr; } }

/* ============================================================
   Forms
   ============================================================ */
.form-panel {
  background: var(--card-elevated); border: 1px solid var(--line-purple);
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 32px 120px rgba(94,110,180,0.12);
}
.form-panel > .eyebrow { margin-bottom: 0.6em; }
.form-panel h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.3em; }
.form-panel .form-intro { color: var(--ink-secondary); font-size: 0.96rem; margin-bottom: 1.8em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: span 2; }
.form-field label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.form-field label .req { color: var(--purple-light); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: rgba(148,163,184,0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.72em 0.9em;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9em center; padding-right: 2.2em; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--slate-purple); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--purple-light); background: rgba(94,110,180,0.08);
}
.form-actions { margin-top: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: 0.8rem; color: var(--muted); }
.form-success {
  display: none;
  margin-top: 18px; padding: 16px 20px;
  background: rgba(34,211,238,0.06); border: 1px solid rgba(34,211,238,0.3);
  border-radius: var(--radius); color: var(--ink-secondary); font-size: 0.92rem;
}
.form-success.show { display: block; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } .form-field.full { grid-column: span 1; } }

/* Anchor offset so sticky header doesn't cover jumped-to sections */
[id] { scroll-margin-top: 96px; }

/* Founder highlights list (About) */
.highlight-list { list-style: none; margin: 1.4em 0 0; padding: 0; display: grid; gap: 10px; }
.highlight-list li { font-size: 0.94rem; color: var(--ink-secondary); padding-left: 22px; position: relative; }
.highlight-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

/* Two-column intro (About founder) */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split-2 { grid-template-columns: 1fr; } }

/* Footer: 4 columns (brand + 3 link groups) */
.footer-top { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; }
.footer-brand p a { color: var(--ink-secondary); text-decoration: none; }
.footer-brand p a:hover { color: var(--purple-light); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ============================================================
   Imagery pass (2026-07) — media frames, hero media, image cards
   ============================================================ */

/* Reusable framed image with soft purple glow */
.media-glow { position: relative; }
.media-glow::before {
  content: ""; position: absolute; z-index: 0;
  inset: 10% -6% -8% 6%;
  background: radial-gradient(circle at 60% 55%, rgba(94,110,180,0.38), rgba(94,110,180,0.06) 46%, transparent 72%);
  filter: blur(22px); pointer-events: none;
}
.media-frame {
  position: relative; z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-purple);
  box-shadow: 0 32px 120px rgba(94,110,180,0.22);
  background: var(--bg-deep);
}
.media-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Chips overlaid on the bottom of an image */
.media-chips {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 44px 16px 16px;
  background: linear-gradient(to top, rgba(5,7,11,0.86), rgba(5,7,11,0.25) 60%, transparent);
}
.media-chip {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); background: rgba(11,16,32,0.7); backdrop-filter: blur(6px);
  border: 1px solid var(--line-purple); border-radius: 999px; padding: 0.45em 0.85em;
}

/* Two-column hero with media */
.hero-grid2 { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 48px; align-items: center; }
.hero-grid2 .hero-copy { max-width: 100%; }
.hero-media { aspect-ratio: 16 / 11; }
@media (max-width: 980px) {
  .hero-grid2 { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { aspect-ratio: 16 / 10; }
}

/* Full-width banner image */
.banner-frame {
  position: relative; z-index: 1;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-purple);
  box-shadow: 0 32px 120px rgba(94,110,180,0.18);
}
.banner-frame img { display: block; width: 100%; height: auto; }

/* Process graphic frame (custom course design) */
.graphic-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-purple);
  box-shadow: 0 32px 120px rgba(94,110,180,0.16);
  max-width: 1040px; margin: 0 auto;
}
.graphic-frame img { display: block; width: 100%; height: auto; }

/* Image-top program cards */
.imgcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.imgcard:hover { transform: translateY(-4px); border-color: var(--line-purple); box-shadow: 0 28px 100px rgba(94,110,180,0.16); }
.imgcard-media { aspect-ratio: 16 / 10; overflow: hidden; }
.imgcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--ease); }
.imgcard:hover .imgcard-media img { transform: scale(1.04); }
.imgcard-media.branded {
  background:
    radial-gradient(circle at 30% 25%, rgba(116,132,210,0.35), transparent 60%),
    linear-gradient(135deg, var(--purple-deep), var(--bg-deep));
  display: flex; align-items: center; justify-content: center;
}
.imgcard-media.branded .branded-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0 20px; }
.imgcard-body { padding: 24px 26px; }
.imgcard-body .pg-tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple-light); display: block; margin-bottom: 0.7em; }
.imgcard-body h3 { font-size: 1.12rem; margin-bottom: 0.45em; }
.imgcard-body p { font-size: 0.92rem; color: var(--ink-secondary); margin: 0; }

/* Founder image + credibility chips */
.founder-media .media-frame { aspect-ratio: 4 / 3; }
.cred-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; position: relative; z-index: 1; }
.cred-chip {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-secondary); border: 1px solid var(--line-purple); background: var(--glass-purple);
  border-radius: 999px; padding: 0.5em 0.9em;
}

/* Resource cards (4-up) */
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.resource-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.resource-card:hover { border-color: var(--line-purple); transform: translateY(-3px); }
.resource-card .rc-eyebrow { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple-light); margin-bottom: 0.8em; }
.resource-card h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.resource-card p { font-size: 0.93rem; color: var(--ink-secondary); flex-grow: 1; margin-bottom: 1.2em; }
@media (max-width: 640px) { .resource-grid { grid-template-columns: 1fr; } }

/* Choose Your Path — bullets + CTA in path cards */
.path-card .pc-bullets { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 8px; }
.path-card .pc-bullets li { font-size: 0.9rem; color: var(--muted); padding-left: 18px; position: relative; }
.path-card .pc-bullets li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 1px; background: var(--purple-light); }
.path-card .btn { margin-top: auto; align-self: flex-start; }

/* ============================================================
   Legal pages (privacy / terms) — readable long-form prose
   ============================================================ */
.legal { max-width: 820px; margin: 0 auto; }
.legal .legal-updated { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 2.4em; display: block; }
.legal h2 { font-size: clamp(1.25rem, 2.1vw, 1.55rem); margin: 2em 0 0.5em; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.05rem; margin: 1.5em 0 0.4em; }
.legal p, .legal li { color: var(--ink-secondary); font-size: 1rem; line-height: 1.78; }
.legal p { margin: 0 0 1em; }
.legal ul { padding-left: 1.25em; margin: 0 0 1.2em; }
.legal li { margin-bottom: 0.5em; }
.legal a { color: var(--purple-light); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .sms-box {
  border: 1px solid var(--line-purple-strong);
  background: rgba(94,110,180,0.08);
  border-radius: var(--radius); padding: 22px 26px; margin: 1.6em 0;
}
.legal .sms-box h3 { margin-top: 0; }
.legal .contact-block { border-top: 1px solid var(--line); margin-top: 2.4em; padding-top: 1.6em; font-size: 0.96rem; }

/* ============================================================
   Global form modal — same-page form fill-out, no navigation
   or scrolling required. Markup injected by functions/_middleware.js
   so it's available on every page; triggered by any link whose
   href contains #enrollment / #consultation / #general.
   ============================================================ */
.bt-modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(5,7,11,0.82); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.bt-modal-overlay[hidden] { display: none; }
.bt-modal {
  width: 100%; max-width: 720px; max-height: 88vh;
  background: var(--bg-elevated); border: 1px solid var(--line-purple);
  border-radius: var(--radius-lg); box-shadow: 0 40px 140px rgba(0,0,0,0.55);
  display: flex; flex-direction: column; overflow: hidden;
}
.bt-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.bt-modal-title { font-size: 1.1rem; margin: 0; }
.bt-modal-close {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  width: 36px; height: 36px; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  line-height: 1; flex-shrink: 0; transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.bt-modal-close:hover { border-color: var(--purple-light); color: var(--purple-light); }
.bt-modal-body { flex: 1; overflow: auto; background: var(--bg); }
.bt-modal-body iframe { width: 100%; height: 100%; min-height: 620px; border: 0; display: block; }
body.bt-modal-open { overflow: hidden; }
body.bt-modal-open chat-widget { display: none !important; }
@media (max-width: 620px) {
  .bt-modal-overlay { padding: 0; }
  .bt-modal { max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .bt-modal-body iframe { min-height: 100%; }
}

/* Three-across variant of .path-cards */
.path-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .path-cards.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .path-cards.cols-3 { grid-template-columns: 1fr; } }
