
/* UNIBRO Homepage Hero Slider */

.unibro-hero-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  isolation: isolate;
}

.unibro-hero-slider .home-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.unibro-hero-slider .uhs-media-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .8s ease, visibility 0s linear .8s;
}

.unibro-hero-slider .uhs-media-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity .8s ease;
}

.unibro-hero-slider .uhs-media-slide picture,
.unibro-hero-slider .uhs-media-slide img,
.unibro-hero-slider .uhs-media-slide video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
}

.unibro-hero-slider .uhs-media-slide img,
.unibro-hero-slider .uhs-media-slide video {
  object-fit: cover;
  object-position: center center;
}

.unibro-hero-slider .uhs-mobile-image {
  display: none !important;
}

.unibro-hero-slider .uhs-copy-panel[hidden] {
  display: none !important;
}

.unibro-hero-slider .uhs-copy-panel {
  min-width: 0;
  max-width: 100%;
}

/* Smaller slider heading */
.unibro-hero-slider .uhs-copy-panel h1 {
  font-size: clamp(38px, 4vw, 56px) !important;
  line-height: 1.13 !important;
  letter-spacing: -0.025em;
  max-width: 100%;
  overflow-wrap: break-word;
}

.unibro-hero-slider .uhs-copy-panel h1 em {
  font-size: inherit !important;
  line-height: inherit !important;
}

.unibro-hero-slider .uhs-copy-panel p {
  overflow-wrap: anywhere;
}

.unibro-hero-slider .u26-hero-overlay {
  pointer-events: none;
}

.unibro-hero-slider .u26-hero-content {
  position: relative;
  z-index: 2;
}

/* Navigation */
.unibro-hero-slider .uhs-controls {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: clamp(18px, 3vh, 30px);
  position: relative;
  z-index: 4;
}

.unibro-hero-slider .uhs-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(0, 0, 0, .25);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

.unibro-hero-slider .uhs-arrow:hover,
.unibro-hero-slider .uhs-arrow:focus-visible {
  background: rgba(255, 255, 255, .2);
  outline-offset: 3px;
}

.unibro-hero-slider .uhs-dots {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.unibro-hero-slider .uhs-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
}

.unibro-hero-slider .uhs-dot.is-active {
  background: #ddbd7c;
  transform: scale(1.3);
}

