/*
 * Responsive architecture layer
 *
 * The original visual system is preserved. This file owns layout constraints,
 * breakpoint-level reflow, interaction states, and motion preferences so later
 * pages can share the same behavior without rewriting section CSS.
 */

:root {
  --layout-max: 1440px;
  --layout-gutter: clamp(16px, 2.2vw, 32px);
  --section-space: clamp(64px, 7vw, 112px);
  --focus-color: #d9f622;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-wrap: break-word;
}

img,
video {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
}

/* Anchor the upper header rule to the logo/navigation boundary. */
@media (min-width: 1200px) {
  .header-full {
    overflow: hidden;
  }

  .header-full-border {
    display: none;
  }

  .header-right {
    position: relative;
  }

  .header-right::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 62px;
    left: 0;
    width: 100vw;
    height: 1px;
    background: #000;
    pointer-events: none;
  }

}

/* Full-width, viewport-safe Services mega menu. */
@media (min-width: 1024px) {
  .megamenu-section {
    position: fixed;
    z-index: 100;
    top: 62px;
    right: 0;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 62px);
    max-height: calc(100dvh - 62px);
    padding: clamp(28px, 3vw, 44px) 0;
    overflow-x: hidden;
    overflow-y: auto;
    border-top: 1px solid #000;
    border-bottom: 1px solid #dedede;
    overscroll-behavior: contain;
  }

  .header-full .megamenu-section .container {
    width: calc(100% - (var(--layout-gutter) * 2));
    max-width: var(--layout-max);
    padding-inline: 0;
  }

  .megamenu-flx-warp {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: clamp(28px, 3.5vw, 56px);
    align-items: start;
  }

  .nav-tabbinng-list,
  .nav-tabbinng-content {
    width: auto;
    min-width: 0;
  }

  .nav-tabbinng-content {
    margin-top: 0;
  }

  .nav-manu .nav-tabbinng-list ul {
    display: grid;
    gap: 12px;
  }

  .nav-manu .nav-tabbinng-list ul li {
    width: 100%;
  }

  .nav-manu .nav-tabbinng-list ul li a {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
  }

  .megamenu-section .grid6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .megamenu-section {
    top: 62px;
  }

  .megamenu-flx-warp {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .nav-manu .nav-tabbinng-list ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .megamenu-section .grid6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 20px;
  }
  .header-right::before {
      content: "";
      position: absolute;
      z-index: 0;
      top: 62px;
      left: auto;
      width: 70vw;
      height: 1px;
      background: #000;
      pointer-events: none;
  }
}

@media (max-width: 1023px) {
  .megamenu-flx-warp {
    display: block;
  }

  .nav-tabbinng-list,
  .nav-tabbinng-content {
    width: 100%;
    min-width: 0;
  }

  .megamenu-section .grid6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }

  .nav-service-dropdown-item-wrap {
    min-height: 44px;
  }
}

