/* ============================================================
   StakersChoice site chrome (header + footer) — new design
   ============================================================ */
:root {
  --ink: #07142f;
  --ink-2: #101c39;
  --red: #e91e45;
  --red-dark: #c81436;
  --gold: #f5c518;
  --green: #18a66a;
  --surface: #f5f7fb;
  --surface-2: #edf1f7;
  --line: #e3e8f0;
  --text: #111827;
  --muted: #667085;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(7, 20, 47, 0.11);
  --shadow-sm: 0 12px 35px rgba(7, 20, 47, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --shell: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.trust-bar,
.trust-bar *,
.site-header,
.site-header *,
.footer,
.footer *,
.support-fab {
  box-sizing: border-box;
}

/* Fonts for the header/footer (kept scoped so page content is unaffected) */
.trust-bar,
.trust-bar button,
.site-header,
.site-header button,
.site-header a,
.header-actions a,
.primary-nav a,
.footer,
.footer a,
.footer h3,
.support-fab {
  font-family: "DM Sans", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.trust-bar a,
.trust-bar a:hover,
.site-header a,
.site-header a:hover,
.header-actions a,
.footer a,
.footer a:hover,
.support-fab {
  color: inherit;
  text-decoration: none;
}

.brand img,
.footer img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---- trust bar ---- */
.trust-bar {
  position: relative;
  z-index: 40;
  background: #041027;
  color: #cbd3e0;
  font-size: 12px;
}

.trust-bar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.trust-bar__items {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-bar__divider {
  width: 1px;
  height: 12px;
  background: #39435a;
}

.trust-bar a {
  color: var(--white);
  font-weight: 700;
}

/* ---- site header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 35;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(227, 232, 240, 0.8);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 9px;
}

.brand__copy {
  display: flex;
  flex-direction: column;
}

.brand__name {
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.92;
  text-transform: uppercase;
}

.brand__name--accent {
  color: var(--red);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: clamp(16px, 2vw, 30px);
}

.primary-nav a {
  color: #394056;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-nav__auth {
  display: none;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: var(--ink);
}

/* ---- buttons ---- */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--compact {
  min-height: 42px;
  padding: 10px 17px;
  font-size: 13px;
}

.button--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 12px 25px rgba(233, 30, 69, 0.22);
}

.button--primary:hover {
  background: var(--red-dark);
}

.button--ghost {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.button--ink {
  background: var(--ink);
  color: var(--white);
}

.button[aria-disabled="true"] {
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.45;
  pointer-events: none;
}

/* keep header action button text colours correct (overrides scoped link inherit) */
.header-actions .button--primary,
.header-actions .button--primary:hover,
.site-header .button--primary,
.site-header .button--primary:hover {
  color: var(--white) !important;
}

.header-actions .button--ghost,
.header-actions .button--ghost:hover,
.site-header .button--ghost,
.site-header .button--ghost:hover {
  color: var(--ink) !important;
}

/* ---- footer ---- */
.footer {
  padding-top: 80px;
  background: #040e23;
  color: #8f9bb0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 55px;
  padding-bottom: 60px;
}

.brand--footer .brand__name {
  color: var(--white);
}

.brand--footer .brand__name--accent {
  color: var(--red);
}

.footer__about > p {
  max-width: 430px;
  margin: 23px 0;
  font-size: 13px;
}

.responsible-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #a8b2c5;
  font-size: 11px;
  line-height: 1.25;
}

.responsible-badge strong {
  display: inline-flex;
  width: 41px;
  height: 41px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--white);
}

.footer h3 {
  margin: 8px 0 22px;
  color: var(--white);
  font-size: 14px;
}

.footer__grid > div:not(:first-child) a {
  display: block;
  width: max-content;
  margin-bottom: 11px;
  font-size: 13px;
}

.footer a:hover {
  color: var(--white);
}

.footer__bottom {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #202a40;
  font-size: 12px;
}

.footer__bottom p {
  margin: 0;
}

.apk-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 16px;
  border-radius: 11px;
  background: var(--red);
  color: var(--white) !important;
  font-weight: 800;
  font-size: 13px;
}

.apk-install-btn:hover {
  background: var(--red-dark);
  color: var(--white) !important;
}

.support-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 12px 30px rgba(24, 166, 106, 0.35);
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
}

.support-fab .bi {
  font-size: 26px;
}

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .site-header__inner {
    gap: 16px;
  }

  .primary-nav {
    gap: 14px;
  }

  .primary-nav a {
    font-size: 12px;
  }

  .header-actions .button--ghost {
    display: none;
  }
}

@media (max-width: 860px) {
  .trust-bar__items span:last-child,
  .trust-bar__divider,
  .trust-bar__inner > a {
    display: none;
  }

  .site-header__inner {
    min-height: 70px;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .primary-nav {
    position: fixed;
    top: 104px;
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(100vh - 104px);
    z-index: 50;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 20px;
    background: #ffffff !important;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .primary-nav__auth {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .primary-nav__auth .button {
    justify-content: center;
    border-bottom: none;
    padding: 13px 18px;
  }

  .header-actions .button--primary {
    min-height: 44px;
    padding-inline: 14px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .header-actions .button--primary {
    display: none;
  }

  .brand__name {
    font-size: 15px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding-block: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
