/* Digiheave mega-nav — shared styles */

/* ---- nav shell ---- */
.dg-nav { position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14,19,48,.08);
  font-family: 'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
.dg-nav-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; gap: 0;
  height: 62px;
}
.dg-nav-logo { display: flex; align-items: center; margin-right: 32px; flex: none; }
.dg-nav-logo img { height: 28px; width: auto; display: block; }

/* ---- nav items ---- */
.dg-nav-items {
  display: flex; align-items: center; gap: 2px; flex: 1;
}
.dg-nav-item {
  position: relative;
}
/* Invisible bridge so the pointer can reach the dropdown without losing hover */
.dg-nav-item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  z-index: 299;
}
.dg-nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: #3b4068;
  cursor: pointer; white-space: nowrap;
  background: transparent; border: none; font-family: inherit;
  transition: background .15s, color .15s;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
  letter-spacing: inherit;
  line-height: inherit;
}
.dg-nav-link:hover, .dg-nav-item:hover > .dg-nav-link { background: #f0f4fc; color: #0e1330; }
.dg-nav-caret { font-size: 10px; opacity: .55; transition: transform .2s; }
.dg-nav-item:hover > .dg-nav-link .dg-nav-caret { transform: rotate(180deg); }

/* ---- dropdowns ---- */
.dg-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  background: #fff; border: 1px solid rgba(14,19,48,.1);
  border-radius: 16px; box-shadow: 0 20px 60px -20px rgba(14,19,48,.35), 0 4px 16px -6px rgba(14,19,48,.15);
  padding: 12px; min-width: 520px; z-index: 300;
  animation: dgDropIn .18s cubic-bezier(.16,.84,.44,1) both;
}
.dg-dropdown-sm { min-width: 260px; }
@keyframes dgDropIn { from { opacity:0; transform:translateY(-6px) } to { opacity:1; transform:translateY(0) } }
.dg-nav-item:hover > .dg-dropdown,
.dg-nav-item:focus-within > .dg-dropdown {
  display: block;
  animation: dgDropIn .18s cubic-bezier(.16,.84,.44,1) both;
}

/* grid layouts */
.dg-dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dg-dd-grid-1 { display: grid; grid-template-columns: 1fr; gap: 4px; }

/* ---- dropdown items ---- */
.dg-dd-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  text-decoration: none; color: #2c3157;
  transition: background .12s;
}
.dg-dd-item:hover { background: #f3f7ff; }
.dg-dd-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: #eaf2fe; color: #1577e0;
  display: flex; align-items: center; justify-content: center; flex: none;
  margin-top: 1px;
}
.dg-dd-icon svg { width: 17px; height: 17px; }
.dg-dd-label { font-size: 14px; font-weight: 700; color: #0e1330; line-height: 1.2; }
.dg-dd-desc { font-size: 12px; color: #7a7f9e; margin-top: 2px; line-height: 1.35; font-weight: 400; }

/* divider line in dropdown */
.dg-dd-sep { height: 1px; background: #f0f2f8; margin: 8px 4px; grid-column: 1/-1; }

/* ---- CTA button ---- */
.dg-nav-cta {
  margin-left: 16px; flex: none;
  background: #1577e0; color: #fff;
  font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 10px;
  text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s, transform .12s;
  box-shadow: 0 4px 14px -4px rgba(21,119,224,.5);
}
.dg-nav-cta:hover { background: #1262c4; transform: translateY(-1px); }

/* ---- hamburger (mobile) ---- */
.dg-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none; margin-left: auto;
  -webkit-appearance: none; appearance: none; flex: none; z-index: 201;
}
.dg-hamburger span { display: block; width: 22px; height: 2px; background: #0e1330; border-radius: 2px; transition: all .25s ease; }

/* ---- mobile full-screen menu ---- */
.dg-mobile-menu {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0; z-index: 10050;
  background: #fff; flex-direction: column;
  padding: 28px 24px; gap: 0; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.dg-mobile-menu.open { display: flex; }
.dg-mobile-menu a {
  display: block; font-size: 20px; font-weight: 700;
  color: #0e1330; padding: 16px 0;
  border-bottom: 1px solid #eef0f6; text-decoration: none;
}
.dg-mobile-menu a.dg-mobile-sub {
  display: block !important;
  font-size: 16px; padding: 12px 0 12px 16px;
  color: #54597e; font-weight: 500;
  border-bottom: 1px solid #eef0f6;
}
.dg-mobile-menu a.dg-mobile-sub.dg-mobile-all {
  font-weight: 600; color: #1577e0;
  padding-top: 14px;
}

/* ---- mobile accordion groups (Services, Industries) ---- */
.dg-mobile-group {
  border-bottom: 1px solid #eef0f6;
}
.dg-mobile-group-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 20px; font-weight: 700;
  color: #0e1330;
  padding: 16px 0;
  background: none; border: none;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}
.dg-mobile-caret {
  font-size: 12px;
  opacity: .55;
  transition: transform .2s ease;
  flex: none;
  margin-left: 12px;
}
.dg-mobile-group.open .dg-mobile-caret {
  transform: rotate(180deg);
}
.dg-mobile-group-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.16,.84,.44,1);
}
.dg-mobile-group.open .dg-mobile-group-body {
  max-height: 520px;
}
.dg-mobile-group-body .dg-mobile-sub:last-child {
  border-bottom: none;
  padding-bottom: 16px;
}

.dg-mobile-menu a.cta {
  margin-top: 20px; background: #1577e0; color: #fff;
  border-radius: 12px; padding: 16px 24px; border: none; text-align: center;
}
.dg-mobile-close {
  align-self: flex-end; font-size: 28px; cursor: pointer;
  background: none; border: none; color: #0e1330;
  margin-bottom: 16px; padding: 4px 8px;
  -webkit-appearance: none; appearance: none;
  flex: none;
}

body.dg-menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .dg-nav-items { display: none !important; }
  .dg-nav-cta { display: none !important; }
  .dg-hamburger { display: flex !important; }
  .dg-nav-logo { margin-right: auto; }
  .dg-landing-header-actions { display: none !important; }
  .dg-landing-header .dg-hamburger { display: flex !important; margin-left: auto; }
}
@media (max-width: 768px) {
  .dg-nav-inner { padding: 0 20px; }
  .dg-landing-header-inner { padding: 15px 20px !important; }
}
