/* ============================================
   PERFECT MOBILE HEADER
   Closed: Logo + Hamburger
   Open: Full blue menu with X button
   ============================================ */

/* ============================================
   MAIN HEADER - ALWAYS VISIBLE
   ============================================ */

.main-header {
  background: #ffffff;
  padding: 15px 5%;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 45px;
  width: auto;
}

/* Hamburger Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

/* Hamburger icon (3 lines) */
.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #003d82;
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* When menu is open, hide hamburger */
.menu-toggle.active {
  display: none !important;
}

/* ============================================
   DESKTOP (> 768px)
   ============================================ */

@media (min-width: 769px) {
  .nav-menu {
    display: flex !important;
    align-items: center;
    gap: 25px;
  }

  .nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
    white-space: nowrap;
  }

  .nav-menu a:hover {
    color: #00338d;
  }

  .mobile-menu-header {
    display: none !important;
  }

  .btn-talk-header,
  .btn-lets-talk {
    background: #000 !important;
    color: #ffffff !important;
    padding: 12px 35px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border: 2px solid #00338d !important;
    transition: all 0.3s ease !important;

  }

  .btn-talk-header:hover,
  .btn-lets-talk:hover {
    background: #ffffff !important;
    color: #00338d !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 51, 141, 0.2) !important;
  }
}

/* ============================================
   MOBILE (≤ 768px) - EXACTLY LIKE IMAGES
   ============================================ */

@media (max-width: 768px) {

  /* Show hamburger in header */
  .menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Hide desktop nav menu initially */
  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000 !important;
    /* Deep blue */
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    transform: translateX(-100%) !important;
    /* Hidden left */
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    z-index: 1002 !important;
    overflow-y: auto !important;
    justify-content: flex-start;
  }

  /* When menu is open */
  .nav-menu.active {
    transform: translateX(0) !important;
  }

  /* Logo + X button header inside menu */
  .mobile-menu-header {
    background: #ffffff !important;
    padding: 15px 5% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    flex-shrink: 0 !important;
    width: 100%;
  }

  .mobile-menu-logo {
    height: 45px !important;
    width: auto !important;
  }

  /* X Close button */
  .menu-close {
    background: transparent !important;
    border: none !important;
    color: #333333 !important;
    font-size: 32px !important;
    width: 40px !important;
    height: 40px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
  }

  .menu-close:hover {
    transform: rotate(90deg) !important;
    color: #000000 !important;
  }

  /* Services dropdown item */
  .nav-menu a:first-child {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    padding: 18px 5% !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: transparent !important;
  }

  /* Dropdown arrow for Services */
  .nav-menu a:first-child::after {
    content: '▼';
    font-size: 12px;
    color: #ffffff;
  }

  /* Regular menu links */
  .nav-menu a:not(.btn-talk-header):not(:first-child) {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    padding: 18px 5% !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    text-align: left !important;
    display: block !important;
    background: transparent !important;
    width: 100% !important;
  }

  .nav-menu a:not(.btn-talk-header):hover {
    background: rgba(255, 255, 255, 0.1) !important;
    padding-left: 7% !important;
  }

  .mobile-menu-header {
    display: flex !important;
  }

  /* Let's Talk button at bottom */
  .btn-talk-header,
  .btn-lets-talk {
    background: #ffffff !important;
    color: #003d82 !important;
    padding: 14px 0 !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    margin: auto 0 0 0 !important;
    text-align: center !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-shrink: 0 !important;
    transition: all 0.3s ease !important;
    border-radius: 4rem !important;
  }

  .btn-talk-header:hover,
  .btn-lets-talk:hover {
    background: rgba(255, 255, 255, 0.9) !important;
  }

  /* Prevent body scroll when menu open */
  body.menu-open {
    position: fixed !important;
    width: 100% !important;
  }
}

/* ============================================
   TABLET
   ============================================ */

@media (min-width: 769px) and (max-width: 1024px) {
  .nav-menu {
    gap: 18px;
  }

  .nav-menu a {
    font-size: 13px;
  }

  .btn-talk-header,
  .btn-lets-talk {
    padding: 10px 25px !important;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.menu-toggle:focus,
.menu-close:focus {
  outline: 2px solid #003d82;
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}