/* =========================================================================
   components.css
   GoldBridge — shared components: nav, footer, buttons, cards, badges,
   FAQ accordion, generic SVG icons. Loaded after global.css on every page.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Top navigation
   ------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  z-index: var(--z-nav);
  background: rgba(7, 7, 12, 0.75);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid var(--border-dim);
  transition: transform var(--dur-base) var(--ease-out);
  will-change: transform;
}

.nav.is-hidden {
  transform: translateY(-100%);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: 100%;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: color var(--dur-base) var(--ease-out);
}

.logo:hover { color: var(--gold-light); }

.logo__mark {
  width: 22px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

/* Center menu (desktop) */
.nav__menu {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

.nav__link {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  opacity: 0.8;
  letter-spacing: 0.005em;
  padding-block: 6px;
  position: relative;
  transition: color var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--gold);
  opacity: 1;
}

/* Right CTA */
.nav__cta {
  display: none;
}

/* Hamburger */
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  color: var(--text);
  border-radius: var(--radius);
  transition: background var(--dur-base) var(--ease-out);
}

.nav__toggle:hover { background: var(--gold-dim); }

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-out), top var(--dur-base) var(--ease-out);
}
.nav__toggle-bar::before { top: -7px; }
.nav__toggle-bar::after  { top:  7px; }

.nav__toggle[aria-expanded="true"] .nav__toggle-bar { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::after  { top: 0; transform: rotate(-45deg); }

/* Mobile fullscreen menu */
.nav__overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: var(--nav-height) clamp(28px, 8vw, 48px) var(--space-7);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base) var(--ease-out);
}

.nav__overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nav__overlay-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.nav__overlay-link {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(36px, 9vw, 56px);
  line-height: 1.05;
  color: var(--text);
  transition: color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.nav__overlay-link:hover { color: var(--gold); }

.nav__overlay-cta {
  margin-top: var(--space-7);
  align-self: flex-start;
}

@media (min-width: 880px) {
  .nav__menu { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav__overlay { display: none; }
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  --btn-py: 14px;
  --btn-px: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-py) var(--btn-px);
  min-height: 48px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 80ms; }

.btn-sm {
  --btn-py: 9px;
  --btn-px: 18px;
  min-height: 38px;
  font-size: 12px;
}

.btn-primary {
  background: var(--gold);
  color: #0A0A10;
  border-color: var(--gold);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Continuous diagonal shine sweep — like light catching brushed metal. */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: btnShine 4s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}

@keyframes btnShine {
  0%   { transform: translateX(-120%); }
  60%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #0A0A10;
  box-shadow: 0 12px 30px rgba(224, 183, 62, 0.35);
}
.btn-primary:hover::after {
  animation-duration: 1.4s;
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary::after { animation: none; opacity: 0; }
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--gold);
  padding-block: 4px;
  border-bottom: 1px solid var(--border);
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), gap var(--dur-base) var(--ease-out);
}
.btn-link:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  gap: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
  .btn-link:hover { gap: 8px; }
}

/* -------------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  transition:
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: var(--shadow-gold);
}

.card-gold {
  border-top: 2px solid var(--gold);
}

.card-gold::before {
  content: '';
  position: absolute;
  inset: -2px -1px auto -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent);
  pointer-events: none;
}

.card-flat {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 28px);
  transition: border-color var(--dur-base) var(--ease-out);
}
.card-flat:hover { border-color: var(--border); }

@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
}

/* -------------------------------------------------------------------------
   Badges
   ------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.badge-gold {
  background: var(--gold);
  color: #0A0A10;
}

.badge-outline {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--border);
}

/* -------------------------------------------------------------------------
   Section heading
   ------------------------------------------------------------------------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: var(--container-sm);
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-dim);
  margin-top: var(--space-9);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  padding-block: var(--space-8);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 360px;
}

.footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.4;
  color: var(--text);
  opacity: 0.85;
}

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__list a {
  font-size: 14px;
  color: var(--muted);
  transition: color var(--dur-base) var(--ease-out);
}
.footer__list a:hover { color: var(--gold); }

.footer__bottom {
  border-top: 1px solid var(--border-dim);
  padding-block: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.footer__disclaimer {
  max-width: 720px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--space-8);
  }
  .footer__bottom {
    flex-direction: row;
    align-items: center;
  }
}

/* -------------------------------------------------------------------------
   FAQ / accordion (driven by js/faq.js)
   ------------------------------------------------------------------------- */
