/* ============================================================
   QUANTRO ACADEMY — page-specific layer
   Loaded AFTER /css/styles.css. Everything visual (colors, fonts,
   buttons, nav, footer, hero, sections, stats, reveal, responsive)
   comes from styles.css; this file only adds the four track accents
   and the curriculum-specific bits (track cards, month cards, weeks,
   capstones) that the marketing page doesn't have.
   ============================================================ */

:root {
  /* Per-track accents, tuned to sit beside the navy/gold brand on the
     light cream background. Each track section/card sets --accent to one
     of these and the rules below tint borders, badges and labels from it. */
  --ac-auto:    #1f9e86;   /* AI Automation  → teal-green */
  --ac-arduino: #d75646;   /* Robotics       → coral-red  */
  --ac-vibe:    #7c5cd0;   /* Build websites → violet     */
  --ac-video:   #cf3f86;   /* Video editing  → magenta    */
}
/* Slightly brighter accents in dark theme so they don't muddy on navy. */
[data-theme="dark"] {
  --ac-auto:    #34c4a8;
  --ac-arduino: #ef7163;
  --ac-vibe:    #9c7df0;
  --ac-video:   #e85fa1;
}

/* ---------- Track overview cards (reuse .svc, add accent) ---------- */
.track-card { --accent: var(--gold-deep); }
/* A thin accent rail along the bottom of each track card. */
.track-card::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--accent); opacity: .9; z-index: 1;
}
.track-card:hover { border-color: var(--accent); box-shadow: 0 22px 48px -24px var(--accent); }
.track-card .svc-icon.track-emoji {
  font-size: 1.5rem; line-height: 1; background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent) 38%, transparent); color: var(--accent);
}
.track-card .track-stack {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em;
  color: var(--text-faint); margin: -2px 0 12px;
}
.track-card .more { color: var(--accent); }
[data-theme="dark"] .track-card .more { color: var(--accent); }

/* ---------- Phase bar (Month 01 / Month 02) ---------- */
.phase-bar {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: clamp(28px, 4vw, 44px);
}
.phase {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-card);
}
.phase-n { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .22em; color: var(--gold-deep); }
[data-theme="dark"] .phase-n { color: var(--gold); }
.phase h3 { font-size: 1.2rem; margin: 8px 0 6px; }
.phase p { color: var(--text-muted); font-size: 1rem; }

/* ============================================================
   TRACK DETAIL SECTIONS
   ============================================================ */
.track-head { display: flex; gap: clamp(16px, 2vw, 24px); align-items: flex-start; margin-bottom: 26px; }
.track-head .eyebrow { color: var(--accent); margin-bottom: 14px; }
[data-theme="dark"] .track-head .eyebrow { color: var(--accent); }
.track-head .eyebrow::before { background: var(--accent); }
.track-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.track-head p { color: var(--text-muted); margin-top: 14px; font-size: 1.08rem; max-width: 54ch; }
.track-badge {
  flex: none; width: clamp(56px, 5vw, 72px); height: clamp(56px, 5vw, 72px);
  border-radius: 18px; display: grid; place-items: center; font-size: clamp(28px, 3vw, 38px);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 16px 30px -16px color-mix(in srgb, var(--accent) 55%, transparent);
}

/* ---------- Tool chips ---------- */
.tool-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: clamp(28px, 4vw, 40px); }
.tool {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .02em;
  border: 1px solid var(--border-strong); border-radius: 10px; padding: 7px 12px;
  color: var(--text); background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

/* ---------- Month cards ---------- */
.months { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 28px); }
.month-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card);
}
.month-head {
  position: relative; padding: 22px 24px 18px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface));
}
.month-head .month-n {
  position: absolute; top: 12px; inset-inline-end: 18px; font-family: var(--font-display);
  font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1;
  color: color-mix(in srgb, var(--accent) 22%, transparent);
}
.month-lvl {
  display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
}
.month-head h3 { font-size: 1.3rem; margin-top: 6px; }

/* ---------- Week list ---------- */
.weeks { list-style: none; margin: 0; padding: 16px 24px 6px; flex: 1; }
.weeks li {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: .98rem; line-height: 1.5;
}
.weeks li:last-child { border-bottom: none; }
.weeks .wn {
  flex: none; width: 30px; font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  color: var(--accent); padding-top: 2px;
}

/* ---------- Month project / capstone sub-card ---------- */
.capstone {
  margin: 6px 24px 24px; padding: 16px 18px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}
.capstone.is-final {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}
.capstone .cap-label {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.capstone strong { display: block; font-size: 1.05rem; margin: 5px 0 4px; color: var(--text); }
.capstone p { color: var(--text-muted); font-size: .92rem; line-height: 1.5; }

/* ============================================================
   RESPONSIVE — fold the Academy-specific grids on small screens.
   (styles.css already handles nav, hero, stats, footer, reveal.)
   ============================================================ */
@media (max-width: 1080px) {
  .track-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .months { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .track-grid { grid-template-columns: 1fr; }
  .phase-bar { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .track-head { flex-direction: column; gap: 14px; }
  .track-head h2 { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .month-head { padding: 18px 18px 16px; }
  .weeks { padding: 12px 18px 4px; }
  .weeks li { font-size: .9rem; }
  .capstone { margin: 6px 18px 18px; }
}

/* ============================================================
   ENROLLMENT FORM — place (Obour / Shrouk) segmented switcher
   The form reuses .contact-form from styles.css (built for the navy
   band), so only the radio-as-toggle needs styling here. Colours use
   the same translucent-cream palette as the form's inputs.
   ============================================================ */
.place-switch {
  display: flex; gap: 6px; padding: 5px; width: 100%; max-width: 360px;
  border-radius: 14px; border: 1px solid rgba(245,241,234,.22);
  background: rgba(245,241,234,.06);
}
.place-switch label {
  position: relative; flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; cursor: pointer;
  font-weight: 600; font-size: .95rem; color: rgba(245,241,234,.66);
  transition: color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
html[lang="ar"] .place-switch label { font-family: var(--font-ar); }
.place-switch label svg { width: 16px; height: 16px; flex: none; opacity: .8; }
.place-switch label:hover { color: var(--cream); }

/* Reset the native radio HARD: the generic `.contact-form input { width:100%;
   padding; border; background }` rule in styles.css would otherwise render
   these as full-width boxes. Raising specificity + an explicit appearance reset
   guarantees the control never falls back to raw radios, even with stale CSS. */
.place-switch label input[type="radio"] {
  position: absolute; inset: 0; margin: 0; width: 100%; height: 100%;
  appearance: none; -webkit-appearance: none;
  padding: 0; border: 0; background: none; box-shadow: none;
  cursor: pointer; opacity: 0;
}

/* Selected segment: brand gold pill with navy text. */
.place-switch label:has(input:checked) {
  background: var(--gold); color: var(--navy-deep);
  box-shadow: 0 6px 16px -8px rgba(211,174,108,.8);
}
.place-switch label:has(input:checked) svg { opacity: 1; }
.place-switch label:has(input:focus-visible) {
  outline: 2px solid var(--gold-bright); outline-offset: 2px;
}
