/* ═══════════════════════════════════════════════════════════════════════════
   Nav.css - Premium Nav Bar
   Glassmorphic blur, warm accents, smooth transitions
   ═══════════════════════════════════════════════════════════════════════════ */


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

/* ─── Nav Container ────────────────────────────────────────────────────── */
.nav-bar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 64px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav-bar.nav-scrolled {
  background: rgba(255, 250, 242, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 12px rgba(26, 15, 10, 0.06);
}

/* Inner pages use a light header even before the first scroll. */
:is(.profile-page-wrapper, .pricing-page-container, .about-page-wrapper,
    .klp-page, .mcp-page, .support-page-wrapper, .report-landing-page) .nav-bar {
  background: rgba(255, 251, 244, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 10px rgba(85, 52, 22, .07);
}
:is(.profile-page-wrapper, .pricing-page-container, .about-page-wrapper,
    .klp-page, .mcp-page, .support-page-wrapper, .report-landing-page) .nav-link:not(.nav-cta) {
  color: var(--vr-ink);
}
:is(.profile-page-wrapper, .pricing-page-container, .about-page-wrapper,
    .klp-page, .mcp-page, .support-page-wrapper, .report-landing-page) .nav-link:not(.nav-cta):hover {
  color: var(--vr-link);
  background: #fff1db;
}
@media (max-width: 768px) {
  :is(.profile-page-wrapper, .pricing-page-container, .about-page-wrapper,
      .klp-page, .mcp-page, .support-page-wrapper, .report-landing-page) #nav-right {
    background: #fffaf2;
    border-top-color: #e7c99c;
    box-shadow: 0 16px 36px rgba(76, 43, 15, .14);
  }
  :is(.profile-page-wrapper, .pricing-page-container, .about-page-wrapper,
      .klp-page, .mcp-page, .support-page-wrapper, .report-landing-page) .nav-group {
    border-bottom-color: var(--vr-border);
  }
}

/* ─── Logo ─────────────────────────────────────────────────────────────── */
.gradient-text {
  font-family: var(--vr-font-family);
  font-size: 1.35rem;
  font-weight: var(--vr-font-weight-heading);
  background-image: linear-gradient(135deg, #ff8800, #e65c00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  letter-spacing: var(--vr-letter-spacing);
}

/* ─── Nav Links Container ──────────────────────────────────────────────── */
#nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── Individual Links ─────────────────────────────────────────────────── */
.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--vr-font-family);
  border-radius: 8px;
  transition: all 0.25s ease;
  white-space: nowrap;
  border: none;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Scrolled state - dark text */
.nav-scrolled .nav-link {
  color: #4a3c30;
}

.nav-scrolled .nav-link:hover {
  background: rgba(26, 15, 10, 0.05);
  color: #1a0f0a;
}

/* ─── CTA Button (Login / Profile) ─────────────────────────────────────── */
.nav-cta {
  background: var(--vr-primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--vr-font-family);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(255, 100, 0, 0.2);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 100, 0, 0.35);
}

.nav-scrolled .nav-cta {
  color: #fff !important;
}

/* ─── Install Button ───────────────────────────────────────────────────── */
.nav-install {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.nav-scrolled .nav-install {
  border-color: #e8d4bd;
  background: rgba(26, 15, 10, 0.03);
}

/* ─── Nav Divider ──────────────────────────────────────────────────────── */
.nav-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 4px;
}

.nav-scrolled .nav-divider {
  background: #e8d4bd;
}

/* ─── Hamburger ────────────────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  width: 22px;
  height: 2.5px;
  background: var(--vr-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ─── Mobile ───────────────────────────────────────────────────────────── */
