/* Base */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1320px !important;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ========== Mobile (<=639px) ========== */
@media (max-width: 639px) {
  .hero-swiper {
    min-height: 520px;
    height: min(720px, 100svh);
  }

  .hero-nav {
    top: 36% !important;
    width: 40px !important;
    height: 40px !important;
  }

  .hero .swiper-slide > .relative {
    padding-bottom: 230px;
  }

  .hero-bottom .grid {
    gap: 0;
  }

  .hero-bottom .grid > div {
    padding-left: 6px;
    padding-right: 6px;
  }

  .about-heading-rule {
    width: 64px;
  }

  .about-trust {
    max-width: 100%;
  }

  .service-card {
    padding: 22px !important;
  }

  .service-card-icon,
  .service-card-cta .inline-flex.h-20 {
    width: 64px !important;
    height: 64px !important;
  }

  .service-card h3,
  .service-card-cta span.font-semibold {
    font-size: 20px !important;
    line-height: 1.35 !important;
  }

  .tech-section .grid > div {
    height: 120px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .tech-section .grid img {
    width: 56px !important;
    height: 56px !important;
  }

  .industries-swiper .swiper-slide {
    width: 260px !important;
  }

  .industry-card {
    height: 340px !important;
  }

  .why-choose-section .flex.w-full.items-center {
    gap: 10px;
  }

  .why-choose-section .flex.w-full.items-center img {
    width: calc(50% - 5px) !important;
    max-width: none !important;
    height: 240px !important;
  }
}

/* ========== Tablet (640px - 1023px) ========== */
@media (min-width: 640px) and (max-width: 1023px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-swiper {
    min-height: 560px;
    height: min(780px, 100svh);
  }

  .hero .swiper-slide > .relative {
    padding-bottom: 200px;
  }

  .about-layout {
    gap: 2rem;
  }

  .service-card {
    min-height: 100%;
  }

  .tech-section .grid > div {
    height: 140px;
  }

  .industries-swiper .swiper-slide {
    width: 300px !important;
  }

  .why-choose-section .flex.w-full.items-center img {
    width: calc(50% - 8px) !important;
    height: 320px !important;
  }
}

/* ========== Laptop (1024px - 1279px) ========== */
@media (min-width: 1024px) and (max-width: 1279px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .site-header > div {
    height: 78px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .site-logo img {
    height: 46px;
  }

  .hero-swiper {
    min-height: 620px;
    height: min(760px, calc(100svh - 78px));
  }

  .hero .swiper-slide > .relative > div,
  .hero-bottom > div {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  .hero h1 {
    font-size: 44px !important;
    line-height: 1.15 !important;
    max-width: 620px;
  }

  .hero-bottom {
    min-height: 140px;
  }

  .about-header {
    gap: 1.5rem;
  }

  .about-heading {
    font-size: 30px !important;
    line-height: 1.3 !important;
  }

  .about-heading-rule {
    width: 72px;
  }

  .about-layout {
    gap: 2rem;
  }

  .services-section h2,
  .tech-section h2,
  .industries-section h2,
  .why-choose-section h2 {
    font-size: 30px !important;
    line-height: 1.3 !important;
  }

  .service-card h3 {
    font-size: 20px !important;
    line-height: 1.35 !important;
  }

  .tech-section .grid > div {
    height: 132px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .tech-section .grid img {
    width: 60px !important;
    height: 60px !important;
  }

  .industries-swiper .swiper-slide {
    width: 300px !important;
  }

  .industry-card {
    height: 400px !important;
  }
}

/* ========== Desktop / large laptop (1280px - 1535px) ========== */
@media (min-width: 1280px) and (max-width: 1535px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }

  .site-header > div {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero .swiper-slide > .relative > div,
  .hero-bottom > div {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }

  .hero h1 {
    font-size: 52px !important;
  }
}

/* ========== Wide desktop (>=1536px) ========== */
@media (min-width: 1536px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Shared section helpers */
@media (max-width: 1279px) {
  .site-header [data-mobile-menu].is-open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
}

@media (max-width: 1023px) {
  .about-media {
    margin-left: -16px;
    width: calc(100% + 16px);
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .about-media {
    margin-left: -24px;
    width: calc(100% + 24px);
  }
}

@media (min-width: 1024px) {
  .hero-bottom {
    min-height: 152px;
  }

  .hero .swiper-slide > .relative {
    padding-bottom: 168px;
  }
}
