/* Custom overrides (Webflow export layer) */

/* Opt-in thin scrollbar for inner scroll regions only; page body keeps native scroll. */
.scroll-slim {
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.scroll-slim::-webkit-scrollbar        { width: 6px; height: 6px; }
.scroll-slim::-webkit-scrollbar-track  { background: transparent; }
.scroll-slim::-webkit-scrollbar-thumb  { background: #d1d5db; border-radius: 9999px; }
.scroll-slim::-webkit-scrollbar-button { display: none; width: 0; height: 0; }

.scroll-slim--dark {
  scrollbar-color: #0a0a0a transparent;
}
.scroll-slim--dark::-webkit-scrollbar-thumb { background: #0a0a0a; }

.about-para {
  margin-bottom: 1.5rem;
}

.attention-flex {
  position: relative;
}
.attention-flex::before,
.attention-flex::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  pointer-events: none;
}
/* Left strip sits outside the block, fading from transparent (outer) to white (inner). */
.attention-flex::before {
  right: 100%;
  background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
}
/* Right strip sits outside the block, fading from transparent (outer) to white (inner). */
.attention-flex::after {
  left: 100%;
  background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
}

.service-item-name {
  white-space: nowrap;
}

/* Home services teaser + read-more modal */
.services-item-content {
  grid-template-columns: minmax(2.5rem, 0.3fr) .75fr .75fr 0.72fr;
  column-gap: 1.25rem;
}
.services-item-content .tag.service-item-no {
  width: fit-content;
  justify-self: start;
  margin-right: 0.75rem;
}
@media screen and (max-width: 991px) {
  .services-item-content {
    grid-template-columns: minmax(2rem, 0.25fr) .75fr 1fr 0.38fr;
    column-gap: 1.25rem;
  }
}

.services-item-block[data-service-card] { cursor: pointer; }
.services-items-block > .services-item-block:last-child { border-bottom: 0; }
.services-item-block[data-service-card]:focus { outline: none; }
.services-item-block[data-service-card]:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 4px;
}

.services-item-desp {
  position: relative;
  max-height: 6.4em;
  overflow: hidden;
}
.services-item-desp::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.6em;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0), rgba(10, 10, 10, 0.85) 55%, #0a0a0a);
  pointer-events: none;
}
.services-item-readmore {
  display: inline-flex;
  align-items: center;
  margin-top: 0.85rem;
  color: #fff;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.services-item-block[data-service-card]:hover .services-item-readmore {
  opacity: 1;
  transform: translate(0, 0);
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.service-modal[hidden] { display: none; }
.service-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(2px);
}
.service-modal-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.3);
}
.service-modal-cover {
  position: relative;
  flex: none;
  height: 220px;
}
.service-modal-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.service-modal-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.82), rgba(10, 10, 10, 0.05) 60%);
}
.service-modal-cover-head {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.5rem 1.75rem;
}
.service-modal-no { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.8); }
.service-modal-title { margin: 0.25rem 0 0; font-size: 1.5rem; font-weight: 600; line-height: 1.2; color: #fff; }
.service-modal-text {
  padding: 1.6rem 1.75rem 2rem;
  overflow-y: auto;
  color: #4b5563;
  line-height: 1.7;
}
.service-modal-text p + p { margin-top: 0.75rem; }
.service-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 1.4rem;
  line-height: 1;
  color: #fff;
  cursor: pointer;
}
.service-modal-close:hover { background: rgba(0, 0, 0, 0.55); }
body.service-modal-open { overflow: hidden; }

/* Lang switcher: active locale is a filled red box with white text. */
.lang-switch {
  display: inline-flex;
  align-items: center;
}
.lang-switch__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px;
  font-family: var(--font-family--geist);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.32px;
  line-height: 24px;
  color: #000;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.lang-switch__item.is-active {
  background-color: #e5290e;
  color: #fff;
  cursor: default;
}

/* Navbar switcher on desktop, drawer switcher on mobile. */
body.header-custom .lang-switch--navbar { display: inline-flex; }
body.header-custom .lang-switch--drawer { display: none; }
@media (max-width: 991px) {
  body.header-custom .lang-switch--navbar { display: none; }
  body.header-custom .lang-switch--drawer { display: inline-flex; }
}

/* Scroll-synced marquee (hero + footer · ?custom) */
.footer-top-content--scroll-marquee {
  flex-flow: column;
  align-items: stretch;
  overflow: hidden;
  gap: 0;
  background-image: url(/assets/img/shared/blur-writing.png);
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: contain;
  padding-top: 5.69rem;
  padding-bottom: 1.94rem;
}

.lang-en .footer-top-content--scroll-marquee {
  background-image: url(/assets/img/shared/blur-writing-en.png);
}

