/* ══════════════════════════════════════════
   NAVBAR  —  Premium Dark Mobile Menu
══════════════════════════════════════════ */

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  background: transparent;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 32px rgba(0,0,0,0.09);
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ══════════════════
   LOGO
══════════════════ */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon-wrap {
  position: relative;
  width: 44px; height: 44px;
  flex-shrink: 0;
}
/* Hexagon-shaped solar icon using clip-path */
.logo-hex {
  width: 44px;
  height: 44px;

  /* White background always */
  background: #ffffff;

  /* Hexagon shape */
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}
/* #navbar.scrolled .logo-hex { background: #dce8eb } */


/* Logo inside */
.logo-img {
  width: 100%;   /* adjust if needed */
  height: 100%;
  object-fit: contain;
}

/* Hover effect same as before */
.nav-logo:hover .logo-hex {
  transform: rotate(15deg) scale(1.06);
}

.logo-text-wrap { line-height: 1.15; }
.logo-name {
  display: block;
  font-size: 1.18rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
  transition: color 0.3s;
}
.logo-sub {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
}
#navbar.scrolled .logo-name { color: var(--primary-dark); }

/* ══════════════════
   DESKTOP NAV LINKS
══════════════════ */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.88rem; font-weight: 500;
  color: rgba(255,255,255,0.88);
  transition: all 0.22s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { background: rgba(255,255,255,0.13); color: #fff; }
/* #navbar.scrolled .nav-links > li > a { color: var(--text-dark); }
#navbar.scrolled .nav-links > li > a:hover,
#navbar.scrolled .nav-links > li > a.active { background: rgba(31,111,139,0.09); color: var(--primary); } */

/* Apply ONLY for desktop */
@media (min-width: 993px) {
  #navbar.scrolled .nav-links > li > a { 
    color: var(--text-dark); 
  }

  #navbar.scrolled .nav-links > li > a:hover,
  #navbar.scrolled .nav-links > li > a.active { 
    background: rgba(31,111,139,0.09); 
    color: var(--primary); 
  }
}
.nav-links > li > a .chevron { font-size:0.6rem; transition:transform 0.25s; }
.nav-links > li:hover > a .chevron { transform: rotate(180deg); }

/* Desktop Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px); left: 0;
  background: #fff;
  border-radius: 14px;
  min-width: 210px;
  box-shadow: 0 20px 56px rgba(0,0,0,0.14);
  border: 1px solid var(--border);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  z-index: 100;
}
.nav-links > li:hover .dropdown-menu { opacity:1; visibility:visible; transform:translateY(0); }
.dropdown-menu li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px; border-radius: 9px;
  font-size: 0.87rem; font-weight: 500;
  color: var(--text-dark); transition: all 0.2s; text-decoration: none;
}
.dropdown-menu li a:hover { background: rgba(31,111,139,0.07); color: var(--primary); padding-left:17px; }
.dd-icon {
  width:30px; height:30px;
  background: rgba(31,111,139,0.08); border-radius:7px;
  display:flex; align-items:center; justify-content:center;
  font-size:0.85rem; flex-shrink:0;
}

/* Desktop CTA */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-cta .btn {
  padding: 10px 18px;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ══════════════════
   HAMBURGER
══════════════════ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  transition: all 0.25s;
  flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(255,255,255,0.2); }
#navbar.scrolled .nav-toggle { background: rgba(31,111,139,0.08); border-color: rgba(31,111,139,0.18); }
.nav-toggle span {
  display:block; width:20px; height:2px;
  background:#fff; border-radius:2px;
  transition: all 0.32s cubic-bezier(0.4,0,0.2,1);
}
#navbar.scrolled .nav-toggle span { background: var(--primary-dark); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity:0; width:0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay */
.nav-overlay {
  position:fixed; inset:0;
  background:rgba(0,0,0,0.6);
  z-index:998; display:none;
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}
.nav-overlay.show { display:block; }

