/* =============================================
   SERVICES MEGA-MENU
   ============================================= */

.nav-dropdown-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

/* Transparent bridge fills the gap so hover isn't lost while
   sliding from the trigger down to the mega panel */
.nav-dropdown-wrap::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -40px;
  right: -40px;
  height: 24px;
  background: transparent;
}

.nav-dropdown-trigger {
  display: flex !important;
  align-items: center;
  gap: 4px;
  cursor: default;
}

.nav-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.25s cubic-bezier(0.32,0.72,0,1);
  flex-shrink: 0;
  opacity: 0.6;
}

.nav-dropdown-wrap:hover .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* ── Transparent bridge so hover isn't lost in the gap ── */
.nav-dropdown-wrap::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -30px;
  right: -30px;
  height: 24px;
}

/* ── Mega panel ── */
.nav-mega {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-55%) translateY(-6px);
  width: min(860px, 92vw);
  background: rgba(12,10,8,0.97);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s cubic-bezier(0.32,0.72,0,1),
              transform 0.22s cubic-bezier(0.32,0.72,0,1),
              visibility 0.22s;
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.04) inset;
}

.nav-dropdown-wrap:hover .nav-mega,
.nav-mega:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-55%) translateY(0);
  pointer-events: auto;
}

/* ── Column ── */
.mega-col {
  padding: 28px 24px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.mega-col:last-child {
  border-right: none;
}

/* ── Division header ── */
.mega-div-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.mega-div-num {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent, #c2410c);
  background: rgba(194,65,12,0.12);
  border: 1px solid rgba(194,65,12,0.25);
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1.4;
  flex-shrink: 0;
}

.mega-div-name {
  font-size: .8rem;
  font-weight: 700;
  color: rgba(248,247,244,0.9);
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: color .15s ease;
}
.mega-div-link:hover .mega-div-name {
  color: #fff;
}

/* ── Service list ── */
.mega-services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mega-services li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 500;
  color: rgba(248,247,244,0.5);
  text-decoration: none;
  padding: 6px 8px 6px 0;
  border-radius: 6px;
  transition: color .15s ease, padding-left .15s ease;
  line-height: 1.3;
}
.mega-services li a::before {
  content: '';
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent, #c2410c);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .15s ease;
}
.mega-services li a:hover {
  color: rgba(248,247,244,0.95);
  padding-left: 6px;
}
.mega-services li a:hover::before {
  opacity: 1;
}

/* ── Keep the (always-dark) mega panel text light even when the nav pill is in
   its light/white state. Without this, `.nav.light .nav-links a` overrides bleed
   in and turn the submenu links dark on the dark panel (invisible / black). ── */
.nav.light .nav-mega .mega-services li a { color: rgba(248,247,244,0.5); background: transparent; }
.nav.light .nav-mega .mega-services li a:hover { color: rgba(248,247,244,0.95); background: transparent; }
.nav.light .nav-mega .mega-div-name { color: rgba(248,247,244,0.9); }
.nav.light .nav-mega .mega-div-link:hover .mega-div-name { color: #fff; }

/* ── Mobile mega in overlay ── */
.nav-mobile-div {
  margin-bottom: 24px;
}
.nav-mobile-div-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent, #c2410c);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
}
.nav-mobile-services {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-mobile-services li a {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(248,247,244,0.65);
  text-decoration: none;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color .15s ease;
}
.nav-mobile-services li a:hover,
.nav-mobile-services li a:active {
  color: rgba(248,247,244,0.95);
}

/* ── Hero service page with background image ── */
.page-hero--service {
  background-size: cover;
  background-position: center top;
  position: relative;
}
.page-hero--service .hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(12,10,8,0.90) 0%,
    rgba(12,10,8,0.75) 55%,
    rgba(12,10,8,0.45) 100%
  );
  z-index: 1;
}
.page-hero--service .wrap {
  position: relative;
  z-index: 2;
}

/* ── More services section ── */
.more-services-section {
  padding: 80px 0;
  background: var(--dark, #0f0d0b);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.more-services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.more-services-header h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--light, #f8f7f4);
  margin: 0;
  line-height: 1.2;
}
.more-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.more-svc-card {
  background: rgba(248,247,244,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.more-svc-card:hover {
  border-color: rgba(194,65,12,0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.more-svc-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  opacity: 0.7;
  transition: opacity .3s ease, transform .5s ease;
  display: block;
}
.more-svc-card:hover .more-svc-img {
  opacity: 0.9;
  transform: scale(1.03);
}
.more-svc-body {
  padding: 20px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.more-svc-div {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent, #c2410c);
}
.more-svc-name {
  font-size: .95rem;
  font-weight: 700;
  color: rgba(248,247,244,0.9);
  line-height: 1.35;
}
.more-svc-arrow {
  margin-top: auto;
  padding-top: 12px;
  font-size: .75rem;
  font-weight: 600;
  color: rgba(248,247,244,0.35);
  letter-spacing: .04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .2s ease, gap .2s ease;
}
.more-svc-card:hover .more-svc-arrow {
  color: var(--accent, #c2410c);
  gap: 8px;
}

/* ── Photo strip (3-col image grid between features and use-cases) ── */
.svc-photo-strip {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  height: 300px;
  gap: 3px;
  overflow: hidden;
}
.svc-photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .6s ease;
}
.svc-photo-strip img:hover { transform: scale(1.04); }

@media (max-width: 768px) {
  .svc-photo-strip { grid-template-columns: 1fr 1fr; height: 200px; }
  .svc-photo-strip img:last-child { display: none; }
}

@media (max-width: 768px) {
  .nav-mega { display: none; }
  .nav-dropdown-trigger { pointer-events: auto; cursor: pointer; }
  .more-services-grid { grid-template-columns: 1fr; gap: 12px; }
  .more-services-header { flex-direction: column; align-items: flex-start; }
  .more-services-section { padding: 56px 0; }
}
