/* ============================================================
   KEEP Labs — Shared CSS
   Nav, Footer, Progress Bar
   ============================================================ */

/* ── NAV ── */
nav#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  padding: 0 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, box-shadow 0.4s;
  background: transparent;
}

nav#site-nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(10,15,28,0.07);
}

nav#site-nav .nav-logo a {
  font-family: 'DM Serif Text', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  transition: color 0.4s;
}
nav#site-nav.scrolled .nav-logo a { color: #0A0F1C; }

nav#site-nav .nav-logo em { font-style: normal; color: #81D3E0; }
nav#site-nav.scrolled .nav-logo em { color: #0E7480; }

nav#site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav#site-nav .nav-links a {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color 0.2s;
}
nav#site-nav.scrolled .nav-links a { color: #334155; }
nav#site-nav .nav-links a:hover { color: #fff; }
nav#site-nav.scrolled .nav-links a:hover { color: #0A0F1C; }
nav#site-nav .nav-links a.active { color: #81D3E0; }
nav#site-nav.scrolled .nav-links a.active { color: #0E7480; }

nav#site-nav .nav-cta-btn {
  background: linear-gradient(135deg, #81D3E0, #0E7480) !important;
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 2px;
  transition: opacity 0.2s;
}
nav#site-nav .nav-cta-btn:hover { opacity: 0.88; }
/* CTA button should not get active highlight */
nav#site-nav .nav-cta-btn.active { color: #fff !important; }
nav#site-nav.scrolled .nav-cta-btn.active { color: #fff !important; }

nav#site-nav .nav-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, #0E7480, #81D3E0);
  transition: width 0.1s linear;
}

/* ── FOOTER ── */
footer#site-footer {
  background: #060b17;
  padding: 36px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
  z-index: 2;
}
footer#site-footer .footer-logo a {
  font-family: 'DM Serif Text', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
footer#site-footer .footer-logo em { font-style: normal; color: #0E7480; }
footer#site-footer .footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
footer#site-footer .footer-trust {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
}
footer#site-footer .footer-email {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
footer#site-footer .footer-email:hover {
  color: rgba(255,255,255,0.9);
}

/* ── Hamburger button (hidden by default) ── */
nav#site-nav .nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 201;
}
nav#site-nav .nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
nav#site-nav.scrolled .nav-hamburger span { background: #0A0F1C; }
nav#site-nav .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav#site-nav .nav-hamburger.open span:nth-child(2) { opacity: 0; }
nav#site-nav .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  nav#site-nav {
    padding: 0 22px;
    height: 56px;
  }
  nav#site-nav .nav-links {
    gap: 16px;
  }
  nav#site-nav .nav-links a {
    font-size: 12px;
  }
  footer#site-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 24px 22px;
  }
  footer#site-footer .footer-right {
    align-items: center;
    gap: 6px;
  }
}

@media (max-width: 768px) {
  nav#site-nav .nav-hamburger { display: block; }
  nav#site-nav .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: #0A0F1C;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 40px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -8px 0 30px rgba(0,0,0,0.3);
    z-index: 200;
  }
  nav#site-nav .nav-links.open { transform: translateX(0); }
  nav#site-nav .nav-links li { width: 100%; }
  nav#site-nav .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    color: rgba(255,255,255,0.9) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  nav#site-nav .nav-links a:hover { color: #fff !important; }
  nav#site-nav .nav-links a.active { color: #81D3E0 !important; }
  nav#site-nav .nav-cta-btn {
    margin-top: 16px;
    text-align: center;
    border-radius: 4px;
    padding: 14px 20px !important;
  }
  /* Overlay behind menu */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
  }
  .nav-overlay.open { display: block; }
}

/* ── Cookie Consent Banner ── */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(10, 15, 28, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(129, 211, 224, 0.12);
  padding: 20px 48px;
  font-family: 'DM Sans', system-ui, sans-serif;
}
.cookie-banner.show { display: block; }
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cookie-banner-text {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
  flex: 1;
}
.cookie-banner-text a {
  color: #81D3E0;
  text-decoration: none;
  transition: color 0.2s;
}
.cookie-banner-text a:hover { color: #fff; }
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  border: none;
  line-height: 1;
}
.cookie-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.cookie-btn-accept {
  background: linear-gradient(135deg, #81D3E0, #0E7480);
  color: #fff;
}
.cookie-btn-decline {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.cookie-btn-decline:hover { color: #fff; border-color: rgba(255,255,255,0.3); }

@media (max-width: 768px) {
  .cookie-banner { padding: 18px 20px; }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cookie-banner-text { font-size: 12px; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-btn { flex: 1; text-align: center; padding: 12px 16px; }
}
