:root {
  --catalog-ink: #153044;
  --catalog-deep: #142b39;
  --catalog-accent: #e27639;
  --catalog-line: #dce4e7;
  --catalog-tint: #edf3f4;
  --whatsapp: #116848;
  --whatsapp-hover: #0c5238;
}

/* Site navigation and consultation */
.refit-header {
  position: relative;
  z-index: 2;
  border-block-end: 1px solid var(--catalog-line);
}

.contact-bar {
  background: var(--catalog-deep);
  color: #fff;
  font-size: .8rem;
}

.contact-bar > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 34px;
  gap: 2px 1rem;
  padding-block: 4px;
}

.contact-bar a { color: inherit; direction: ltr; unicode-bidi: isolate; text-decoration-color: #97b2bd; text-underline-offset: .24em; }
.contact-bar a:hover { text-decoration-color: currentColor; }
.refit-header .header-inner { min-height: 83px; }
.wordmark-image {
  width: 172px;
  height: auto;
}
.refit-header .main-nav { gap: 6px clamp(12px, 1.7vw, 27px); }
.refit-header .main-nav a { color: var(--catalog-ink); line-height: 1.35; }
.refit-header .main-nav a:hover,
.refit-header .main-nav a[aria-current="page"] {
  color: #a4471c;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .42em;
}

.refit-header .language-picker select { border-color: var(--catalog-line); }
.refit-header .header-cta, .button-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.refit-header .header-cta:hover, .button-whatsapp:hover { background: var(--whatsapp-hover); }

.whatsapp-float {
  position: fixed;
  inset-inline-end: min(26px, 4vw);
  inset-block-end: max(17px, env(safe-area-inset-bottom));
  z-index: 4;
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1rem;
  border: 1px solid rgb(255 255 255 / .47);
  border-radius: 2rem;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 9px 24px rgb(10 42 33 / .22);
  font-size: .875rem;
  font-weight: 750;
  text-decoration: none;
}

.whatsapp-float:hover { background: var(--whatsapp-hover); }
.whatsapp-float svg { width: 21px; height: 21px; flex: 0 0 auto; }

/* Full-width image carousel */
.enterprise-hero.hero {
  display: block;
  min-height: 0;
  background: var(--catalog-deep);
}

.enterprise-hero .hero-slide {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(468px, 42vw, 658px);
  overflow: hidden;
}

.enterprise-hero .hero-image,
.enterprise-hero .hero-slide::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.enterprise-hero .hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: center 56%;
}

.enterprise-hero .hero-slide::after {
  content: "";
  z-index: -1;
  background:
    linear-gradient(0deg, rgb(12 28 37 / .69), transparent 45%),
    linear-gradient(90deg, rgb(12 28 37 / .88), rgb(12 28 37 / .65) 35%, rgb(12 28 37 / .22) 70%, rgb(12 28 37 / .08));
}

html[dir="rtl"] .enterprise-hero .hero-slide::after {
  background:
    linear-gradient(0deg, rgb(12 28 37 / .69), transparent 45%),
    linear-gradient(270deg, rgb(12 28 37 / .88), rgb(12 28 37 / .65) 35%, rgb(12 28 37 / .22) 70%, rgb(12 28 37 / .08));
}

