/* ============================================= */
/* SHARED LAYOUT - Nav + Footer                  */
/* Used by all public pages via layout.js         */
/* ============================================= */

/* Navigation */
.nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.35s ease;
}

.nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: -1;
}

.nav.scrolled {
  padding: 0.6rem 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.35s ease;
}

.nav.scrolled .nav-logo img {
  width: 40px;
  height: 40px;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-logo img {
  width: 48px;
  height: 48px;
  transition: all 0.35s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #1e40af;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Hamburger Menu — rendered as a <button> for accessibility (a11y);
   reset the native button chrome so it looks identical to the old <div>. */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 10001;
  padding: 10px;
  margin: -10px;
  position: relative;
  background: transparent;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #0f172a;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ── Cookie Consent Banner ─────────────────────────────────────────── */
#sbv-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  /* Must sit ABOVE Julie's chat widget (z-index 9999) so the Accept All
     button (right side of banner, same corner as Julie) receives clicks
     instead of being blocked by Julie's floating bubble.  Cookie consent
     is a hard prerequisite — once the user picks essential or analytics,
     the banner disappears and Julie is unblocked. */
  z-index: 10000;
  background: #1e293b;
  border-top: 1px solid #334155;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.sbv-cb-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.sbv-cb-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13.5px;
  color: #cbd5e1;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
  line-height: 1.5;
}
.sbv-cb-text strong {
  color: #f1f5f9;
  white-space: nowrap;
}
.sbv-cb-text a {
  color: #60a5fa;
  text-decoration: none;
}
.sbv-cb-text a:hover {
  text-decoration: underline;
}
.sbv-cb-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.sbv-cb-btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.sbv-cb-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.sbv-cb-essential {
  background: #374151;
  color: #e2e8f0;
}
.sbv-cb-accept {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
}
@media (max-width: 600px) {
  .sbv-cb-inner {
    padding: 12px 16px;
    gap: 12px;
  }
  .sbv-cb-actions {
    width: 100%;
  }
  .sbv-cb-btn {
    flex: 1;
    text-align: center;
  }
}

/* Footer */
.footer {
  background: #111827;
  color: #9ca3af;
  padding: 2rem 2rem 1rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-section h4 {
  color: white;
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 15px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 14px;
}

.footer-links a:hover {
  color: #3b82f6;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  color: #6b7280;
  font-size: 13px;
}

.footer-copy {
  margin: 0;
}

.footer-brand {
  margin: 0;
  font-size: 12px;
}

.footer-brand a {
  color: #4b5563;
  text-decoration: none;
  margin-left: 4px;
}

/* Mobile Responsive - Nav */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: white;
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    overflow-y: auto;
    align-items: center;
    z-index: 10000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    font-size: 20px;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
    width: 100%;
    text-align: center;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    margin-top: 1rem;
    text-align: center;
    width: 100%;
    display: block;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* Landscape mode fixes */
@media (max-height: 500px) and (orientation: landscape) {
  .nav-links {
    padding: 4rem 2rem 1rem;
    gap: 0.75rem;
  }

  .nav-link {
    padding: 0.5rem 0;
    font-size: 16px;
  }

  .nav-cta {
    padding: 0.5rem 1.5rem;
  }
}

/* Global overflow containment */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Hide Google's reCAPTCHA v3 floating badge globally — it lands in the
   bottom-right corner where Julie (the chatbot) lives, causing intermittent
   visual overlap on public pages.  Google's terms allow hiding the badge
   provided we display attribution text wherever the verification runs;
   that text is rendered inside the contact popup (see openContactPopup
   in layout.js).  app.html already had this rule inline — moving it here
   so every page that uses the shared layout gets it. */
.grecaptcha-badge {
  visibility: hidden !important;
}
