img {
  max-width: 100%;
}

.whatWeBuildSection{padding-top: 100px;padding-bottom: 10vh;}

@media (max-width: 768px) {
  /* 80% wide containers leave too little room on phones; use a fixed gutter */
  .section-container,
  .site-header .header-container,
  .headerWrapper,
  .footer-wrapper {
    width: auto;
    margin-left: 20px;
    margin-right: 20px;
  }

  .site-header {
    padding: 20px 0;
  }

  .site-header .header-container {
    margin-top: 0;
  }

  .header-logo img,
  #headerLogo {
    height: 30px;
    width: auto;
  }

  .home-hero {
    padding-top: 110px;
    padding-bottom: 40px;
  }

  .hero-content p {
    line-height: 1.6;
  }
}


/* =====================================================================
   FOOTER (footer.html)
   ===================================================================== */

@media (max-width: 991px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 0;
  }

  .footer-logo {
    grid-column: 1 / -1;
  }

  .cta-box {
    min-height: 0;
    margin-top: 60px;
    padding: 50px 0;
  }

  .footer-links {
    justify-content: center;
    gap: 12px 24px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .cta-content p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-column h4 {
    margin-bottom: 16px;
  }

  .footer-column li {
    margin-bottom: 12px;
  }

  .cta-content h2 br {
    display: none;
  }
}


/* =====================================================================
   HOME (index.html)
   ===================================================================== */

/* ---- Hero ---- */
@media (max-width: 950px) {
  .mainTitle {
    padding-top: 40px;
  }

  .buttonTitleholder {
    width: 100%;
    max-width: 500px;
  }

  .whatWeBuildSection{padding-top: 50px}
}

@media (max-width: 480px) {
  .buttonTitleholder {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: unset;
  }

  .buttonTitleholder a,
  .buttonTitleholder button {
    width: 100%;
  }
}

/* ---- Section titles (shared by Products / What We Build / Markets) ---- */
@media (max-width: 1200px) {
  .sectionTitle h3 {
    font-size: 44px;
  }
}

@media (max-width: 950px) {
  /* first h3 in a sectionTitle is the small eyebrow label, not a heading */
  .sectionTitle > h3:first-child {
    font-size: 14px !important;
    font-weight: 400;
  }
}

