/* ==========================================================================
   RAIKTOOLS — FRESH NEW HEADER & FOOTER CSS (V2)
   Modern, Ultra-Fast, Glassmorphic & High-Converting
   ========================================================================== */

/* ── Fresh Header System ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1050;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Offset main content container so it doesn't get clipped behind fixed header */
main, #main-content {
  padding-top: 70px !important;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #db2777);
  opacity: 0.9;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  height: 64px;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 1rem;
}

/* Brand Logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  flex-shrink: 0;
  margin-right: 1rem;
  transition: transform 0.2s ease;
}
.nav-logo:hover {
  transform: translateY(-1px);
}
.nav-logo img {
  height: 32px;
  width: auto;
}

/* Nav Items & Links */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.nav-menu .nav-item {
  position: relative;
}
.nav-menu .nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none !important;
  border-radius: 0.625rem;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 1.2;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-item.open .nav-link {
  color: #0f172a;
  background: #f1f5f9;
}

.nav-menu .nav-link.active {
  color: #2563eb;
  background: #eff6ff;
  font-weight: 700;
}

.nav-link-chevron {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
  opacity: 0.6;
}
.nav-item.open .nav-link-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Header Inline Search Bar */
.header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-input-row {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.15rem 0.35rem;
  transition: all 0.25s ease;
}

.header-search-input-row:focus-within {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.header-search-icon {
  padding-left: 0.6rem;
  color: #94a3b8;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
}

.header-search-input {
  border: none;
  background: transparent;
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
  color: #0f172a;
  width: 170px;
  outline: none;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-search-input:focus {
  width: 240px;
}

.header-search-kbd {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 0.375rem;
  background: #e2e8f0;
  color: #475569;
  margin-right: 0.4rem;
  border: 1px solid #cbd5e1;
}

/* Nav Actions CTA Button */
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.12);
  transition: all 0.25s ease;
}

.btn-nav-cta:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.25);
}

/* Hamburger Menu Button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #0f172a;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.nav-hamburger:hover {
  background: #f1f5f9;
}

/* Mega Menu Backdrop & Overlay */
.mega-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1040;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mega-backdrop.visible {
  display: block;
  opacity: 1;
}

.mega-menu-wrapper {
  position: fixed;
  top: 70px; left: 0; right: 0;
  z-index: 1051;
  display: none;
  justify-content: center;
  padding: 0 1rem;
}

.mega-menu-wrapper.open {
  display: flex;
}

.mega-menu {
  width: 100%;
  max-width: 1100px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  animation: megaSlideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes megaSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Fresh Footer System ─────────────────────────────────────────── */
.footer {
  background: #090d16;
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #1e293b;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Newsletter Box */
.footer-newsletter {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(12px);
  border-radius: 1.25rem !important;
  padding: 2.5rem 2rem !important;
  margin-bottom: 3.5rem !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.footer-newsletter h3 {
  color: #ffffff !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
}

.footer-newsletter p {
  color: #cbd5e1 !important;
}

.footer-newsletter input[type="email"] {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 2px solid transparent !important;
  border-radius: 0.75rem !important;
  color: #0f172a !important;
  padding: 0.75rem 1.15rem !important;
  font-size: 0.95rem !important;
}

.footer-newsletter input[type="email"]:focus {
  background: #ffffff !important;
  border-color: #38bdf8 !important;
}

.footer-newsletter button[type="submit"] {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
  transition: all 0.25s ease !important;
}

.footer-newsletter button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

/* Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  max-width: 340px;
}

.footer-logo {
  margin-bottom: 1.25rem;
}

.footer-description {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1 !important;
  font-size: 1.1rem;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.social-link:hover {
  background: #2563eb;
  color: #ffffff !important;
  border-color: #2563eb;
  transform: translateY(-3px);
}

.footer-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-link {
  display: block;
  color: #94a3b8 !important;
  font-size: 0.875rem;
  padding: 0.35rem 0;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.footer-link:hover {
  color: #38bdf8 !important;
  transform: translateX(3px);
}

/* Footer Bottom Bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-text {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0;
}

.footer-badges {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
}

.footer-badge i {
  color: #38bdf8;
}

/* Mobile Responsiveness for Header/Footer */
@media (max-width: 991px) {
  .nav-menu, .nav-actions {
    display: none !important;
  }
  .nav-hamburger {
    display: flex !important;
    margin-left: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Bootstrap 5 Accordion Styles ──────────────────────────────── */
.accordion-collapse.collapse {
  display: none;
}
.accordion-collapse.collapse.show {
  display: block;
}
.accordion-button {
  width: 100%;
  text-align: left;
  background-color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s ease;
}
.accordion-button:not(.collapsed) {
  color: #2563eb !important;
  background-color: #eff6ff !important;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}
.accordion-button::after {
  content: '';
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230f172a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1.25rem;
  transition: transform 0.2s ease-in-out;
}
.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232563eb'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: rotate(-180deg);
}
.accordion-body {
  padding: 1.25rem 1.5rem;
  line-height: 1.65;
  color: #475569;
  background: #ffffff;
}
