/* ==========================================================
   508tester.com — BootstrapCrafted-inspired theme (Bootstrap 5)
   Single combined CSS file: assets/css/site.css
   ========================================================== */

:root {
  --brand-primary: #083794; /* deep blue */
  --brand-accent: #47b2e4; /* light blue */
  --brand-highlight: #fbff05; /* neon yellow accent */
  --text: #0b1220;
  --muted: #4b5563;
  --bg: #ffffff;
  --soft: #f6f8fb;
  --card-border: rgba(15, 23, 42, 0.1);
  --shadow: 0 14px 34px rgba(2, 6, 23, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  background: var(--bg);
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: #000;
  color: #fff;
  z-index: 2000;
  border-radius: 0.75rem;
}

/* Focus visibility */
:focus-visible {
  outline: 3px solid var(--brand-highlight);
  outline-offset: 2px;
}

/* Header / nav */
.site-header {
  background: rgba(8, 55, 148, 0.92);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-header .navbar-brand img {
  max-height: 40px;
}
.site-header .nav-link {
  color: #fff !important;
  font-weight: 700;
  padding: 0.75rem 1rem;
  position: relative;
  text-decoration: none !important; /* prevent default underline */
}

/* ONE underline system (hover + active + keyboard focus) */
.site-header .nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;   /* match horizontal padding */
  right: 1rem;  /* match horizontal padding */
  height: 2px;
  bottom: 0.35rem;
  background-color: var(--brand-highlight);
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.site-header .nav-link:hover::after,
.site-header .nav-link:focus-visible::after,
.site-header .nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(251, 255, 5, 0.35);
}

/* Buttons */
.btn-brand {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #061a2b;
  font-weight: 900;
}
.btn-brand:hover,
.btn-brand:focus {
  filter: brightness(0.95);
  color: #061a2b;
}

.btn-outline-brand {
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  font-weight: 900;
}
.btn-outline-brand:hover,
.btn-outline-brand:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Sections */
.section {
  padding: 4.75rem 0;
}
.section.bg-soft {
  background: var(--soft);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 900;
  font-size: 1;
  color: rgba(8, 55, 148, 0.92);
}

/* Hero */
.hero {
  padding-top: 5.25rem;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(71, 178, 228, 0.35), transparent 60%), radial-gradient(900px 500px at 80% 0%, rgba(251, 255, 5, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(8, 55, 148, 0.1), rgba(8, 55, 148, 0));
}
.hero .headline {
  letter-spacing: -0.02em;
}
.hero .lead {
  color: var(--muted);
  font-size: 1.125rem;
}

/* Cards */
.card-soft {
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.06);
}
.badge-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}
.badge-card img {
  border-radius: 0.75rem;
}

.icon-pill {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(71, 178, 228, 0.18);
  color: var(--brand-primary);
  flex: 0 0 auto;
}

.media-shadow {
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.18);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, rgba(8, 55, 148, 0.96), rgba(11, 18, 32, 0.92));
  color: #fff;
  border-radius: 1.25rem;
  padding: 2.5rem;
  overflow: hidden;
  position: relative;
}
.cta-band:before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 20% 30%, rgba(251, 255, 5, 0.2), transparent 60%), radial-gradient(circle at 70% 40%, rgba(71, 178, 228, 0.22), transparent 55%);
  transform: rotate(8deg);
}
.cta-band > * {
  position: relative;
}
.small-muted {
  color: rgba(255, 255, 255, 0.78);
}

/* Forms */
.form-control,
.form-select {
  border-radius: 0.75rem;
}
.form-control:focus,
.form-select:focus {
  border-color: rgba(71, 178, 228, 0.85);
  box-shadow: 0 0 0 0.2rem rgba(71, 178, 228, 0.25);
}
.form-status {
  border-radius: 0.75rem;
}

.turnstile-row {
  width: 100%;
}
.turnstile-note {
  max-width: 18rem;
}
@media (max-width: 576px) {
  .turnstile-note {
    max-width: 100%;
  }
}

/* Footer */
.site-footer {
  background: #0b1220;
  color: rgba(255, 255, 255, 0.85);
}
.site-footer a {
  color: rgba(255, 255, 255, 0.92);
}
.site-footer a:hover {
  color: var(--brand-highlight);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* GLightbox video trigger */
.video-card {
  border-radius: 1.25rem;
}
.video-trigger {
  position: relative;
}
.video-thumb {
  display: block;
}
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.05), rgba(11, 18, 32, 0.35));
}
.video-play-inner {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: #061a2b;
  background: rgba(251, 255, 5, 0.92);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.25);
}
.video-trigger:focus-visible .video-play-inner,
.video-trigger:hover .video-play-inner {
  transform: scale(1.04);
}
