/**
 * Navigation and Footer styles for Centrifuge pages
 */

/* ========== Header / Navbar ========== */
.navbar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e5e5;
}

.navbar {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.navbar_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo_menu-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo .image-auto {
  height: 32px;
  width: auto;
}

.nav_menu-wrapper {
  display: flex;
  align-items: center;
}

.nav_menu {
  display: flex;
  align-items: center;
}

.nav_link_list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1F262F;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.nav-link:hover {
  background-color: #f5f5f5;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.dropdown-arrow {
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  padding: 0.5rem;
  margin-top: 0.5rem;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #1F262F;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
}

.nav-dropdown-item:hover {
  background-color: #f5f5f5;
}

.nav-dropdown-item.disabled {
  color: #999;
  pointer-events: none;
}

/* Navbar buttons */
.navbar_menu-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar_menu-right.mobile-only {
  display: none;
}

/* Navigation button wrapper only */
.navbar-fixed .button-wrapper {
  position: relative;
}

.navbar-fixed .button-gradient {
  display: none;
}

/* Navigation buttons only */
.navbar-fixed .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.navbar-fixed .button.is-icon {
  background: #FFC012;
  color: #1F262F;
}

.navbar-fixed .button.is-icon:hover {
  background: #e6ad10;
}

.navbar-fixed .button.is-secondary {
  background: transparent;
  border: 1px solid #e5e5e5;
  color: #1F262F;
  position: relative;
  overflow: hidden;
}

.navbar-fixed .button.is-secondary .btn-text-default {
  display: block;
}

.navbar-fixed .button.is-secondary .btn-text-hover {
  display: none;
}

.navbar-fixed .button.is-secondary:hover .btn-text-default {
  display: none;
}

.navbar-fixed .button.is-secondary:hover .btn-text-hover {
  display: block;
}

/* Mobile menu button */
.navbar_menu-button {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.menu-icon1_line-top,
.menu-icon1_line-middle,
.menu-icon1_line-bottom {
  height: 2px;
  background: #1F262F;
  transition: all 0.2s ease;
}

/* ========== Footer ========== */
footer.footer {
  background: #1F262F;
  color: #fff;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer_container {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

.footer_bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  opacity: 0.1;
}

.footer_bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer_content {
  position: relative;
  z-index: 1;
}

.footer_logo-wrap {
  display: inline-block;
  margin-bottom: 2rem;
}

.footer_logo-wrap svg {
  fill: #fff;
}

.footer_logo-wrap path {
  fill: #fff;
}

.footer_top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer_columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer_column-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer_links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer_link {
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer_link:hover {
  color: #FFC012;
}

.footer_link.disabled {
  color: #666;
  pointer-events: none;
}

.footer_newsletter {
  max-width: 400px;
}

.footer_newsletter-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer_newsletter-text {
  font-size: 0.875rem;
  color: #999;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.footer_newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.footer_newsletter-input {
  flex: 1;
  padding: 0.625rem 1rem;
  border: 1px solid #444;
  border-radius: 0.5rem;
  background: transparent;
  color: #fff;
  font-size: 0.875rem;
}

.footer_newsletter-input::placeholder {
  color: #666;
}

footer.footer .footer_newsletter-form .button {
  background: #FFC012;
  color: #1F262F;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
}

.footer_bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
}

.footer_bottom-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer_copyright {
  font-size: 0.75rem;
  color: #666;
}

.footer_legal-links {
  display: flex;
  gap: 1rem;
}

.footer_legal-link {
  font-size: 0.75rem;
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer_legal-link:hover {
  color: #fff;
}

.footer_social-links {
  display: flex;
  gap: 0.75rem;
}

.footer_social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  transition: background-color 0.2s ease;
}

.footer_social-link:hover {
  background: #FFC012;
  color: #1F262F;
}

.footer_social-link svg {
  width: 18px;
  height: 18px;
}

.footer_disclaimers {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #333;
}

.footer_disclaimer {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.footer_disclaimer-title {
  font-weight: 600;
  color: #999;
}

/* ========== Body padding for fixed header ========== */
html body {
  padding-top: 72px !important;
  margin-top: 0 !important;
}

/* Ensure main content is visible */
.main-wrapper {
  position: relative;
  z-index: 1;
}

/* ========== Responsive ========== */
@media (max-width: 991px) {
  .desktop-only {
    display: none !important;
  }

  .navbar_menu-button {
    display: flex;
  }

  .nav_menu-wrapper {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    flex-direction: column;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav_menu-wrapper.is-open {
    transform: translateX(0);
  }

  .nav_link_list {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-link {
    width: 100%;
    padding: 1rem;
    border-bottom: 1px solid #e5e5e5;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    margin-top: 0;
    padding-left: 1rem;
  }

  .navbar_menu-right.mobile-only {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 2rem;
    gap: 1rem;
  }

  .navbar_menu-right.mobile-only .button-wrapper {
    width: 100%;
  }

  .navbar_menu-right.mobile-only .button {
    width: 100%;
  }

  .footer_top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .footer_bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer_bottom-left {
    align-items: center;
  }
}

@media (max-width: 479px) {
  .footer_columns {
    grid-template-columns: 1fr;
  }

  .footer_newsletter-form {
    flex-direction: column;
  }
}
