/* ========== RESET & BASE ========== */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Arial', sans-serif; }

.site-header {
  position: sticky; top: 0; z-index: 9999;
  background: #4a1c6f; /* Purple Background */
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.header-wrap {
  max-width: 1200px; margin: auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
}

/* Logo & Name Section */
.logo a { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { height: 50px; }
.company-name { color: #ffffff; font-size: 18px; font-weight: bold; text-transform: uppercase; }

/* ========== DESKTOP MENU ========== */
.menu { list-style: none; display: flex; align-items: center; gap: 25px; }
.menu a { text-decoration: none; color: #ffffff; font-weight: 500; font-size: 15px; transition: 0.3s; }
.menu a:hover { color: #d1b3ff; }

/* Desktop Dropdown Container */
.dropdown { position: relative; padding: 10px 0; }

.dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  background: #ffffff;
  border-radius: 6px;
  display: none; /* Hide by default */
  flex-direction: column;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  padding: 8px 0;
  z-index: 1000;
}

.dropdown-menu a {
  color: #333333 !important; /* Always dark on white background */
  padding: 10px 20px;
  display: block;
  font-size: 14px;
  border-bottom: 1px solid #f5f5f5;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: #f8f0ff; color: #4a1c6f !important; }

/* Desktop Hover Bridge (Fixes cursor flickering) */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: flex;
  }
}

/* ========== MOBILE VIEW ========== */
.burger { display: none; flex-direction: column; cursor: pointer; gap: 5px; z-index: 10001; }
.burger span { width: 25px; height: 3px; background: #fff; border-radius: 2px; }

@media (max-width: 768px) {
  .burger { display: flex; }
  .company-name { font-size: 14px; }

  .menu {
    position: fixed; top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: #4a1c6f;
    flex-direction: column; padding: 80px 25px;
    transition: 0.4s ease;
    box-shadow: -10px 0 20px rgba(0,0,0,0.3);
  }
  .menu.active { right: 0; }

  .menu li { width: 100%; margin-bottom: 5px; }
  .menu a { display: block; font-size: 17px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }

  /* Mobile Dropdown Styling */
  .dropdown-menu {
    position: static; /* Flows with the list */
    width: 100%;
    background: rgba(0,0,0,0.2); /* Slightly darker purple */
    box-shadow: none;
    margin-top: 5px;
    display: none; /* Controlled by JS */
  }

  .dropdown-menu.show { display: flex !important; }

  .dropdown-menu a {
    color: #ffffff !important; /* White on dark mobile background */
    padding: 12px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .services-link { display: flex; justify-content: space-between; align-items: center; }
  .services-link.open .arrow { transform: rotate(180deg); transition: 0.3s; }
}
/* ========== SHARED ========== */
.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.mobile-header-right {
  display: none; /* Desktop par hide */
  align-items: center;
  gap: 15px;
}

/* ========== MOBILE VIEW (max-width: 768px) ========== */
@media (max-width: 768px) {
  .header-actions { display: none !important; } /* Purana bug fix */
  
  .mobile-header-right { 
    display: flex; 
    margin-left: auto; /* Burger aur Call ko RHS push karega */
  }

  /* Call Icon on Header Mobile */
  .mobile-call-icon {
    background: #25d366;
    color: white;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }

  .burger {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .burger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
  }

  /* Menu Adjustment */
  .menu {
    position: fixed;
    top: 0;
    right: -100%; /* RHS Hide */
    width: 280px;
    height: 100vh;
    background: #4a1c6f;
    flex-direction: column;
    padding: 80px 20px;
    transition: 0.4s ease-in-out;
  }

  .menu.active { right: 0; }

  /* Location in Menu */
  .mobile-location {
    display: block;
    color: #e6d9ef;
    font-size: 14px;
    margin-top: auto;
    padding-bottom: 20px;
  }
  
  .menu li:not(.mobile-location) {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

/* Desktop Styles */
@media (min-width: 769px) {
  .mobile-location { display: none; }
}