/* ============================================================
   HEADER & NAVIGATION -- Net Desire Technologies
   ============================================================ */

/* ---- Site Header ---- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  transition: background 0.4s, box-shadow 0.4s, padding 0.3s;
}

/* Transparent state (on hero) -- now white with subtle shadow */
#site-header.is-transparent {
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(11, 30, 61, 0.08);
}

/* Scrolled / solid */
#site-header.is-scrolled {
  background: #ffffff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 24px rgba(11, 30, 61, 0.12);
}

/* Force solid (for inner pages) */
#site-header.is-solid {
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(11, 30, 61, 0.10);
  border-bottom: 1px solid rgba(11, 30, 61, 0.08);
}

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

/* ---- Logo ---- */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  background: transparent;
  border-radius: 6px;
  padding: 2px 8px;
}

.logo-shield {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--brand-white);
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo-tagline {
  font-size: 10px;
  font-weight: 500;
  color: var(--gold-400);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---- Main Navigation ---- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-800);
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue-500);
  background: rgba(21, 82, 160, 0.07);
}

.nav-link.active {
  color: var(--blue-500);
}

.nav-arrow {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform var(--dur-fast);
}

/* Dropdown */
.nav-item:hover .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(11, 30, 61, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--dur-base) var(--ease-out);
  pointer-events: none;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  font-weight: 500;
  transition: all var(--dur-fast);
}

.dropdown-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.dropdown-link .dd-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(26, 95, 200, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* Dropdown separator */
.dd-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 6px 8px;
}

/* ---- CTA Area ---- */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-phone-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-800);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast);
}

.nav-phone-link:hover {
  color: var(--blue-500);
}

.nav-phone-link svg {
  width: 14px;
  height: 14px;
}

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast);
}

.hamburger:hover {
  background: rgba(11, 30, 61, 0.08);
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: all var(--dur-base) var(--ease-out);
  transform-origin: center;
}

.hamburger span:nth-child(1) {
  width: 22px;
}

.hamburger span:nth-child(2) {
  width: 18px;
}

.hamburger span:nth-child(3) {
  width: 22px;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  width: 22px;
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  width: 22px;
}

/* ---- Mobile Drawer ---- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 9980;
  pointer-events: none;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 15, 31, 0.85);
  opacity: 0;
  transition: opacity var(--dur-slow);
  backdrop-filter: blur(4px);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(340px, 92vw);
  height: 100%;
  background: var(--navy-900);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0 24px 40px;
}

.mobile-drawer.is-open {
  pointer-events: auto;
}

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

.mobile-drawer.is-open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--dur-fast);
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.80);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color var(--dur-fast);
}

.drawer-nav-link:hover {
  color: var(--gold-400);
}

.drawer-nav-link.active {
  color: var(--gold-400);
}

.drawer-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0 8px 16px;
}

.drawer-sub-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.60);
  padding: 8px 0;
  transition: color var(--dur-fast);
}

.drawer-sub-link:hover {
  color: var(--gold-400);
}

.drawer-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-block: 72px;
}

.footer-brand {}

.footer-brand .logo-name {
  font-size: 18px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.8;
  max-width: 280px;
}

.footer-social-row {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  transition: all var(--dur-base);
}

.social-icon-btn:hover {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.52);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--dur-fast);
}

.footer-link::before {
  content: '';
  width: 14px;
  height: 1.5px;
  background: var(--gold-500);
  opacity: 0;
  transition: opacity var(--dur-fast), width var(--dur-fast);
  flex-shrink: 0;
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.88);
}

.footer-link:hover::before {
  opacity: 1;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.52);
  margin-bottom: 14px;
}

.footer-contact-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold-500);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.32);
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.32);
  transition: color var(--dur-fast);
}

.footer-legal-links a:hover {
  color: rgba(255, 255, 255, 0.65);
}

/* ============================================================
   RESPONSIVE NAV
   ============================================================ */