/* Shared carousel navigation used by both hero rails. */
.carousel-control {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid #c9c9c9;
  border-radius: 50%;
  color: #000;
  background: #fff;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

.carousel-control span {
  display: block;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

.carousel-control[class*="prev"] span { transform: rotate(-135deg); margin-left: 3px; }
.carousel-control[class*="next"] span { transform: rotate(45deg); margin-right: 3px; }

.carousel-control:hover {
  border-color: #000;
  color: #fff;
  background: #000;
}

.carousel-control.slick-disabled,
.slick-disabled .carousel-control,
.carousel-control:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.banner-small-blog-slider-action,
.slider-slider-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  margin: 0;
}

.banner-small-blog-heading .banner-small-blog-slider-action {
  display: flex;
}

.banner-sb-slider-mob > .slick-arrow {
  display: none !important;
}

.banner-small-blog-heading {
  align-items: center;
  margin-bottom: 14px;
}

.banner-blog-right {
  border: 1px solid #f8f8f8;
  border-radius: 8px;
  background: #fff;
  box-shadow:
    78px 117px 39px 0 rgba(0, 0, 0, 0),
    50px 75px 36px 0 rgba(0, 0, 0, 0),
    28px 42px 30px 0 rgba(0, 0, 0, .02),
    12px 19px 22px 0 rgba(0, 0, 0, .03),
    3px 5px 12px 0 rgba(0, 0, 0, .03);
}

/* Mavwicks case-study card shares the Digital Lab surface language. */
.brand-highlight-sec {
  padding: 16px;
  overflow: hidden;
  border: 1px solid #f8f8f8;
  border-radius: 8px;
  background: #fff;
  box-shadow:
    78px 117px 39px 0 rgba(0, 0, 0, 0),
    50px 75px 36px 0 rgba(0, 0, 0, 0),
    28px 42px 30px 0 rgba(0, 0, 0, .02),
    12px 19px 22px 0 rgba(0, 0, 0, .03),
    3px 5px 12px 0 rgba(0, 0, 0, .03);
}

.brand-highlight-wrap > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.brand-highlight-detail {
  position: static;
  width: auto;
  padding: 26px 4px 8px;
  overflow: visible;
  border-radius: 0;
  color: #000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.brand-highlight-detail::before,
.brand-highlight-detail::after {
  display: none;
}

.brand-highlight-detail h5 {
  margin: 0;
  color: #000;
  font-size: clamp(20px, 1.65vw, 24px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.015em;
}

.brand-highlight-btn {
  margin-top: 24px;
}

.brand-highlight-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #5f5f5f;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.brand-highlight-link img {
  display: block;
  width: 10px;
  height: 10px;
  transition: transform .2s ease;
}

.brand-highlight-link:hover {
  color: #000;
}

.brand-highlight-link:hover img {
  transform: translate(2px, -2px);
}

/* Keep agency modules contained while allowing the grid rules to run full-bleed. */
.section-bottom.the-agency-section {
  padding-bottom: 0;
}

.the-agency-holder {
  position: relative;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

.the-agency-wrap {
  width: calc(100% - (var(--layout-gutter) * 2));
  max-width: var(--layout-max);
  margin-inline: auto;
}

.the-agency-lines {
  --agency-grid-inset: max(var(--layout-gutter), calc((100% - var(--layout-max)) / 2));
  z-index: 2;
  height: 100%;
  right: 0;
  left: 0;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
  transform: none;
  background: none;
}

.the-agency-lines::before {
  content: "";
  position: absolute;
  inset: 0 var(--agency-grid-inset);
  border-right: 1px solid #404040;
  background-image: linear-gradient(90deg, #404040 1px, transparent 1px);
  background-repeat: repeat-x;
  background-size: 25% 100%;
  pointer-events: none;
}

.the-agency-lines .agency-border-line {
  display: none;
}

/* Use the shared page container instead of the footer's legacy fixed widths. */
.site-footer .container {
  width: calc(100% - (var(--layout-gutter) * 2));
  max-width: var(--layout-max);
  margin-inline: auto;
  padding-inline: 0;
}

.site-footer .footer-top,
.site-footer .footer-mwnu-wrap,
.site-footer .footer-logo {
  max-width: none;
  margin-inline: 0;
}

/* Beyond the max-width, repeat the 360px content tracks into the outer margins. */
@media (min-width: 1441px) {
  .the-agency-col:nth-child(4n + 1) .the-agency-info-holder::before {
    left: calc((100vw - var(--layout-max)) / -2);
    width: 100vw;
  }

  .the-agency-col:nth-child(4n + 4) .the-agency-info-holder::before {
    display: none;
  }

  .the-agency-lines {
    background-image: linear-gradient(90deg, #404040 1px, transparent 1px);
    background-position: calc(50% + 180px) top;
    background-repeat: repeat-x;
    background-size: 360px 100%;
  }

  .the-agency-lines::before {
    display: none;
  }
}

@media (max-width: 1023px) {
  .brand-highlight-sec {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .brand-highlight-detail {
    position: static;
    width: auto;
    padding: 24px 4px 8px;
  }
}

@media (max-width: 575px) {
  .brand-highlight-sec { padding: 12px; }
  .brand-highlight-detail { padding: 20px 4px 6px; }
  .brand-highlight-detail h5 { font-size: 21px; }
  .brand-highlight-btn { margin-top: 16px; }
}

.banner-small-blog-heading h5 {
  align-items: baseline;
  flex-wrap: wrap;
}

.banner-small-blog-heading h5 > span {
  font-weight: 600;
}

.banner-review-slider-section {
  width: 100%;
  max-width: none;
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e1e1e1;
  align-items: center;
  flex-wrap: nowrap;
  gap: 24px;
}

.banner-review-slider {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  padding-right: 0;
}

.banner-review-info p {
  display: grid;
  gap: 7px;
  margin: 0;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.25;
}

.banner-review-info p span {
  display: block;
  width: max-content;
  font-size: 20px;
  line-height: 1;
  letter-spacing: .08em;
}

@media (max-width: 767px) {
  .carousel-control {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .banner-review-slider-section {
    align-items: flex-end;
    gap: 14px;
    padding-top: 16px;
  }

  .banner-review-info p { font-size: 17px; }
}

@media (min-width: 1024px) {
  .container {
    width: calc(100% - (var(--layout-gutter) * 2));
    max-width: var(--layout-max);
    padding-inline: 0;
  }
}

/*
 * Compact desktop is a real composition, not a scaled-down wide desktop.
 * The media feature receives a complete row; editorial content follows below.
 */
@media (min-width: 1024px) and (max-width: 1199px) {
  .home-banner-section {
    padding-block: 32px 48px;
  }

  .banner-warp {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .banner-right-col {
    grid-column: 1 / -1;
    grid-row: 1;
    width: auto;
    padding-left: 0;
  }

  .banner-left-col {
    grid-column: 1 / span 7;
    grid-row: 2;
    width: auto;
  }

  .banner-small-blog-hide-desktop {
    grid-column: 8 / -1;
    grid-row: 2;
    width: auto;
    margin-top: 0;
    align-self: start;
  }

  .banner-review-slider-hide-desktop {
    grid-column: 8 / -1;
    grid-row: 2;
    width: auto;
    max-width: none;
    margin-top: 178px;
  }

  .banner-video {
    max-height: 56vw;
  }

  .our-framework-wrap {
    align-items: start;
  }

  .our-framework-left-col {
    width: min(32%, 360px);
  }

  .our-framework-right-col {
    width: 68%;
    padding-left: clamp(32px, 5vw, 72px);
  }
}

@media (max-width: 1023px) {
  .section {
    padding-block: var(--section-space);
  }

  .section-bottom {
    padding-bottom: var(--section-space);
  }

  .banner-right-col {
    padding-left: 0;
  }

  .what-we-do-tab button,
  .our-framework-tab-head a {
    min-height: 44px;
  }
}

@media (max-width: 767px) {
  :root {
    --section-space: 56px;
  }

  .banner-blog-left ul li a,
  .footer-menu a {
    min-height: 44px;
    align-items: center;
  }

  .contact-form-holder input,
  .contact-form-holder select,
  .contact-form-holder textarea {
    font-size: 16px;
  }
}

/* Reflow the agency grid instead of shrinking the desktop composition. */
@media (max-width: 1199px) {
  .the-agency-lines {
    display: none !important;
  }

  .the-agency-holder {
    padding-inline: 0;
  }

  .the-agency-wrap {
    width: calc(100% - (var(--layout-gutter) * 2));
    max-width: var(--layout-max);
    border-right: 1px solid #404040;
    border-left: 1px solid #404040;
  }

  .the-agency-col,
  .the-agency-col:nth-child(n) {
    display: block;
    width: 50%;
    order: initial;
  }

  .the-agency-info-holder {
    min-height: clamp(250px, 27vw, 320px);
    margin: 0 0 -1px;
    padding: clamp(26px, 3vw, 38px);
  }

  .the-agency-col:nth-child(odd) .the-agency-info-holder {
    border-right: 1px solid #404040;
  }

  .the-agency-col:nth-child(even) .the-agency-info-holder {
    border-right: 0;
  }

  .the-agency-col .the-agency-info-holder::before,
  .the-agency-col .the-agency-info-holder::after {
    display: none !important;
  }

  .the-agency-info-top h2 {
    font-size: clamp(52px, 7vw, 72px);
  }

  .the-agency-info-bottom h4,
  .the-agency-info-top h4,
  .the-agency-info-bottom h3 {
    overflow-wrap: normal;
  }

  .the-agency-info-holder p {
    max-width: 34ch;
    font-size: clamp(13px, 1.45vw, 16px);
  }

  .about-company-img {
    max-width: 280px;
    margin: auto;
  }
}

@media (max-width: 767px) {
  .the-agency-wrap {
    width: calc(100% - (var(--layout-gutter) * 2));
  }

  .the-agency-col,
  .the-agency-col:nth-child(n) {
    width: 100%;
    order: initial;
  }

  .the-agency-col:nth-child(2),
  .the-agency-col:nth-child(5) {
    display: none;
  }

  .the-agency-col .the-agency-info-holder {
    min-height: 220px;
    padding: 30px 22px;
    border-right: 0;
  }

  .the-agency-col:nth-child(1) .the-agency-info-holder,
  .the-agency-col:nth-child(3) .the-agency-info-holder,
  .the-agency-col:nth-child(8) .the-agency-info-holder {
    min-height: 260px;
  }

  .about-company-img-mob {
    display: block;
    width: min(42%, 150px);
  }
  .about-company-img-mob svg {
      width: 100%;
      height: 100%;
  }
  .the-agency-info-wrap.the-agency-info-mob {
    display: flex;
  }

  .the-agency-info-top h2 {
    font-size: clamp(48px, 15vw, 64px);
  }

  .the-agency-info-holder p {
    max-width: 30ch;
    font-size: 14px;
  }
}
@media (max-width: 575px) {
.the-agency-info-holder p {
    max-width: 40ch;
}
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}


/** ================== // HEADER BLACK CSS START // ================== **/
.black-header .header-full {
    background: #000;
    border-bottom: 1px solid #6c6c6c;
}
.black-header .logo img {
    filter: brightness(0) invert(1);
}
.black-header .header-right::before {
    background: #6c6c6c;
}
.black-header .header-right {
    border-left: 1px solid #6c6c6c;
}
.black-header .navigation .menu-item-has-children > a::after {
    filter: brightness(0) invert(1);
}
.black-header .nav-manu ul li > a:hover, .black-header .nav-manu ul li.mega-item-children.open > a {
    background: #1e1e1e;
}
.black-header .head-nav-heading h1, .black-header .head-nav-heading h2, .black-header .head-nav-heading h3, .black-header .head-nav-heading p {
    color: #fff;
}
.black-header .btn-href-link, .black-header .btn-href-link:hover {
    color: #fff;
}
.black-header .btn-href-link img {
    filter: brightness(0) invert(1);
}
.black-header .navigation {
    background: #000;
}
.black-header .megamenu-section {
    background: #000;
    border-top: 1px solid #6c6c6c;
    border-bottom: 1px solid #6c6c6c;
}
.black-header .nav-manu ul li> a {
    color: #ffffff;
}
.black-header .nav-service-dropdown-info h4 {
    color: #fff;
}
.black-header .nav-service-dropdown-item-wrap:hover {
    background: #1e1e1e;
}
.black-header .nav-manu .nav-tabbinng-list ul li.open a {
    background: #F3F3F3;
    color: #000;
}
.black-header .nav-service-dropdown-menu-item h6 {
    color: #cfcfcf;
}
.black-header .nav-service-dropdown-icon img {
    filter: brightness(0) invert(1);
}
.btn-href-link.lefs-white, .btn-href-link.lefs-white:hover {
    color: #fff;
}
.btn-href-link.lefs-white img {
    filter: brightness(0) invert(1);
}
@media (min-width: 1024px) {
    .black-header .nav-manu ul li> a {
        color: #ABABAB;
    }
}
@media (max-width: 1023px) {
    .black-header .header-right {
        border-left: 0px;
    }
    .black-header .head-nav-heading-wrap.head-nav-heading-hide-desktop {
        border-top: 1px solid #6c6c6c;
        border-bottom: 1px solid #6c6c6c;
        background: #000;
    }
    .black-header .header-full {
        border-bottom: 0;
    }
    .black-header .menu-bar svg path {
        stroke: #fff;
    }
    .black-header .menu-bar svg {
        fill: rgb(255 255 255);
        stroke: rgb(255 255 255);
        color: #ffffff;
    }
    .mobile-menu .black-header .logo {
        border-right: 1px solid #6c6c6c;
        justify-content: flex-start;
    }
    .black-header .megamenu-section {
        border: 0;
    }
}

/** ================== // HEADER BLACK CSS END // ================== **/

/** ================== // BRAND HIGHLIGHT SLIDER CSS START // ================== **/
.cs-rotator {
    --cs-dwell: 2s;        /* time each slide stays on screen        */
    --cs-fade-out: 200ms;  /* outgoing slide fade-out duration       */
    --cs-fade-gap: 150ms;  /* pause between outgoing out / incoming in */
    --cs-fade-in: 200ms;   /* incoming slide fade-in duration        */
    --cs-dot-size: 6px;    /* dot diameter                           */
    position: relative;
}
.brand-highlight-track {
    display: grid;
}
.brand-highlight-track .brand-highlight-wrap {
    grid-area: 1 / 1 / -1 / -1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--cs-fade-out) ease-in, visibility 0s linear var(--cs-fade-out);
}
.brand-highlight-track .brand-highlight-wrap.active {
    position: relative;
    z-index: 2;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity var(--cs-fade-in) ease-out var(--cs-fade-gap), visibility 0s linear;
}
.brand-highlight-track .brand-highlight-wrap img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.brand-highlight-footer {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 16px;
   padding: 0 4px;
   margin-top: 16px;
}
.brand-highlight-footer .brand-highlight-btn {
    margin: 0;
}
.brand-highlight-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}
.brand-highlight-dot {
    width: var(--cs-dot-size);
    height: var(--cs-dot-size);
    padding: 0;
    border: none;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.brand-highlight-dot.active {
    background-color: #000;
    transform: scale(1.25);
}
@media (prefers-reduced-motion: reduce) {
    .brand-highlight-track .brand-highlight-wrap,
    .brand-highlight-track .brand-highlight-wrap.active,
    .brand-highlight-dot {
        transition: none !important;
    }
}
/** ================== // BRAND HIGHLIGHT SLIDER CSS END // ================== **/