/* ══════════════════════════════════════════
   MOBILE MENU  ★  Premium Dark Slide Panel
══════════════════════════════════════════ */
@media(max-width: 992px) {
  .nav-toggle { display:flex; }
  .nav-cta    { display:none; }

  /* Slide panel */
  .nav-links {
    position: fixed;
    top: 0; right: -110%;
    width: min(310px, 88vw);
    height: 100vh; height: 100dvh;
    background: linear-gradient(160deg, #071c2b 0%, #0c3248 45%, #104060 100%);
    flex-direction: column;
    align-items: stretch;
    gap: 0; padding: 0;
    box-shadow: -16px 0 64px rgba(0,0,0,0.45);
    transition: right 0.42s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto; overflow-x: hidden;
    z-index: 999;
  }
  .nav-links.open { right: 0; }

  /* Top rainbow accent bar */
  .nav-links::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, #1f9bbd 55%, var(--green-tag) 100%);
    flex-shrink: 0;
  }

  /* ── MOBILE HEADER (company brand) ── */
  .mob-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
  }
  .mob-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
  }
  .mob-brand-hex {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, #e8c030, var(--accent), #a8841f);
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 14px rgba(201,162,39,0.35);
    flex-shrink: 0;
  }
  .mob-brand-texts .mob-co-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.2px;
  }
  .mob-brand-texts .mob-co-tag {
    display: block;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 1px;
  }

  /* Close X */
  .mob-close {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.65);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    line-height: 1;
    font-weight: 300;
  }
  .mob-close:hover { background: rgba(255,255,255,0.14); color: #fff; }

  /* ── SECTION LABEL ── */
  .mob-section-label {
    display: block !important;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    padding: 18px 18px 6px;
    flex-shrink: 0;
  }

  /* ── NAV ITEMS ── */
  .nav-links > li {
    width: 100%;
    padding: 0 12px;
    flex-shrink: 0;
  }
  .nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 11px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.72);
    width: 100%;
    transition: all 0.2s;
    text-decoration: none;
    border: 1px solid transparent;
    position: relative;
  }

  /* Icon chip per link */
  .nav-links > li > a .m-icon {
    width: 35px; height: 35px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    transition: all 0.2s;
  }

  .nav-links > li > a:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.09);
    color: #fff;
  }
  .nav-links > li > a:hover .m-icon { background: rgba(255,255,255,0.12); }
  .nav-links > li > a.active {
    background: rgba(201,162,39,0.13);
    border-color: rgba(201,162,39,0.24);
    color: var(--accent);
  }
  .nav-links > li > a.active .m-icon { background: var(--accent); border-color: var(--accent); }

  .nav-links > li > a .chevron { margin-left:auto; opacity:0.4; font-size:0.65rem; transition:transform 0.25s; }
  .nav-links > li > a.dd-open .chevron { transform:rotate(180deg); opacity:0.8; }

  /* Mobile Dropdown */
  .dropdown-menu {
    position: static !important;
    opacity: 1 !important; visibility: visible !important;
    transform: none !important;
    box-shadow: none;
    border: none;
    background: rgba(0,0,0,0.18);
    border-radius: 10px;
    margin: 2px 0 6px;
    padding: 4px;
    display: none;
  }
  .dropdown-menu.mobile-open { display: block; }
  .dropdown-menu li { padding: 0; }
  .dropdown-menu li a {
    color: rgba(255,255,255,0.62) !important;
    font-size: 0.86rem; font-weight: 500;
    padding: 10px 12px; border-radius: 8px;
    gap: 10px;
  }
  .dropdown-menu li a:hover {
    background: rgba(255,255,255,0.07) !important;
    color: #fff !important;
    padding-left: 12px !important;
  }
  .dd-icon {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.7) !important;
  }

  /* Divider */
  .mob-divider {
    display: block !important;
    height: 1px;
    background: rgba(255,255,255,0.05);
    margin: 6px 12px;
    flex-shrink: 0;
  }

  /* Spacer */
  .mob-spacer { flex: 1; min-height: 12px; }

  /* ── BOTTOM CTA ── */
  .mob-cta {
    display: flex !important;
    flex-direction: column;
    gap: 9px;
    padding: 14px 16px 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
  }
  .mob-cta .btn {
    width: 100%; justify-content: center;
    padding: 13px; font-size: 0.9rem; border-radius: 12px;
  }
  .mob-call-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    font-weight: 600; font-size: 0.88rem;
    text-decoration: none; transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
  }
  .mob-call-btn:hover { background: rgba(255,255,255,0.12); color:#fff; }

  /* ── SOCIAL ROW ── */
  .mob-social {
    display: flex !important;
    gap: 8px; justify-content: center;
    padding: 0 16px 16px;
    flex-shrink: 0;
  }
  .mob-social a {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-decoration: none; transition: all 0.22s;
  }
  .mob-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }

  /* ── GST FOOTER ── */
  .mob-gst {
    display: block !important;
    text-align: center;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.2);
    padding: 0 16px 18px;
    line-height: 1.6;
    flex-shrink: 0;
  }
}

/* ── Fix Solutions hover on desktop (has-dd parent) ── */
@media(min-width: 993px) {
  .nav-links > li:has(> a.has-dd):hover .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  /* Spacer li & mobile-only lis hidden on desktop */
  .mob-spacer-li,
  .mob-header-li { display: none !important; }
}