@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-phone-link {
    display: none;
  }
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .header-inner {
    height: 64px;
  }

  /* Center-align all footer content on mobile */
  .footer-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand p {
    max-width: 100%;
    text-align: center;
  }

  .footer-brand a {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .footer-social-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .footer-col-title {
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-contact-item {
    justify-content: center;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .footer-legal-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .header-inner {
    gap: 12px;
  }

  /* Make CTA button text smaller on very small screens */
  .nav-cta .btn {
    font-size: 12px;
    padding: 8px 14px;
  }
}

/* ============================================================
   SMALL MOBILE (max 400px)
   ============================================================ */
@media (max-width: 400px) {
  .header-inner {
    height: 60px;
    gap: 8px;
    padding: 0 4px;
  }

  .logo-img {
    height: 38px;
  }

  .site-logo {
    padding: 2px 4px;
    gap: 6px;
  }

  .nav-cta .btn {
    font-size: 11px;
    padding: 7px 10px;
    white-space: nowrap;
  }

  .hamburger {
    width: 32px;
    height: 32px;
  }

  .drawer-panel {
    width: 100vw;
    padding: 0 16px 32px;
  }

  .drawer-header {
    height: 60px;
  }

  .drawer-nav-link {
    font-size: 15px;
    padding: 11px 0;
  }

  .drawer-sub-link {
    font-size: 13px;
  }

  .drawer-footer .btn {
    font-size: 13px;
    padding: 12px 16px;
  }
}

/* ============================================================
   EXTRA SMALL MOBILE (max 320px)
   ============================================================ */
@media (max-width: 320px) {
  .header-inner {
    height: 56px;
    gap: 6px;
  }

  .logo-img {
    height: 32px;
  }

  .site-logo {
    padding: 2px 2px;
    gap: 4px;
  }

  /* Shrink CTA button to icon-only to save space */
  .nav-cta .btn {
    font-size: 0;
    padding: 8px 10px;
    min-width: 36px;
    justify-content: center;
  }

  .nav-cta .btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .hamburger {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  /* Drawer full-width with tighter padding */
  .drawer-panel {
    width: 100vw;
    padding: 0 14px 28px;
  }

  .drawer-header {
    height: 56px;
    margin-bottom: 4px;
  }

  .drawer-header img {
    height: 34px;
  }

  .drawer-nav-link {
    font-size: 14px;
    padding: 10px 0;
  }

  .drawer-sub-label {
    font-size: 10px;
  }

  .drawer-sub-link {
    font-size: 12px;
    padding: 6px 0;
  }

  .drawer-acc-trigger {
    font-size: 14px;
    padding: 10px 0;
  }

  .drawer-footer {
    margin-top: 20px;
    padding-top: 16px;
  }

  .drawer-footer .btn {
    font-size: 13px;
    padding: 11px 14px;
    width: 100%;
    justify-content: center;
  }

  .container {
    padding-inline: 12px;
  }
}

/* ============================================================
   LOGO IMAGE
   ============================================================ */

/*
 * The new logo PNG from Net Desire Technologies has a white/transparent bg.
 * On the white navbar, render normally. Footer (dark bg) still uses screen blend.
 */
.logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.3s;
}

.logo-img:hover {
  opacity: 0.85;
}

/* Footer -- dark bg, use screen blend to remove any white logo bg */
.site-footer .logo-img {
  mix-blend-mode: screen;
}

.site-footer .site-logo {
  background: transparent;
  padding: 0;
}

/* Mobile drawer logo -- dark bg */
.drawer-header .site-logo {
  background: var(--navy-900);
  border-radius: 6px;
  padding: 2px 6px;
}

.drawer-header img {
  height: 44px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
}

/* ============================================================
   MEGA DROPDOWN -- two-column products
   ============================================================ */
.nav-dropdown--mega {
  min-width: 400px;
  display: flex;
  flex-direction: row;
  gap: 0;
  padding: 20px 0;
}

.dd-group {
  flex: 1;
  padding: 0 20px;
}

.dd-group+.dd-group {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.dd-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dd-group-header svg {
  flex-shrink: 0;
  color: var(--gold-400);
}

.dd-divider-v {
  width: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0;
  flex-shrink: 0;
  display: none;
  /* handled by border-left above */
}

/* Dot indicators */
.dd-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 4px;
}

.dd-dot--blue {
  background: var(--blue-400);
}

.dd-dot--gold {
  background: var(--gold-400);
}

.nav-dropdown--mega .dropdown-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast);
}

.nav-dropdown--mega .dropdown-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

/* ============================================================
   MOBILE ACCORDION -- Products
   ============================================================ */
.drawer-accordion {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.drawer-acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.80);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color var(--dur-fast);
}

.drawer-acc-trigger:hover {
  color: var(--gold-400);
}

.drawer-acc-trigger.is-open {
  color: var(--gold-400);
}

.acc-arrow {
  transition: transform 0.3s;
}

.drawer-acc-trigger.is-open .acc-arrow {
  transform: rotate(180deg);
}

.drawer-acc-body {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.drawer-sub-group {
  padding: 4px 0 12px 12px;
}

.drawer-sub-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 8px;
  margin-top: 4px;
}

.drawer-sub-link {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.60);
  transition: color var(--dur-fast);
  border: none;
}

.drawer-sub-link:hover {
  color: rgba(255, 255, 255, 0.90);
}

/* ============================================================
   FIX: Favicon link using logo PNG
   ============================================================ */
/* (applied via HTML meta, no CSS needed) */

/* ============================================================
   RESPONSIVE MEGA DROPDOWN
   ============================================================ */
@media (max-width: 1200px) {
  .nav-dropdown--mega {
    min-width: 340px;
  }
}