/* Institutional theme refinements. Load after industrial.css.
 * Uses the current photographs; no empty video controls or remote dependencies.
 */
:root {
  --muted: #b9beb6;
  --focus: #ead2b2;
}

/* Keep long addresses and translated browser labels inside their grid tracks. */
.intro-section > *,
.production-preview > *,
.development > *,
.fact-grid > *,
.footer-main > *,
.process-grid > *,
.environment-layout > *,
.documents > *,
.contacts-layout > *,
.news-feature > * {
  min-width: 0;
}

.contact-primary > a,
.footer-main a,
.document-link {
  overflow-wrap: anywhere;
}

.button,
.menu-toggle,
.close-dialog,
.catalogue-toolbar select {
  min-height: 44px;
}

.text-link {
  min-height: 44px;
  align-items: center;
}

.button > span,
.text-link > span,
.document-link > span {
  flex-shrink: 0;
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.product-open:focus-visible {
  outline-offset: 7px;
}

.eyebrow {
  font-size: 11px;
}

.hero-foot {
  font-size: 10px;
}

.hero-foot > a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
}

.product-open > div > span,
.wide-photo figcaption,
.footer-main .eyebrow {
  font-size: 11px;
}

.footer-main p,
.footer-main a:not(.brand) {
  font-size: 12px;
}

.footer-main a:not(.brand),
.footer-legal a {
  display: inline-block;
  padding-block: 5px;
}

.footer-legal {
  align-items: center;
  color: #afb8a9;
  font-size: 12px;
}

.wide-photo figcaption {
  right: 20px;
  line-height: 1.6;
}

.product-dialog {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.close-dialog {
  width: 44px;
  height: 44px;
  border-color: #ffffff70;
}

.product-dialog > div {
  padding-top: 66px;
}

/* Preserve the image crop while making shorter laptop screens usable. */
@media (min-width: 651px) and (max-height: 760px) {
  .industrial-hero {
    height: max(530px, calc(100svh - 95px));
    min-height: 530px;
  }

  .hero-content {
    padding-top: 55px;
    padding-bottom: 110px;
  }

  .hero-content h1 {
    font-size: clamp(70px, 7.5vw, 100px);
    margin-block: 16px;
  }
}

@media (max-width: 950px) {
  .navigation a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .navigation a[aria-current="page"] {
    border-left: 2px solid var(--accent);
    padding-left: 14px;
  }

  .navigation {
    overscroll-behavior: contain;
  }

  .product-dialog .dialog-photo {
    height: 100%;
    min-height: 380px;
    max-height: 650px;
  }
}

@media (min-width: 651px) and (max-width: 800px) {
  .environment-layout,
  .documents,
  .news-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
  }

  .environment-layout img {
    height: 420px;
  }

  .environment-layout p:not(.eyebrow),
  .documents p:not(.eyebrow) {
    max-width: 650px;
  }

  .process-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 45px;
  }

  .process-grid img {
    height: 360px;
  }
}

@media (max-width: 650px) {
  html {
    scroll-padding-top: 96px;
  }

  .industrial-hero {
    height: auto;
    min-height: min(650px, calc(100svh - 78px));
  }

  .hero-content {
    padding-block: clamp(50px, 11svh, 92px) 118px;
  }

  .hero-content > .eyebrow {
    font-size: 10px;
    line-height: 1.8;
    max-width: 300px;
  }

  .hero-foot {
    font-size: 9px;
    gap: 12px;
    line-height: 1.6;
    bottom: 18px;
  }

  .hero-foot > span:first-child {
    max-width: 145px;
  }

  .button {
    font-size: 12px;
    line-height: 1.5;
  }

  .sector-strip span {
    font-size: 12px;
  }

  .product-open > div > span,
  .catalogue-note {
    font-size: 12px;
  }

  .catalogue-toolbar label {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalogue-toolbar select {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
  }

  .contact-primary > a {
    font-size: clamp(24px, 7.5vw, 32px);
    letter-spacing: -.025em;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-legal {
    font-size: 11px;
  }

  .product-dialog {
    width: calc(100% - 24px);
    max-height: calc(100svh - 24px);
  }

  .product-dialog .dialog-photo {
    height: clamp(210px, 42svh, 390px);
    min-height: 0;
  }

  .product-dialog > div {
    padding: 28px 24px 32px;
  }

  .product-dialog h2 {
    margin-top: 12px;
  }

  .wide-photo figcaption {
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 270px;
  }

  .hero-actions .button {
    width: 100%;
  }

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

  .product-open img,
  .home-products .product-card:last-child img {
    height: 310px;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (forced-colors: active) {
  .button,
  .menu-toggle,
  .close-dialog,
  .product-open,
  .text-link {
    border: 1px solid ButtonText;
  }

  .navigation a[aria-current="page"] {
    outline: 1px solid Highlight;
  }
}

/* 404 — institutional atmosphere without inventing content */
.page-error main {
  position: relative;
  isolation: isolate;
}

.page-error .error-page {
  position: relative;
  padding-block: clamp(72px, 14vh, 120px) clamp(88px, 16vh, 140px);
  text-align: center;
  max-width: 640px;
}

.page-error .error-page::before {
  content: "";
  position: absolute;
  inset: -40px -24vw 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgb(198 142 95 / 0.14), transparent 68%),
    linear-gradient(180deg, rgb(255 255 255 / 0.02), transparent 55%);
  pointer-events: none;
}

.page-error .error-page h1 {
  font-size: clamp(34px, 4vw, 48px);
  color: var(--accent);
  margin-bottom: 18px;
}

.page-error .error-page-lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
  margin: 0 auto 36px;
  max-width: 34em;
}

.page-error .error-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: center;
  align-items: center;
}

.page-error .error-page-actions .text-link {
  flex-basis: 100%;
  justify-content: center;
  margin-top: 6px;
}

@media (prefers-reduced-motion: no-preference) {
  .page-error .error-page {
    animation: inducol-error-in 0.65s ease both;
  }
}

@keyframes inducol-error-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}
