@media (max-width: 1024px) {
  html,
  body {
    overflow-x: hidden;
  }

  body * {
    min-width: 0;
  }

  img,
  svg,
  video,
  canvas {
    max-width: 100%;
    height: auto;
  }

  /* Keep Hamburger Icon static (no cross transformation) */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: none !important;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 1 !important;
    transform: none !important;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: none !important;
  }

  .container {
    width: min(1280px, calc(100% - 24px)) !important;
  }

  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(1280px, calc(100% - 20px)) !important;
  }

  .site-header .nav-wrap {
    padding-inline: 12px !important;
  }

  .home-page .split-grid,
  .home-page .capabilities-header,
  .home-page .faq-split-content,
  .home-page .contact-home-grid,
  .about-manufacturing-grid,
  .founder-grid,
  .contact-grid-main,
  .detail-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  .home-page .section,
  .home-page .section-capabilities,
  .home-page .global-reach,
  .home-page .faqs,
  .home-page #contact {
    padding: 44px 0 !important;
  }

  .home-page .products-wrap,
  .home-page .faq-header,
  .home-page .why-header,
  .home-page .global-reach-header,
  .home-page .contact-home-copy {
    gap: 16px !important;
  }

  .home-page .capabilities-header,
  .home-page .faq-split-content,
  .home-page .contact-home-grid {
    gap: 20px !important;
  }

  .home-page .why-grid,
  .home-page .contact-meta-grid {
    margin-top: 20px !important;
    gap: 14px !important;
  }

  .home-page .faq-list {
    gap: 12px !important;
  }

  .home-page .faq-answer,
  .home-page .contact-home-copy .lead,
  .home-page .header-right .lead,
  .home-page .global-reach-header .lead,
  .home-page .why-header .lead {
    margin-top: 0 !important;
  }

  .home-page .about-copy,
  .home-page .faq-visual,
  .home-page .faq-list,
  .home-page .contact-home-copy,
  .home-page .home-contact-form,
  .contact-copy,
  .contact-info,
  .contact-panel,
  .detail-copy,
  .career-form,
  .segment-col-info,
  .segment-col-image,
  .segment-col-features {
    width: 100% !important;
    max-width: 100% !important;
  }

  .home-page .capabilities-header,
  .home-page .faq-header,
  .home-page .why-header,
  .home-page .global-reach-header,
  .home-page .contact-home-copy,
  .about-hero-copy,
  .export-header,
  .global-reach-header,
  .founder-info,
  .contact-copy,
  .contact-info,
  .career-hero-copy,
  .title-row,
  .meta,
  .product-hero-copy {
    text-align: center !important;
    align-items: center !important;
  }

  .home-page .hero-cta,
  .home-page .header-cta,
  .contact-social-icons,
  .social-links {
    justify-content: center !important;
  }

  .home-page .hero-cta .btn,
  .home-page .header-cta .btn,
  .site-nav .btn {
    width: min(100%, 320px) !important;
  }

  .home-page .contact-meta-grid,
  .home-page .why-grid,
  .about-page .cap-grid,
  .footer-links-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .contact-panel .row,
  .home-page .home-contact-form .row {
    grid-template-columns: 1fr !important;
  }

  .home-page .product-slider-controls {
    position: static !important;
    transform: none !important;
    justify-content: center !important;
    margin-bottom: 14px !important;
  }

  .home-page .product-card {
    flex: 0 0 calc(100% - 12px) !important;
    height: 380px !important;
  }

  .home-page .home-contact-form {
    order: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .home-page .faq-visual img,
  .home-page .global-map,
  .about-page .global-map,
  .product-page .segment-col-image img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10;
    object-fit: cover !important;
  }

  .home-page .home-contact-form,
  .contact-panel,
  .career-form,
  .founder-card,
  .segment.expanded,
  .opening-card {
    padding: 24px 18px !important;
    border-radius: 18px !important;
  }

  .footer-brand,
  .footer-column,
  .footer-bottom {
    text-align: center !important;
    align-items: center !important;
  }

  .footer-brand {
    height: auto !important; /* Reset desktop fixed height */
    flex: none !important;   /* Reset desktop flex basis */
  }

  .footer-top {
    gap: 20px !important; /* Reduced from 40px/60px */
  }

  .home-page .why-choose,
  .home-page .faqs {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
  }

  .home-page .why-choose {
    padding: 28px 16px !important;
    border-radius: 24px !important;
  }

  .home-page .faqs {
    padding: 28px 16px !important;
    border-radius: 24px !important;
    background: #ffffff !important;
  }

  .home-page .why-choose::before,
  .home-page .why-choose::after {
    display: none !important;
  }

  .home-page .why-choose .container {
    gap: 10px !important;
  }

  .home-page .why-header {
    gap: 8px !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 0 !important;
  }

  .home-page .why-title-block {
    flex: none !important;
    height: auto !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .home-page .why-header .lead,
  .home-page .global-reach-title-block,
  .home-page .global-reach-header .lead,
  .home-page .faq-title-block,
  .home-page .faq-header .lead {
    flex: none !important;
    height: auto !important;
  }

  .home-page .why-header .lead {
    max-width: 100% !important;
    font-size: 15px !important;
    line-height: 22px !important;
    margin: 0 !important;
  }

  .home-page .why-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 2px !important;
    align-items: start !important;
  }

  .home-page .why-card {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    flex: none !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 18px 16px !important;
    gap: 8px !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  }

  /* Footer 3-Column Side-by-Side Grid */
  .footer-links-wrap {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px 8px !important;
    width: 100% !important;
    text-align: left !important;
    margin-top: 0 !important; /* Removed extra margin */
  }

  .footer-column {
    padding: 0 !important;
    min-width: 0 !important; /* Prevent overflow */
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .footer-column h4 {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 12px !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    white-space: nowrap !important;
  }

  .footer-column .links {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .footer-column .links a {
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #ffffff !important;
    text-align: left !important;
    overflow-wrap: break-word !important;
  }

  .home-page .why-card .icon-box {
    width: 48px !important;
    height: 48px !important;
    padding: 10px !important;
    margin-bottom: 0 !important;
  }

  .home-page .why-card .icon-box img {
    width: 24px !important;
    height: 24px !important;
  }

  .home-page .why-card h3,
  .home-page .why-grid .why-card:nth-child(1) h3 {
    min-height: 0 !important;
    font-size: 17px !important;
    line-height: 22px !important;
  }

  .home-page .why-card p,
  .home-page .why-grid .why-card:nth-child(2) p {
    display: block !important;
    min-height: 0 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    margin: 0 !important;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1280px, calc(100% - 16px)) !important;
  }

  .logo,
  .logo img {
    width: 118px !important;
    height: 38px !important;
  }

  .site-header {
    min-height: 60px !important;
  }

  .site-header .nav-wrap {
    min-height: 54px !important;
    padding: 8px 12px !important;
  }

  .site-nav {
    top: 60px !important;
    height: calc(100vh - 60px) !important;
    padding: 20px 16px 28px !important;
    gap: 18px !important;
  }

  .site-nav .nav-links > a {
    font-size: 16px !important;
    padding: 12px 16px !important;
  }

  .home-page h1,
  .about-page h1,
  .career-page h1,
  .career-detail-page .title-row h1,
  .contact-page h1,
  .product-page h1 {
    font-size: clamp(30px, 9vw, 38px) !important;
    line-height: 1.15 !important;
  }

  h2 {
    font-size: clamp(26px, 8vw, 32px) !important;
    line-height: 1.2 !important;
  }

  .lead,
  p,
  li {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .home-page .hero {
    padding: 72px 0 28px !important;
  }

  .home-page .section,
  .home-page .section-capabilities,
  .home-page .global-reach,
  .home-page .faqs,
  .home-page #contact {
    padding: 32px 0 !important;
  }

  .home-page .split-grid,
  .home-page .capabilities-header,
  .home-page .faq-split-content,
  .home-page .contact-home-grid {
    gap: 16px !important;
  }

  .home-page .products-wrap,
  .home-page .faq-header,
  .home-page .why-header,
  .home-page .global-reach-header,
  .home-page .contact-home-copy {
    gap: 12px !important;
  }

  .home-page .why-grid,
  .home-page .contact-meta-grid {
    margin-top: 16px !important;
    gap: 12px !important;
  }

  .home-page .faq-list {
    gap: 10px !important;
  }

  .home-page .faq-item,
  .home-page .why-card,
  .home-page .hero-stat-card {
    padding: 16px 14px !important;
  }

  .home-page .home-contact-form {
    gap: 16px !important;
  }

  .home-page .contact-meta-grid,
  .home-page .why-grid,
  .about-page .cap-grid {
    grid-template-columns: 1fr !important;
  }

  .home-page .product-card {
    height: 340px !important;
  }

  .home-page .product-tag-white {
    max-width: calc(100% - 24px) !important;
    font-size: 13px !important;
  }

  .home-page .faq-visual img,
  .home-page .global-map,
  .about-page .global-map,
  .product-page .segment-col-image img {
    aspect-ratio: 4 / 3 !important;
  }

  .home-page .home-contact-form,
  .contact-panel,
  .career-form,
  .founder-card,
  .segment.expanded {
    padding: 20px 16px !important;
  }

  .footer-brand .footer-logo,
  .footer-brand .footer-logo img {
    width: 156px !important;
    height: auto !important;
  }

  .home-page .why-choose,
  .home-page .faqs {
    width: calc(100% - 16px) !important;
    max-width: calc(100% - 16px) !important;
  }

  .home-page .why-choose {
    padding: 24px 12px !important;
    border-radius: 20px !important;
  }

  .home-page .faqs {
    padding: 24px 12px !important;
    border-radius: 20px !important;
    background: #ffffff !important;
  }

  .home-page .why-choose .container {
    gap: 8px !important;
  }

  .home-page .why-grid {
    gap: 6px !important;
    margin-top: 0 !important;
  }

  .home-page .why-card {
    padding: 14px 14px !important;
    gap: 6px !important;
    border-radius: 16px !important;
  }

  .home-page .why-card .icon-box {
    width: 42px !important;
    height: 42px !important;
    padding: 9px !important;
  }

  .home-page .why-card h3 {
    font-size: 16px !important;
    line-height: 20px !important;
  }

  .home-page .why-card p {
    font-size: 13px !important;
    line-height: 18px !important;
  }
}

