/* ==========================================================================
   STAGGERED MENU COMPONENT CSS — FULLY FIXED FOR WINDOWS, ANDROID & TABLET
   ========================================================================== */

/* ──────────────────────────────────────────────────────────────────────────
   Spacing Placeholder: prevents content jump when nav becomes fixed
   ────────────────────────────────────────────────────────────────────────── */
.staggered-menu-placeholder {
  height: 75px;
  width: 100%;
  display: block;
  pointer-events: none;
  background-color: transparent;
  transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ──────────────────────────────────────────────────────────────────────────
   Container: initial state (wide, under topbar)
   ────────────────────────────────────────────────────────────────────────── */
.staggered-menu-container {
  position: absolute;
  top: 50px;           /* sits right below topbar (~38px tall) */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 100%;
  z-index: 10000;
  box-sizing: border-box;
  padding: 0 1.5rem;
  transition:
    max-width 0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
    top       0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
    padding   0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
    width     0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Sticky Capsule State */
.staggered-menu-container.sticky-nav {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  padding: 0;
}

/* ──────────────────────────────────────────────────────────────────────────
   Header Bar
   ────────────────────────────────────────────────────────────────────────── */
.staggered-menu-header {
  display: flex;
  height: 75px;
  padding: 0 2rem;
  align-items: center;
  justify-content: space-between;
  /* FIX: solid background so button/logo are always visible */
  background-color: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(29, 38, 58, 0.10);
  border-radius: 0;
  box-shadow: 0 2px 18px rgba(0,0,0,0.08);
  position: relative;
  overflow: visible;
  will-change: height, border-radius, box-shadow;
  transition:
    height          0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-radius   0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color    0.4s ease,
    background-color 0.4s ease,
    box-shadow      0.4s ease,
    padding         0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Sticky / Scrolled shrunk header */
.staggered-menu-container.sticky-nav .staggered-menu-header {
  height: 60px;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(29, 38, 58, 0.14);
  border-radius: 50px;          /* fully rounded pill */
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.13);
  padding: 0 1.5rem;
}

/* ──────────────────────────────────────────────────────────────────────────
   Logo
   ────────────────────────────────────────────────────────────────────────── */
.sm-logo {
  display: flex;
  align-items: center;
  user-select: none;
  flex-shrink: 0;
}

.sm-logo img.sm-logo-img {
  height: 54px;
  width: auto;
  transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  object-fit: contain;
}

.staggered-menu-container.sticky-nav img.sm-logo-img {
  height: 40px;
}

/* ──────────────────────────────────────────────────────────────────────────
   Toggle Menu Button — always visible (dark text on white bg)
   ────────────────────────────────────────────────────────────────────────── */
.sm-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--color-primary, #DF0A0A);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  /* FIX: white text on red button — always visible */
  color: #ffffff;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1;
  overflow: visible;
  padding: 10px 18px;
  z-index: 21;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 12px rgba(223, 10, 10, 0.35);
  /* CRITICAL: ensure it is always clickable/tappable */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-width: 80px;
  min-height: 40px;
  justify-content: center;
}

.sm-toggle:hover {
  background: #bf0808;
  box-shadow: 0 5px 18px rgba(223, 10, 10, 0.45);
  transform: translateY(-1px);
}

.sm-toggle:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(223, 10, 10, 0.3);
}

