html { scroll-behavior: smooth; }
.afit-clothing-hero { align-items: flex-end; }
.afit-clothing-hero picture { display: block; width: 100%; height: 100%; }
.afit-clothing-hero picture img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.afit-clothing-hero-shade { background: linear-gradient(to top, rgba(27, 34, 44, .88) 0%, rgba(27, 34, 44, .48) 38%, rgba(27, 34, 44, .08) 72%, transparent 100%); }
.afit-clothing-hero > .relative.z-10 { padding-top: 5rem; padding-bottom: 2.5rem; }
@media (min-width: 1024px) { .afit-clothing-hero > .relative.z-10 { padding-bottom: 3.25rem; } }
.afit-clothing-hero > .relative.z-10::before { content: ''; position: absolute; z-index: -1; pointer-events: none; inset: 0 -4rem -2rem -4rem; background: radial-gradient(ellipse 75% 85% at 30% 55%, rgba(60, 64, 70, .62) 0%, rgba(60, 64, 70, .38) 50%, rgba(60, 64, 70, 0) 100%); filter: blur(28px); }
.afit-fabric-features .grid > div { align-items: center; text-align: center; }
.afit-fabric-features .grid > div > h3 { display: flex; align-items: center; justify-content: center; min-height: 4rem; }
.afit-fabric-features .grid > div > div:last-child { justify-content: center; margin-top: auto; text-align: center; padding-top: 1.5rem; }
#about, #capabilities, #contact { scroll-margin-top: 6.5rem; }

#capabilities {
  background: linear-gradient(145deg, #fff9f4 0%, #f8fbff 48%, #e5effa 100%);
}

.afit-categories {
  padding: clamp(3.5rem, 6vw, 7rem) 0;
  background: #fff;
  color: #192c3d;
}

.afit-categories-inner {
  width: min(90%, 1280px);
  margin-inline: auto;
}

.afit-categories-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  border-bottom: 1px solid #d9d4cc;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.afit-categories-header p {
  max-width: 36ch;
  color: #47535e;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.65;
}

.afit-category-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.afit-category-card {
  display: block;
  min-width: 0;
  border-radius: 12px 12px 0 0;
}

.afit-category-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: #e5e0d8;
}

.afit-category-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 450ms ease;
}

.afit-category-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .875rem 0;
  border-bottom: 1px solid #d9d4cc;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 700;
}

.afit-category-caption .material-symbols-outlined {
  display: grid;
  place-items: center;
  flex: 0 0 2.25rem;
  height: 2.25rem;
  border: 1px solid #c8c8c3;
  border-radius: 50%;
  font-size: 1rem;
}

.afit-category-card:is(:hover, :focus-visible) .material-symbols-outlined {
  background: #00355f;
  border-color: #00355f;
  color: #fff;
}

.afit-category-card:focus-visible {
  outline: 2px solid #00355f;
  outline-offset: 5px;
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .afit-category-card:hover img { transform: scale(1.04); }
}

