/* Shared Navigation Header and Footer Styles for CommiCheck */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 0;
}

.header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-main);
}

/* Nav Dropdown Menus */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  transition: color 0.2s;
}

.nav-dropdown-trigger:hover,
.nav-item-dropdown:hover .nav-dropdown-trigger {
  color: var(--text-main);
}

.nav-dropdown-trigger svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -12px;
  margin-top: 10px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  min-width: 280px;
  padding: 8px 0;
  display: none;
  z-index: 1001;
}

/* Invisible bridge so mouse hover doesn't drop */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

@media (min-width: 901px) {
  .nav-item-dropdown:hover .nav-dropdown-trigger svg {
    transform: rotate(180deg);
  }
  .nav-item-dropdown:hover .nav-dropdown-menu,
  .nav-item-dropdown:focus-within .nav-dropdown-menu {
    display: block;
  }
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: #F8FAFC;
  color: #0275B1;
  padding-left: 22px;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.header-actions .btn[style*="var(--cc-yellow)"],
.header-actions .btn[style*="#FAFF00"],
.header-actions .btn[style*="#faff00"] {
  color: #000000 !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  padding: 8px;
}

@media (max-width: 900px) {
  .mobile-menu-btn {
    display: inline-flex;
    margin-right: 0;
  }
  .nav-links {
    display: none;
    width: 100%;
    position: static;
    background: #FFF;
    border-top: 1px solid var(--border-light);
    flex-direction: column;
    padding: 16px 0 8px;
    gap: 12px;
    order: 3;
    align-items: flex-start;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 8px 0;
    width: 100%;
  }
  .nav-item-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-dropdown-trigger {
    padding: 8px 0;
    width: 100%;
    justify-content: space-between;
  }
  .nav-dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: #F8FAFC;
    border-radius: 6px;
    width: 100%;
    margin-top: 4px;
    padding: 4px 0;
  }
  .nav-item-dropdown.open .nav-dropdown-menu,
  .nav-item-dropdown.active .nav-dropdown-menu {
    display: block;
  }
  .nav-item-dropdown.open .nav-dropdown-trigger svg,
  .nav-item-dropdown.active .nav-dropdown-trigger svg {
    transform: rotate(180deg);
  }
  .nav-dropdown-menu a {
    padding: 8px 16px;
    font-size: 13.5px;
  }
  .nav-links .header-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    margin-top: 8px;
  }
  .nav-links .header-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Footer */
.footer {
  background: var(--bg-alt, #F8FAFC);
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-light);
  margin-top: 60px;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-nav-row {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-contact-row a {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-contact-row a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 32px;
  color: var(--text-light);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 900px) {
  .footer-grid {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .footer-nav-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  .footer-contact-row {
    display: flex;
    justify-content: center;
    margin-top: 2px;
  }
}
