/* ==========================================================================
   NAV, Wipro-inspired enterprise style
   Full-width mega dropdown, clean typography, prominent logo
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease, height 0.3s ease;
}
.site-header.is-scrolled {
  height: 72px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0;
}

/* ---- Brand / Logo ---- */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  height: 62px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}
.site-header.is-scrolled .brand img { height: 54px; }

/* ---- Desktop nav ---- */
.nav-main {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  height: 80px;
}
.site-header.is-scrolled .nav-main { height: 72px; }
.nav-main > li {
  position: static; /* key for full-width dropdown */
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 16px;
  height: 100%;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
  position: relative;
  transition: color 0.2s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px; /* sit on the header border */
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 3px;
  background: #3B82F6;
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: left;
}
.nav-link:hover { color: #3B82F6; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: #3B82F6; }
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link svg {
  width: 12px; height: 12px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: #6B7280;
}
.has-dropdown:hover .nav-link svg { transform: rotate(180deg); color: #3B82F6; }

/* ---- MEGA DROPDOWN, full width, Wipro style ---- */
.dropdown {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  border-top: 3px solid #3B82F6;
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  padding: 36px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
  z-index: 999;
  display: block; /* override old grid */
}
.site-header.is-scrolled .dropdown { top: 72px; }

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.22s ease, visibility 0s linear 0s;
}

/* Dropdown inner layout */
.dropdown-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  gap: 0;
}
.dropdown-inner.cols-2 { grid-template-columns: 1fr 1fr; gap: 60px; }
.dropdown-inner.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 40px; }

/* Dropdown column */
.dd-col-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F3F4F6;
}
.dd-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dd-link {
  display: block;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
}
.dd-link:hover {
  color: #3B82F6;
  background: #FEF2F2;
  border-left-color: #3B82F6;
  padding-left: 14px;
}
/* old dropdown-item, keep backward compat but hide */
.dropdown-item { display: none; }

/* Small dropdown (Company) */
.dropdown.dropdown-sm {
  width: 260px;
  position: absolute;
  left: auto;
  right: auto;
  border-top: 3px solid #3B82F6;
  padding: 16px 0;
}
.dropdown.dropdown-sm .dropdown-inner {
  display: flex;
  flex-direction: column;
  padding: 0 8px;
}
.dropdown.dropdown-sm .dd-links { gap: 2px; }

/* ---- Nav CTA ---- */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid #E5E7EB;
  transition: all 0.2s ease;
}
.nav-phone:hover { border-color: #3B82F6; color: #3B82F6; }
.nav-phone svg { width: 14px; height: 14px; color: #3B82F6; flex-shrink: 0; }
.nav-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  font-size: 0.875rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3B82F6, #991B1B);
  color: #fff;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
  transition: all 0.2s ease;
}
.nav-cta .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59,130,246,0.4);
}

/* ---- Hamburger toggle ---- */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  background: #F0F9FF;
  border: 1.5px solid #E5E7EB;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.nav-toggle:hover { background: #FEF2F2; border-color: #3B82F6; }