@media only screen and (max-width: 768px) {
  .nav-bar {
    height: 56px;
    padding: 0 16px;
  }

  .gradient-text {
    font-size: 1.2rem;
  }

  .hamburger {
    display: flex;
  }

  #nav-right {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #1a0f0a;
    padding: 8px 24px 28px;
    gap: 0;
    border-top: 2px solid #d4710a;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  }

  #nav-right.open {
    display: flex;
  }

  .nav-scrolled #nav-right {
    background: #fffaf2;
    box-shadow: 0 16px 48px rgba(26, 15, 10, 0.1);
    border-top-color: #d4710a;
  }

  /* ─── Nav Groups ─── */
  .nav-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-group:last-child {
    border-bottom: none;
  }

  .nav-scrolled .nav-group {
    border-bottom-color: #f0e6d8;
  }

  /* ─── Links ─── */
  .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 14px 4px 14px 12px;
    width: 100%;
    border-radius: 0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: var(--vr-letter-spacing);
    text-align: left;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* ─── Icon ─── */
  .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    font-size: 1rem;
    color: #d4710a;
    flex-shrink: 0;
  }

  .nav-link:hover {
    background: rgba(255, 180, 60, 0.08);
    border-left-color: #d4710a;
    color: #ffb84a;
  }

  .nav-link:hover .nav-icon {
    color: #ffb84a;
  }

  .nav-scrolled .nav-link {
    color: #2d1810;
  }

  .nav-scrolled .nav-icon {
    color: #d4710a;
  }

  .nav-scrolled .nav-link:hover {
    background: rgba(212, 113, 10, 0.06);
    border-left-color: #d4710a;
    color: #d4710a;
  }

  .nav-scrolled .nav-link:hover .nav-icon {
    color: #d4710a;
  }

  /* ─── CTA ─── */
  .nav-cta {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    margin-top: 12px;
    font-size: 1rem;
    border-radius: 12px;
    letter-spacing: var(--vr-letter-spacing);
  }

  .nav-divider {
    display: none;
  }

  .nav-install {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
    margin-bottom: 4px;
    border-color: rgba(255, 255, 255, 0.1);
  }

  .nav-scrolled .nav-install {
    border-color: #e8d4bd;
  }
}

/* Shared website typography. Change these tokens to update every web page. */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/Inter-Italic-LatinExt.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/Inter-Italic-Latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/Inter-LatinExt.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/Inter-Latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --vr-canvas: #faf7f2;
  --vr-surface: #fffdfa;
  --vr-sand: #efe9e1;
  --vr-border: #e9ded1;
  --vr-ink: #35251d;
  --vr-muted: #796c61;
  --vr-primary: #e6670a;
  --vr-primary-hover: #bd4c08;
  --vr-link: #a35417;
  --vr-dark: #38271d;
  --vr-gold: #f2b84d;
  --vr-peach: #fff0d8;
  --vr-primary-gradient: linear-gradient(135deg, #f68622, #df650b);
  --vr-font-family: 'Inter', Arial, sans-serif;
  --vr-font-weight-heading: 600;
  --vr-font-weight-body: 400;
  --vr-letter-spacing: 0;
  --vr-heading-line-height: 1.3;
  --vr-section-title-size: 32px;
  --vr-card-title-size: 16px;
  --vr-reading-size: 15px;
}

html, body, #root {
  font-family: var(--vr-font-family);
  font-synthesis: none;
  letter-spacing: var(--vr-letter-spacing);
}
body { font-weight: var(--vr-font-weight-body); }
button, input, select, textarea { font-family: var(--vr-font-family); }

.top-section .brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  border: 1px solid #e8c58f;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(91, 50, 19, .12);
}

/* Legacy page styles include strong/inline heading weights. Keep the shared
   heading style stable across lazy-loaded routes without affecting icon fonts. */
#root :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--vr-font-family);
  font-weight: var(--vr-font-weight-heading) !important;
  letter-spacing: var(--vr-letter-spacing) !important;
}

/* Preserve the approved report-section sizes with the same shared tokens. */
.lr-app .lr-section-heading h2,
.lr-app .lr-why-grid h2,
.lr-app .lr-last-cta h2 {
  font-size: var(--vr-section-title-size);
  line-height: var(--vr-heading-line-height);
}
.lr-app #report-coverage .lr-topic-card h3 {
  font-size: var(--vr-card-title-size);
  line-height: 1.5;
}
.lr-app #report-coverage .lr-topic-card > p,
.lr-app #report-coverage .lr-topic-card > small,
.lr-app #report-coverage .lr-full-index > p,
.lr-app #report-coverage .lr-full-index > ol {
  font-size: var(--vr-reading-size);
  font-weight: var(--vr-font-weight-body);
  line-height: 1.75;
}
.lr-app #report-coverage .lr-kicker,
.lr-app #report-coverage .lr-full-index > summary {
  font-weight: var(--vr-font-weight-heading);
}
@media (max-width: 700px) {
  :root {
    --vr-section-title-size: 26px;
    --vr-card-title-size: 14px;
    --vr-reading-size: 14px;
  }
}

