/* ==========================================================================
   MEGA MENU & MOBILE NAVIGATION (CREED DIGITAL ARCHITECTURE)
   ========================================================================== */

/* Mega Menu Dropdown Container */
.has-mega-menu {
  position: static !important;
}

.mega-menu-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(10, 11, 15, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 2px solid var(--brand-orange);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(255, 85, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  padding: 42px 0;
}

.has-mega-menu:hover .mega-menu-wrapper,
.has-mega-menu.is-active .mega-menu-wrapper {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.2fr;
  gap: 32px;
}

/* Mega Menu Column */
.mega-col {
  display: flex;
  flex-direction: column;
}

.mega-col-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.mega-col-number {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--brand-orange);
  background: var(--brand-orange-subtle);
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--border-orange);
}

.mega-col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.mega-service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-service-item a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  transition: all var(--transition-fast);
}

.mega-service-item a::before {
  content: '›';
  color: var(--brand-orange);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.6;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mega-service-item a:hover {
  background: rgba(255, 85, 0, 0.08);
  color: #fff;
  transform: translateX(4px);
}

.mega-service-item a:hover::before {
  opacity: 1;
  transform: translateX(2px);
}

.mega-service-item a span.badge {
  font-size: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--brand-orange);
  color: #fff;
  margin-left: auto;
  text-transform: uppercase;
}

/* Mega Menu Promo / Consult Card (Creed Digital Feature) */
.mega-promo-card {
  background: linear-gradient(145deg, #181a24 0%, #0e1017 100%);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 85, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.mega-promo-tag {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-orange-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.mega-promo-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 10px;
}

.mega-promo-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.mega-promo-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
}

.mega-promo-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-cream);
  font-weight: 600;
}

.mega-promo-contact-link:hover {
  color: var(--brand-orange-bright);
}

/* ==========================================================================
   MOBILE OFF-CANVAS DRAWER
   ========================================================================== */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  touch-action: none;
  overscroll-behavior: contain;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: min(380px, 88vw);
  height: 100%;
  background: #090a0e;
  border-left: 1px solid var(--border-orange);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  z-index: 1600;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
}

.mobile-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all var(--transition-fast);
}

.drawer-close-btn:hover {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
}

/* Mobile Nav Menu */
.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 30px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--brand-orange-subtle);
  color: var(--brand-orange-bright);
}

.mobile-nav-link svg.accordion-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.mobile-nav-item.open .mobile-nav-link svg.accordion-chevron {
  transform: rotate(180deg);
  color: var(--brand-orange);
}

/* Mobile Accordion Sub-Menu with Smooth Animated Slide Down */
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              transform 0.35s ease,
              padding 0.35s ease;
  padding: 0 14px;
  background: rgba(18, 20, 28, 0.7);
  border-radius: var(--radius-sm);
  margin-top: 4px;
  border-left: 2px solid transparent;
}

.mobile-nav-item.open .mobile-submenu {
  max-height: 1200px;
  opacity: 1;
  transform: translateY(0);
  padding: 14px 14px 18px 14px;
  border-left-color: var(--brand-orange);
}

.mobile-sub-pillar {
  margin-bottom: 14px;
}

.mobile-sub-pillar-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-orange-bright);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.mobile-sub-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-sub-links li a {
  font-size: 0.86rem;
  color: var(--text-muted);
  display: block;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.mobile-sub-links li a:hover {
  color: #fff;
}

/* Mobile Drawer CTAs */
.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-drawer-btn {
  width: 100%;
  padding: 14px;
  font-size: 0.95rem;
}

.mobile-quick-contacts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.mobile-quick-contacts a.quick-contact-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.mobile-quick-contacts a.quick-contact-btn svg {
  display: block;
  transition: transform 0.25s ease, stroke 0.2s ease, fill 0.2s ease;
}

.mobile-quick-contacts a.quick-contact-btn:hover,
.mobile-quick-contacts a.quick-contact-btn:active {
  transform: translateY(-3px) scale(1.08);
}

.mobile-quick-contacts a.quick-contact-btn:hover svg,
.mobile-quick-contacts a.quick-contact-btn:active svg {
  transform: scale(1.15);
}

/* Phone Button: Official Action Red */
.mobile-quick-contacts a.phone-btn {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #ef4444;
}

.mobile-quick-contacts a.phone-btn svg {
  stroke: #ef4444;
}

.mobile-quick-contacts a.phone-btn:hover,
.mobile-quick-contacts a.phone-btn:active {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.55);
}

.mobile-quick-contacts a.phone-btn:hover svg,
.mobile-quick-contacts a.phone-btn:active svg {
  stroke: #ffffff;
}

/* WhatsApp Button: Official WhatsApp Green */
.mobile-quick-contacts a.whatsapp-btn {
  background: rgba(37, 211, 102, 0.14);
  border: 1px solid rgba(37, 211, 102, 0.5);
  color: #25d366;
}

.mobile-quick-contacts a.whatsapp-btn svg {
  fill: #25d366;
}

.mobile-quick-contacts a.whatsapp-btn:hover,
.mobile-quick-contacts a.whatsapp-btn:active {
  background: #25d366;
  border-color: #25d366;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

.mobile-quick-contacts a.whatsapp-btn:hover svg,
.mobile-quick-contacts a.whatsapp-btn:active svg {
  fill: #ffffff;
}

/* Instagram Button: Official Instagram Gradient */
.mobile-quick-contacts a.instagram-btn {
  background: linear-gradient(45deg, rgba(240, 148, 51, 0.18) 0%, rgba(220, 39, 67, 0.22) 50%, rgba(188, 24, 136, 0.22) 100%);
  border: 1px solid rgba(225, 48, 108, 0.5);
  color: #e1306c;
}

.mobile-quick-contacts a.instagram-btn svg {
  stroke: #e1306c;
}

.mobile-quick-contacts a.instagram-btn:hover,
.mobile-quick-contacts a.instagram-btn:active {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #e6683c;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.55);
}

.mobile-quick-contacts a.instagram-btn:hover svg,
.mobile-quick-contacts a.instagram-btn:active svg {
  stroke: #ffffff;
}

/* Email Button: Official Mail Blue */
.mobile-quick-contacts a.email-btn {
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(37, 99, 235, 0.5);
  color: #3b82f6;
}

.mobile-quick-contacts a.email-btn svg {
  stroke: #3b82f6;
}

.mobile-quick-contacts a.email-btn:hover,
.mobile-quick-contacts a.email-btn:active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
}

.mobile-quick-contacts a.email-btn:hover svg,
.mobile-quick-contacts a.email-btn:active svg {
  stroke: #ffffff;
}