.hamburger-icon { width: 20px; display: flex; flex-direction: column; gap: 5px; }
.hamburger-line { width: 100%; height: 2px; background: #374151; border-radius: 2px; transition: all 0.3s ease; transform-origin: center; }
.nav-toggle:hover .hamburger-line { background: #3B82F6; }
.nav-toggle.is-open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); background: #3B82F6; }
.nav-toggle.is-open .hamburger-line:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: #3B82F6; }
.nav-toggle.is-open { background: #FEF2F2; border-color: #3B82F6; }

/* ==========================================================================
   MOBILE PANEL
   ========================================================================== */
.mobile-panel {
  position: fixed;
  top: 80px; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 999;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}
.site-header.is-scrolled + .mobile-panel,
.mobile-panel { top: 80px; }
.mobile-panel.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.mobile-panel > ul { list-style: none; margin: 0; padding: 8px 20px 0; flex: 1; }

.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  border-bottom: 1px solid #F3F4F6;
  transition: color 0.2s;
}
.mobile-link:hover { color: #3B82F6; }
.mobile-link svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.25s; color: #9CA3AF; }
.mobile-group.is-open > .mobile-link { color: #3B82F6; }
.mobile-group.is-open > .mobile-link svg { transform: rotate(180deg); color: #3B82F6; }

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  background: #FAFAFA;
  border-radius: 8px;
  margin: 4px 0 8px;
}
.mobile-group.is-open .mobile-submenu { max-height: 600px; }
.mobile-submenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid #F3F4F6;
  transition: all 0.15s;
}
.mobile-submenu a:last-child { border-bottom: none; }
.mobile-submenu a:hover { color: #3B82F6; background: #FEF2F2; border-radius: 6px; padding-left: 20px; }
.mobile-submenu .sub-ic { width: 26px; height: 26px; border-radius: 6px; background: #FEF2F2; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mobile-submenu .sub-ic svg { width: 13px; height: 13px; color: #3B82F6; }

.mobile-cta { padding: 16px 20px; border-top: 1px solid #F3F4F6; display: flex; flex-direction: column; gap: 10px; }
.mobile-cta-phone { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border: 1.5px solid #E5E7EB; border-radius: 10px; font-size: 0.9rem; font-weight: 700; color: #111827; text-decoration: none; transition: all 0.2s; }
.mobile-cta-phone:hover { border-color: #3B82F6; color: #3B82F6; }
.mobile-cta-phone svg { width: 16px; height: 16px; color: #3B82F6; }
.mobile-cta-btn { display: flex; align-items: center; justify-content: center; padding: 14px; background: linear-gradient(135deg, #3B82F6, #991B1B); color: #fff; border-radius: 10px; font-size: 0.95rem; font-weight: 700; text-decoration: none; box-shadow: 0 4px 12px rgba(59,130,246,0.3); transition: all 0.2s; }
.mobile-cta-btn:hover { opacity: 0.92; transform: translateY(-1px); }

.mobile-overlay { position: fixed; top:0;left:0;right:0;bottom:0; top: 80px; background: rgba(0,0,0,0.35); z-index: 998; opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0s linear 0.35s; }
.mobile-overlay.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s ease, visibility 0s; }

/* ---- Breakpoints ---- */
@media (max-width: 1160px) {
  .nav-main { display: none; }
  .nav-phone { display: none; }
  .nav-cta .btn-primary { padding: 10px 16px; font-size: 0.82rem; }
  .nav-toggle { display: flex; }
}
@media (max-width: 1280px) and (min-width: 1161px) {
  .nav-link { padding: 0 12px; font-size: 0.84rem; }
  .nav-phone { display: none; }
}

/* Nav fix: visited link colors */
.site-header .nav-main a { color: #111827 !important; }
.site-header .nav-main a:visited { color: #111827 !important; }
.site-header .nav-main a:hover { color: #3B82F6 !important; }
.site-header .nav-main a.is-active { color: #3B82F6 !important; }
.site-header .nav-main a.is-active:visited { color: #3B82F6 !important; }


/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--grad-navy);
  color: var(--text-on-dark);
  padding: var(--space-2xl) 0 0;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -200px; right: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand img { height: 36px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p {
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
  max-width: 320px;
  margin-bottom: 20px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { background: var(--brn-primary); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; }

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 18px;
  font-family: var(--font-data);
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a {
  font-size: 0.92rem;
  color: var(--text-on-dark-muted);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: #fff; }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
  line-height: 1.5;
}
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; color: var(--brn-accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.84rem;
  color: var(--text-on-dark-muted);
  position: relative;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: #fff; }
@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* --- Floating / sticky conversion elements --- */
.floating-cta {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.floating-btn {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
  transition: transform 0.25s ease;
  position: relative;
}
.floating-btn:hover { transform: scale(1.08); }
.floating-btn svg { width: 24px; height: 24px; }
.floating-btn .ping {
  position: absolute; top:0;left:0;right:0;bottom:0; border-radius: 50%;
  background: var(--brn-primary);
  opacity: 0.55;
  animation: ping 2.2s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.5; }
  75%, 100% { transform: scale(1.7); opacity: 0; }
}

@media (max-width: 640px) {
  .floating-cta { bottom: 18px; right: 18px; }
  .floating-btn { width: 52px; height: 52px; }
}