@media (max-width: 400px) {
  .container {
    width: calc(100% - 14px) !important;
  }

  .home-page .hero-stat-card {
    padding: 14px 12px !important;
  }

  .home-page .section,
  .home-page .section-capabilities,
  .home-page .global-reach,
  .home-page .faqs,
  .home-page #contact {
    padding: 26px 0 !important;
  }

  .home-page .hero {
    padding: 68px 0 24px !important;
  }

  .home-page .hero-content,
  .home-page .split-grid,
  .home-page .capabilities-header,
  .home-page .faq-split-content,
  .home-page .contact-home-grid,
  .home-page .products-wrap,
  .home-page .faq-header,
  .home-page .why-header,
  .home-page .global-reach-header,
  .home-page .contact-home-copy {
    gap: 10px !important;
  }

  .home-page .product-card {
    height: 320px !important;
  }

  .home-page .home-contact-form .phone-input-wrap {
    padding: 10px 12px !important;
  }
}

@media (max-width: 820px) {
  .home-page section.why-choose {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  .home-page .why-choose > .container {
    gap: 6px !important;
    margin-bottom: 0 !important;
  }

  .home-page .why-choose > .container > .why-header {
    gap: 6px !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .home-page .why-choose > .container > .why-header .lead {
    margin: 0 !important;
  }

  .home-page .why-choose > .why-grid {
    margin-top: 0 !important;
    padding-top: 0 !important;
    gap: 4px !important;
    row-gap: 4px !important;
  }

  .home-page .why-choose > .why-grid > .why-card {
    padding: 14px 14px !important;
    gap: 6px !important;
  }
}

@media (max-width: 640px) {
  .home-page .why-choose {
    padding: 18px 12px !important;
  }

  .home-page .why-choose > .container {
    gap: 4px !important;
  }

  .home-page .why-choose > .container > .why-header {
    gap: 4px !important;
  }

  .home-page .why-choose > .why-grid {
    gap: 3px !important;
    row-gap: 3px !important;
  }

  .home-page .why-choose > .why-grid > .why-card {
    padding: 12px 12px !important;
    gap: 4px !important;
  }
}
