/* Import Local Inter Font for Better Performance */
@import url('../fonts/inter.css');

/* Navigation Component Styles - PSEO Version (Fixed Navigation) */
.navigation {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed; /* Fixed for PSEO pages to maintain original layout */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 7px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 60px;
}

/* New Logo Styles - Logomark + Text */
.logo-link {
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.02);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 0;
}

.logo-mark {
  height: 44px;
  width: auto;
  transition: transform 0.3s ease;
  margin-top: -2px;
}

.logo-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #000000;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
  line-height: 1.2;
}

.logo-link:hover .logo-text {
  color: #ff4500;
}

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

.nav-link {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 500;
  font-size: 0.938rem;
  transition: all 0.3s ease;
  position: relative;
}

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

.nav-link:hover {
  color: #ff4500;
}

.nav-link.active {
  color: #ff4500;
}

.nav-link.active::after {
  width: 100% !important;
}

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

.cta-button {
  background: #ff4500;
  color: white !important;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #e63e00;
  transform: translateY(-2px);
}

/* Mobile Navigation Styles */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger-line {
  width: 100%;
  height: 3px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

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

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 2rem 0;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  display: flex;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-link {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
}

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

.mobile-nav-link:hover {
  color: #ff4500;
}

.mobile-nav-link.active {
  color: #ff4500;
}

.mobile-nav-link.active::after {
  width: 100% !important;
}

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

.mobile-cta-button {
  background: #ff4500;
  color: white !important;
  padding: 14px 28px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.mobile-cta-button:hover {
  background: #e63e00;
  transform: translateY(-2px);
}

/* Prevent body scroll when mobile menu is open */
body.mobile-nav-open {
  overflow: hidden;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .nav-container {
    padding: 1rem 0;
  }
  
  /* Mobile logo adjustments */
  .logo-mark {
    height: 38px;
    margin-top: -2px;
  }
  
  .logo-text {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  
  .logo-container {
    gap: 10px;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0.8rem 0;
  }
  
  .mobile-nav {
    padding: 1.5rem 0;
  }
  
  .mobile-nav-link {
    font-size: 1rem;
  }
  
  .mobile-cta-button {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/* Universal button text color fix */
.button, .primary-button, .btn-primary, .cta-button, .mobile-cta-button,
a[class*="button"]:not(.apple-button-grey):not(.apple-button-white), 
button[class*="button"]:not(.apple-button-grey):not(.apple-button-white) {
  color: white !important;
}

/* Exception for grey buttons that need dark text */
.apple-button-grey {
  color: #000000 !important;
}

.apple-button-grey:hover {
  color: #000000 !important;
}

.apple-button-grey:visited {
  color: #000000 !important;
}

/* Ensure orange buttons always have white text */
[style*="background: #ff4500"], [style*="background:#ff4500"],
[style*="background-color: #ff4500"], [style*="background-color:#ff4500"] {
  color: white !important;
}