/* ---- Products ---- */
@media (max-width: 1200px) {
  .productsSection {
    height: auto;
    padding: 80px 0;
    gap: 40px;
  }

  .productsSectionTitle {
    height: auto;
    row-gap: 12px;
  }

  .productsSectionGrid {
    height: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .productsSectionPanel {
    width: auto;
  }

  .productsSectionPanelImage img {
    object-fit: contain;
  }

  .productsSectionPanelImage .imgWide {
    width: 100%;
    max-width: 239px;
  }

  .productsSectionPanelDescription {
    height: auto;
    min-height: 150px;
  }
}

@media (max-width: 768px) {
  .productsSection {
    padding: 60px 0;
  }

  .productsSectionTitle {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
  }

  .productsSectionGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .productsSectionPanelImage {
    height: 200px;
    padding: 16px;
  }

  .productsSectionPanelImage img {
    height: 150px;
  }

  .productsSectionPanelDescription {
    padding: 16px;
    min-height: 0;
  }

  .productsSectionPanelDescription h3 {
    font-size: 18px !important;
  }
}

@media (max-width: 480px) {
  .productsSectionGrid {
    grid-template-columns: 1fr;
  }
}

/* ---- What We Build ---- */
@media (max-width: 1200px) {
  .whatWeBuildSectionTitle {
    h3:nth-child(2){
      font-size: 44px;
    }
  }

}

@media (max-width: 950px){
  .whatWeBuildSectionTitle {
    display: block;
    h3:first-child {
      font-size: 14px !important;
      font-weight: 400;
    }
    .whatWeBuildTitle{
      margin-bottom: 12px;
    }
  }

}

/* ---- What We Build (stacking panels) ---- */
@media (max-width: 992px) {
  .whatWeBuildSection {
    padding: 60px 0;
  }

  .whatWeBuildSectionContainer{
    --stack-top: 20px;
    --stack-offset: 16px;
  }

  .whatWeBuildContainer {
    --stack-top: 145px;
    --stack-offset: 16px;
    gap: 30vh;
    margin-top: 30px;
  }

  .whatWeBuildPanel {
    grid-template-columns: 60px 1fr;
    padding: 24px;
    gap: 16px 20px;
  }


  /* image moves below the number + text */
  .whatWeBuildPanel > div:nth-child(2) {
    grid-column: 1 / -1;
    order: 2;
  }

  .whatWeBuildPanel img {
    display: block;
    width: 100%;
    height: auto;
  }
}

@media (max-width: 437px){
  .whatWeBuildContainer {
    --stack-top: 199px;
    --stack-offset: 16px;
  }
}

@media (max-width: 768px) {
  .whatWeBuildPanel {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .whatWeBuildPanel h2 {
    font-size: 28px !important;
  }

  .whatWeBuildPanel h3 {
    font-size: 18px !important;
  }

  /* keep each panel short enough to fit on screen while it is stuck */
  .whatWeBuildPanel img {
    width: auto;
    max-height: 28vh;
  }
}

/* ---- Markets Served ---- */
@media (max-width: 1200px) {
  .marketsServedSection {
    padding: 80px 0;
  }

  .marketsServedContainer {
    grid-template-columns: 300px 1fr;
  }

  .marketsServedPanel {
    width: auto;
  }
}

@media (max-width: 992px) {
  .marketsServedContainer {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
}

@media (max-width: 768px) {
  .marketsServedSection {
    padding: 60px 0;
  }

  .marketsServedGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .marketsServedPanel {
    height: auto;
    min-height: 130px;
    padding: 18px;
    font-size: 16px;
    border-radius: 14px;
    gap: 16px;
  }

  .marketsServedPanel img {
    height: 28px;
  }
}


/* =====================================================================
   ABOUT US (aboutUs.html)
   ===================================================================== */

@media (max-width: 1200px) {
  .mission-card h3 {
    font-size: 36px;
  }

  .dark-card p {
    font-size: 22px;
  }
}

@media (max-width: 991px) {
  .who-we-are,
  .purpose-section {
    padding: 60px 0;
  }

  .section-title h2 br {
    display: none;
  }

  .mission-card {
    padding: 28px;
  }

  .dark-card {
    padding: 28px;
    min-height: 0;
  }

  .red {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .section-content p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .purpose-header {
    margin-bottom: 36px;
  }

  .mission-card {
    min-height: 0;
    gap: 40px;
  }

  .mission-card h3 {
    font-size: 24px !important;
  }

  .dark-card p {
    font-size: 18px;
  }
}


/* =====================================================================
   CONTACT US (contactUs.html)
   ===================================================================== */

@media (max-width: 992px) {
  .contact-section,
  .accessibility-section {
    padding: 60px 0;
  }

  .career-cta {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .info-block a {
    font-size: 17px;
    overflow-wrap: anywhere;
  }

  .divider {
    margin: 24px 0;
  }

  .contact-form p {
    margin-bottom: 24px;
  }

  .contact-form .row {
    gap: 15px;
  }

  .contact-form button {
    width: 100%;
  }

  .access-card {
    overflow-wrap: anywhere;
  }

  .career-content {
    padding: 30px 20px;
  }
}


/* =====================================================================
   FIND A REP (findAResp.html)
   ===================================================================== */

@media (max-width: 1200px) {
  .support-layout {
    gap: 50px;
  }

  /* two columns of 280px cards no longer fit beside the intro text */
  .card-grid {
    grid-template-columns: 1fr;
  }

  .website-link {
    position: static;
  }

  .website-icon-link {
    padding-bottom: 0;
  }
}

@media (max-width: 992px) {
  .find-a-resp {
    padding-top: 60px;
    padding-bottom: 20px;
  }

  .country-section {
    margin-bottom: 50px;
  }
}

@media (max-width: 768px) {
  .support-content h2 br {
    display: none;
  }

  .country-section h3 {
    margin-bottom: 20px;
  }

  .rep-card h4 {
    font-size: 17px;
  }

  .rep-card ul li,
  .website-link a {
    overflow-wrap: anywhere;
  }
}


/* =====================================================================
   PRODUCTS (products.html)
   ===================================================================== */

@media (max-width: 1200px) {
  .product-container {
    grid-template-columns: 260px 1fr;
    gap: 40px;
  }

  .product-menu a {
    font-size: 18px;
  }

  .product-section .products-grid {
    gap: 50px 24px;
  }
}

@media (max-width: 992px) {
  .product-section {
    padding: 50px 0;
  }

  .product-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* sidebar becomes a horizontally scrolling row of filter chips */
  .product-menu {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .product-menu li,
  .product-menu li:last-child {
    border: 1px solid #d0d0d0;
    border-radius: 999px;
    flex: 0 0 auto;
  }

  .product-menu li.active {
    border-color: #111;
  }

  .product-menu a {
    padding: 8px 16px;
    font-size: 15px;
    white-space: nowrap;
  }

  .product-section .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 20px;
  }
}

@media (max-width: 600px) {
  .product-section .products-grid {
    grid-template-columns: 1fr;
  }

  .product-section .product-title {
    font-size: 20px !important;
  }

  .product-section .product-description {
    max-width: none;
  }
}


/* =====================================================================
   PRODUCT DETAILS (productDetails.html)
   ===================================================================== */

/* ---- Hero ---- */
@media (max-width: 1200px) {
  .product-content {
    padding-left: 0;
  }

  .main-image {
    height: 440px;
  }

  .main-image img {
    height: auto;
    max-height: 300px;
  }
}

@media (max-width: 900px) {
  .product-hero {
    min-height: 0;
    padding-top: 120px;
    padding-bottom: 50px;
  }

  .hero-wrapper {
    gap: 30px;
  }

  .main-image {
    height: 340px;
    border-radius: 18px;
  }

  .main-image img {
    max-height: 240px;
  }

  .product-content p {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .product-hero {
    padding-top: 100px;
  }

  .breadcrumb {
    margin-bottom: 20px;
  }

  .main-image {
    height: 260px;
    padding: 30px 16px 16px;
  }

  .main-image img {
    max-height: 180px;
  }

  .thumbs {
    gap: 8px;
  }

  .thumb {
    flex: 1 1 0;
    width: auto;
    max-width: 100px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
  }

  .product-content p {
    font-size: 16px;
    line-height: 1.7;
  }

  .product-hero .btn-group {
    flex-direction: column;
  }

  .product-hero .btn-group .btn {
    width: 100%;
  }
}

/* ---- Features / Brochure ---- */
@media (max-width: 1200px) {
  .product-info,
  .brochure-section {
    grid-template-columns: 320px 1fr;
    gap: 60px;
  }
}

@media (max-width: 991px) {
  .product-feature-brochure-section {
    padding: 60px 0;
  }

  .product-info,
  .brochure-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .brochure-section {
    margin-top: 60px;
  }

  .info-left p {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .accordion-header {
    padding: 20px 0;
    font-size: 16px;
    gap: 16px;
  }

  .icon {
    flex: 0 0 auto;
  }

  .accordion-content p {
    font-size: 16px;
  }

  .brochure-card {
    padding: 30px 0;
    gap: 16px;
  }

  .file-title {
    font-size: 16px;
  }

  .download-btn {
    flex: 0 0 auto;
  }
}

/* ---- Configuration tables ---- */
@media (max-width: 991px) {
  .configuration-header {
    margin-top: 60px;
    margin-bottom: 40px;
  }

  .product-configuration {
    padding-bottom: 60px;
  }
}

/* AKHP table is built from CSS grid, so let it scroll sideways on phones */
@media (max-width: 600px) {
  .AKHP-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .AKHP-header,
  .AKHP-row {
    min-width: 520px;
    grid-template-columns: 140px repeat(4, 1fr);
  }

  .AKHP-model-header {
    font-size: 20px;
  }

  .AKHP-product-name {
    font-size: 17px;
  }

  .AKHP-row > div,
  .AKHP-col-head,
  .AKHP-section,
  .AKHP-sub-title {
    padding: 10px;
    font-size: 14px;
  }
}

/* ---- Other products ---- */
@media (max-width: 1200px) {
  .other-products .products-grid {
    gap: 30px;
  }

  .other-products .product-image {
    height: 260px;
  }

  .other-products .product-card h3 {
    font-size: 26px;
  }
}

@media (max-width: 900px) {
  .other-products {
    padding: 60px 0;
  }

  .other-products .section-header {
    margin-bottom: 36px;
    gap: 20px;
  }

  .other-products .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .other-products .product-card h3 {
    font-size: 22px !important;
  }
}

@media (max-width: 600px) {
  .other-products .products-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .other-products .product-image {
    height: 220px;
  }

  .explore-btn {
    min-width: 100px;
    height: 46px;
    font-size: 14px;
  }
}