.hero-marquee-row {
  overflow: hidden;
  width: 100%;
  contain: layout style paint;
}

.hero-marquee-track {
  display: flex;
  flex: none;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.hero-marquee-set {
  display: flex;
  flex: none;
  align-items: center;
}

.hero-marquee-logo {
  flex: none;
}

/* Home brands tag · bracket scroll-sync (?custom). Spacer width driven by custom.js. */
.brands-tag-wrap {
  overflow: visible;
}

.brands-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  opacity: 1;
  white-space: nowrap;
}

.brands-tag-spacer {
  flex: none;
  width: 2.75rem;
  transform: scaleX(calc(1 - 0.909 * var(--brands-tag-progress, 0)));
  backface-visibility: hidden;
}

.brands-tag-spacer--left {
  transform-origin: right center;
}

.brands-tag-spacer--right {
  transform-origin: left center;
}

.brands-tag-bracket,
.brands-tag-label {
  flex: none;
}

/* Custom footer: brand, two explore columns, contact, bottom bar. */
body.header-custom .footer {
  background: linear-gradient(to bottom, #ffffff 0%, #ffffff 50%, #f0f0f0 100%);
}
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1.3fr 1fr;
  gap: 3rem 2.5rem;
  align-items: start;
  padding-bottom: 3.25rem;
}
.footer-brand { max-width: 21rem; }
.footer-logo-link { display: inline-block; }
.footer-logo { width: 3.75rem; height: auto; display: block; }
.footer-tagline {
  margin: 1.4rem 0 0;
  color: #6f6f6f;
  font-size: var(--_typography---texts-font-sizes--paragraph-s);
  line-height: 1.7;
}
.footer-col-title {
  display: block;
  margin-bottom: 1.4rem;
  color: #9a9a9a;
  font-weight: var(--font-weight--medium);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body.header-custom .footer-nav { display: flex; flex-direction: column; }
.footer-cols { display: flex; gap: 3rem; }
body.header-custom .footer-links-block { gap: 0.85rem; }
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.footer-contact-line {
  color: #0a0a0a;
  text-decoration: none;
  font-weight: var(--font-weight--medium);
  margin-bottom: 0.7rem;
  transition: color 0.2s ease;
}
.footer-contact-line:hover { color: #e30613; }
.footer-address {
  margin: 0.5rem 0 0;
  font-style: normal;
  color: #6f6f6f;
  line-height: 1.7;
  font-size: var(--_typography---texts-font-sizes--paragraph-s);
  max-width: 16rem;
}
.footer-bottom-links { display: flex; gap: 1.75rem; }
.footer-bottom-link {
  position: relative;
  color: #6f6f6f;
  text-decoration: none;
  font-size: var(--_typography---texts-font-sizes--paragraph-s);
  transition: color 0.2s ease;
}
.footer-bottom-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.footer-bottom-link:hover { color: #0a0a0a; }
.footer-bottom-link:hover::after { transform: scaleX(1); }
.copyright-muted {
  color: #b3b3b3;
  font-size: 0.75rem;
}
/* Bottom bar: copyright, links and powered-by side by side. */
body.header-custom .footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

/* Minimal mobile footer is hidden by default; shown only below 640px. */
.footer-mobile { display: none; }

/* Tablet: brand spans the top row, explore + contact share the row below. */
@media (max-width: 991px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}

/* Phone: swap the rich grid for the minimal centred block (logo, inline nav,
   email) with generous whitespace. */
@media (max-width: 640px) {
  .footer-desktop { display: none; }

  .footer-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.75rem;
    padding: 1rem 0 2.75rem;
  }
  .footer-mobile .footer-logo { width: 4.25rem; }

  .footer-inline-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.7rem 1.4rem;
  }
  .footer-inline-link {
    position: relative;
    color: #4a4a4a;
    text-decoration: none;
    font-size: var(--_typography---texts-font-sizes--paragraph-s);
    transition: color 0.2s ease;
  }
  .footer-inline-link:hover { color: #0a0a0a; }
  .footer-inline-link + .footer-inline-link::before {
    content: "";
    position: absolute;
    left: -0.72rem;
    top: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c9c9c9;
    transform: translateY(-50%);
  }

  .footer-email {
    color: #0a0a0a;
    text-decoration: none;
    font-weight: var(--font-weight--medium);
    font-size: var(--_typography---texts-font-sizes--paragraph-m);
    transition: color 0.2s ease;
  }
  .footer-email:hover { color: #e30613; }

  /* Bottom bar centres and stacks under the minimal block. */
  body.header-custom .footer .footer-bottom {
    justify-content: center;
    text-align: center;
    gap: 0.85rem 1.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid #ececec;
  }
}
