/* Navbar & Expanding Header Strip Stylesheet */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background-color: var(--bg-dark);
  color: var(--text-light);
  box-shadow: none;
  overflow: visible;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: relative;
  z-index: 1002;
  background-color: var(--bg-dark);
}

/* Navbar Brand Logo */
.nav-brand {
  display: flex;
  align-items: center;
}

.nav-brand img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.nav-brand:hover img {
  transform: none;
}

/* Desktop Navigation Items */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.5rem;
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
  padding: 0 0.25rem;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--text-light);
}

/* Services Hover Container */
.services-has-shutter {
  height: 100%;
}

/* Expanded Navbar Content Strip Overlay (Upper Layer Over Page Content) */
.shutter-menu {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(250, 250, 250, 0.1);
  border-bottom: 1px solid rgba(250, 250, 250, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.site-header:has(.services-has-shutter:hover) .shutter-menu,
.site-header:has(#shutterMenu:hover) .shutter-menu,
.site-header.shutter-expanded .shutter-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.shutter-inner {
  padding: 2.5rem 1.5rem 3.5rem 1.5rem;
}

/* Mega Menu Header & Divider */
.shutter-panel-header {
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.shutter-panel-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.01em;
}

.shutter-panel-subtitle {
  font-size: 0.95rem;
  color: var(--text-light-muted);
}

.shutter-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(250, 250, 250, 0.12);
  margin-bottom: 2.2rem;
}

/* 3-Column Text Layout matching Tata reference structure */
.shutter-columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
}

.shutter-col {
  display: flex;
  flex-direction: column;
}

.shutter-col-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1.2rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(178, 152, 220, 0.2);
}

.shutter-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.shutter-text-link {
  display: flex;
  flex-direction: column;
  color: var(--text-light);
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.2s ease;
}

.shutter-text-link:hover {
  transform: translateX(6px);
  color: var(--color-accent);
}

.shutter-link-title {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.3;
  color: inherit;
}

.shutter-link-sub {
  font-size: 0.8rem;
  color: var(--text-light-subtle);
  margin-top: 0.2rem;
  transition: color 0.2s ease;
}

.shutter-text-link:hover .shutter-link-sub {
  color: var(--text-light-muted);
}

/* Mobile Hamburger Button */
.mobile-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1003;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.mobile-hamburger .icon {
  width: 28px;
  height: 28px;
  color: #fafafa;
  fill: #fafafa;
}

/* Mobile Navigation Drawer & Overlay */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1004;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, visibility;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background-color: var(--bg-dark);
  z-index: 1005;
  padding: 0 1.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transform: translate3d(100%, 0, 0);
  will-change: transform;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.mobile-drawer-overlay.open .mobile-drawer {
  transform: translate3d(0, 0, 0);
}

.mobile-drawer-header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-dark);
  flex-shrink: 0;
}

.mobile-drawer-close {
  background: none;
  border: none;
  color: #fafafa;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer-close .icon {
  width: 28px;
  height: 28px;
  color: #fafafa;
  fill: #fafafa;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  overflow: hidden;
}

.mobile-nav-link {
  color: var(--text-light);
  font-size: 1.15rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.mobile-dropdown-btn {
  background: none;
  border: none;
  color: var(--color-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.mobile-subservices-list {
  list-style: none;
  padding-left: 1rem;
  padding-right: 0.4rem;
  margin-top: 0.4rem;
  display: none;
  flex-direction: column;
  gap: 0.65rem;
  border-left: 2px solid var(--color-accent);
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) transparent;
}

.mobile-subservices-list::-webkit-scrollbar {
  width: 4px;
}

.mobile-subservices-list::-webkit-scrollbar-thumb {
  background-color: var(--color-accent);
  border-radius: 4px;
}

.mobile-subservices-list.show {
  display: flex;
}

.mobile-subservice-item a {
  color: var(--text-light-muted);
  font-size: 0.95rem;
  display: block;
  padding: 0.25rem 0;
}

.mobile-subservice-item a:hover {
  color: var(--color-accent);
}

/* Responsive Media Queries for Navbar */
@media (max-width: 1024px) {
  .shutter-columns-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 868px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-hamburger {
    display: flex;
  }
  
  .shutter-menu {
    display: none;
  }
}