/* When menu is open — dark button */
.staggered-menu-container.menu-open .sm-toggle {
  background: var(--color-secondary, #1D263A);
  box-shadow: 0 3px 12px rgba(29, 38, 58, 0.35);
  color: #fff;
}

/* ──────────────────────────────────────────────────────────────────────────
   Button text cycling animation
   ────────────────────────────────────────────────────────────────────────── */
.sm-toggle-textWrap {
  position: relative;
  display: inline-block;
  height: 1em;
  overflow: hidden;
  white-space: nowrap;
}

.sm-toggle-textInner {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.sm-toggle-line {
  display: block;
  height: 1em;
  line-height: 1;
}

/* ──────────────────────────────────────────────────────────────────────────
   Plus/Cross icon inside button
   ────────────────────────────────────────────────────────────────────────── */
.sm-icon {
  position: relative;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.sm-icon-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.sm-icon-line-v {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* ──────────────────────────────────────────────────────────────────────────
   Underlay Pre-layers (colored strips that animate behind the panel)
   FIX: opacity was 0 — changed to 1 so GSAP animations are visible
   ────────────────────────────────────────────────────────────────────────── */
.sm-prelayers {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(280px, 40vw, 440px);
  pointer-events: none;
  z-index: 990;
  opacity: 1;   /* FIX: was 0, must be 1 */
  transform: translateX(100%);
  visibility: hidden;
}

.sm-prelayer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  /* GSAP controls transform — do NOT set transform here */
}

/* ──────────────────────────────────────────────────────────────────────────
   Side Navigation Panel
   ────────────────────────────────────────────────────────────────────────── */
.staggered-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: clamp(280px, 40vw, 440px);
  height: 100vh;
  height: 100dvh;  /* dynamic viewport on mobile */
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 5.5rem 2rem 2rem 2.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 991;
  pointer-events: auto;
  /* GSAP controls transform entirely — no CSS transform here */
  visibility: hidden;  /* hidden until JS initializes */
  transform: translateX(100%);
  box-shadow: -5px 0 35px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}

/* Panel inner: flex column fills height */
.sm-panel-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 0;
}

/* ──────────────────────────────────────────────────────────────────────────
   Close Button inside panel (X button at top-right)
   ────────────────────────────────────────────────────────────────────────── */
.sm-panel-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: #f4f4f4;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-secondary, #1D263A);
  font-size: 1.1rem;
  z-index: 5;
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.sm-panel-close:hover {
  background: var(--color-primary, #DF0A0A);
  color: #fff;
}

/* ──────────────────────────────────────────────────────────────────────────
   Nav Menu List
   ────────────────────────────────────────────────────────────────────────── */
.sm-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sm-panel-itemWrap {
  position: relative;
  overflow: visible;
  line-height: 1;
}

.sm-panel-item {
  position: relative;
  color: var(--color-secondary, #1D263A);
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1.1;
  letter-spacing: -1px;
  text-transform: uppercase;
  transition: color 0.25s ease;
  display: inline-block;
  text-decoration: none;
  padding-right: 1.6em;
  /* Ensure tap target is big enough on mobile */
  min-height: 44px;
  display: flex;
  align-items: center;
}

.sm-panel-itemLabel {
  display: inline-block;
  will-change: transform;
  transform-origin: 0% 50%;
}

.sm-panel-item:hover,
.sm-panel-item.active {
  color: var(--color-primary, #DF0A0A);
}

/* Item numbering counter */
.sm-panel-list[data-numbering] {
  counter-reset: smItem;
}

.sm-panel-list[data-numbering] .sm-panel-item::after {
  counter-increment: smItem;
  content: counter(smItem, decimal-leading-zero);
  position: absolute;
  top: 0.1em;
  right: 0.4em;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary, #DF0A0A);
  letter-spacing: 0;
  pointer-events: none;
  user-select: none;
  opacity: var(--sm-num-opacity, 0);
  transition: opacity 0.3s ease;
}

/* ──────────────────────────────────────────────────────────────────────────
   Services Dropdown Accordion
   ────────────────────────────────────────────────────────────────────────── */
.sm-panel-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
}

/* Make the whole header area tappable */
.sm-panel-item-header .sm-panel-item {
  flex: 1;
  padding-right: 0;
}

.sm-dropdown-toggle {
  background: transparent;
  border: none;
  color: var(--color-secondary, #1D263A);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  /* Large tap target on mobile */
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.sm-dropdown-toggle:hover {
  color: var(--color-primary, #DF0A0A);
}

/* Nested sub-menu */
.sm-keypoints-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.75rem;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity    0.3s ease,
    margin     0.3s ease,
    visibility 0s linear 0.4s;
}

/* Dropdown open */
.sm-panel-itemWrap.sm-dropdown-open .sm-keypoints-list {
  max-height: 1000px;
  opacity: 1;
  visibility: visible;
  margin-top: 8px;
  margin-bottom: 4px;
  transition:
    max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity    0.3s ease,
    margin     0.3s ease,
    visibility 0s linear 0s;
}

.sm-panel-itemWrap.sm-dropdown-open .sm-dropdown-toggle {
  transform: rotate(-180deg);
  color: var(--color-primary, #DF0A0A);
}

/* Keypoint links */
.sm-keypoints-list li {
  line-height: 1.3;
}

.sm-keypoint-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease, padding-left 0.2s ease;
  padding: 6px 0;
  min-height: 40px;
}

.sm-keypoint-link i {
  font-size: 8px;
  color: var(--color-primary, #DF0A0A);
  opacity: 0.65;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.sm-keypoint-link:hover {
  color: var(--color-primary, #DF0A0A);
  padding-left: 5px;
}

.sm-keypoint-link:hover i {
  transform: scale(1.25);
}

.sm-keypoint-link.active {
  color: var(--color-primary, #DF0A0A);
  font-weight: 700;
}

/* ──────────────────────────────────────────────────────────────────────────
   Sub-dropdown styling within staggered menu panel
   ────────────────────────────────────────────────────────────────────────── */
.sm-sub-dropdown {
  position: relative;
  width: 100%;
  margin-bottom: 8px;
}

.sm-sub-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: rgba(29, 38, 58, 0.04);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease;
  user-select: none;
}

.sm-sub-dropdown-header:hover {
  background-color: rgba(223, 10, 10, 0.06);
}

.sm-sub-dropdown-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-secondary, #1D263A);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.25s ease;
}

.sm-sub-dropdown-header:hover .sm-sub-dropdown-title {
  color: var(--color-primary, #DF0A0A);
}

.sm-sub-dropdown-toggle {
  background: transparent;
  border: none;
  color: var(--color-secondary, #1D263A);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.sm-sub-dropdown-header:hover .sm-sub-dropdown-toggle {
  color: var(--color-primary, #DF0A0A);
}

/* Sub-dropdown keypoint list container */
.sm-sub-keypoints-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1rem;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition:
    max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity    0.3s ease,
    margin     0.3s ease,
    visibility 0s linear 0.4s;
}

/* Open state for sub-dropdown */
.sm-sub-dropdown.sm-sub-dropdown-open .sm-sub-keypoints-list {
  max-height: 450px;
  opacity: 1;
  visibility: visible;
  margin-top: 6px;
  margin-bottom: 6px;
  transition:
    max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity    0.3s ease,
    margin     0.3s ease,
    visibility 0s linear 0s;
}

.sm-sub-dropdown.sm-sub-dropdown-open .sm-sub-dropdown-toggle {
  transform: rotate(-180deg);
  color: var(--color-primary, #DF0A0A);
}

.sm-sub-dropdown.sm-sub-dropdown-open .sm-sub-dropdown-header {
  background-color: rgba(223, 10, 10, 0.08);
}

.sm-sub-dropdown.sm-sub-dropdown-open .sm-sub-dropdown-title {
  color: var(--color-primary, #DF0A0A);
}

/* ──────────────────────────────────────────────────────────────────────────
   Social links at panel bottom
   ────────────────────────────────────────────────────────────────────────── */
.sm-socials {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.sm-socials-title {
  margin: 0;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-primary, #DF0A0A);
}

.sm-socials-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.sm-socials-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-secondary, #1D263A);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sm-socials-link:hover {
  color: var(--color-primary, #DF0A0A);
  transform: translateY(-2px);
}

/* ──────────────────────────────────────────────────────────────────────────
   Desktop hover expansion for dropdown (≥ 1025px)
   ────────────────────────────────────────────────────────────────────────── */
@media (min-width: 1025px) {
  .sm-panel-itemWrap.sm-has-dropdown:hover .sm-keypoints-list {
    max-height: 1000px;
    opacity: 1;
    visibility: visible;
    margin-top: 8px;
    margin-bottom: 4px;
    transition:
      max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
      opacity    0.3s ease,
      margin     0.3s ease,
      visibility 0s linear 0s;
  }

  .sm-panel-itemWrap.sm-has-dropdown:hover .sm-dropdown-toggle {
    transform: rotate(-180deg);
    color: var(--color-primary, #DF0A0A);
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   Tablet (≤ 1024px)
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .staggered-menu-panel,
  .sm-prelayers {
    width: clamp(280px, 55vw, 440px);
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   Mobile & Tablet (≤ 991px) — top bar is hidden, nav goes to top
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .staggered-menu-placeholder {
    height: 72px;
  }

  .staggered-menu-container {
    top: 8px;
    padding: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .staggered-menu-container.sticky-nav {
    top: 8px;
    padding: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* On mobile the header is ALWAYS pill-shaped and styled */
  .staggered-menu-header {
    height: 58px !important;
    padding: 0 1.25rem !important;
    background-color: rgba(255, 255, 255, 0.97) !important;
    border-color: rgba(29, 38, 58, 0.12) !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
    margin: 0 12px !important; /* Centered pill visual style */
  }

  .sm-logo img.sm-logo-img {
    height: 38px !important;
  }

  /* Sleek minimalist circular toggle button */
  .sm-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease !important;
  }

  /* Hide the text cycling wrappers */
  .sm-toggle-textWrap {
    display: none !important;
  }

  /* Custom morphing hamburger icon styling */
  .sm-icon {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sm-icon-line {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
  }

  /* Parallel horizontal bars in closed state */
  .sm-icon-line:not(.sm-icon-line-v) {
    transform: translate(-50%, -50%) translateY(-4px) rotate(0deg);
  }

  .sm-icon-line-v {
    transform: translate(-50%, -50%) translateY(4px) rotate(0deg) !important;
  }

  /* Morphing transition into standard centered cross (X) */
  /* Top line goes to center. Bottom line goes to center and rotates to 90deg to form a plus, */
  /* which turns into a cross (X) as GSAP spins the outer wrapper by 225deg. */
  .staggered-menu-container.menu-open .sm-icon-line:not(.sm-icon-line-v) {
    transform: translate(-50%, -50%) translateY(0) rotate(0deg);
  }

  .staggered-menu-container.menu-open .sm-icon-line-v {
    transform: translate(-50%, -50%) translateY(0) rotate(90deg) !important;
  }

  .sm-panel-item {
    font-size: 1.7rem;
  }

  /* Floating card style for mobile & tablet (991px or less) */
  .staggered-menu-panel {
    top: 12px !important;
    bottom: 12px !important;
    right: 12px !important;
    height: calc(100vh - 24px) !important;
    height: calc(100dvh - 24px) !important;
    width: clamp(280px, 50vw, 400px) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(29, 38, 58, 0.08) !important;
    box-shadow: -10px 10px 40px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding: 4.5rem 1.5rem 1.5rem 1.75rem !important;
  }

  .sm-prelayers {
    top: 12px !important;
    bottom: 12px !important;
    right: 12px !important;
    width: clamp(280px, 50vw, 400px) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
  }

  .sm-prelayer {
    border-radius: 20px !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   Small Mobile (≤ 768px) — floating card drawer
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .staggered-menu-panel {
    top: 12px !important;
    bottom: 12px !important;
    right: 12px !important;
    width: calc(100vw - 24px) !important;
    height: calc(100vh - 24px) !important;
    height: calc(100dvh - 24px) !important;
    padding: 4.5rem 1.25rem 1.5rem 1.25rem !important;
    border-radius: 20px !important;
  }

  .sm-prelayers {
    top: 12px !important;
    bottom: 12px !important;
    right: 12px !important;
    width: calc(100vw - 24px) !important;
    border-radius: 20px !important;
  }

  .sm-panel-item {
    font-size: 1.65rem;
    letter-spacing: -0.5px;
  }

  .sm-panel-list[data-numbering] .sm-panel-item::after {
    font-size: 10px;
    right: 0.2rem;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   Very small (≤ 380px)
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 380px) {
  .sm-panel-item {
    font-size: 1.4rem;
  }

  .sm-toggle {
    font-size: 0.75rem;
    padding: 7px 12px;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   Desktop Card Nav Integration (≥ 992px)
   ────────────────────────────────────────────────────────────────────────── */

/* Hide desktop specific elements by default on mobile/tablet */
.dn-hamburger {
  display: none;
}
.dn-cta-btn {
  display: none;
}
.dn-card-content {
  display: none;
}
.nav-search-btn {
  display: none;
}

@media (min-width: 992px) {
  /* 1. Full-Width Spacing (Touch borders) */
  .staggered-menu-placeholder {
    height: 75px;
  }

  .staggered-menu-container {
    position: absolute;
    top: 46px; /* Sits exactly below the 46px topbar */
    left: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    transform: none;
  }

  .staggered-menu-container.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    transform: none;
  }

  /* 2. Header Bar Edge-to-Edge */
  .staggered-menu-header {
    height: 75px;
    --top-bar-height: 75px;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    padding: 0 3rem !important;
    background-color: rgba(255, 255, 255, 0.98);
    transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  .staggered-menu-header.open {
    transition: none !important;
  }

  .staggered-menu-container.sticky-nav .staggered-menu-header {
    height: 65px;
    --top-bar-height: 65px;
    border-radius: 0 !important;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  }

  /* 3. Hide mobile elements */
  .sm-toggle {
    display: none !important;
  }

  /* 4. Desktop Hamburger Menu Toggle */
  .dn-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    gap: 6px;
    height: 40px;
    width: 40px;
    align-items: flex-start;
    position: absolute;
    left: 3rem;
    top: calc(var(--top-bar-height) / 2);
    transform: translateY(-50%);
    z-index: 1002;
    background: transparent;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  .dn-hamburger-line {
    width: 28px;
    height: 2.5px;
    background-color: var(--color-secondary, #1D263A);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.35s ease;
    transform-origin: 50% 50%;
    border-radius: 2px;
  }

  .dn-hamburger.open .dn-hamburger-line:first-child {
    transform: translateY(4.25px) rotate(45deg);
    background-color: var(--color-primary, #DF0A0A);
  }

  .dn-hamburger.open .dn-hamburger-line:last-child {
    transform: translateY(-4.25px) rotate(-45deg);
    background-color: var(--color-primary, #DF0A0A);
  }

  /* 5. Center Logo */
  .sm-logo {
    position: absolute;
    left: 50%;
    top: calc(var(--top-bar-height) / 2);
    transform: translate(-50%, -50%);
    transition: top 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  .sm-logo img.sm-logo-img {
    height: 52px;
    width: auto;
    transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  .staggered-menu-container.sticky-nav img.sm-logo-img {
    height: 44px;
  }

  /* 6. Desktop CTA Button */
  .dn-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary, #DF0A0A);
    color: #ffffff;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(223, 10, 10, 0.35);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, top 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: absolute;
    right: 3rem;
    top: calc(var(--top-bar-height) / 2);
    transform: translateY(-50%);
  }

  .dn-cta-btn:hover {
    background-color: #bf0808;
    box-shadow: 0 6px 20px rgba(223, 10, 10, 0.45);
    transform: translateY(-50%) translateY(-1px);
  }

  .dn-cta-btn:active {
    transform: translateY(-50%) translateY(0);
    box-shadow: 0 3px 10px rgba(223, 10, 10, 0.3);
  }

  .nav-search-btn {
    display: inline-flex;
    position: absolute;
    right: 17rem;
    top: calc(var(--top-bar-height) / 2);
    transform: translateY(-50%);
    z-index: 1002;
    margin-right: 0 !important;
    transition: background-color 0.3s ease, transform 0.2s ease, top 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  .dn-cta-btn i {
    font-size: 0.8rem;
    transition: transform 0.25s ease;
  }

  .dn-cta-btn:hover i {
    transform: translateX(3px);
  }

  /* 7. Card Nav Content Panel */
  .dn-card-content {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--top-bar-height);
    height: auto;
    padding: 2.2rem 3rem 2.2rem 3rem;
    display: none; /* toggled by JS to grid */
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    box-sizing: border-box;
    z-index: 1000;
    overflow: hidden;
  }

  /* Open classes */
  .staggered-menu-header.open .dn-card-content {
    display: grid;
  }

  /* Individual Navigation Cards */
  .dn-card {
    border-radius: 12px;
    padding: 1.6rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(40px);
    opacity: 0;
    will-change: transform, opacity;
  }

  .card-company {
    background-color: var(--color-primary, #DF0A0A);
    color: #ffffff;
  }

  .card-all-services {
    background-color: var(--color-secondary, #1D263A);
    color: #ffffff;
  }

  .card-popular {
    background-color: #242f47; /* dark navy for contrast */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .dn-card-label {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 10px;
    text-transform: uppercase;
  }

  .dn-card-links {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }

  .dn-card-link {
    font-size: 0.94rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.25s ease, opacity 0.25s ease, padding-left 0.25s ease;
    padding: 5px 0;
  }

  .dn-card-link:hover,
  .dn-card-link.active {
    color: #ffffff;
    opacity: 1;
    padding-left: 6px;
  }

  /* GoArrowUpRight icon styling */
  .dn-card-link-icon {
    width: 0.85em;
    height: 0.85em;
    opacity: 0.65;
    transition: transform 0.25s ease;
    flex-shrink: 0;
  }

  .dn-card-link:hover .dn-card-link-icon,
  .dn-card-link.active .dn-card-link-icon {
    transform: translate(2px, -2px) scale(1.15);
    opacity: 1;
  }

  /* Star icon popular list */
  .dn-card-icon.star-icon {
    color: #ffc107;
    font-size: 0.8rem;
    opacity: 1;
  }
}
