/*
Theme Name: Upfix Academy
Theme URI: https://upfixacademy.com
Author: Upfix.com
Description: Internal sales training hub theme for Upfix Academy. Built to hold training tracks, persona docs, fit guides, and quizzes for the Upfix.com sales team.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: Unlicense
Text Domain: upfix-academy
*/

body {
  margin: 0;
  padding: 0;
}

:root {
    --navy: #0B3C6B;
    --navy-deep: #082B4D;
    --navy-mid: #14538F;
    --orange: #F0791E;
    --orange-deep: #D3650C;
    --paper: #F6F7F9;
    --ink: #1A2330;
    --muted: #5B6472;
    --line: #E2E5EA;
    --white: #FFFFFF;
    --green: #1F8A5C;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    color: var(--ink);
    line-height: 1.5;
  }
  body {
    background: var(--paper);
    min-height: 100vh;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    color: var(--ink);
    line-height: 1.5;
  }
  a { text-decoration: none; color: inherit; }
  img { max-width: 100%; display: block; }
  .container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

  /* ===== Top bar ===== */
  .topbar {
    background: var(--navy-deep);
    color: #CFE0F2;
    font-size: 13px;
  }
  .topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 36px;
  }
  .topbar a { color: #CFE0F2; }
  .topbar a:hover { color: var(--white); }
  .topbar .divider { opacity: 0.4; margin: 0 10px; }

  /* ===== Header / nav ===== */
  header.main {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .navwrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
  }
  .logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
    color: var(--navy);
  }
  .logo .up { color: var(--navy); }
  .logo .fix { color: var(--orange); }
  .logo .academy {
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-left: 8px;
    padding-left: 8px;
    border-left: 2px solid var(--line);
  }
  nav.primary {
    display: flex;
    gap: 34px;
    font-weight: 600;
    font-size: 14.5px;
  }
  nav.primary a {
    color: var(--ink);
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
  }
  nav.primary a:hover { color: var(--navy); border-color: var(--orange); }
  .nav-actions { display: flex; align-items: center; gap: 14px; }
  .btn {
    display: inline-block;
    font-weight: 700;
    font-size: 13.5px;
    padding: 10px 20px;
    border-radius: 4px;
    letter-spacing: 0.3px;
  }
  .btn-orange {
    background: var(--orange);
    color: var(--white);
    transition: background 0.15s ease;
  }
  .btn-orange:hover { background: var(--orange-deep); }
  .btn-outline {
    border: 1.5px solid var(--navy);
    color: var(--navy);
    font-size: 13.5px;
    font-weight: 700;
    padding: 8.5px 18px;
    border-radius: 4px;
  }
  .btn-outline:hover { background: var(--navy); color: var(--white); }

  /* ===== Hero ===== */
  .hero {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
    color: var(--white);
    padding: 76px 0 0;
    position: relative;
    overflow: hidden;
  }
  .hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
  }
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(240,121,30,0.16);
    border: 1px solid rgba(240,121,30,0.5);
    color: #FFC190;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 22px;
  }
  .hero h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
  }
  .hero h1 span { color: #FFA85C; }
  .hero p.lead {
    font-size: 17px;
    color: #D7E3F0;
    max-width: 480px;
    margin-bottom: 30px;
  }
  .hero-ctas { display: flex; gap: 14px; margin-bottom: 46px; }
  .hero-ctas .btn-white {
    background: var(--white);
    color: var(--navy-deep);
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 4px;
    font-size: 14.5px;
  }
  .hero-ctas .btn-white:hover { background: #EDF3FA; }
  .hero-ctas .btn-ghost {
    border: 1.5px solid rgba(255,255,255,0.5);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14.5px;
  }
  .hero-ctas .btn-ghost:hover { background: rgba(255,255,255,0.1); }

  .hero-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    padding: 28px;
    backdrop-filter: blur(2px);
  }
  .hero-card h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #FFC190;
    margin-bottom: 16px;
  }
  .hero-card ul { list-style: none; }
  .hero-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 14.5px;
    color: #E6EEF7;
  }
  .hero-card li:last-child { border-bottom: none; }
  .hero-card .num {
    background: var(--orange);
    color: var(--white);
    font-weight: 800;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
  }

  /* ===== Stat strip ===== */
  .statstrip {
    background: var(--navy-deep);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 26px 0;
    margin-top: 56px;
  }
  .statstrip .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
  }
  .statstrip .stat b {
    display: block;
    font-size: 26px;
    color: var(--white);
    font-weight: 800;
  }
  .statstrip .stat span {
    font-size: 12.5px;
    color: #AFC4DB;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  /* ===== Section shared ===== */
  section { padding: 72px 0; }
  .section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 46px;
  }
  .section-head .kicker {
    color: var(--orange-deep);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .section-head h2 {
    font-size: 30px;
    font-weight: 800;
    color: var(--navy-deep);
    letter-spacing: -0.3px;
    margin-bottom: 12px;
  }
  .section-head p { color: var(--muted); font-size: 15.5px; }

  /* ===== Training tracks ===== */
  .tracks { background: var(--white); }
  .track-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }
  .track-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 26px 22px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  }
  .track-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(11,60,107,0.1);
    border-color: var(--navy-mid);
  }
  .track-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
  }
  .track-card h3 {
    font-size: 16.5px;
    color: var(--navy-deep);
    margin-bottom: 8px;
  }
  .track-card p {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 14px;
  }
  .track-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--navy-mid);
    border-top: 1px dashed var(--line);
    padding-top: 12px;
  }
  .track-meta .pill {
    background: #E7F0FA;
    color: var(--navy-mid);
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 11.5px;
  }

  /* ===== Resource library ===== */
  .resources { background: var(--paper); }
  .res-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
  .res-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .res-top {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }
  .res-type {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 4px;
  }
  .res-type.doc { background: #E7F0FA; color: var(--navy-mid); }
  .res-type.quiz { background: #FCEBDD; color: var(--orange-deep); }
  .res-type.key { background: #E4F3EB; color: var(--green); }
  .res-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
  .res-body h4 { font-size: 16px; color: var(--navy-deep); margin-bottom: 8px; }
  .res-body p { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; flex: 1; }
  .res-link {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--orange-deep);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .res-link:hover { color: var(--orange); }

  /* ===== How it works ===== */
  .how { background: var(--white); }
  .how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
  }
  .how-step { text-align: center; padding: 0 12px; }
  .how-step .stepnum {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-weight: 800;
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border: 4px solid #E7F0FA;
  }
  .how-step h3 { font-size: 16.5px; color: var(--navy-deep); margin-bottom: 8px; }
  .how-step p { font-size: 13.5px; color: var(--muted); }

  /* ===== CTA banner ===== */
  .cta-banner {
    background: linear-gradient(120deg, var(--orange-deep), var(--orange));
    color: var(--white);
    padding: 50px 0;
  }
  .cta-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
  }
  .cta-banner h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
  .cta-banner p { font-size: 14.5px; color: #FFE7D3; }

  /* ===== Footer ===== */
  footer {
    background: var(--navy-deep);
    color: #B9CBDE;
    padding-top: 56px;
    font-size: 13.5px;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .footer-logo {
    font-weight: 800;
    font-size: 21px;
    color: var(--white);
    margin-bottom: 14px;
  }
  .footer-logo span { color: var(--orange); }
  .footer-grid p { line-height: 1.7; color: #A9BDD2; }
  .footer-grid h5 {
    color: var(--white);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
  }
  .footer-grid ul { list-style: none; }
  .footer-grid li { margin-bottom: 10px; }
  .footer-grid a:hover { color: var(--white); }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    font-size: 12.5px;
    color: #8CA3BB;
    flex-wrap: wrap;
    gap: 10px;
  }

  @media (max-width: 980px) {
    nav.primary { display: none; }
    .hero .container { grid-template-columns: 1fr; }
    .hero-ctas { flex-wrap: wrap; }
    .statstrip .container, .track-grid, .res-grid, .how-grid, .footer-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 600px) {
    .hero h1 { font-size: 32px; }
    .statstrip .container, .track-grid, .res-grid, .how-grid, .footer-grid {
      grid-template-columns: 1fr;
    }
  }
/* ============================================================
   MyAirbags Training page — additions on top of the shared
   design system above. Used by page-myairbags-training.php.
   ============================================================ */

nav.primary a.current { color: var(--navy); border-color: var(--orange); }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Page hero (secondary pages, shorter than the homepage hero) */
.pagehero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 54px 0 46px;
}
.pagehero h1 { font-size: 36px; font-weight: 800; line-height: 1.18; letter-spacing: -0.4px; margin-bottom: 14px; max-width: 720px; }
.pagehero h1 span { color: #FFA85C; }
.pagehero p.lead { font-size: 16px; color: #D7E3F0; max-width: 640px; }
.pagehero .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pagehero .tags span {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #E6EEF7; font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 20px;
}

/* Video badge */
.vid {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--navy-mid);
  background: #E7F0FA; padding: 4px 10px; border-radius: 4px; margin-top: 10px;
}
.vid::before { content: "\25B6"; font-size: 9px; }

/* Repair item cards */
.repair-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.repair-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 24px 24px 22px; }
.repair-card.wide { grid-column: 1 / -1; }
.repair-card h3 { font-size: 16.5px; color: var(--navy-deep); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.repair-card h3 .icon {
  width: 30px; height: 30px; border-radius: 6px; background: var(--navy);
  color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0;
}
.repair-card p { font-size: 14px; color: var(--muted); }
.repair-card .pitch {
  margin-top: 12px; font-size: 13px; color: var(--ink);
  background: #FCEBDD; border-left: 3px solid var(--orange); padding: 9px 12px; border-radius: 0 4px 4px 0;
}
.repair-card .pitch b { color: var(--orange-deep); }

/* Process steps (secondary-page variant) */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.process-step { text-align: center; padding: 0 8px; position: relative; }
.process-step .stepnum {
  width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--white);
  font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; border: 4px solid #E7F0FA;
}
.process-step h3 { font-size: 15px; color: var(--navy-deep); margin-bottom: 6px; }
.process-step p { font-size: 13px; color: var(--muted); }

/* Why-choose list */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.why-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px;
}
.why-item .check {
  width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: var(--white);
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.why-item p { font-size: 14px; color: var(--ink); }

/* Mission block */
.mission {
  background: linear-gradient(120deg, var(--orange-deep), var(--orange));
  color: var(--white); border-radius: 10px; padding: 40px 44px;
}
.mission .kicker { color: #FFE7D3; font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.mission p { font-size: 18px; line-height: 1.6; max-width: 780px; }

/* SRS explainer block */
.srs-block { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 30px 32px; }
.srs-block p { font-size: 14.5px; color: var(--ink); margin-bottom: 16px; }
.srs-block p:last-child { margin-bottom: 0; }
.srs-block .callout {
  background: var(--paper); border-left: 3px solid var(--navy-mid); padding: 14px 18px;
  border-radius: 0 6px 6px 0; font-size: 14px; color: var(--navy-deep); font-weight: 600; margin: 18px 0;
}
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.stat-box { text-align: center; background: var(--paper); border-radius: 8px; padding: 18px 12px; }
.stat-box b { display: block; font-size: 24px; color: var(--navy-deep); font-weight: 800; }
.stat-box span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* Footer additions used on secondary pages */
footer .footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; padding-bottom: 10px; }
footer .backlink { font-size: 13px; font-weight: 700; color: #FFC190; }
footer .backlink:hover { color: var(--white); }

/* Generic page.php content styling */
.page-content { font-size: 15px; color: var(--ink); line-height: 1.7; }
.page-content p { margin-bottom: 16px; }

@media (max-width: 980px) {
  .repair-grid, .why-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pagehero h1 { font-size: 27px; }
  .process-grid { grid-template-columns: 1fr; }
  .mission { padding: 28px 24px; }
}