.unibro-hero-slider .uhs-dot:focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .unibro-hero-slider .uhs-copy-panel h1 {
    font-size: clamp(34px, 4.3vw, 44px) !important;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .unibro-hero-slider
  .uhs-media-slide video.uhs-has-mobile-image {
    display: none !important;
  }

  .unibro-hero-slider .uhs-mobile-image {
    display: block !important;
  }

  .unibro-hero-slider .u26-hero-copy,
  .unibro-hero-slider .uhs-copy-panel {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .unibro-hero-slider .uhs-copy-panel h1 {
    font-size: clamp(27px, 7.1vw, 34px) !important;
    line-height: 1.18 !important;
    overflow-wrap: break-word;
  }

  .unibro-hero-slider .u26-hero-actions {
    flex-wrap: wrap;
  }

  .unibro-hero-slider .uhs-controls {
    margin-top: 16px;
    gap: 11px;
  }

  .unibro-hero-slider .uhs-arrow {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 24px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .unibro-hero-slider .uhs-media-slide,
  .unibro-hero-slider .uhs-media-slide.is-active {
    transition: none;
  }
}

/* =========================================================
   HERO SLIDER — ORIGINAL MEDIA BRIGHTNESS, NO DARK TINT
   Hide the separate overlay on ALL slides and screen sizes.
   Header, controls, text, image/video switching and Luxe-inspired
   opening animation stay unchanged.
   ========================================================= */
.unibro-hero-slider .home-hero-media {
  transform: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}
.unibro-hero-slider .uhs-media-slide img,
.unibro-hero-slider .uhs-media-slide video {
  transform: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  object-fit: cover;
  image-rendering: auto;
}
/* Defensive fallback: even if the overlay is reintroduced, it cannot tint media. */
.unibro-hero-slider .u26-hero-overlay {
  display: none !important;
  opacity: 0 !important;
  background: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* Readability for user-entered text without darkening the slide image. */
.unibro-hero-slider .uhs-copy-panel h1,
.unibro-hero-slider .uhs-copy-panel p,
.unibro-hero-slider .uhs-copy-panel .u26-eyebrow {
  text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}

/* =========================================================
   LUXE-INSPIRED INTRO: UNIBRO / INDUSTRIES LTD / SINCE ...
   Runs only on the homepage, never on dashboard or other pages.
   Auto-hides via CSS; a small inline JS also removes the finished DOM.
   ========================================================= */
.unibro-intro-screen {
  position: fixed;
  z-index: 20000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
  color: #f9f6ee;
  pointer-events: auto;
  animation: unibroIntroFadeOut .55s 1.96s both;
}
.unibro-intro-screen__panel {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.1%;
  background: #071c27;
}
.unibro-intro-screen__panel--top {
  top: 0;
  animation: unibroIntroCurtainTop .95s 1.47s cubic-bezier(.74,0,.18,1) both;
}
.unibro-intro-screen__panel--bottom {
  bottom: 0;
  animation: unibroIntroCurtainBottom .95s 1.47s cubic-bezier(.74,0,.18,1) both;
}
.unibro-intro-screen__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: calc(100% - 40px);
  text-align: center;
  animation: unibroIntroBrandExit .38s 1.5s both;
}
.unibro-intro-screen__name {
  display: block;
  margin-left: .16em;
  font: 400 clamp(56px, 10vw, 130px)/1 var(--u26-serif, Georgia, serif);
  letter-spacing: .16em;
  opacity: 0;
  animation: unibroIntroLetterReveal .94s .15s cubic-bezier(.2,.72,.2,1) forwards;
}
.unibro-intro-screen__rule {
  display: block;
  margin: clamp(22px, 3.2vw, 36px) 0 18px;
  width: min(210px, 60vw);
  height: 1px;
  background: #d8b887;
  transform: scaleX(0);
  animation: unibroIntroLineDraw .75s .53s cubic-bezier(.2,.72,.2,1) forwards;
}
.unibro-intro-screen__company,
.unibro-intro-screen__year {
  display: block;
  font-family: var(--u26-sans, Arial, sans-serif);
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  animation: unibroIntroSmallReveal .6s .78s ease forwards;
}
.unibro-intro-screen__company {
  font-size: clamp(10px, 1.4vw, 14px);
  letter-spacing: .38em;
  margin-left: .38em;
}
.unibro-intro-screen__year {
  margin-top: 12px;
  color: #d8b887;
  font-size: clamp(9px, 1vw, 11px);
  letter-spacing: .24em;
  margin-left: .24em;
  animation-delay: 1s;
}
@keyframes unibroIntroLetterReveal {
  from { opacity: 0; letter-spacing: .32em; transform: translateY(16px); }
  to { opacity: 1; letter-spacing: .16em; transform: translateY(0); }
}
@keyframes unibroIntroLineDraw { to { transform: scaleX(1); } }
@keyframes unibroIntroSmallReveal { to { opacity: 1; transform: translateY(0); } }
@keyframes unibroIntroBrandExit { to { opacity: 0; transform: translateY(-12px); } }
@keyframes unibroIntroCurtainTop { to { transform: translateY(-101%); } }
@keyframes unibroIntroCurtainBottom { to { transform: translateY(101%); } }
@keyframes unibroIntroFadeOut {
  from { opacity: 1; visibility: visible; }
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .unibro-intro-screen { display: none !important; animation: none !important; }
  .unibro-hero-slider .uhs-media-slide { transition: none !important; }
}