.enterprise-hero .hero-content { max-width: min(100%, 720px); padding-block: clamp(50px, 7.5vw, 115px) 108px; }
.enterprise-hero .hero-content h1,
.enterprise-hero .hero-title {
  max-width: 19ch;
  color: #fff;
  font-size: clamp(2.75rem, 5.4vw, 5.6rem);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.enterprise-hero .hero-copy { max-width: 56ch; color: #f2f7f9; text-wrap: pretty; }
.enterprise-hero .hero-actions { gap: 12px 19px; margin-block-start: 28px; }
.enterprise-hero .button-outline { color: #fff; border-color: rgb(255 255 255 / .52); background: rgb(10 29 40 / .27); }
.enterprise-hero .button-outline:hover { background: rgb(10 29 40 / .72); }
.enterprise-hero .section-label { color: #ffd2b1; }

.enterprise-hero .hero-switcher {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 24px;
  z-index: 1;
  display: flex;
  align-items: stretch;
  width: var(--wrap);
  gap: 7px;
}

.hero-switcher button {
  display: flex;
  align-items: center;
  min-height: 42px;
  gap: 9px;
  padding: .58rem .85rem;
  border: 1px solid rgb(255 255 255 / .48);
  border-radius: 0;
  background: rgb(10 29 40 / .66);
  color: #fff;
  font-size: .83rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: start;
  cursor: pointer;
}

.hero-switcher button::before {
  content: "";
  width: 13px;
  height: 3px;
  flex: 0 0 13px;
  background: #b9c8ce;
}
.hero-switcher button[aria-pressed="true"] { border-color: #ffd3b2; background: #fff4eb; color: #4d2c1c; }
.hero-switcher button[aria-pressed="true"]::before { background: var(--catalog-accent); }
.hero-switcher button:hover:not([aria-pressed="true"]) { background: #244657; }

/* Photo shortcuts and product catalogue */
.catalog-directory { padding-block: clamp(28px, 4vw, 55px); }
.catalog-directory h2 { margin-block-end: clamp(15px, 2vw, 26px); }
.catalog-photo-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(11px, 1.65vw, 24px);
}

.catalog-photo-links a {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--catalog-line);
  border-block-end: 3px solid transparent;
  border-radius: 4px;
  color: var(--catalog-ink);
  background: #fff;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease;
}
.catalog-photo-links a:hover { border-block-end-color: var(--catalog-accent); background: #fff7f0; }
.catalog-photo-links img { width: 100%; aspect-ratio: 2.38; object-fit: cover; }
.catalog-photo-links span { padding: 11px 14px 12px; font-size: clamp(.78rem, 1.45vw, 1.08rem); font-weight: 770; line-height: 1.24; text-align: center; overflow-wrap: anywhere; }

.enterprise-products { background: #21495c; color: #fff; }
.centered-head.section-top { display: grid; justify-items: center; justify-content: center; text-align: center; gap: 13px; }
.centered-head.section-top > p, .centered-head.section-top > div > p:not(.section-label) { max-width: 65ch; text-wrap: pretty; }
.centered-head.section-top > div > p:not(.section-label) { margin: 14px auto 0; }
.enterprise-products .section-label { color: #ffd0aa; }
.enterprise-products .centered-head > p,
.enterprise-products .centered-head > div > p:not(.section-label),
.enterprise-products .catalog-note { color: #e5eff2; }
.enterprise-products h2 { text-wrap: balance; }

.catalog-page-heading {
  padding-block: clamp(29px, 4vw, 54px);
  border-block-end: 3px solid var(--catalog-accent);
  background: linear-gradient(115deg, var(--catalog-deep) 35%, #21495c);
  color: #fff;
}
.catalog-page-heading a { color: #e5eff2; font-size: .84rem; text-underline-offset: .2em; }
.catalog-page-heading h1 { margin-block-start: 8px; font-size: clamp(2.15rem, 4.25vw, 4.2rem); text-wrap: balance; }
.catalog-page-heading p { max-width: 68ch; margin-block-start: 12px; color: #e6eff2; text-wrap: pretty; }
.catalog-products { padding-block: clamp(28px, 4.3vw, 58px); background: #f1f5f6; }

.catalog-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 0 clamp(16px, 2.2vw, 28px); }
.catalog-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .5rem .9rem;
  border: 1px solid #aabfc9;
  border-radius: 4px;
  background: #fff;
  color: var(--catalog-ink);
  font-size: .88rem;
  font-weight: 720;
  line-height: 1.24;
  text-decoration: none;
}
.catalog-jump a:hover { border-color: var(--catalog-ink); background: #e5edf0; }
.catalog-jump a[aria-current] { border-color: var(--catalog-ink); background: var(--catalog-ink); color: #fff; }

.catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.55vw, 22px); }
.catalog-products .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.catalog-grid .product-card {
  scroll-margin-block-start: 28px;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid #d1dde2;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 13px rgb(8 26 37 / .05);
  color: var(--ink);
}

.catalog-grid .product-card:target { outline: 3px solid var(--catalog-accent); outline-offset: 3px; }
.catalog-grid .product-media { aspect-ratio: 1.57; background: #e6edf0; }
.catalog-grid .product-media img { object-position: center 49%; }
.catalog-grid .product-media figcaption { font-size: .68rem; }
.catalog-grid .product-content { min-width: 0; padding: clamp(13px, 1.34vw, 19px); }
.catalog-grid h2 { font-size: clamp(1.06rem, 1.42vw, 1.35rem); line-height: 1.22; text-wrap: balance; overflow-wrap: anywhere; }
.enterprise-products .catalog-grid h3 { font-size: clamp(1.18rem, 1.9vw, 1.72rem); text-wrap: balance; }
.enterprise-products .catalog-grid .product-content > p:not(.field-heading) { margin-block: 9px 15px; font-size: .92rem; }
.catalog-grid .field-heading { margin-block-start: 9px; font-size: .76rem; }
.catalog-grid .sizes { margin-block: 6px 0; flex-wrap: wrap; gap: 4px; }
.catalog-grid .sizes span { min-height: 36px; min-width: 32px; padding-inline: 5px; font-size: .73rem; }
.catalog-spec, .product-specs { display: grid; gap: .4rem; color: var(--muted); }
.catalog-spec { width: 100%; margin: 11px 0 13px; padding-block-start: 10px; border-block-start: 1px solid var(--catalog-line); font-size: .79rem; line-height: 1.35; }
.product-specs > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: .25rem .65rem; }
.catalog-spec > .catalog-spec-full { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
.product-specs dt { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.product-specs dd { margin: 0; overflow-wrap: anywhere; }

.product-details { display: block; width: 100%; margin-block-end: 14px; font-size: .86rem; }
.product-details > summary { padding-block: .5rem; cursor: pointer; font-weight: 750; }
.product-details > summary::marker { color: #a04c20; }
.product-details > summary:focus-visible { outline: 2px solid #ce5100; outline-offset: 2px; }

.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block-start: auto; padding-block-start: 5px; }
.catalog-grid .product-actions { width: 100%; display: grid; gap: 2px; }
.catalog-grid .product-actions .button { min-height: 43px; padding: .55rem .65rem; font-size: .82rem; line-height: 1.24; text-align: center; overflow-wrap: anywhere; }
.catalog-grid .product-link { min-height: 36px; display: grid; place-items: center; line-height: 1.24; font-size: .79rem; text-align: center; overflow-wrap: anywhere; }
.catalog-note { margin-block-start: 19px; color: var(--muted); font-size: .875rem; }
.view-catalog { margin-block-start: 21px; text-align: center; }
.view-catalog .button { color: #fff; border-color: #9cb6c3; }
.view-catalog .button:hover { background: #173a4d; }

/* Factory, applications and workflow */
.factory-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-block-end: clamp(20px, 3vw, 32px);
}
.factory-heading h2 { color: var(--catalog-ink); }
.factory-heading p { max-width: 59ch; margin-block-start: .55rem; color: var(--muted); }
.factory-quote { flex: 0 0 auto; color: var(--catalog-ink); border-color: #aebec7; }
.factory-quote:hover { background: var(--catalog-tint); }
.factory-media {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  align-items: start;
  gap: clamp(16px, 2.25vw, 30px);
}
.factory-screening, .factory-photo {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--catalog-line);
  border-radius: 8px;
  background: #fff;
}
.factory-screening video {
  display: block;
  width: 100%;
  height: clamp(270px, 32vw, 410px);
  object-fit: contain;
  background: radial-gradient(ellipse at center, #254151, #152530 75%);
  direction: ltr;
}
.factory-primary figcaption, .factory-photo figcaption {
  padding: .76rem .88rem;
  color: var(--catalog-ink);
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.35;
}
.factory-secondary { border-block-start: 1px solid var(--catalog-line); }
.factory-secondary summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 13px;
  gap: .72rem;
  align-items: center;
  padding: .58rem .88rem;
  color: var(--catalog-ink);
  background: #f5f8f9;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 650;
  line-height: 1.32;
  list-style: none;
}
.factory-secondary summary::-webkit-details-marker { display: none; }
.factory-secondary summary:hover { background: var(--catalog-tint); }
.factory-secondary summary:focus-visible { outline: 3px solid #a4471c; outline-offset: -4px; }
.factory-secondary summary img { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; }
.factory-secondary summary::after {
  content: "";
  width: 8px;
  height: 8px;
  justify-self: center;
  margin-block-start: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.factory-secondary[open] summary::after { margin-block-start: 3px; transform: rotate(225deg); }
.factory-workshop { display: grid; gap: clamp(15px, 1.8vw, 23px); }
.factory-stills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(9px, 1.15vw, 14px); }
.factory-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--catalog-tint); }
.factory-copy {
  display: grid;
  gap: .65rem;
  padding: clamp(.82rem, 1.4vw, 1.2rem) clamp(.9rem, 1.65vw, 1.35rem);
  border-inline-start: 3px solid var(--catalog-accent);
  border-start-end-radius: 6px;
  border-end-end-radius: 6px;
  background: var(--catalog-tint);
  color: var(--catalog-ink);
  list-style: none;
}
.factory-copy li + li { padding-block-start: .62rem; border-block-start: 1px solid #d3dee3; }
.factory-copy li p { margin-block-start: .15rem; color: var(--muted); font-size: .89rem; }

.factory-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.1vw, 26px);
  margin-block-start: clamp(23px, 3.1vw, 39px);
}
.factory-gallery .production-photo { aspect-ratio: 1.58; border-radius: 3px; }
.factory-gallery figcaption { display: grid; gap: 3px; padding-block: .75rem; border-block-end: 1px solid var(--catalog-line); }
.factory-gallery figcaption span { color: var(--muted); font-size: .875rem; }

.applications { background: #f0f5f6; }
.application-grid { gap: clamp(15px, 2.15vw, 28px); }
.application-grid .application-card {
  min-width: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--catalog-line);
  border-radius: 4px;
  background: #fff;
  padding: 0;
}
.application-card > img { aspect-ratio: 1.68; width: 100%; object-fit: cover; }
.application-card h3 { margin: 18px 18px 0; font-size: clamp(1.18rem, 2.2vw, 1.65rem); }
.application-grid .application-card p { margin: .62rem 18px .85rem; font-size: .94rem; }
.application-grid .application-card a { margin: auto 18px 19px; }
.application-card > div:not(.production-photo) { display: flex; flex: 1; flex-direction: column; }

.service-section { background: #fff; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(13px, 2.3vw, 28px); }
.service-card {
  min-width: 0;
  padding: clamp(18px, 2.5vw, 34px);
  border-inline-start: 3px solid var(--catalog-accent);
  background: var(--catalog-tint);
}
.service-card h3 { margin-block-end: .58rem; font-size: clamp(1.18rem, 2.15vw, 1.62rem); }
.service-card p { color: var(--muted); }

.quote-copy > p:not(.section-label) { margin-block-start: 18px; max-width: 45ch; color: #d7e1e6; }
.quote-form label { min-width: 0; }
.quote-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quote-contact { display: inline-flex; flex-wrap: wrap; gap: .45rem; margin-block-start: 19px; color: #fff; }
.quote-contact a { color: inherit; }
.quote-out-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-start: 12px; }
.inquiry-result .quote-out-actions .button { margin-block-start: 0; }

.refit-footer { background: var(--catalog-deep); color: #edfafc; border-block-start: 1px solid #3f6274; }
.refit-footer .footer-inner { display: grid; align-items: start; grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 1fr)); gap: 24px clamp(20px, 4vw, 64px); padding-block: 38px 54px; }
.refit-footer .footer-column { display: grid; justify-items: start; min-width: 0; gap: .5rem; }
.refit-footer .footer-column h2,
.refit-footer .footer-column h3,
.refit-footer .footer-column > strong { color: #fff; font-size: 1rem; letter-spacing: 0; }
.refit-footer .wordmark {
  padding: 7px 9px;
  border-radius: 4px;
  background: #fff;
}
.refit-footer .wordmark-image { width: 156px; }
.refit-footer p { color: #c4d4dc; }
.refit-footer .footer-column a:not(.wordmark) { color: #e1f2f6; text-underline-offset: .25em; overflow-wrap: anywhere; }
.refit-footer .footer-column a:not(.wordmark):hover { color: #fff; }
.refit-footer .footer-column ul { display: grid; gap: .3rem; list-style: none; margin: 0; padding: 0; }

@media (max-width: 1130px) {
  .refit-header .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 11px 15px;
    padding-block: 14px 12px;
  }
  .refit-header .main-nav { grid-area: 2 / 1 / 3 / -1; justify-content: flex-start; }
  .refit-header .header-actions { display: flex; grid-area: 1 / 2; }
}
@media (max-width: 1110px) {
  .catalog-products .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .catalog-products .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .enterprise-products .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .enterprise-hero .hero-slide { min-height: 465px; }
}
@media (max-width: 680px) {
  .enterprise-hero .hero-slide { min-height: clamp(420px, 78vw, 498px); }
  html[dir] .enterprise-hero .hero-slide::after { background: linear-gradient(0deg, rgb(12 28 37 / .77), rgb(12 28 37 / .49)); }
  .enterprise-hero .hero-content { padding-block: 40px 92px; }
  .enterprise-hero .hero-content h1,
  .enterprise-hero .hero-title { font-size: clamp(2.15rem, 8.1vw, 3.8rem); }
  .enterprise-hero .hero-copy { margin-block-start: 15px; font-size: 1rem; }
  .enterprise-hero .hero-actions { margin-block-start: 22px; gap: 8px; }
  .enterprise-hero .hero-switcher { inset-block-end: 18px; }
  .hero-switcher button { padding-inline: .6rem; font-size: .8rem; }
  .catalog-photo-links { gap: 8px; }
  .catalog-photo-links img { aspect-ratio: 1.4; }
  .catalog-photo-links span { padding-inline: 5px; }
  .enterprise-products .catalog-grid, .factory-media, .service-grid { grid-template-columns: minmax(0, 1fr); }
  .factory-screening video { height: clamp(265px, 76vw, 390px); }
  .whatsapp-float.is-cleared-for-video { visibility: hidden; }
  [data-page="catalog"] .whatsapp-float { display: none; }
  .factory-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .refit-footer .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .refit-footer .footer-column:first-child { grid-column: 1 / -1; }
}

@media (max-width: 570px) {
  .catalog-products .catalog-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-jump a { padding-inline: .72rem; font-size: .81rem; }
}

@media (max-width: 460px) {
  .refit-header .header-inner { gap: 9px 8px; min-height: 0; }
  .refit-header .main-nav { gap: .42rem .75rem; }
  .refit-header .header-actions { gap: 6px; }
  .refit-header .language-picker select { min-width: 0; max-width: 104px; padding-inline: 5px; font-size: .76rem; }
  .refit-header .header-cta { width: 44px; min-width: 44px; min-height: 44px; gap: 0; padding: 5px; font-size: 0; }
  .refit-header .header-cta svg { width: 22px; height: 22px; }
  .refit-header .header-cta:not(:has(svg)) { width: auto; font-size: .72rem; overflow-wrap: anywhere; }
  .refit-header .wordmark-image { width: 130px; }
  .quote-form .form-grid, .factory-gallery { grid-template-columns: minmax(0, 1fr); }
  .factory-heading { display: grid; }
  .factory-quote { justify-self: start; min-height: 42px; padding: .55rem .9rem; }
  .factory-photo figcaption { padding: .62rem; font-size: .81rem; }
  .refit-footer .footer-inner { padding-block-end: 83px; }
}

@media (max-width: 400px) {
  .refit-header .header-actions { display: contents; }
  .refit-header .language-picker { grid-area: 1 / 2; }
  .refit-header .main-nav { grid-area: 2 / 1; }
  .refit-header .header-cta { grid-area: 2 / 2; justify-self: end; align-self: start; }
}

html[dir="rtl"] .refit-header .header-inner > .wordmark { justify-self: start; }
