:root {
  --primary: #1a237e;
  --primary-light: #534bae;
  --primary-dark: #000051;
  --secondary: #f9a826;
  --light: #f8f9fa;
  --dark: #212121;
  --gray: #757575;
  --light-gray: #f5f5f5;
  --transition: all 0.3s ease;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 8px;
}

.header {
  background-color: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  animation: fadeInDown 0.5s ease;
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header.hidden {
  transform: translateY(-100%);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

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

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  transition: var(--transition);
}

.header.scrolled .logo-img {
  height: 32px;
}

nav {
  display: flex;
  align-items: center;
  margin: 0 auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

nav a:hover {
  color: var(--primary);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--secondary);
  left: 0;
  bottom: -2px;
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  color: var(--primary);
  font-weight: 600;
}

nav a.active::after {
  width: 100%;
}

/* ===== CTA BUTTON ===== */
.cta-button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  z-index: 1002; /* above mobile menu */
  position: relative;
}

.cta-button:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  transition: var(--transition);
  z-index: 1001;
  position: relative;
}

.mobile-menu-btn:hover {
  background-color: rgba(26, 35, 126, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

@media (max-width: 992px) {
  .logo-img {
    height: 34px;
  }
}

@media (max-width: 768px) {
  .header-container {
    justify-content: space-between;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    padding: 80px 20px 20px;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
  }

  nav.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  nav ul {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  nav a {
    display: block;
    padding: 10px 0;
    font-size: 1.1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
  }

  nav a:last-child {
    border-bottom: none;
  }

  nav a::after {
    display: none;
  }
  
  .header-actions {
    gap: 5px;
  }

  .cta-button {
    order: 2;
    margin-left: auto;
  }

  .mobile-menu-btn {
    display: block;
    order: 1;
  }
}

@media (max-width: 576px) {
  .logo-img {
    height: 30px;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

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

@media print {
  .header {
    position: static;
    box-shadow: none;
  }

  .mobile-menu-btn,
  .cta-button {
    display: none !important;
  }
}
