/* Plain static-site helpers: no framework runtime required */
html.static-menu-open,
html.static-menu-open body {
  overflow: hidden;
}

.static-mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 49;
  display: none;
  background: hsl(var(--background) / 0.98);
  backdrop-filter: blur(16px);
  padding: 112px 24px 32px;
  overflow-y: auto;
}

.static-mobile-panel.is-open {
  display: block;
}

.static-mobile-panel__links {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}

.static-mobile-panel__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid hsl(var(--border) / 0.55);
  border-radius: 8px;
  color: hsl(var(--foreground));
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: hsl(var(--card) / 0.72);
  box-shadow: 0 10px 30px -24px hsl(var(--foreground) / 0.28);
}

.static-mobile-panel__links a:hover,
.static-mobile-panel__links a:focus-visible {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.45);
}

.static-mobile-panel__quote {
  margin-top: 20px;
  background: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  border-color: hsl(var(--primary)) !important;
  justify-content: center !important;
}

.static-mobile-toggle.is-open svg line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  transform-origin: center;
}

.static-mobile-toggle.is-open svg line:nth-child(2) {
  opacity: 0;
}

.static-mobile-toggle.is-open svg line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  transform-origin: center;
}

.static-mobile-toggle svg line {
  transition: transform 180ms ease, opacity 180ms ease;
}

@media (min-width: 1024px) {
  .static-mobile-panel {
    display: none !important;
  }
}

.static-back-to-top-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* ====================================================
   Static-site animations (replaces framer-motion runtime)
   ==================================================== */

/* Scroll reveal DISABLED — content should be visible immediately */
.ss-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }


/* Logo intro overlay */
.ss-logo-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: hsl(var(--background));
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ssLogoFadeOut 700ms ease-in-out 1500ms forwards;
}
.ss-logo-intro img {
  width: min(60vw, 24rem);
  height: auto;
  opacity: 0;
  animation: ssLogoFadeIn 900ms ease-out forwards;
}
@keyframes ssLogoFadeIn { to { opacity: 1; } }
@keyframes ssLogoFadeOut { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .ss-logo-intro { display: none !important; }
}

/* Page transition overlay (between link clicks) */
.ss-page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: hsl(var(--background));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}
.ss-page-transition.is-active {
  opacity: 1;
  pointer-events: auto;
}
.ss-page-transition img {
  width: min(40vw, 11rem);
  height: auto;
  filter: drop-shadow(0 10px 30px hsl(var(--foreground) / .25));
  transform: scale(.9);
  opacity: 0;
  transition: opacity 400ms ease, transform 500ms cubic-bezier(.16,1,.3,1);
}
.ss-page-transition.is-active img {
  opacity: 1;
  transform: scale(1);
}

/* Industries carousel (if reintroduced) */
@keyframes ssScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}
.animate-scroll-industries {
  animation: ssScroll 35s linear infinite;
}
.industries-carousel:hover .animate-scroll-industries {
  animation-play-state: paused;
}

/* Subtle hover lift used across cards */
.ss-hover-lift {
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.ss-hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px hsl(var(--foreground) / .25);
}

/* ===== Products / industries infinite carousel ===== */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-scroll {
  animation: scroll 40s linear infinite;
  width: max-content;
  display: flex;
}
.carousel-container { overflow: hidden; width: 100%; }
.carousel-container:hover .animate-scroll { animation-play-state: paused; }

/* Force-visible scroll-reveal wrappers (originally animated by React on viewport enter).
   The static export keeps the initial hidden state classes; show them immediately. */
.transition-all.opacity-0.translate-y-8,
.transition-all.opacity-0.translate-y-4,
.transition-all.opacity-0.translate-y-12 {
  opacity: 1 !important;
  transform: none !important;
}


