@import url("shared.css");

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 400;
  pointer-events: none;
  background: transparent;
}
.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-4), var(--gold));
  transition: width 0.08s linear;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--b2);
  border-radius: 8px;
  background: transparent;
  color: var(--t2);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.nav-mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 290;
  padding: 16px 20px 24px;
  background: rgba(11, 14, 19, 0.97);
  border-bottom: 1px solid var(--b1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a:not(.btn) {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--t2);
  border-bottom: 1px solid var(--b1);
}
.nav-mobile a:not(.btn):last-of-type { border-bottom: none; }
.nav-mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--b1);
}
.nav-mobile-ctas .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  text-align: center;
}
.nav-mobile-ctas .btn-gold {
  color: var(--on-gold, #1a1407);
}
.nav-mobile-ctas .btn-ghost {
  color: var(--t2);
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-sm, .nav-signin { display: none; }
}

/* Back to top */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 280;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--b2);
  border-radius: 999px;
  background: rgba(17, 21, 28, 0.92);
  color: var(--t2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, border-color 0.14s ease;
}
.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover { border-color: var(--gold); color: var(--t1); }
.to-top svg { width: 18px; height: 18px; }

/* End CTA band */
.endband {
  border-top: 1px solid var(--b1);
  background:
    radial-gradient(ellipse 80% 80% at 50% 100%, rgba(224, 180, 73, 0.08), transparent 60%),
    var(--bg-1);
}
.endband-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.endband h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.endband p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--t2);
  max-width: 52ch;
}
.endband-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.endband-actions .btn svg {
  width: 16px;
  height: 16px;
  margin-left: 6px;
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 640px) {
  .endband-in { padding-left: 20px; padding-right: 20px; }
  .to-top { right: 16px; bottom: 16px; }

  /* Footer — centred logo, link rows (max 3 per row), copyright last */
  .footer-in {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
  }

  .footer-in > .wordmark {
    align-self: center;
  }

  .footer-grid {
    width: 100%;
    flex: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, max-content));
    justify-content: center;
    justify-items: center;
    gap: 12px 24px;
  }

  .footer-col {
    display: contents;
  }

  .footer-col-label {
    display: none;
  }

  .footer-col a {
    text-align: center;
    max-width: 100%;
    word-break: break-word;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    max-width: 100%;
  }

  .footer-links a {
    text-align: center;
  }

  .footer-copy {
    width: 100%;
    text-align: center;
    align-self: center;
  }
}
