/* Hide mobile menu header by default on desktop */
.mobile-menu-header {
  display: none;
}

/* Background Dimming Scrim Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  /* behind primary-nav drawer but above page body content */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

@media (max-width: 1367px) {
  .mega-menu {
    padding: 30px 0px;
  }
}

/* -------------------------------------------------------------
   Breakpoint: max-width: 1024px (Tablets / Mobile Menu Activation)
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .challenge-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .challenge-content-col {
    position: static;
  }

  .proof-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .healthcare-proof-bg {
    width: 100%;
    opacity: 0.2;
  }

  /*  */
  .site-header {
    padding: 15px 0;
  }

  .site-header.scrolled {
    padding: 10px 0;
  }

  .site-header .header-wrap {
    padding: 10px 20px;
    border-radius: 12px;
  }

  .site-header .logo-box {
    padding: 0;
  }

  .site-header .logo-box::after {
    display: none;
    /* Hide skew accent separator on mobile */
  }

  .site-header .header-logo img {
    height: 38px;
  }

  .site-header.scrolled .header-logo img {
    height: 34px;
  }

  .site-header .header-actions {
    display: flex;
    align-items: center;
  }

  /* Make Contact Button flat, rounded, and compact to prevent overlap */
  .site-header .header-contact-btn {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    height: auto;
  }

  .site-header .header-contact-btn::before,
  .site-header .header-contact-btn::after {
    display: none;
    /* Strip skewed borders */
  }

  .site-header .header-contact-btn .arrow {
    display: none;
    /* Hide arrow to save horizontal space */
  }

  /* Hamburger Toggle Button Style */
  .site-header .mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 16px;
    z-index: 10001;
  }

  .site-header .mobile-toggle .bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--black);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  /* Hide mobile hamburger toggle when menu is active */
  .site-header .mobile-toggle.active {
    display: none;
  }

  /* Hide Desktop Hover Pill Underlay */
  .site-header .hover-indicator {
    display: none;
  }

  /* Mobile Drawer Menu styles */
  .site-header .primary-nav {
    position: fixed;
    top: 0;
    left: -100%;
    right: auto;
    width: 320px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
    z-index: 10000;
    padding: 24px 24px 40px;
    /* Reduced top padding for header layout */
    display: block;
    overflow-y: auto;
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-left: 0;
  }

  .site-header .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(229, 229, 229, 0.5);
  }

  .site-header .mobile-logo-box img {
    height: 35px;
    width: auto;
    display: block;
  }

  .site-header .mobile-close-btn {
    background: transparent;
    border: none;
    color: var(--black);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
  }

  .site-header .mobile-close-btn svg {
    display: block;
  }

  .site-header .mobile-close-btn:hover {
    color: var(--primary-color);
  }

  .site-header .primary-nav.active {
    left: 0;
    right: auto;
  }

  .site-header .nav-list {
    flex-direction: column;
    gap: 15px;
  }

  .site-header .nav-link {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: none;
    /* Remove bottom border */
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .site-header .nav-link::after {
    display: none;
    /* Remove red underline in mobile view */
  }

  .site-header .nav-link:hover .nav-text {
    transform: none;
    /* Disable text reveal flip on mobile */
  }

  .site-header .nav-text::after {
    display: none;
    /* Disable pseudo-text on mobile */
  }

  .site-header .chevron-icon {
    width: 12px;
    height: 8px;
    transition: transform 0.3s ease;
  }

  .site-header .has-mega-menu.open .chevron-icon {
    transform: rotate(180deg);
  }

  /* Mega Menu converted to Accordion Panel */
  .site-header .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    border: none;
    background-color: transparent;
    border-radius: 8px;
    padding: 0;
    margin-top: 0;
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  .site-header .mega-menu::before {
    display: none;
  }

  .site-header .mega-menu .container {
    padding: 15px;
  }

  .site-header .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-header .mega-column {
    gap: 15px;
    animation: none;
    /* Disable staggered column animation on mobile */
  }

  .site-header .mega-category h3 {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .site-header .mega-category ul {
    gap: 6px;
  }

  .site-header .mega-category ul li a {
    font-size: 14px;
    padding: 4px 0;
  }

  /* Body Scroll Lock */
  body.no-scroll {
    overflow: hidden;
  }
}

@media (max-width: 992px) {
  .industry-hero-section .container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .creative-ecosystem {
    max-width: 500px;
  }
}

/* -------------------------------------------------------------
   Breakpoint: max-width: 767px (Smartphones / Portrait Tablets)
   ------------------------------------------------------------- */
@media (max-width: 767px) {
  .site-header {
    padding: 12px 0;
  }

  .site-header .header-wrap {
    padding: 8px 16px;
  }

  .site-header .header-contact-btn {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 20px;
  }
}

/* -------------------------------------------------------------
   Breakpoint: max-width: 567px (Small Mobile Devices)
   ------------------------------------------------------------- */
@media (max-width: 567px) {

  .site-header .header-wrap {
    padding: 8px 12px;
  }

  .site-header .header-logo img {
    height: 32px;
  }

  .site-header.scrolled .header-logo img {
    height: 28px;
  }

  .site-header .header-contact-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .site-header .mobile-toggle {
    margin-left: 12px;
    width: 22px;
    height: 15px;
  }

  .site-header .mobile-toggle .bar {
    height: 2px;
  }

  .site-header .primary-nav {
    max-width: 280px;
    padding: 30px 20px 30px;
    width: 100%;
  }


  /* Health Care */

  .creative-ecosystem {
    max-width: 340px;
  }

  .creative-center-orb {
    width: 120px;
    height: 120px;
    border-radius: 50%;
  }

  .creative-center-orb svg {
    width: 28px;
    height: 28px;
  }

  .creative-center-orb span {
    font-size: 10px;
  }

  .creative-node {
    padding: 8px 12px;
    border-radius: 12px;
    gap: 8px;
  }

  .c-node-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .c-node-icon svg {
    width: 14px;
    height: 14px;
  }

  .creative-node span {
    font-size: 10px;
  }

  /* Adjust positions slightly for mobile */
  .pos-1 {
    left: -2%;
  }

  .pos-2 {
    right: -2%;
  }

  .pos-3 {
    left: -10%;
  }

  .pos-4 {
    right: -10%;
  }

  .pos-5 {
    left: -2%;
  }

  .pos-6 {
    right: -2%;
  }
}

/* Healthcare Research & Insights Section Responsive */
@media (max-width: 992px) {
  .hc-research-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hc-research-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .hc-research-insights-section {
    padding: 60px 0;
  }

  .hc-research-grid {
    grid-template-columns: 1fr;
  }

  .hc-research-title {
    font-size: 28px;
  }

  .hc-research-copy {
    font-size: 16px;
  }

  .hc-research-header {
    margin-bottom: 40px;
  }

  /* CTA Section */
  .cta-content {
    padding: 60px 20px;
    margin: 60px 0;
  }

  .cta-title {
    font-size: 32px;
  }

  .cta-desc {
    font-size: 16px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-primary-btn,
  .cta-secondary-btn {
    width: 100%;
  }
}

@media (max-width: 768px) {

  /* Mobile Sticky CTA */
  .mobile-sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white, #fff);
    padding: 15px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    text-align: center;
  }

  .mobile-sticky-cta .primary-btn {
    width: 100%;
    display: inline-block;
    box-sizing: border-box;
    margin: 0;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Add padding to bottom of body to prevent content from being hidden by sticky CTA */
  body {
    padding-bottom: 80px;
  }
}

@media (max-width: 640px) {

  .proof-cards-grid,
  .challenge-grid-col {
    grid-template-columns: 1fr;
  }

  .proof-title,
  .section-title {

    font-size: 32px;
  }


}