.faq {
  display: flex;
  flex-direction: column;
}

.faq__item {
  border-bottom: 1px solid var(--border-dim);
}
.faq__item:first-child { border-top: 1px solid var(--border-dim); }

.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.3;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color var(--dur-base) var(--ease-out);
}
.faq__trigger:hover { color: var(--gold); }

.faq__chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--gold);
  transition: transform var(--dur-base) var(--ease-out);
}

.faq__item.is-open .faq__chevron { transform: rotate(180deg); }

.faq__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out);
}

.faq__panel-inner {
  padding: 0 0 var(--space-5) 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 640px;
}

/* -------------------------------------------------------------------------
   Inline icons (stroke only)
   ------------------------------------------------------------------------- */
.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 32px; height: 32px; }

/* -------------------------------------------------------------------------
   Performance placeholder (shared by home + correlation)
   ------------------------------------------------------------------------- */
.perf__placeholder {
  border: 1px dashed rgba(224, 183, 62, 0.2);
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.perf__icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  opacity: 0.5;
}

.perf__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  color: var(--text);
}

.perf__text {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
}

.perf__stats-banner {
  margin-top: clamp(36px, 5vw, 56px);
  padding: 12px 18px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}

.perf__stats {
  margin-top: var(--space-5);
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-dim);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--bg-card);
  padding: clamp(20px, 3vw, 32px) clamp(16px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.stat__value {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  color: var(--gold);
  line-height: 1;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.perf__disclaimer {
  margin-top: var(--space-4);
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 768px) {
  .perf__stats { grid-template-columns: repeat(4, 1fr); }
}

/* -------------------------------------------------------------------------
   Page hero (shared across non-home pages)
   ------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-height) + clamp(56px, 9vw, 96px));
  padding-bottom: clamp(48px, 7vw, 88px);
  border-bottom: 1px solid var(--border-dim);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 0%, var(--gold-glow), transparent 70%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: var(--container-sm);
}

.page-hero__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
}

.page-hero__sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
}

/* -------------------------------------------------------------------------
   Live result card — shared. Single weekly real-account result.
   Used on home and correlation pages.
   ------------------------------------------------------------------------- */
.live-result {
  background: var(--bg-card);
  border: 1px solid rgba(224, 183, 62, 0.28);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(224, 183, 62, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.3);
  animation: liveResultGlow 3s ease-in-out infinite;
}

@keyframes liveResultGlow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(224, 183, 62, 0.06),
      0 20px 50px rgba(0, 0, 0, 0.3),
      0 0 0 rgba(224, 183, 62, 0);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(224, 183, 62, 0.18),
      0 20px 50px rgba(0, 0, 0, 0.3),
      0 0 60px rgba(224, 183, 62, 0.18);
  }
}

.live-result::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold) 25%,
    var(--gold-light) 50%,
    var(--copper) 75%,
    transparent 100%
  );
  background-size: 220% 100%;
  background-position: 0% 0%;
  animation: liveResultStripe 4s linear infinite;
  filter: drop-shadow(0 0 6px rgba(245, 210, 107, 0.45));
}

@keyframes liveResultStripe {
  0%   { background-position:    0% 0%; }
  100% { background-position: -220% 0%; }
}

@media (prefers-reduced-motion: reduce) {
  .live-result, .live-result::before { animation: none; }
}

.live-result__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
  padding-bottom: clamp(16px, 2vw, 22px);
  border-bottom: 1px solid var(--border-dim);
}

.live-result__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.live-result__label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: liveDot 2s ease-in-out infinite;
}

@keyframes liveDot {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

.live-result__return {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.live-result__return-value {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1;
  background: linear-gradient(120deg, var(--gold-light) 0%, var(--gold) 50%, var(--copper) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

.live-result__return-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.live-result__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-dim);
  margin-top: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 640px) {
  .live-result__stats { grid-template-columns: repeat(4, 1fr); }
}

.live-result__cell {
  background: var(--bg-card);
  padding: clamp(16px, 2vw, 22px) clamp(14px, 2vw, 20px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.live-result__cell-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.live-result__cell-value {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1;
  color: var(--text);
}

.live-result__cell-value--positive { color: #6FE89B; }
.live-result__cell-value--negative { color: #FF8B7A; }

.live-result__disclaimer {
  margin-top: clamp(20px, 2.6vw, 28px);
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}
