/* styles/header.css */
@import 'variables.css';

/* ===== 1. Base Header ===== */
.site-header {
  background-color: var(--main-color);
  height: 90px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  overflow: visible !important;
  /* Ensure logo pill is not clipped */
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: relative;
}

/* ===== 2. Logo Pill (white background, image only) ===== */
.logo-group {
  text-decoration: none;
  z-index: 1100;
  flex-shrink: 0;
}

.logo-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 8px;
  border-radius: 60px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 56px;
  height: 56px;
}

.logo-group:hover .logo-pill {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.logo-img {
  width: 40px;
  height: auto;
  display: block;
}

/* ===== 3. Company Name (outside pill, on navy background) ===== */
.company-name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  margin-left: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-name {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.brand-name .amp {
  color: var(--secondary-color);
  font-weight: 400;
}

.brand-subtext {
  font-family: 'sans-serif';
  font-size: 0.95rem;
  font-weight: bold;
  text-transform: capitalize;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== 4. Desktop Navigation ===== */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ===== 5. CTA Button ===== */
.btn-cta {
  background: var(--secondary-color);
  color: var(--main-color);
  padding: 8px 24px;
  border-radius: 40px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-cta:hover {
  background: #ffffff;
  color: var(--main-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ===== 6. Language Switcher ===== */
.lang-switch {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
}

.lang-switch:hover {
  background: var(--secondary-color);
  color: var(--main-color);
  border-color: var(--secondary-color);
}

/* ===== 7. Mobile Menu Button ===== */
.menu-trigger-icon {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  padding: 5px;
  z-index: 1100;
  transition: transform 0.3s ease;
  display: none;
}

.menu-trigger-icon:hover {
  transform: scale(1.05);
}

/* ===== 8. Mobile Drawer (right side) ===== */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #ffffff;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 100px 2rem 2rem;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-drawer.active {
  right: 0;
}

.close-trigger-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--main-color);
  font-size: 2.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.close-trigger-icon:hover {
  transform: scale(1.1);
  color: var(--secondary-color);
}

.mobile-links {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.mobile-links li {
  margin-bottom: 20px;
}

.mobile-links a {
  color: var(--main-color);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  transition: color 0.3s;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.mobile-links a:hover {
  color: var(--secondary-color);
}

.mobile-links .btn-cta-glow {
  display: inline-block;
  margin-top: 10px;
  background: var(--secondary-color);
  color: var(--main-color);
  text-align: center;
  width: 100%;
  padding: 12px;
  border-radius: 40px;
  font-size: 1rem;
  border: none;
}

/* ===== 9. Backdrop ===== */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 1999;
}

.menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ===== 10. Responsive Breakpoints ===== */
@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }

  .menu-trigger-icon,
  .mobile-drawer,
  .menu-backdrop {
    display: none !important;
  }
}

.company-name {
  white-space: normal;
  position: absolute;
  left: 111px;
}


@media (max-width: 1023px) {
  .desktop-nav {
    display: none;
  }

  .menu-trigger-icon {
    display: block;
  }

  /* Adjust company name size on smaller screens */
  .company-name {
    white-space: normal;
    position: absolute;
    left: 111px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-subtext {
    font-size: 0.55rem;
  }
}

@media (max-width: 480px) {
  .logo-pill {
    width: 48px;
    height: 48px;
    padding: 6px;
  }

  .logo-img {
    width: 32px;
  }

  .company-name {
    margin-left: 4px;
  }
}

.logo-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 12px;
  /* increased from 8px */
  border-radius: 60px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Remove fixed width/height – let it size naturally */
  width: auto;
  height: auto;
}

.logo-img {
  width: 56px;
  /* increased from 40px */
  height: auto;
  display: block;
}

.brand {
  font-size: 0.80rem;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 0.25rem;
}