@media (min-width: 768px) {
  .afit-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1025px) {
  .afit-category-card:nth-child(2) { margin-top: clamp(1.5rem, 3vw, 3rem); }
}
.afit-header { position: fixed; inset: 0 0 auto; z-index: 100; height: 102px; background: #fff; border-bottom: 1px solid #eee; }
.afit-header-inner { width: min(100% - 7%, 1380px); height: 100%; margin: auto; display: grid; grid-template-columns: 170px minmax(0, 1fr) 205px; align-items: center; gap: 20px; }
.afit-logo { display: flex; align-items: center; width: 148px; }
.afit-logo img { display: block; width: 100%; height: auto; max-height: 66px; object-fit: contain; }
.afit-nav { display: flex; align-items: center; justify-content: center; gap: clamp(17px, 1.7vw, 28px); height: 100%; white-space: nowrap; }
.afit-nav-link { display: inline-flex; align-items: center; gap: 7px; height: 100%; color: #424751; font: 600 17px/1.2 'Plus Jakarta Sans', sans-serif; text-decoration: none; position: relative; }
.afit-nav-link:hover, .afit-nav-link.is-active { color: #00355f; }
.afit-nav-link.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 29px; height: 2px; background: #E65A3B; }
.afit-clothing { height: 100%; position: relative; }
.afit-clothing-toggle { border: 0; background: transparent; padding: 0; cursor: pointer; }
.afit-chevron { display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s ease; margin: -1px 3px 0 2px; }
.afit-clothing.is-open .afit-chevron { transform: rotate(45deg); }
.afit-subnav { display: none; position: absolute; top: 86px; left: -18px; min-width: 190px; background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 14px 28px rgba(15,23,42,.12); padding: 8px 0; }
.afit-clothing.is-open .afit-subnav { display: block; }
.afit-subnav a { display: block; padding: 11px 18px; color: #424751; font: 500 14px 'Plus Jakarta Sans', sans-serif; }
.afit-subnav a:hover { color: #00355f; background: #f3f4f5; }
.afit-quote { justify-self: end; min-width: 192px; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; background: #E65A3B; color: #fff; border-radius: 2px; font: 700 17px 'Plus Jakarta Sans', sans-serif; text-decoration: none; }
.afit-quote:hover { background: #992b0e; }
.afit-menu-toggle { display: none; }
main { padding-top: 102px !important; }
main > div > section:first-child { margin-top: 0 !important; }
@media (min-width: 1025px) and (max-width: 1180px) {
  .afit-header-inner { width: min(100% - 48px, 1320px); grid-template-columns: 150px 1fr 175px; gap: 12px; }
  .afit-nav { gap: 15px; }
  .afit-nav-link { font-size: 15px; }
  .afit-quote { min-width: 175px; font-size: 15px; }
}
@media (max-width: 1024px) {
  .afit-header { height: 80px; }
  .afit-header-inner { grid-template-columns: 1fr auto auto; }
  .afit-logo { width: 122px; }
  .afit-nav { display: none; position: absolute; top: 80px; left: 0; right: 0; height: auto; max-height: calc(100vh - 80px); overflow-y: auto; padding: 12px 24px 24px; background: #fff; box-shadow: 0 18px 28px rgba(15,23,42,.12); flex-direction: column; align-items: stretch; gap: 0; }
  body.afit-mobile-open .afit-nav { display: flex; }
  .afit-nav-link { height: auto; min-height: 44px; font-size: 16px; }
  .afit-nav-link.is-active::after { bottom: 5px; }
  .afit-clothing { height: auto; }
  .afit-subnav { position: static; border: 0; box-shadow: none; padding: 0 0 4px 14px; }
  .afit-quote { min-width: auto; min-height: 40px; padding: 0 14px; font-size: 13px; }
  .afit-menu-toggle { display: grid; place-items: center; width: 40px; height: 40px; color: #00355f; }
  main { padding-top: 80px !important; }
}
@media (max-width: 420px) { .afit-quote { display: none; } }
.customer-section { background: #f1f2f3; padding: 78px 0 82px; }
.customer-section-inner { width: min(100% - 48px, 1240px); margin: 0 auto; }
.customer-section h2 { color: #191c1d; font: 700 clamp(2rem, 3vw, 3rem)/1.15 'Plus Jakarta Sans', sans-serif; text-align: center; margin: 0 0 44px; }
.customer-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; gap: 22px; }
.customer-logo-item { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 190px; }
.customer-logo-item img { display: block; width: min(100%, 210px); height: auto; object-fit: contain; }
@media (max-width: 900px) {
  .customer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 26px; }
}
@media (max-width: 580px) {
  .customer-section { padding: 58px 0; }
  .customer-section h2 { margin-bottom: 26px; }
  .customer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .customer-logo-item { min-height: 145px; }
}
.afit-fab { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.afit-fab-toggle { width: 60px; height: 60px; border: 0; border-radius: 50%; background: #E65A3B; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 20px rgba(15,23,42,.28); transition: background .2s ease, transform .2s ease; }
.afit-fab-toggle:hover { background: #992b0e; transform: scale(1.05); }
.afit-fab-toggle svg { width: 28px; height: 28px; fill: currentColor; grid-area: 1 / 1; transition: opacity .2s ease, transform .25s ease; }
.afit-fab-toggle .afit-fab-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.afit-fab.is-open .afit-fab-toggle .afit-fab-chat { opacity: 0; transform: rotate(90deg) scale(.6); }
.afit-fab.is-open .afit-fab-toggle .afit-fab-close { opacity: 1; transform: none; }
.afit-fab-options { display: flex; flex-direction: column; gap: 12px; align-items: center; pointer-events: none; }
.afit-fab-option { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 14px rgba(15,23,42,.25); opacity: 0; transform: translateY(16px) scale(.5); transition: opacity .2s ease, transform .25s cubic-bezier(.2,.9,.3,1.3); }
.afit-fab-option svg { width: 26px; height: 26px; fill: currentColor; }
.afit-fab-option.whatsapp { background: #25d366; }
.afit-fab-option.mail { background: #E65A3B; }
.afit-fab-option.call { background: #00355f; }
.afit-fab.is-open .afit-fab-options { pointer-events: auto; }
.afit-fab.is-open .afit-fab-option { opacity: 1; transform: none; }
.afit-fab.is-open .afit-fab-option.mail { transition-delay: .05s; }
.afit-fab.is-open .afit-fab-option.whatsapp { transition-delay: .1s; }
.afit-fab-option:hover { filter: brightness(1.1); }
@media (max-width: 580px) { .afit-fab { right: 16px; bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { .afit-fab * { transition: none !important; } }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: clip; }
img { max-width: 100%; }
.afit-map { min-height: 0 !important; max-height: none !important; }
.afit-fab { right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); }
@media (max-width: 580px) { .afit-fab { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); } }
@media (max-width: 1024px) {
  .afit-subnav a, .afit-nav-link { min-height: 44px; display: flex; align-items: center; }
  .afit-menu-toggle { width: 44px; height: 44px; }
}
@media (hover: none) { .afit-fab-option:hover, .afit-fab-toggle:hover { filter: none; transform: none; } }
@media (max-width: 580px) {
  .customer-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .customer-grid::-webkit-scrollbar { display: none; }
  .customer-logo-item { flex: 0 0 100%; scroll-snap-align: center; min-height: 170px; }
  .customer-logo-item img { width: min(60%, 200px); }
  .customer-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .customer-dots span { width: 8px; height: 8px; border-radius: 50%; background: #c2c7d1; transition: background .2s, transform .2s; }
  .customer-dots span.is-active { background: #00355f; transform: scale(1.25); }
}
@media (min-width: 581px) { .customer-dots { display: none; } }
@media (max-width: 580px) {
  .grid.lg\:grid-cols-5 > .group { text-align: center; }
  .grid.lg\:grid-cols-5 > .group > div > div:first-child { margin-left: auto; margin-right: auto; }
}
@media (max-width: 580px) {
  main .min-h-\[78vh\] { min-height: 0; padding-top: 7rem; padding-bottom: 3rem; }
}
@media (max-width: 580px) {
  main .flex-col.md\:flex-row.md\:items-end > .max-w-xl:first-child { text-align: center; margin-left: auto; margin-right: auto; }
}
@media (max-width: 580px) {
  #about .lg\:col-span-6:first-child { text-align: center; }
}
#capabilities picture { display: block; height: 100%; }

@media (max-width: 580px) {
  #capabilities { padding-block: 2.25rem; }
  #capabilities > div { gap: 1.5rem; }
  #capabilities .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  #capabilities .grid > .group { aspect-ratio: 4 / 3; }
  #capabilities .grid > .group > div {
    padding: 12px;
    background: linear-gradient(to top, rgba(25, 28, 29, .85), transparent 55%);
  }
  #capabilities .grid > .group h3 { font-size: 1.05rem; line-height: 1.4rem; }
}
@media (max-width: 580px) {
  footer > div { padding-top: 2.5rem; padding-bottom: 1.5rem; }
  footer .grid > div:nth-child(n+3) { display: none; }
  footer .grid > div:first-child > div:nth-child(3) { display: none; }
  footer .grid { gap: 1.25rem; }
  footer .grid > div:nth-child(2) ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
  footer .grid + div { margin-top: 1.5rem; padding-top: 1rem; gap: 12px; }
}
@media (max-width: 580px) {
  .afit-map span.w-3 { width: 9px; height: 9px; }
  .afit-map .ring-4 { box-shadow: 0 0 0 2px rgba(0, 53, 95, .2) !important; }
}
@media all {
  .afit-map-card { width: 100vw !important; max-width: none !important; margin-left: calc(50% - 50vw); border-radius: 0; box-shadow: none; background: #f8fbfe; }
  .afit-map-card .afit-map { border-radius: 0; }
  .afit-map-card .afit-map + div { max-width: 1280px; margin-left: auto; margin-right: auto; background: transparent; }
}
@media all {
  section:has(> div > .afit-map-card) { padding-top: 0 !important; }
}
@media (max-width: 580px) {
  #about .grid > .lg\:col-span-6:last-child { order: -1; margin-bottom: 1.5rem; }
}
@media (max-width: 580px) {
  main section.-mt-20 .bg-cover {
    background-image: url('/hero/india-factory-uniforms-phone.jpg') !important;
    background-position: right top;
  }
}
@media (min-width: 768px) and (max-width: 1024px),
       (min-width: 768px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  main section.-mt-20 .bg-cover {
    background-position: 62% 45%;
  }
  main section.-mt-20 > .min-h-\[78vh\] {
    min-height: clamp(26rem, 54svh, 36rem);
    padding-block: 4rem 3rem;
  }
}
@media (max-width: 580px) {
  main section.-mt-20 p.max-w-2xl { display: none; }
}
.afit-commitment { display: none; }
@media (min-width: 1025px) {
  main section.-mt-20 .max-w-7xl { max-width: 1480px !important; }
}
@media (max-width: 1024px) {
  .afit-map { aspect-ratio: 1086 / 811 !important; }
  .afit-map picture { display: contents; }
  .afit-map img { object-position: center 45.45%; }
  [data-pin="dubai"] { --pt: 52.3% !important; --pl: 60.8% !important; }
  [data-pin="newyork"] { --pt: 41.4% !important; --pl: 28.2% !important; }
  [data-pin="jordan"] { --pt: 49.5% !important; --pl: 56% !important; }
  [data-pin="india"] { --pt: 54.1% !important; --pl: 65.8% !important; }
  [data-pin="bangladesh"] { --pt: 51.1% !important; --pl: 69.9% !important; }
  [data-pin="china"] { --pt: 49.8% !important; --pl: 75.5% !important; }
  [data-pin="vietnam"] { --pt: 55.9% !important; --pl: 74.4% !important; }
  [data-pin="cambodia"] { --pt: 57.0% !important; --pl: 73.3% !important; }
}
@media (max-width: 580px) {
  main .aspect-\[3\/4\].bg-surface-container-high, main .h-\[520px\], main .h-\[540px\] { aspect-ratio: 1 / 1 !important; }
  main .h-\[520px\], main .h-\[540px\] { height: auto !important; }
}
@media (min-width: 581px) {
  main .h-\[520px\] { height: auto !important; aspect-ratio: 3 / 4; }
}
@media (max-width: 1024px) {
  .customer-section { order: 6; }
  #contact { order: 7; }
}
@media (max-width: 580px) {
  .afit-clothing-hero > .relative.z-10 { padding-bottom: 0; }
}
@media (max-width: 580px) {
  .afit-clothing-hero { min-height: 452px !important; }
}
@media (max-width: 580px) {
  .afit-map-card .afit-map { transform: scale(1.25); transform-origin: 50% 50%; margin: 30px 0; }
  .afit-map-card .afit-map span.w-3 { width: 8px; height: 8px; }
}
@media (max-width: 580px) {
  main .aspect-\[3\/4\].rounded-2xl { aspect-ratio: 1 / 1 !important; }
}
@media (max-width: 580px) {
  main .aspect-\[3\/4\].rounded-2xl > img { object-position: center top; }
}
@media (max-width: 580px) {
  main .grid.lg\:grid-cols-4 > .group > div { justify-content: center; }
  main .grid.lg\:grid-cols-4 > .group > div > .min-w-0 { align-items: center; text-align: center; }
  main .grid.lg\:grid-cols-4 > .group > div > .min-w-0 > span { align-self: center; }
}
@media (max-width: 580px) {
  .afit-map-card .afit-map { margin-bottom: 44px; }
  .afit-map-card .afit-map + div { flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px 20px 20px; background: #fff; position: relative; text-align: center; }
  .afit-map-card .afit-map + div > div { flex-direction: column; align-items: center; gap: 10px; }
  .afit-map-card .afit-map + div > div > div { justify-content: center; }
}
@media (max-width: 580px) {
  section.bg-\[\#0a2540\] .inline-flex { padding: 1.1rem; }
  section.bg-\[\#0a2540\] .inline-flex .material-symbols-outlined { font-size: 3.25rem; width: 3.25rem; height: 3.25rem; line-height: 1; }
}
@media (max-width: 580px) {
  .afit-about-seri { display: none; }
}
@media (max-width: 580px) {
  .afit-fabrics-hero > .bg-cover { background-image: url('/hero/fabrics-mobile.png') !important; }
  main .aspect-\[21\/9\] { aspect-ratio: 1 / 1 !important; }
  main .aspect-\[21\/9\] picture { display: contents; }
}
@media (max-width: 580px) {
  .afit-fabrics-hero > .relative.z-10 { min-height: 452px; padding-top: 5.5rem; padding-bottom: 1.5rem; }
}
@media (max-width: 580px) {
  .afit-clothing-hero > .relative.z-10 { padding-top: 4.5rem; }
  .afit-fabrics-hero p { display: none; }
}
@media (max-width: 580px) {
  main .grid.sm\:grid-cols-2.lg\:grid-cols-4 > div { text-align: center; align-items: center; }
}
#contact { background: #fff !important; }
#contact .bg-surface-container-lowest { background: #f3f4f5 !important; }
#contact input, #contact textarea { background: #fff !important; }

.afit-contact-page {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.afit-contact-page::before {
  content: "";
  position: absolute;
  inset: -16px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(rgba(248, 249, 250, .76), rgba(248, 249, 250, .88)),
    url("/hero/factory.png") center / cover no-repeat;
  filter: blur(7px);
}

@media (max-width: 767px) {
  .afit-contact-page::before {
    inset: -12px -12px auto;
    height: clamp(520px, 145vw, 720px);
    background:
      linear-gradient(180deg, rgba(248, 249, 250, .12) 30%, #f8f9fa 100%),
      linear-gradient(90deg, rgba(248, 249, 250, .83), rgba(248, 249, 250, .42)),
      url("/hero/contact-mobile.jpg") center top / cover no-repeat;
    filter: blur(3px);
  }
}
@media (min-width: 581px) {
  main .flex-col.md\:flex-row.md\:items-end > .max-w-xl:first-child { text-align: center; margin-left: auto; margin-right: auto; }
}
@media (max-width: 580px) {
  .afit-excellence { display: none; }
}

/* Certifications slider (inside About Us) */
.cert-block { margin-top: 72px; padding-top: 48px; border-top: 1px solid #e1e3e4; background: #fff; }
.cert-block h3 { color: #191c1d; font: 700 clamp(2rem, 3vw, 3rem)/1.15 'Plus Jakarta Sans', sans-serif; text-align: center; margin: 0 0 44px; }
.cert-slider { --per: 4; overflow: hidden; }
.cert-track { display: flex; transition: transform .6s ease; will-change: transform; }
.cert-item { flex: 0 0 calc(100% / var(--per)); display: flex; align-items: center; justify-content: center; min-height: 170px; }
.cert-item img { display: block; width: min(80%, 190px); height: auto; object-fit: contain; }
@media (max-width: 1024px) { .cert-slider { --per: 3; } }
@media (max-width: 580px) {
  .cert-block { margin-top: 56px; padding-top: 36px; }
  .cert-slider { --per: 1; }
  .cert-item { min-height: 150px; }
  .cert-item img { width: min(70%, 220px); }
}
.customer-section .cert-item { min-height: 190px; }
.customer-section .cert-item img { width: min(100%, 210px); }
@media (max-width: 580px) { .customer-section .cert-item { min-height: 150px; } .customer-section .cert-item img { width: min(70%, 220px); } }
.customer-section .cert-track { background: #f1f2f3; }
.cert-block .cert-track { background: #fff; }
@media (max-width: 580px) { .cert-block h3 { margin-bottom: 26px; } }

/* Certifications follow About in a separate section on phones and tablets. */
.cert-mobile { display: none; }
@media (max-width: 1024px), (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  main > div:has(> .cert-mobile) > section:first-child { order: -3; }
  #about { order: -2; }
  .cert-in-about { display: none; }
  .cert-mobile { display: block; order: -1; background: #fff; padding: 0 0 8px; }
  .cert-mobile-inner { width: min(100% - 48px, 1240px); margin: 0 auto; }
  .cert-mobile .cert-block { margin-top: 0; padding-top: 40px; border-top: 0; background: transparent; }
  .cert-mobile .cert-track { background: #fff; }
}
@media (min-width: 1025px) {
  /* Full-width map, cropped to 12:5 so it stays a fixed proportion of the page width on any desktop window */
  .afit-map-card .afit-map { width: 100%; aspect-ratio: 12 / 5 !important; }
  .afit-map-card .afit-map img { object-fit: cover; object-position: center 50%; }
  /* the image file has pale side margins; zoom the image (not the box) 9% to hide them, and move pins by the same factor */
  .afit-map-card .afit-map img { transform: scale(1.09); transform-origin: 50% 50%; }
  .afit-map-card .afit-map [data-pin] { top: calc(50% + (var(--pt) - 50%) * 1.09) !important; left: calc(50% + (var(--pl) - 50%) * 1.09) !important; }
  /* pin tops remapped for the cropped view (original 2:1 image: visible band is 8.33%-91.67% of its height) */
  [data-pin="dubai"] { --pt: 51% !important; }
  [data-pin="newyork"] { --pt: 39.9% !important; }
  [data-pin="jordan"] { --pt: 47.5% !important; }
  [data-pin="india"] { --pt: 59.4% !important; }
  [data-pin="bangladesh"] { --pt: 51.2% !important; }
  [data-pin="china"] { --pt: 44.6% !important; }
  [data-pin="vietnam"] { --pt: 55.7% !important; }
  [data-pin="cambodia"] { --pt: 58.8% !important; }
}
/* Desktop scaling: from 1281px up the whole site grows with the window (16px base at 1280px, 20px base from 1600px)
   so the layout keeps the same proportions instead of leaving wider empty margins. Everything sized in rem scales. */
@media (min-width: 1281px) {
  html { font-size: clamp(16px, 1.25vw, 20px); }
  .afit-header { height: 5.5rem; }
  main { padding-top: 5.5rem !important; }
  .afit-header-inner { width: min(100% - 8rem, 72rem); grid-template-columns: 10.625rem minmax(0, 1fr) 12.8125rem; gap: 1.25rem; }
  .afit-logo { width: 9.25rem; }
  .afit-logo img { max-height: 4.125rem; }
  .afit-nav { gap: 1.4rem; }
  .afit-nav-link { gap: .4375rem; font-size: 1rem; }
  .afit-nav-link.is-active::after { bottom: 1.5rem; height: .125rem; }
  .afit-subnav { top: 4.5rem; left: -1.125rem; min-width: 11.875rem; padding: .5rem 0; }
  .afit-subnav a { padding: .6875rem 1.125rem; font-size: .875rem; }
  .afit-quote { min-width: 11rem; min-height: 2.875rem; font-size: 1rem; }
  main section.-mt-20 .max-w-7xl { max-width: 80rem !important; }
  .customer-section { padding: 4.875rem 0 5.125rem; }
  .customer-section-inner { width: min(100% - 8rem, 72rem); }
  .customer-section h2 { margin-bottom: 2.75rem; }
  .customer-grid { gap: 1.375rem; }
  .customer-logo-item { min-height: 11.875rem; }
  .customer-logo-item img { width: min(100%, 13.125rem); }
}
/* Locations cards: every card the same height (the Dubai card with its HQ badge sets the height for all) */
.grid.lg\:grid-cols-4 { grid-auto-rows: 1fr; }
.grid.lg\:grid-cols-4 > .group { min-height: 5.75rem; }
/* Slimmer desktop header (logo size unchanged) for 1025-1280px windows; 1281px+ is handled in the rem block above */
@media (min-width: 1025px) and (max-width: 1280px) {
  .afit-header { height: 88px; }
  main { padding-top: 88px !important; }
  .afit-nav-link.is-active::after { bottom: 24px; }
  .afit-subnav { top: 72px; }
  .afit-quote { min-height: 46px; }
}
@media (min-width: 1181px) and (max-width: 1280px) {
  .afit-nav-link { font-size: 16px; }
  .afit-quote { min-width: 176px; font-size: 16px; }
}
/* About Us: dark highlight behind the key sentence only (text weight unchanged, lighter colour) */
.afit-mark { background: #00355f; color: #e3edf7; padding: .12em .4em; border-radius: .2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; line-height: 1.9; }
/* "Our Categories" heading: centered, orange eyebrow + accent bar (phone and desktop). Rest of the section unchanged. */
.afit-categories-header { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .6rem; border-bottom: 0; padding-bottom: 0; margin-bottom: 1.75rem; }
.afit-categories-header::before { content: 'What we make'; color: #E65A3B; font: 700 .75rem/1 'Plus Jakarta Sans', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.afit-categories-header h2 { color: #00355f; font-size: 2.4rem; line-height: 1.1; font-weight: 800; margin: 0; }
.afit-categories-header h2::after { content: ''; display: block; width: 3.5rem; height: .25rem; margin: .85rem auto 0; background: #E65A3B; border-radius: 2px; }
.afit-categories-header p { margin: .25rem auto 0; max-width: 30ch; }
@media (min-width: 768px) {
  .afit-categories-header { margin-bottom: 3rem; }
  .afit-categories-header::before { font-size: .8125rem; }
  .afit-categories-header h2 { font-size: 3rem; }
  .afit-categories-header p { max-width: 44ch; }
}
/* "Our Manufacturing Capabilities" heading: same treatment as "Our Categories" (phone and desktop) */
#capabilities .max-w-7xl > div:first-child { justify-content: center; }
#capabilities .max-w-7xl > div:first-child > div { max-width: none; align-items: center; text-align: center; gap: .6rem; }
#capabilities .font-label-caps { font: 700 .75rem/1 'Plus Jakarta Sans', sans-serif; letter-spacing: .14em; }
#capabilities h2 { color: #00355f; font-size: 2.4rem; line-height: 1.1; font-weight: 800; margin: 0; }
#capabilities h2::after { content: ''; display: block; width: 3.5rem; height: .25rem; margin: .85rem auto 0; background: #E65A3B; border-radius: 2px; }
@media (min-width: 768px) {
  #capabilities .font-label-caps { font-size: .8125rem; }
  #capabilities h2 { font-size: 3rem; }
}

/* Men's page: intro heading, card text, highlights strip */
.afit-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; margin-bottom: 3rem; }
.afit-head-eyebrow { color: #E65A3B; font: 700 .8125rem/1 'Plus Jakarta Sans', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.afit-head h2 { color: #00355f; font-size: 2.4rem; line-height: 1.1; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.afit-head h2::after { content: ''; display: block; width: 3.5rem; height: .25rem; margin: .85rem auto 0; background: #E65A3B; border-radius: 2px; }
.afit-head p { margin: .25rem auto 0; max-width: 44ch; color: #47535e; font-size: 1.0625rem; line-height: 1.65; }
@media (min-width: 768px) { .afit-head h2 { font-size: 3rem; } }
.afit-card-body { padding: 1.5rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: 1.1rem; flex: 1; background: #fff; }
.afit-card-body p { color: #47535e; font-size: 1rem; line-height: 1.6; margin: 0; }
@media (max-width: 1023px) { .afit-card-body p { min-height: 0; } }
.afit-card-body ul { list-style: none; margin: 0; padding: 1.1rem 0 0; border-top: 1px solid #e5e7eb; display: grid; grid-template-columns: 1fr; gap: .7rem; }
.afit-card-body li { display: flex; align-items: center; gap: .45rem; color: #191c1d; font-size: .9rem; font-weight: 600; line-height: 1.3; }
.afit-card-body li .material-symbols-outlined { color: #E65A3B; font-size: 1.15rem; font-variation-settings: 'FILL' 1; }
.afit-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid #e5e7eb; }
.afit-highlights > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; }
.afit-highlights .material-symbols-outlined { width: 3.5rem; height: 3.5rem; display: grid; place-items: center; border-radius: 50%; background: #fde9e3; color: #E65A3B; font-size: 1.75rem; margin-bottom: .35rem; }
.afit-highlights h3 { color: #00355f; font-size: 1.125rem; font-weight: 700; margin: 0; }
.afit-highlights p { color: #47535e; font-size: .95rem; line-height: 1.55; margin: 0; max-width: 28ch; }
@media (max-width: 767px) {
  .afit-highlights { display: none; }
  .afit-head { margin-bottom: 2rem; }
}
/* Men's page on tablets (iPad): keep the three category cards in one row instead of 2 + 1 */
@media (min-width: 768px) and (max-width: 1023px) {
  .afit-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 1rem !important; }
  .afit-cat-grid h3 { font-size: 1.2rem; line-height: 1.5rem; }
  .afit-cat-grid .absolute.bottom-0 { padding-left: .75rem; padding-right: .75rem; }
}
/* iPad / tablet footer (768-1023px): compact one-band layout instead of a tall 2x2 grid */
@media (min-width: 768px) and (max-width: 1023px) {
  footer > div { padding-top: 2.25rem !important; padding-bottom: 1.25rem !important; }
  footer > div > .grid { grid-template-columns: minmax(0, 1.1fr) auto auto minmax(0, 1.35fr) !important; gap: 1.5rem !important; }
  footer > div > .grid > div { gap: .6rem !important; }
  footer > div > .grid > div:first-child img { height: 2rem; }
  footer > div > .grid > div:first-child p { font-size: .8125rem; line-height: 1.45; max-width: 18rem; }
  footer > div > .grid ul { gap: .4rem !important; }
  footer > div > .grid li a, footer > div > .grid .font-body-sm { font-size: .8125rem; line-height: 1.3; }
  footer > div > .grid li a { white-space: nowrap; }
  footer > div > .grid .font-label-caps { font-size: .6875rem; white-space: nowrap; }
  footer > div > .grid > div:last-child > div.grid { gap: .35rem .75rem !important; }
  footer > div > .grid + div { margin-top: 1.25rem !important; padding-top: .9rem !important; }
}

/* ===== Locations page redesign ===== */
.afit-loc-head-section { background: linear-gradient(180deg, #f4f7fb 0%, #f8f9fa 100%); padding: 3.5rem 1.5rem 2.25rem; }
.afit-loc-head-section .afit-head { margin-bottom: 0; }
.afit-head h1 { color: #00355f; font-size: 2.4rem; line-height: 1.1; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.afit-head h1::after { content: ''; display: block; width: 3.5rem; height: .25rem; margin: .85rem auto 0; background: #E65A3B; border-radius: 2px; }
@media (min-width: 768px) { .afit-head h1 { font-size: 3rem; } .afit-loc-head-section { padding-top: 4.5rem; padding-bottom: 3rem; } }
.afit-loc-map-section { background: #f8f9fa; padding: 0 0 3rem; }
.afit-loc-map-section > div { padding-top: 0; }
.afit-loc-map-section .afit-map-card { border-top: 1px solid #e3e8ef; border-bottom: 1px solid #e3e8ef; }
.afit-loc-grid { gap: 1.25rem; margin-top: 3rem; }
.afit-loc { position: relative; display: flex; align-items: center; gap: 1rem; min-height: 5.75rem; padding: 1.1rem 1.35rem; background: #fff; border: 1px solid #e6eaf0; border-radius: 1rem; box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.afit-loc:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(15,23,42,.10); border-color: #E65A3B; }
.afit-loc-pin { flex: 0 0 auto; width: 2.9rem; height: 2.9rem; display: grid; place-items: center; border-radius: 50%; background: #eaf1f8; color: #00355f; transition: background .25s ease, color .25s ease; }
.afit-loc-pin .material-symbols-outlined { font-size: 1.4rem; font-variation-settings: 'FILL' 1; }
.afit-loc:hover .afit-loc-pin { background: #00355f; color: #fff; }
.afit-loc-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.afit-loc h3 { margin: 0; color: #191c1d; font-size: 1.125rem; font-weight: 700; line-height: 1.2; }
.afit-loc-region { color: #6b7280; font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
.afit-loc-hq { background: linear-gradient(135deg, #0a2540 0%, #00355f 100%); border-color: transparent; box-shadow: 0 10px 24px rgba(0,53,95,.28); }
.afit-loc-hq h3 { color: #fff; }
.afit-loc-hq .afit-loc-region { color: #b9cde3; }
.afit-loc-hq .afit-loc-pin { background: #E65A3B; color: #fff; }
.afit-loc-hq:hover .afit-loc-pin { background: #fff; color: #E65A3B; }
.afit-loc-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.afit-loc-badge { padding: .15rem .5rem; border-radius: 999px; background: #E65A3B; color: #fff; font-size: .625rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.afit-network { position: relative; overflow: hidden; padding: 5rem 1.5rem; text-align: center; color: #fff; background: radial-gradient(60rem 30rem at 85% -10%, rgba(230,90,59,.28), transparent 60%), radial-gradient(50rem 28rem at 0% 110%, rgba(45,97,151,.45), transparent 60%), linear-gradient(135deg, #071d36 0%, #0a2f55 100%); }
.afit-network-inner { position: relative; max-width: 52rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.afit-network-icon { width: 4rem; height: 4rem; display: grid; place-items: center; border-radius: 50%; background: rgba(230,90,59,.16); border: 1px solid rgba(230,90,59,.55); color: #ff9a80; margin-bottom: 1.5rem; }
.afit-network-icon .material-symbols-outlined { font-size: 2rem; }
.afit-network h2 { margin: 0; color: #fff; font-size: 2.4rem; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.afit-network h2::after { content: ''; display: block; width: 3.5rem; height: .25rem; margin: 1rem auto 0; background: #E65A3B; border-radius: 2px; }
.afit-network p { margin: 1.5rem 0 0; color: #cfdceb; font-size: 1.125rem; line-height: 1.7; max-width: 44rem; }
.afit-network-regions { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.afit-network-regions li { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: .9rem; font-weight: 600; }
.afit-network-regions .material-symbols-outlined { font-size: 1.1rem; color: #ff9a80; font-variation-settings: 'FILL' 1; }
@media (min-width: 768px) { .afit-network { padding: 6rem 1.5rem; } .afit-network h2 { font-size: 3rem; } }
.afit-connect-section { background: #f8f9fa; padding: 4rem 1.5rem; }
.afit-connect { max-width: 64rem; margin: 0 auto; display: flex; align-items: center; gap: 1.75rem; padding: 2rem 2.25rem; background: #fff; border: 1px solid #e6eaf0; border-left: 5px solid #E65A3B; border-radius: 1.1rem; box-shadow: 0 12px 30px rgba(15,23,42,.08); }
.afit-connect-icon { flex: 0 0 auto; width: 3.75rem; height: 3.75rem; display: grid; place-items: center; border-radius: 50%; background: #fde9e3; color: #E65A3B; }
.afit-connect-icon .material-symbols-outlined { font-size: 1.9rem; }
.afit-connect-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: .35rem; }
.afit-connect-eyebrow { color: #E65A3B; font: 700 .75rem/1 'Plus Jakarta Sans', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.afit-connect h2 { margin: 0; color: #00355f; font-size: 1.9rem; line-height: 1.15; font-weight: 800; }
.afit-connect p { margin: .15rem 0 0; color: #47535e; font-size: 1.0625rem; line-height: 1.6; }
.afit-connect-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .5rem; padding: .95rem 1.75rem; background: #E65A3B; color: #fff; border-radius: .5rem; font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; box-shadow: 0 8px 18px rgba(230,90,59,.35); transition: transform .2s ease, background .2s ease; }
.afit-connect-btn:hover { background: #992b0e; transform: translateY(-2px); }
.afit-connect-btn .material-symbols-outlined { font-size: 1.1rem; }
@media (max-width: 767px) {
  .afit-loc-head-section { padding: 2.5rem 1.25rem 1.75rem; }
  .afit-loc-grid { gap: .85rem; margin-top: 2rem; }
  .afit-network { padding: 3.5rem 1.25rem; }
  .afit-network p { font-size: 1rem; }
  .afit-connect-section { padding: 2.5rem 1.25rem; }
  .afit-connect { flex-direction: column; text-align: center; border-left-width: 1px; border-top: 5px solid #E65A3B; padding: 1.75rem 1.5rem; gap: 1.1rem; }
}
/* keep location card text left-aligned on phones (overrides an older centering rule) */
main .afit-loc-grid > .afit-loc { text-align: left; align-items: center; justify-content: flex-start; }
.afit-loc-text { align-items: flex-start; text-align: left; }
@media (max-width: 767px) { .afit-loc { min-height: 4.75rem; padding: .9rem 1.1rem; } }

/* ===== Locations: dark hero with the map card overlapping it ===== */
.afit-loc-head-section { position: relative; overflow: hidden; background: radial-gradient(52rem 24rem at 88% -20%, rgba(230,90,59,.30), transparent 62%), radial-gradient(46rem 24rem at 0% 120%, rgba(45,97,151,.50), transparent 60%), linear-gradient(135deg, #071d36 0%, #0a2f55 100%); padding: 3.5rem 1.5rem 3rem; }
.afit-loc-head-section::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.4px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.afit-loc-head-section .afit-head { position: relative; }
.afit-loc-head-section .afit-head-eyebrow { color: #ff9a80; }
.afit-loc-head-section .afit-head h1 { color: #fff; }
.afit-loc-head-section .afit-head p { color: #cfdceb; }
@media (min-width: 768px) {
  .afit-loc-head-section { padding: 5rem 1.5rem 9rem; }
  .afit-loc-map-section { position: relative; z-index: 2; margin-top: -6.5rem; padding-bottom: 3rem; background: transparent; }
  .afit-loc-map-section .afit-map-card { width: 100% !important; margin-left: 0 !important; border: 1px solid #e3e8ef; border-radius: 1.25rem; box-shadow: 0 30px 60px -12px rgba(7,29,54,.35), 0 12px 24px -8px rgba(7,29,54,.18); background: #f8fbfe; }
  .afit-loc-map-section .afit-map-card .afit-map { border-radius: 0; }
}
/* Tiruppur (India) pin in the brand orange: dot, ring, tooltip and arrow */
[data-pin="india"] .bg-primary { background-color: #E65A3B !important; }
[data-pin="india"] .ring-primary\/20 { --tw-ring-color: rgba(230,90,59,.28) !important; }
