/* ==========================================================================
   ShadowQS — Global base + shared site chrome (header + footer)
   Loaded on every page so the design tokens, buttons and the header/footer
   are defined in one place.

   Secondary pages (privacy, terms, …) still use Bootstrap for their body
   content, so anything here that could clash with Bootstrap is scoped to the
   <nav>/<footer> elements. On those pages this file must be loaded AFTER
   Bootstrap. Page-body chrome-free rules (reset, typography, sections, …)
   live in the page-specific stylesheet (e.g. main.css) instead.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
  --navy: #0F1F3D;
  --blue: #2F6BFF;
  --blue-soft: #EAF0FF;
  --grey: #707985;
  --line: #E6E9EF;
  --bg: #F7F8FA;
  --navy-body: #C6D0E2;
  --amber: #B45309;
  --amber-bg: #FFF7ED;
  --radius: 16px;
}

/* --------------------------------------------------------------------------
   Buttons (shared by hero/CTAs and the nav button)
   Safe globally: legal page bodies contain no .btn, only the nav uses it.
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  transition: all .2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(47, 107, 255, .30);
}

.btn-primary:hover {
  background: #2456d6;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
}

.logo-img {
  display: block;
}

/* --------------------------------------------------------------------------
   Header / footer typography scope
   Keeps the Inter font + rhythm on the chrome without touching the
   Bootstrap-driven body of secondary pages.
   -------------------------------------------------------------------------- */
nav,
footer {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

/* Constrain the chrome to the site width, overriding the responsive
   Bootstrap .container inside the header/footer only. */
nav .container,
footer .container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

nav .logo-img {
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--grey);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-cta {
  padding: 10px 20px !important;
  font-size: .9rem !important;
  color: #fff !important;
}

@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  background: #fff;
}

footer p {
  color: var(--grey);
}

.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.foot-brand p {
  font-size: .85rem;
  max-width: 280px;
  margin-top: 12px;
}

.foot-brand .logo-img {
  height: 30px;
}

.foot-col h5 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}

.foot-col a {
  display: block;
  color: var(--grey);
  text-decoration: none;
  font-size: .88rem;
  margin-bottom: 9px;
}

.foot-col a:hover {
  color: var(--blue);
}

.foot-col--security {
  max-width: 380px;
}

.foot-col--security p {
  font-size: .85rem;
  margin-bottom: 16px;
}

.foot-base {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
  color: var(--grey);
}

/* Security badge row */
.badge-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.badge-cyber {
  height: 74px;
}

.badge-cert {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 7px 16px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.badge-cert--uk {
  padding: 7px 18px 6px;
}

.badge-cert-label {
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: #0F1F3D;
}
