/* =========================================================
   Canada NexTech — Global Styles (with Training enhancements)
   Path: /assets/css/style.css
   ========================================================= */

/* ---------- 0) Reset ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---------- 1) Theme Tokens ---------- */
:root{
  --bg:#0d1117;
  --panel:#0f1521;
  --panel-2:#0b1220;
  --border:#1b2436;
  --text:#e6eef7;
  --muted:#b5c1d3;
  --blue:#2ea8ff;
  --red:#ff374c;
  --ok:#6ee7a8;
  --warn:#fbbf24;
  --note:#93a3bc;

  --radius:12px;
  --radius-lg:16px;
  --container:1200px;

  --ring:0 0 0 2px rgba(46,168,255,.35);
  --shadow:0 18px 36px rgba(0,0,0,.45);
}

/* ---------- 2) Base Typography ---------- */
body{
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
}
h1,h2,h3{ margin: 0 0 .5rem; font-weight: 800; }
p{ margin: 0 0 1rem; }
small, .muted{ color: var(--muted); }

/* ---------- 3) Layout Helpers ---------- */
.container{ max-width: var(--container); margin: 0 auto; padding: 24px 20px; }
.section{ margin: 28px 0; }
.card{
  background: color-mix(in oklab, var(--panel) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.grid{ display: grid; gap: 16px; }
.grid.cols-2{ grid-template-columns: repeat(2,1fr); }
.grid.cols-3{ grid-template-columns: repeat(3,1fr); }
.grid.cols-4{ grid-template-columns: repeat(4,1fr); }

/* ---------- 4) Navbar + Dropdowns ---------- */
.navbar{
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 2rem;
  background: #0a0f1c;
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(130%) blur(8px);
}
.logo{ display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .2px; }
.logo img{ width: 40px; height: 40px; border-radius: 10px; }

.nav-links{ list-style: none; display: flex; align-items: center; gap: .6rem; margin: 0; padding: 0; }
.nav-links > li{ position: relative; }
.nav-links a, .menu-trigger{
  appearance: none; border: 0; background: transparent; cursor: pointer;
  color: var(--text); font: inherit; padding: 8px 12px; border-radius: 10px;
  transition: background .18s ease, opacity .18s ease;
}
.nav-links a:hover, .menu-trigger:hover{ background: rgba(46,168,255,.14); }
.nav-links a.active{ background: rgba(46,168,255,.16); }

.dropdown-menu{
  position: absolute; top: 110%; left: 0;
  background: #0f1523; border: 1px solid #223250; border-radius: 12px;
  min-width: 240px; padding: 6px; box-shadow: var(--shadow);
  display: none; z-index: 1001;
}
.dropdown-menu a{ display: block; padding: 10px 12px; border-radius: 8px; color: #e5f2ff; }
.dropdown-menu a:hover{ background: rgba(46,168,255,.18); }

@media (hover: hover){
  .dropdown:hover .dropdown-menu{ display: block; }
}
.dropdown.open .dropdown-menu{ display: block; }

/* ---------- 5) Hero (with overlay + image from --hero) ---------- */
.hero{
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 70vh;
  color: #fff;

  background-image:
    linear-gradient(180deg, rgba(3,8,20,.62), rgba(3,8,20,.78)),
    var(--hero);
  background-repeat: no-repeat, no-repeat;
  background-position: center center, center center;
  background-size: cover, cover;

  border-bottom: 1px solid var(--border);
}
.hero-content{ max-width: 900px; padding: 2rem; }
.hero h1{ font-size: clamp(32px,5vw,56px); }
.hero p{ color: #d8e4f7; }

/* ---------- 6) Buttons ---------- */
.btn, .btn-cta{
  display: inline-block; font-weight: 800; text-decoration: none;
  padding: 12px 16px; border-radius: 10px; color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--red));
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
.btn:hover, .btn-cta:hover{ opacity: .95; transform: translateY(-1px); }

/* ---------- 7) Tables (pricing) ---------- */
.table{ overflow: auto; }
table{ width: 100%; border-collapse: separate; border-spacing: 0; min-width: 680px; }
th, td{ padding: 14px; border: 1px solid #23304d; vertical-align: top; }
th{ background: #0e172a; }
td{ background: var(--panel-2); }
th:first-child, td:first-child{ position: sticky; left: 0; background: #0e172a; z-index: 1; }
.plan-head{ text-align: center; background: #0f1729; }
.price{ font-size: 22px; font-weight: 900; }
.sub{ font-size: 12px; color: var(--muted); }
.ok{ color: var(--ok); font-weight: 700; }
.meh{ color: var(--warn); font-weight: 700; }
.no{ color: var(--note); font-weight: 700; }

/* ---------- 8) Forms ---------- */
.input, textarea{
  width: 100%; background: #0b1220; color: var(--text);
  border: 1px solid #223250; border-radius: var(--radius); padding: 10px 12px;
}
.input:focus, textarea:focus{ outline: none; box-shadow: var(--ring); }

/* ---------- 9) Footer ---------- */
.footer{
  border-top: 1px solid var(--border); padding: 18px 20px; text-align: center;
  color: var(--muted); background: #0a0f1c;
}

/* ---------- 10) Utilities ---------- */
.center{ text-align: center; }
.mt-0{ margin-top: 0 !important; } .mt-1{ margin-top: .25rem !important; }
.mt-2{ margin-top: .5rem !important; } .mt-3{ margin-top: 1rem !important; }
.mt-4{ margin-top: 1.5rem !important; }
.mb-0{ margin-bottom: 0 !important; }
.hidden{ display: none !important; }

/* =========================================================
   NEW — Training & Awareness styles
   ========================================================= */
.badge{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(46,168,255,.18);
  border:1px solid #2a3852;
  color:#cfe8ff;
  font-size:12px;
  line-height:1.6;
}
details{
  background: var(--panel-2);
  border:1px solid #223250;
  border-radius: 12px;
  padding: 10px 12px;
}
details + details{ margin-top: 10px; }
summary{
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}
summary::-webkit-details-marker{ display:none; }
summary:focus{ outline: none; box-shadow: var(--ring); border-radius: 8px; }
details[open] summary{ color:#eaf3ff; }
.programs{
  display:grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap:16px;
}
.program-card{
  background: var(--panel-2);
  border:1px solid #223250;
  border-radius: 14px;
  padding: 18px;
}
.program-card h3{ margin:0 0 .25rem; }
.program-card .desc{ color: var(--muted); margin-bottom:.75rem; }
.program-card .kpis{
  display:flex; gap:8px; flex-wrap:wrap; margin:.5rem 0 0;
}
.pill{
  border:1px solid #253556;
  background: #0f182a;
  border-radius: 999px;
  padding:4px 8px;
  font-size: 12px;
  color:#cfe0ff;
}

/* Small screens */
@media (max-width: 980px){
  .grid.cols-3{ grid-template-columns: 1fr 1fr; }
  .grid.cols-4{ grid-template-columns: 1fr 1fr; }
  .programs{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  .grid.cols-2, .grid.cols-3, .grid.cols-4{ grid-template-columns: 1fr; }
  .navbar{ padding: .7rem 1rem; }
  .logo img{ width: 34px; height: 34px; }
  .programs{ grid-template-columns: 1fr; }
}

