/* ============================================================================
   Test Pro — Public site + login polish  (2026-11-08)
   Additive layer, loaded AFTER style.css on public/marketing pages + login
   (body.tp-site set in includes/header.php). Scoped to .tp-site so the admin
   app and the logged-in portals are never affected. Remove the body class or
   the <link> in includes/header.php to fully revert.
   ========================================================================== */

.tp-site {
  --blue: #1566d6;
  --blue-700: #0f52a8;
  --navy: #0b2545;
  --ink: #16243d;
  --muted: #5a6b85;
  --line: #e7edf6;
  --glow: rgba(21,102,214,.28);
}
.tp-site { color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.tp-site img { max-width: 100%; height: auto; }
.tp-site h1, .tp-site h2, .tp-site h3 { letter-spacing: -.015em; text-wrap: balance; }

/* ---- navbar: subtle gradient + lift when stuck ---- */
.tp-site .tp-navbar {
  background: linear-gradient(180deg, #0c2a52, #0a2142);
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 10px 30px -20px rgba(0,0,0,.6);
  transition: padding .2s ease;
}
.tp-site .tp-navbar .navbar-brand { display: inline-flex; align-items: center; }
.tp-site .tp-navbar .nav-link { position: relative; border-radius: 8px; transition: color .15s ease, background .15s ease; }
.tp-site .tp-navbar .nav-link:hover { color: #fff !important; background: rgba(255,255,255,.07); }
.tp-site .tp-navbar .btn-tp-primary,
.tp-site .tp-navbar .btn,
.tp-site .tp-navbar .btn-tp-outline { border-radius: 50px; }

/* ---- hero: deeper gradient + a soft light + faint dot texture ---- */
.tp-site .tp-hero {
  position: relative;
  background:
    radial-gradient(60% 90% at 80% -10%, rgba(53,120,229,.42), rgba(53,120,229,0) 60%),
    radial-gradient(50% 80% at 0% 110%, rgba(21,102,214,.30), rgba(21,102,214,0) 60%),
    linear-gradient(135deg, #0d2b56 0%, #081d38 100%);
  overflow: hidden;
}
.tp-site .tp-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 70%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 70%);
}
.tp-site .tp-hero > * { position: relative; z-index: 1; }
.tp-site .tp-hero h1 { font-weight: 800; line-height: 1.08; }
.tp-site .tp-hero p.lead { color: #c9d9f2; }
.tp-site .tp-eyebrow { color: #8cc0ff; }

/* ---- buttons ---- */
.tp-site .btn-tp-primary {
  box-shadow: 0 8px 20px -6px var(--glow);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.tp-site .btn-tp-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -6px var(--glow); }
.tp-site .btn-tp-primary:active { transform: translateY(0); }
.tp-site .btn-tp-outline { transition: box-shadow .2s ease, background .2s ease, color .2s ease; }
/* a white CTA that reads on the dark hero */
.tp-site .tp-hero .btn-light, .tp-site .tp-hero .btn-tp-white {
  background: #fff; color: var(--navy); border: none; border-radius: 50px; font-weight: 700;
  padding: .6rem 1.5rem; box-shadow: 0 10px 24px -8px rgba(0,0,0,.5);
}
.tp-site a:focus-visible, .tp-site button:focus-visible, .tp-site .btn:focus-visible,
.tp-site .form-control:focus, .tp-site .form-select:focus {
  outline: none; box-shadow: 0 0 0 3px var(--glow); border-color: var(--blue);
}

/* ---- cards + sections ---- */
.tp-site .tp-card {
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(11,37,69,.045), 0 8px 24px rgba(11,37,69,.06);
}
.tp-site .tp-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(11,37,69,.13); }
.tp-site .text-muted { color: var(--muted) !important; }

/* ---- login / form card ---- */
.tp-site .tp-form-card {
  border: 1px solid var(--line); border-radius: 18px; padding: 2.1rem;
  box-shadow: 0 18px 50px -24px rgba(11,37,69,.5);
  position: relative; overflow: hidden;
}
.tp-site .tp-form-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), #3b86ea);
}
.tp-site .tp-form-card h1, .tp-site .tp-form-card h2, .tp-site .tp-form-card h3,
.tp-site .tp-form-card h4 { color: var(--navy); }
.tp-site .form-control, .tp-site .form-select { border-radius: 11px; border-color: #d9e2ef; padding: .68rem .9rem; }
.tp-site .form-label { font-weight: 600; color: var(--navy); font-size: .88rem; }

/* ---- footer ---- */
.tp-site .tp-footer { background: linear-gradient(180deg, #0a2041, #061325); }

/* ---- mobile ---- */
@media (max-width: 991px) {
  .tp-site .tp-hero { padding: 3.25rem 0 3.5rem; }
  .tp-site .tp-hero h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .tp-site .tp-form-card { padding: 1.4rem; border-radius: 16px; }
  .tp-site .btn, .tp-site .btn-tp-primary, .tp-site .btn-tp-outline { min-height: 46px; }
  .tp-site .tp-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tp-site *, .tp-site *::before, .tp-site *::after { transition: none !important; }
  .tp-site .tp-card:hover { transform: none; }
}
