/* Responsive Design & Breakpoints CSS - Brands Shift */

/* Large Desktop Adjustments */
@media (max-width: 1200px) {
  .hero-heading {
    font-size: 3.25rem;
  }

  .vert-area-slider {
    height: 720px;
  }

  .vert-slider__elem {
    height: 330px;
  }
}

/* Medium Desktop & Tablet Viewport (< 992px) */
@media (max-width: 991px) {

  .nav-menu,
  .header-cta-btn {
    display: none;
  }

  .mobile-toggle-btn {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content {
    align-items: center;
    text-align: center;

  }

  .hero-description {
    max-width: 100%;
  }

  /* Mobile Hero Adjustments: 0px outer padding so background video covers top 100% */
  .hero-banner-one {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
    height: auto !important;
    min-height: auto !important;
  }

  .element--hero-banner-wrapper {
    padding-top: calc(var(--header-height, 80px) + 20px) !important;
    padding-bottom: 35px !important;
    height: auto !important;
    min-height: auto !important;
  }

  .element--hero-banner-background {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .bf-hero-title {
    font-size: clamp(1.85rem, 7.5vw, 2.35rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 0.75rem !important;
  }

  .bf-hero-title span.d-block {
    font-size: clamp(1.2rem, 5vw, 1.55rem) !important;
    margin-top: 4px !important;
  }

  .element--hero-banner-content-wrapper p {
    font-size: 0.925rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.25rem !important;
  }

  .element--hero-banner-media-video,
  .element--hero-banner-media-video video {
    min-height: 170px !important;
    height: 170px !important;
    max-height: 170px !important;
  }

  /* Mobile Hero Banner Content Column Height & Padding Resets */
  .element--hero-banner.hero-banner-one .element--hero-banner-content-column,
  .element--hero-banner-content-column,
  .col-12.col-lg-8.col-xxl-7.element--hero-banner-content-column,
  .col-12.col-lg-7.col-xl-8.element--hero-banner-content-column {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
  }

  .row.element--hero-banner-content.align-items-end.w-100.g-4,
  .element--hero-banner-content {
    padding: 0px !important;
    margin: 0px !important;
    width: 100% !important;
  }

  /* Hide huge overlapping center floating arrows on mobile */
  .swe-slider-center-arrow {
    display: none !important;
  }

  /* Mobile Case Studies Section Padding & Spacing Resets */
  .swe-portfolio-section {
    padding-top: 55px !important;
    padding-bottom: 40px !important;
  }

  .swe-portfolio-section .container.pt-4 {
    padding-top: 0 !important;
  }

  .swe-portfolio-section .row.text-center.mb-5 {
    margin-bottom: 1.15rem !important;
  }

  .swe-portfolio-carousel-wrapper {
    overflow: hidden !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: grab !important;
  }

  .swe-portfolio-carousel-wrapper:active {
    cursor: grabbing !important;
  }

  .swe-portfolio-carousel-wrapper.mb-5 {
    margin-bottom: 0.35rem !important;
  }

  /* Single Centered Card Viewport: 100% Clips Side Cards */
  .swe-portfolio-carousel-container {
    padding: 0 !important;
    margin: 0 auto !important;
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    overflow: hidden !important;
    border-radius: 18px !important;
  }

  .swe-portfolio-carousel-track {
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    align-items: stretch !important;
    display: flex !important;
    width: 100% !important;
    user-select: none !important;
    -webkit-user-select: none !important;
  }

  .swe-portfolio-card-item {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex-shrink: 0 !important;
  }

  /* Ultra-Compact Clean Portfolio Card on Mobile */
  .swe-portfolio-card {
    padding: 1.25rem 1.15rem !important;
    border-radius: 18px !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    background: #FFFFFF !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06) !important;
  }

  .swe-portfolio-card-title {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
    min-height: auto !important;
    white-space: normal !important;
    overflow: visible !important;
    display: block !important;
  }

  .swe-portfolio-img-wrap {
    height: auto !important;
    min-height: auto !important;
    max-height: 280px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-bottom: 0.75rem !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .swe-portfolio-img {
    height: auto !important;
    max-height: 260px !important;
    width: 100% !important;
    object-fit: contain !important;
    pointer-events: none !important;
  }

  .swe-portfolio-subtitle {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.45rem !important;
    min-height: auto !important;
    max-height: none !important;
    display: block !important;
  }

  .swe-portfolio-desc {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    color: #555566 !important;
    margin-bottom: 1rem !important;
    min-height: auto !important;
    max-height: none !important;
    display: block !important;
  }

  /* Remove 3-step strategy, design & develop pills on mobile completely */
  .swe-portfolio-card .row.g-3.pt-2,
  .swe-portfolio-card .swe-step-item {
    display: none !important;
  }

  /* Mobile Bottom Navigation Controls - Tight Spacing */
  .swe-portfolio-mobile-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.85rem !important;
    padding-top: 0 !important;
  }

  .swe-portfolio-mobile-arrow {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #722C89 0%, #D3207C 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
    box-shadow: 0 4px 12px rgba(211, 32, 124, 0.3) !important;
    cursor: pointer !important;
    transition: transform 0.2s ease !important;
  }

  .swe-portfolio-mobile-arrow:active {
    transform: scale(0.92) !important;
  }

  .swe-portfolio-mobile-counter {
    font-family: 'uncut-sans', monospace, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #0A0A0B !important;
    letter-spacing: 0.08em !important;
    min-width: 60px !important;
    text-align: center !important;
  }

  .swe-portfolio-section .container.pb-2 {
    padding-bottom: 0 !important;
  }

  /* Specialist Digital Solutions Mobile Display Fix */
  .element--scroll-list-wrapper,
  .element--scroll-list-wrapper .flickity-wrapper {
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .element--scroll-list-item {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    margin-right: 0 !important;
    transform: none !important;
    padding: 1.75rem 0 !important;
    border-bottom: 1px solid #EAEAEA !important;
  }

  .element--scroll-list-item-number {
    margin-bottom: 0.5rem !important;
  }

  .element--scroll-list-item-number .monospace {
    color: #D3207C !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
  }

  .element--scroll-list-item-content h3 a {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
  }

  .element--scroll-list-item-content p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  /* Switch Dual Vertical Marquee to Dual Horizontal Continuous Marquee */
  .vert-area-slider {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 1.25rem;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  }

  .vert-area-slider__column {
    height: auto;
    width: 100%;
    overflow: hidden;
  }

  .vertical-marquee-track {
    flex-direction: row;
    width: max-content;
    gap: 1.25rem;
  }

  .column-up .vertical-marquee-track {
    animation: marqueeLeft 20s linear infinite;
  }

  .column-down .vertical-marquee-track {
    animation: marqueeRight 20s linear infinite;
  }

  .vert-slider__elem {
    width: 290px;
    height: 220px;
    flex-shrink: 0;
  }

  .bs-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .bs-footer-brand {
    grid-column: 1 / -1;
  }
}

/* Horizontal Animation Keyframes for Mobile & Tablet */
@keyframes marqueeLeft {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes marqueeRight {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0%);
  }
}

/* Mobile Small Viewports (< 576px) */
@media (max-width: 575px) {
  .hero-section {
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 3.5rem;
  }

  .hero-heading {
    font-size: 2.25rem;
  }

  .hero-description {
    font-size: 1.025rem;
  }

  .btn-book-call {
    width: 100%;
    justify-content: center;
  }

  .vert-slider__elem {
    width: 240px;
    height: 180px;
  }

  .vert-slider__elem-desc-title {
    font-size: 1.2rem;
  }

  .modal-card {
    padding: 1.75rem;
  }

  .bs-footer-top {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .d-flex.flex-column.quote-trust-list.mb-2 div {
    padding: 0px !important;
  }

  .bs-footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 1.25rem;
  }

  .bs-footer-social {
    justify-content: center;
  }

  .bs-footer-desc {
    max-width: 100%;
  }

  /* Compact Copyright Sub-Footer on Mobile */
  #copyright {
    margin-top: 10px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin-bottom: 0 !important;
  }

  /* Back to Top Mobile Sizing */
  #backToTop.swe-progress-btn {
    bottom: 20px !important;
    right: 20px !important;
    width: 48px !important;
    height: 48px !important;
  }

  #backToTop.swe-progress-btn .progress-ring {
    width: 48px !important;
    height: 48px !important;
  }

  #backToTop.swe-progress-btn .progress-val {
    font-size: 0.7rem !important;
  }
}

