/* mindtested.com — single stylesheet, no framework, no unused CSS.
   Loaded with font-display:swap fonts and preload (see layout.ejs) to avoid render blocking. */

:root {
  --navy: #0B2545;
  --navy-light: #124170;
  --teal: #14B8A6;
  --teal-light: #5EEAD4;
  --ink: #1A2433;
  --muted: #5B7083;
  --border: #E4E9EF;
  --bg: #FAFBFC;
  --white: #FFFFFF;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* --- Header --- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 15px; }
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 8px;
  font-weight: 600; font-size: 14px; border: none; cursor: pointer;
}
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: var(--teal-light); text-decoration: none; }
.btn-outline { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }

/* --- Hero --- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: var(--white); padding: 72px 0; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 16px; line-height: 1.15; }
.hero p { font-size: 18px; color: #C7D3E0; max-width: 560px; margin: 0 0 28px; }
.programme-pills { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.programme-pills a {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
}

/* --- Cards / grids --- */
.section { padding: 56px 0; }
.section-title { font-size: 26px; margin: 0 0 28px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: 0 8px 24px rgba(11,37,69,0.08); transform: translateY(-2px); }
.card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.card-body { padding: 16px; }
.card-title { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.badge-free { background: #E6FBF8; color: #0F766E; }
.badge-paid { background: #FFF4E6; color: #9A5B00; }

/* --- Testimonials --- */
.testimonial { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.testimonial p { font-style: italic; color: var(--ink); }
.testimonial .who { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 12px; }

/* --- Forms --- */
.form-group { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 15px; font-family: var(--font);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.social-auth-row { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.social-btn {
  flex: 1; min-width: 130px; padding: 10px; border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--white); text-align: center; font-weight: 600; font-size: 14px; color: var(--ink);
}

/* --- Footer --- */
.site-footer { background: var(--navy); color: #C7D3E0; padding: 48px 0 24px; margin-top: 64px; }
.site-footer a { color: #C7D3E0; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin-bottom: 32px; }
.site-footer h4 { color: var(--white); font-size: 14px; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 14px; }
.fine-print { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 13px; color: #8FA3B8; }

/* --- Utility --- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
@media (max-width: 720px) {
  .nav-links { display: none; } /* replaced by mobile menu in main.js */
}