/* ===== Static nav hover dropdowns ===== */
.ss-nav-item { position: relative; }
.ss-nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  box-shadow: 0 18px 50px -20px hsl(var(--foreground) / 0.3);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  z-index: 60;
}
.ss-nav-dropdown.is-wide {
  min-width: 640px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
}
.ss-nav-item:hover > .ss-nav-dropdown.is-wide,
.ss-nav-dropdown.is-wide:hover {
  transform: translateX(-50%) translateY(0);
}
/* If JS detects overflow it pins dropdown to right edge of trigger */
.ss-nav-item.ss-align-right > .ss-nav-dropdown {
  left: auto;
  right: 0;
  transform: translateY(8px);
}
.ss-nav-item.ss-align-right:hover > .ss-nav-dropdown,
.ss-nav-item.ss-align-right > .ss-nav-dropdown:hover {
  transform: translateY(0);
}
.ss-nav-item:hover > .ss-nav-dropdown,
.ss-nav-dropdown:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.ss-nav-dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.75);
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 150ms ease, color 150ms ease;
}
.ss-nav-dropdown a:hover {
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
}
@media (max-width: 960px) {
  .ss-nav-dropdown.is-wide { min-width: 480px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Language dropdown */
.ss-lang-menu{
  position:absolute; right:0; top:calc(100% + 8px);
  background:#0f0f0f; border:1px solid rgba(255,255,255,.1);
  border-radius:8px; padding:4px 0; min-width:170px;
  max-height:340px; overflow-y:auto;
  box-shadow:0 10px 30px rgba(0,0,0,.4);
  display:none; z-index:200;
}
.ss-lang-menu.is-open{ display:block; }
.ss-lang-item{
  display:block; width:100%; text-align:left;
  padding:8px 14px; background:transparent; border:0;
  color:rgba(255,255,255,.7); font-size:12px; cursor:pointer;
}
.ss-lang-item:hover{ background:rgba(255,255,255,.06); color:#fff; }
.ss-lang-item.is-active{ color:var(--primary, #22b8cf); }
.ss-lang-status{
  margin:0; padding:8px 14px;
  color:rgba(255,255,255,.75); font-size:11px; line-height:1.4;
}
.ss-lang-status:empty{ display:none; }
.ss-lang-retry{
  display:block; margin:0 14px 8px; padding:5px 10px;
  border:1px solid rgba(255,255,255,.25); border-radius:4px;
}

/* Homepage manufacturing statistics strip */
.home-statistics {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 196px;
  padding: 24px 0;
  color: #fff;
  background: rgba(15, 20, 24, .58);
}
.home-statistics__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  width: 100%;
}
.home-statistics__item {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 32px 8px 0;
  text-align: left;
}
.home-statistics__item::after {
  position: absolute;
  top: 4%;
  right: 0;
  width: 1px;
  height: 92%;
  content: "";
  background: rgba(255, 255, 255, .45);
}
.home-statistics__number {
  color: #fff;
  font-size: clamp(48px, 5vw, 64px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .6);
}
.home-statistics__label {
  margin-top: 6px;
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .025em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .75);
}
.home-statistics__statement {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding-left: 36px;
}
.home-statistics__headline {
  margin: 0;
  color: #fff;
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 650;
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
}
.home-statistics__headline strong {
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.home-statistics__description {
  margin-top: 5px;
  color: rgba(255, 255, 255, .92);
  font-size: 14px;
  line-height: 1.45;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
}
@media (max-width: 1023px) {
  .home-statistics {
    min-height: 0;
    padding: 20px 0;
  }
  .home-statistics__item {
    padding-right: 22px;
  }
  .home-statistics__number {
    font-size: clamp(46px, 7vw, 58px);
  }
  .home-statistics__label {
    font-size: 13px;
    letter-spacing: 0;
  }
  .home-statistics__statement {
    padding-left: 24px;
  }
  .home-statistics__description {
    font-size: 13px;
  }
}
@media (max-width: 399px) {
  .home-statistics__item::after {
    display: none;
  }
  .home-statistics__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .home-statistics__item {
    padding: 0;
  }
  .home-statistics__statement {
    padding: 16px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .3);
  }
  background:transparent; color:#fff; font-size:11px; cursor:pointer;
}
.ss-lang-retry:hover{ border-color:var(--primary, #22b8cf); color:var(--primary, #22b8cf); }
.ss-lang-retry[hidden]{ display:none; }

/* Gallery lightbox */
.ss-lightbox{
  position:fixed; inset:0; background:rgba(0,0,0,.9);
  display:none; align-items:center; justify-content:center;
  z-index:9999; padding:20px;
}
.ss-lightbox.is-open{ display:flex; }
.ss-lightbox__img{
  max-width:92vw; max-height:88vh; object-fit:contain;
  border-radius:8px; box-shadow:0 20px 60px rgba(0,0,0,.6);
}
.ss-lightbox__close{
  position:absolute; top:16px; right:16px;
  width:40px; height:40px; border-radius:50%;
  background:rgba(255,255,255,.15); color:#fff;
  border:0; font-size:24px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.ss-lightbox__close:hover{ background:rgba(255,255,255,.25); }
