@media (max-width: 1199.98px) {
  .nav-link {
    padding-left: 6px !important;
    padding-right: 6px !important;
    font-size: 0.84rem;
  }

  .hero {
    min-height: 660px;
  }
}

@media (max-width: 991.98px) {
  .section {
    padding: 68px 0;
  }

  .site-navbar {
    padding: 12px 0;
  }

  .site-navbar.nav-floating,
  .site-navbar.nav-sticky {
    width: 94%;
  }

  .nav-shell {
    border-radius: 24px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.94);
  }

  .site-navbar.nav-floating .nav-shell,
  .site-navbar.nav-sticky .nav-shell {
    border-radius: 9999px;
  }

  .navbar-collapse {
    margin-top: 14px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .nav-link,
  .site-navbar.scrolled .nav-link,
  .site-navbar.inner .nav-link {
    color: var(--navy);
    padding: 12px 8px !important;
  }

  .mega-menu {
    position: static;
    width: 100%;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    padding: 16px;
    box-shadow: none;
    border-radius: 18px;
    background: rgba(var(--primary-rgb), 0.05);
  }

  .nav-item.has-mega.open .mega-menu,
  .nav-item.has-mega:hover .mega-menu {
    display: block;
    transform: none;
  }

  .hero {
    height: auto;
    min-height: 680px;
  }

  .hero-slide {
    min-height: 680px;
  }

  .hero-content {
    padding-top: 120px;
    padding-left: 60px;
    padding-right: 32px;
    text-align: left;
  }

  .hero-content .hero-badge,
  .hero-content h1,
  .hero-content > .d-flex {
    max-width: 720px;
  }

  .hero-content h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 24px;
  }

  .hero-content p {
    max-width: 600px;
    font-size: 18px;
    margin: 0 0 32px;
  }

  .hero-content > .d-flex {
    justify-content: flex-start;
    gap: 18px !important;
    flex-direction: row;
  }

  .image-stack img {
    min-height: 360px;
  }

  .floating-card {
    position: static;
    max-width: none;
    margin-top: -40px;
    margin-left: 18px;
    margin-right: 18px;
  }

  .cta-banner {
    padding: 40px 28px;
  }

  .service-sidebar {
    position: static;
    margin-bottom: 10px;
  }

  .service-sidebar nav {
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  .service-long-card > img {
    height: 320px;
  }

  .product-detail-card > img {
    height: auto !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  .hero::before,
  .hero::after,
  .page-hero::after {
    opacity: 0.38;
    transform: scale(0.82);
  }

  .industry-card {
    min-height: 210px;
  }
}

@media (max-width: 767.98px) {
  h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(1.5rem, 6.5vw, 2.1rem);
    line-height: 1.18;
  }

  h3,
  .h3 {
    font-size: 1.25rem;
  }

  .h4 {
    font-size: 1.12rem;
  }

  .h5 {
    font-size: 1rem;
  }

  .hero,
  .hero-slide {
    min-height: 640px;
  }

  .hero-metrics {
    gap: 10px;
  }

  .hero-metric {
    min-width: calc(50% - 5px);
    padding: 12px;
  }

  .counter-grid {
    grid-template-columns: 1fr;
  }

  .service-img,
  .product-img {
    height: 190px;
  }

  .gallery-item .gallery-img,
  .gallery-item.tall .gallery-img {
    height: 260px;
  }

  .contact-panel {
    padding: 24px;
  }

  .page-hero {
    min-height: 340px;
    padding: 125px 0 52px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }

  .back-to-top {
    right: 16px;
    bottom: 86px;
    width: 46px;
    height: 46px;
  }

  .service-detail-page {
    padding: 56px 0 70px;
  }

  .service-intro-card,
  .service-long-body {
    padding: 24px;
  }

  .service-stats-row,
  .service-info-grid,
  .service-sidebar nav {
    grid-template-columns: 1fr;
  }

  .service-long-card > img {
    height: 245px;
  }

  .service-sidebar {
    padding: 22px;
  }

  .service-page-hero,
  .product-page-hero {
    min-height: 390px;
  }

  .service-info-grid > div,
  .service-faq-mini,
  .service-intro-card,
  .service-long-card,
  .contact-panel {
    border-radius: 20px;
  }

  .industry-card {
    min-height: 190px;
  }

  .product-spec-table {
    grid-template-columns: 1fr;
  }

  .product-detail-card > img {
    height: auto !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  .single-service-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .single-service-footer .btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .hero .d-flex.gap-3 {
    flex-direction: row;
    justify-content: flex-start;
    gap: 18px !important;
  }

  .hero .btn {
    width: auto;
  }

  .hero-content {
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
    text-align: left;
  }

  .hero-content .hero-badge,
  .hero-content h1,
  .hero-content > .d-flex {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 24px;
  }

  .hero-content p {
    max-width: 100%;
    font-size: 16px;
    margin: 0 0 32px;
  }

  .hero-metric strong {
    font-size: 1.25rem;
  }

  .brand-text {
    font-size: 0.92rem;
  }

  .brand-text span {
    font-size: 0.62rem;
  }

  .navbar-brand {
    min-width: 188px;
    margin-right: 10px;
  }

  .site-logo {
    width: min(188px, 58vw);
    height: 42px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .logo-item {
    min-width: 170px;
  }

  .footer-brand img {
    width: 180px;
    height: 38px;
  }

  .footer {
    padding-top: 64px;
  }

  .hero::before,
  .hero::after,
  .page-hero::after {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .director-message {
    padding: 24px;
    border-radius: 24px;
  }

  .director-photo {
    border-radius: 22px;
  }

  .director-photo img {
    height: 360px;
  }

  .director-message p {
    font-size: 0.98rem;
    line-height: 1.75;
  }
}