/* Drawer Open Body & Header Resets to prevent clipping/shifting */
body.mobile-drawer-open {
  overflow: hidden !important;
}

body.mobile-drawer-open .menu-header,
.menu-header.drawer-open {
  transform: none !important;
  padding: 0 !important;
  margin: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: auto !important;
}

body.mobile-drawer-open .menu-header--inner,
.menu-header.drawer-open .menu-header--inner {
  transform: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100vw !important;
  min-height: 0 !important;
}

/* Blue Frontier 1:1 Exact Mobile Drawer Styling */
@media (max-width: 1199.98px) {

  /* Full screen modal drawer container */
  .menu-header--main-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    background: #0E0E11 !important;
    z-index: 999999 !important;
    padding: 1.5rem !important;
    margin: 0 !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
    transition: opacity 0.25s ease !important;
  }

  .menu-header--main-menu:not(.show) {
    display: none !important;
  }

  .menu-header--main-menu .navbar-nav {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0 !important;
  }

  .menu-header--main-menu .navbar-nav .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    width: 100% !important;
  }

  .menu-header--main-menu .navbar-nav .nav-link {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    padding: 1.1rem 0 !important;
    color: #FFFFFF !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-decoration: none !important;
  }

  .bf-mobile-accordion-icon {
    font-size: 1.5rem !important;
    line-height: 1;
    font-weight: 300;
    color: #FFFFFF !important;
    display: inline-block;
  }

  /* Expanded white card container inside mobile drawer (Image 2) */
  .bf-megamenu-panel {
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    position: static !important;
    background: #FFFFFF !important;
    border-radius: 16px !important;
    padding: 1.5rem 0.8rem !important;
    margin: 0.5rem 0 1.25rem 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
  }

  .nav-item.dropdown.is-open .bf-megamenu-panel,
  .bf-megamenu-panel.show {
    display: block !important;
  }

  .bf-megamenu-panel .row {
    flex-direction: column !important;
    gap: 0rem !important;
  }

  .element--hero-banner.hero-banner-one .element--hero-banner-content-wrapper {
    padding-bottom: 20px;
  }

  .col-12.col-lg-8.col-xxl-7.element--hero-banner-content-column {
    min-height: fit-content !important;
  }

  .element--hero-banner.hero-banner-one .element--hero-banner-content {
    padding-top: 30px !important;
  }

  .element--scroll-list-item-content.col-12.col-lg-10 p.d-flex.flex-wrap.gap-2 {
    gap: 0px !important;
  }

  .element--image-marquee {
    padding: 0px;
  }

  .bf-megamenu-panel .col-12 {
    width: 100% !important;
  }

  .bf-megamenu-panel .col-lg-5,
  .bf-megamenu-panel .col-lg-7 {
    width: 100% !important;
  }

  .bf-megamenu-card {
    background: #242528 !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
  }

  /* Bottom Pinned White CTA Button (Images 2 & 3) */
  .bf-mobile-drawer-cta {
    margin-top: auto !important;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .bf-mobile-drawer-cta .btn {
    background: linear-gradient(135deg, #722C89 0%, #D3207C 100%) !important;
    color: #FFFFFF !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.05rem !important;
    box-shadow: 0 6px 22px rgba(211, 32, 124, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
  }

  /* ==========================================================================
   GLOBAL MOBILE TYPOGRAPHY & COMPACT SCALING (Phones & Small Tablets)
   ========================================================================== */
  @media (max-width: 767.98px) {

    /* 1. Global Headings Scaling */
    h1,
    .h1 {
      font-size: clamp(1.85rem, 7.5vw, 2.35rem) !important;
      line-height: 1.15 !important;
      letter-spacing: -0.02em !important;
    }

    h2,
    .h2 {
      font-size: clamp(1.45rem, 5.5vw, 1.95rem) !important;
      line-height: 1.2 !important;
      letter-spacing: -0.015em !important;
    }

    h3,
    .h3 {
      font-size: clamp(1.2rem, 4.5vw, 1.45rem) !important;
      line-height: 1.25 !important;
    }

    h4,
    .h4 {
      font-size: 1.1rem !important;
      line-height: 1.3 !important;
    }

    /* 2. Global Paragraphs & Content Text */
    p,
    .lead {
      font-size: 0.925rem !important;
      line-height: 1.55 !important;
    }

    /* 3. Section Taglines & Subtitle Badges */
    .element--scroll-list-intro-subtitle,
    .element--statement-intro-subtitle,
    .element--case-studies-subtitle,
    .element--testimonial-subtitle {
      font-size: 0.75rem !important;
      letter-spacing: 0.1em !important;
    }

    /* 4. Section Intro Headings */
    .element--scroll-list-intro-heading h2,
    .element--statement-heading h2,
    .element--case-studies-heading h2,
    .element--testimonial-heading h2 {
      font-size: clamp(1.45rem, 5.5vw, 1.95rem) !important;
      line-height: 1.2 !important;
    }

    /* 5. Statement Marquee Text */
    .element--statement-content p {
      font-size: 0.95rem !important;
      line-height: 1.55 !important;
    }

    /* 6. Case Studies Cards */
    .swe-portfolio-card-title,
    .element--case-study-title h3 {
      font-size: 1.2rem !important;
      line-height: 1.25 !important;
    }

    .swe-portfolio-card-desc,
    .element--case-study-content p {
      font-size: 0.875rem !important;
      line-height: 1.5 !important;
    }

    .swe-portfolio-pill,
    .element--case-study-tag {
      font-size: 0.75rem !important;
      padding: 0.25rem 0.65rem !important;
    }

    /* 7. Testimonial Section */
    .testimonial-quote-text,
    .element--testimonial-quote {
      font-size: 1.05rem !important;
      line-height: 1.55 !important;
    }

    .testimonial-author-name {
      font-size: 0.95rem !important;
    }

    .testimonial-author-role {
      font-size: 0.825rem !important;
    }

    /* 8. News & Insights Article Cards */
    .news-card-title,
    .element--news-card h3 {
      font-size: 1.15rem !important;
      line-height: 1.3 !important;
    }

    .news-card-excerpt,
    .element--news-card p {
      font-size: 0.85rem !important;
      line-height: 1.5 !important;
    }

    .news-card-date {
      font-size: 0.75rem !important;
    }

    /* 9. Compact Section Padding */
    section {
      padding-top: 50px !important;
      padding-bottom: 50px !important;
    }

    /* 10. Footer Sizing */
    .bs-footer h4,
    .widgettitle {
      font-size: 0.875rem !important;
    }

    .bs-footer p,
    .bs-footer a,
    .widget ul li a {
      font-size: 0.85rem !important;
      line-height: 1.5 !important;
    }

    /* 11. Form Responsiveness Across Mobile & Tablets */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
      font-size: 16px !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }

    /* 12. Testimonials Header Badge on Mobile */
    #testimonials-section .col-12.col-lg-auto {
      display: flex !important;
      justify-content: flex-start !important;
      width: auto !important;
      max-width: 100% !important;
    }

    #testimonials-section .rounded-pill {
      width: auto !important;
      max-width: max-content !important;
      display: inline-flex !important;
      flex-shrink: 0 !important;
    }
  }