/* Unique Decor — header, hero, site chrome */

:root {
  --udi-ink: #14110e;
  --udi-brown: #8b6b4a;
  --udi-gold: #f5c518;
}

/* Kill template clip-path image reveals — they can stick mid-slice */
.img-custom-anim-left,
.img-custom-anim-right,
.img-custom-anim-top,
.img-custom-anim-bottom,
.xcm-about-shot {
  opacity: 1 !important;
  clip-path: none !important;
  transform: none !important;
  animation: none !important;
}

/* Hide leftover XCM floating painter cutout */
.feature-impact-wrapper .right-shape {
  display: none !important;
}

/* Footer: bring back side drawings (renovation sketches, not industrial towers) */
.footer-section-5 {
  position: relative;
  overflow: hidden;
}
.footer-section-5 .right-shape22.udi-footer-drawing,
.footer-section-5 .left-shapess.udi-footer-drawing {
  display: block !important;
  opacity: 0.72 !important;
  filter: none !important;
  pointer-events: none;
  z-index: 1;
}
.footer-section-5 .left-shapess.udi-footer-drawing {
  left: clamp(8px, 2vw, 36px) !important;
  top: 12% !important;
  bottom: auto !important;
  max-width: min(18vw, 220px) !important;
  width: min(18vw, 220px) !important;
}
.footer-section-5 .right-shape22.udi-footer-drawing {
  right: clamp(8px, 2vw, 36px) !important;
  bottom: 72px !important;
  top: auto !important;
  max-width: min(20vw, 240px) !important;
  width: min(20vw, 240px) !important;
}
.footer-section-5 .udi-footer-drawing img {
  width: 100% !important;
  height: auto !important;
  display: block;
  opacity: 1;
}
.footer-section-5 > .container {
  position: relative;
  z-index: 2;
}
.footer-bottom-5 .xcm-footer-copy {
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  color: #14110e !important;
}
@media (max-width: 1399px) {
  .footer-section-5 .right-shape22.udi-footer-drawing,
  .footer-section-5 .left-shapess.udi-footer-drawing {
    opacity: 0.55 !important;
  }
}
@media (max-width: 991px) {
  .footer-section-5 .right-shape22.udi-footer-drawing,
  .footer-section-5 .left-shapess.udi-footer-drawing {
    display: none !important;
  }
}

/* ========== HEADER ========== */
/* Home: stay fixed always so transparent → solid only fades the bar (no fadeInDown / re-mount) */
body.udi-home .udi-split-header,
body.udi-home #header-sticky.udi-split-header,
body.udi-home #header-sticky.udi-split-header.sticky,
body.udi-home #header-sticky.header-7.sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  animation: none !important;
  -webkit-animation: none !important;
}

.udi-split-header {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-bottom: 1px solid transparent;
  overflow: visible !important;
  transition:
    background-color 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    backdrop-filter 0.4s ease,
    -webkit-backdrop-filter 0.4s ease !important;
}

.udi-split-header.sticky,
#header-sticky.udi-split-header.sticky {
  position: fixed !important;
  background: rgba(72, 56, 42, 0.78) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18) !important;
  border-bottom-color: rgba(245, 197, 24, 0.1);
  animation: none !important;
  -webkit-animation: none !important;
}

/* Keep home header height stable while background fades (no shrink jump) */
body.udi-home #header-sticky.header-7.sticky .udi-header-main,
body.udi-home #header-sticky.header-7.sticky .header-main {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 92px !important;
}
body.udi-home #header-sticky.header-7.sticky .udi-header-logo img,
body.udi-home #header-sticky.header-7.sticky .header-logo img {
  height: 78px !important;
  max-height: 78px !important;
  max-width: 200px !important;
  min-height: 0 !important;
}

/* Kill template .sticky fadeInDown on home */
body.udi-home .sticky,
body.udi-home #header-sticky.sticky {
  animation: none !important;
  -webkit-animation: none !important;
}

.udi-split-header,
.udi-split-header .container-fluid,
.udi-split-header .mega-menu-wrapper,
.udi-split-header .udi-header-main,
.udi-split-header .udi-nav,
.udi-split-header .udi-nav > ul,
.udi-split-header .udi-nav > ul > li {
  overflow: visible !important;
}

/* Kill template submenu conflicts inside UDI nav */
.udi-nav .submenu {
  display: block !important;
  height: auto !important;
  max-height: none !important;
}

.udi-split-header .container-fluid {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: clamp(20px, 3vw, 40px);
  padding-right: clamp(20px, 3vw, 40px);
}

.udi-header-main {
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  min-height: 92px;
  width: 100%;
  position: relative;
  gap: 0;
  padding-right: 0;
}

.header-7 .udi-header-main,
.udi-split-header .udi-header-main {
  justify-content: center !important;
}

.udi-header-side {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 0 auto;
}

.udi-header-side--left {
  justify-content: flex-end;
  padding-right: clamp(40px, 4.5vw, 72px);
}

.udi-header-side--right {
  justify-content: flex-start;
  padding-left: clamp(40px, 4.5vw, 72px);
  padding-right: 0;
  gap: 0;
}

.udi-header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  z-index: 2;
}

.udi-header-side--right .udi-quote-btn {
  display: none; /* moved to absolute slot */
}

/* Keep nav/logo optically centered; reserve equal side room for far-right CTA */
@media (min-width: 1200px) {
  .udi-split-header .container-fluid {
    padding-left: clamp(148px, 12vw, 200px) !important;
    padding-right: clamp(148px, 12vw, 200px) !important;
  }
}

/* Far-right CTA — pinned to the header edge, not in the nav cluster */
#header-sticky.udi-split-header .udi-quote-btn--header,
.udi-split-header > .udi-quote-btn--header {
  position: absolute !important;
  right: clamp(16px, 2.8vw, 40px) !important;
  left: auto !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  z-index: 30 !important;
}

@media (max-width: 1199.98px) {
  .udi-header-main {
    display: grid !important;
    grid-template-columns: auto 1fr;
    justify-content: unset !important;
    padding-right: 0;
  }
  #header-sticky.udi-split-header .udi-quote-btn--header,
  .udi-split-header > .udi-quote-btn--header {
    display: none !important;
  }
}

.udi-header-logo {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  max-width: none !important;
  line-height: 0;
}

.udi-header-logo::before,
.udi-header-logo::after {
  display: none !important;
  content: none !important;
}

.udi-header-logo img,
.udi-split-header .udi-header-logo img,
#header-sticky.udi-split-header .udi-header-logo img,
#header-sticky.udi-split-header.sticky .udi-header-logo img {
  display: block !important;
  width: auto !important;
  height: 78px !important;
  max-height: 78px !important;
  min-height: 0 !important;
  max-width: 200px !important;
  object-fit: contain !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
}

.preloader-logo img,
.offcanvas__logo img,
.footer-section-5 .widget-title img,
.footer-widget img {
  background: transparent !important;
  border-radius: 0 !important;
}

.udi-nav {
  display: flex;
  align-items: center;
}

.udi-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(32px, 2.8vw, 48px);
}

.udi-nav > ul > li {
  position: relative;
  margin: 0;
  padding: 0;
}

/* Hover bridge so cursor can reach submenu */
.udi-nav > ul > li.has-dropdown::after {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 18px;
  background: transparent;
}

.udi-nav > ul > li > a {
  color: #fff !important;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none !important;
  padding: 18px 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.udi-nav > ul > li > a i {
  font-size: 0.52rem;
  opacity: 0.7;
}

.udi-nav > ul > li > a:hover,
.udi-nav > ul > li.active > a,
.udi-nav > ul > li.has-dropdown:hover > a {
  color: var(--udi-gold) !important;
}

/* Dropdown panel */
.udi-nav .submenu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: auto !important;
  min-width: 250px;
  margin: 0 !important;
  padding: 10px 0 !important;
  list-style: none !important;
  background: #fff !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18) !important;
  border-radius: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 2000 !important;
  display: block !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.udi-nav--left .submenu {
  left: auto !important;
  right: 0 !important;
}

.udi-nav > ul > li.has-dropdown:hover > .submenu,
.udi-nav > ul > li.has-dropdown:focus-within > .submenu,
.udi-nav > ul > li.has-dropdown.is-open > .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.udi-nav .submenu li {
  width: 100%;
  margin: 0 !important;
  display: block !important;
}

.udi-nav .submenu a {
  color: #3a342e !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  padding: 11px 22px !important;
  width: 100%;
  display: block !important;
  line-height: 1.35 !important;
}

.udi-nav .submenu a:hover {
  color: var(--udi-brown) !important;
  background: rgba(139, 107, 74, 0.08) !important;
}

.udi-nav .submenu a::after {
  display: none !important;
}

.udi-quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 13px 18px;
  background: var(--udi-brown) !important;
  color: #fff !important;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.udi-quote-btn:hover {
  background: var(--udi-gold) !important;
  color: var(--udi-ink) !important;
}

.udi-mean-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.udi-mobile-bar {
  display: none;
  align-items: center;
  gap: 10px;
}

.udi-quote-btn--mobile {
  padding: 10px 12px;
  font-size: 0.6rem;
}

.udi-split-header .header-bar span {
  background: #fff !important;
}

/* ========== HERO ========== */
.udi-hero-rotator {
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  height: 100vh !important;
  height: 100dvh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.udi-hero-video {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  background: #120f0c;
}

.udi-hero-video .xcm-hero-video__el,
.udi-hero-has-video .xcm-hero-video__el {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 1 !important;
  z-index: 1;
  transform: none !important;
  animation: none !important;
  -webkit-animation: none !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.udi-hero-has-video .udi-hero-slides {
  display: none !important;
}

.udi-hero-has-video.is-video-playing .udi-hero-slides,
.udi-hero-has-video:not(.is-video-playing) .udi-hero-slides {
  display: none !important;
  opacity: 0 !important;
}

.udi-hero-slide {
  position: absolute !important;
  inset: 0 !important;
  background: #120f0c center / cover no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 7s ease;
}

.udi-hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.udi-hero-rotator.xcm-hero-video::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  background: linear-gradient(
    180deg,
    rgba(10, 8, 6, 0.58) 0%,
    rgba(10, 8, 6, 0.34) 45%,
    rgba(10, 8, 6, 0.7) 100%
  ) !important;
  pointer-events: none !important;
}

.udi-hero-stage {
  position: relative !important;
  z-index: 5 !important;
  display: flex !important;
  grid-template-columns: none !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 880px !important;
  margin: 0 auto !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  padding: calc(100px + env(safe-area-inset-top, 0px)) 24px 96px !important;
  box-sizing: border-box !important;
}

.udi-hero-copy {
  text-align: center !important;
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.udi-hero-copy .hero-title-1 {
  color: #fff !important;
  font-size: clamp(2.5rem, 5.8vw, 4.35rem) !important;
  line-height: 1.05 !important;
  margin: 0 auto 12px !important;
  text-align: center !important;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
}

.udi-hero-copy .hero-title-2 {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: clamp(1.05rem, 2.1vw, 1.55rem) !important;
  font-weight: 500 !important;
  margin: 0 auto 16px !important;
  text-align: center !important;
}

.udi-hero-copy .xcm-hero-seo,
.udi-hero-copy .xcm-hero-kicker {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.udi-hero-copy .xcm-hero-seo {
  max-width: 34rem;
  color: rgba(247, 241, 232, 0.88) !important;
}

.udi-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: center;
  margin-top: 28px;
}

.udi-hero-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.udi-hero-cta-ghost:hover {
  border-color: var(--udi-gold);
  color: var(--udi-gold) !important;
}

/* Hide old dots completely */
.udi-hero-dots {
  display: none !important;
}

/* Scroll cue */
.udi-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 4vh, 40px);
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none !important;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}

.udi-scroll-cue.is-faded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
}

.udi-scroll-cue__label {
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.udi-scroll-cue__mouse {
  display: none !important;
}

.udi-scroll-cue__chevron {
  width: 22px;
  height: 22px;
  border-right: 2px solid rgba(255, 255, 255, 0.75);
  border-bottom: 2px solid rgba(255, 255, 255, 0.75);
  transform: rotate(45deg);
  animation: udi-scroll-chevron 1.4s ease-in-out infinite;
}

@keyframes udi-scroll-chevron {
  0%, 100% { opacity: 0.35; transform: rotate(45deg) translate(-2px, -2px); }
  50% { opacity: 1; transform: rotate(45deg) translate(3px, 3px); }
}

.udi-scroll-cue:hover {
  color: var(--udi-gold, #f5c518);
}

.udi-scroll-cue:hover .udi-scroll-cue__chevron {
  border-color: var(--udi-gold, #f5c518);
}

/* SEO landings */
.udi-seo-hero {
  padding: 140px 0 72px;
  background:
    linear-gradient(180deg, rgba(20, 17, 14, 0.72), rgba(20, 17, 14, 0.55)),
    var(--udi-seo-bg, #1a1612) center / cover no-repeat;
  color: #fff;
  text-align: center;
}
.udi-seo-hero h1 { color: #fff; margin-bottom: 12px; }
.udi-seo-hero p {
  max-width: 40rem;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.88);
}
.udi-seo-body { padding: 64px 0 80px; }
.udi-seo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 920px;
  margin-inline: auto;
}
@media (min-width: 900px) {
  .udi-seo-grid {
    grid-template-columns: 1fr 1fr;
    max-width: none;
    gap: 32px;
  }
}
.udi-seo-card {
  display: block;
  text-decoration: none !important;
  color: inherit;
  border: 1px solid rgba(20, 17, 14, 0.08);
  background: #fff;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.udi-seo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
}
.udi-seo-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
}
.udi-seo-card__body { padding: 18px 18px 22px; }
.udi-seo-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.udi-seo-card p {
  margin: 0;
  color: #5c534a;
  font-size: 0.95rem;
}

/* Inner pages: solid fixed header from load — never re-animate on scroll */
body:not(.udi-home) .udi-split-header,
body:not(.udi-home) #header-sticky.udi-split-header,
body:not(.udi-home) #header-sticky.udi-split-header.sticky,
body:not(.udi-home) #header-sticky.header-7.sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  background: rgba(72, 56, 42, 0.78) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18) !important;
  border-bottom: 1px solid rgba(245, 197, 24, 0.1);
  transition: none !important;
  animation: none !important;
  -webkit-animation: none !important;
}
body:not(.udi-home) #header-sticky.header-7.sticky .header-main,
body:not(.udi-home) #header-sticky.header-7.sticky .udi-header-main {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 92px !important;
}
body:not(.udi-home) #header-sticky.header-7.sticky .header-logo img,
body:not(.udi-home) #header-sticky.header-7.sticky .udi-header-logo img {
  height: 78px !important;
  max-height: 78px !important;
  max-width: 200px !important;
}
body:not(.udi-home) {
  padding-top: 92px;
}

/* About dropdown anchors clear the fixed header */
#process,
#why-us {
  scroll-margin-top: 110px;
}

.udi-why-about {
  background: #f7f4ef;
}
.udi-why-about__card {
  height: 100%;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid rgba(20, 17, 14, 0.08);
  border-radius: 4px;
}
.udi-why-about__num {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--udi-brown, #8b6b4a);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.udi-why-about__card h3 {
  margin: 0 0 10px;
  color: #14110e;
  font-size: 1.15rem;
  font-weight: 700;
}
.udi-why-about__card p {
  margin: 0;
  color: #5c534a;
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 1199.98px) {
  .udi-split-header .container-fluid {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .udi-split-header .mega-menu-wrapper {
    width: 100% !important;
  }
  .udi-header-main {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 72px;
    gap: 12px;
  }
  .udi-header-side--left,
  .udi-header-side--right {
    display: none !important;
  }
  .udi-header-center {
    flex: 0 1 auto;
    justify-content: flex-start !important;
    margin: 0 !important;
    margin-right: auto !important;
    order: 1;
  }
  .udi-header-logo {
    margin: 0 !important;
  }
  .udi-header-logo img {
    height: 52px !important;
    max-height: 52px !important;
    max-width: min(158px, 42vw) !important;
    width: auto !important;
  }
  .udi-mobile-bar {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto !important;
    order: 2;
  }
  .udi-quote-btn--mobile {
    display: inline-flex !important;
    padding: 10px 12px;
    font-size: 0.58rem;
    white-space: nowrap;
  }
  .udi-mobile-bar .header__hamburger,
  .udi-mobile-bar .sidebar__toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  body:not(.udi-home) {
    padding-top: 72px;
  }
}

@media (max-width: 1199.98px) {
  .udi-hero-rotator,
  .udi-hero-rotator.hero-7,
  .udi-hero-rotator.xcm-hero-fullscreen {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .udi-hero-stage,
  .udi-hero-rotator .xcm-hero-stage,
  .udi-hero-rotator .udi-hero-stage {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding: calc(88px + env(safe-area-inset-top, 0px)) 20px 88px !important;
    box-sizing: border-box !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    text-align: center !important;
  }

  .udi-hero-copy,
  .udi-hero-rotator .xcm-hero-copy,
  .udi-hero-rotator .udi-hero-copy {
    width: 100% !important;
    max-width: 34rem !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
    justify-self: center !important;
  }

  .udi-hero-copy .xcm-hero-kicker,
  .udi-hero-copy .hero-title-1,
  .udi-hero-copy .hero-title-2,
  .udi-hero-copy .hero-title-2__to,
  .udi-hero-copy .xcm-hero-seo {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
  }

  .udi-hero-copy .xcm-hero-seo {
    max-width: 32ch !important;
  }

  .udi-hero-ctas {
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 26px auto 0 !important;
  }

  .udi-hero-ctas .theme-btn-main.style-2,
  .udi-hero-ctas .udi-hero-cta-ghost {
    width: min(100%, 280px) !important;
    max-width: 280px !important;
    margin: 0 auto !important;
  }

  .udi-hero-ctas .theme-btn-main.style-2 {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    padding-right: 0 !important;
  }

  .udi-hero-ctas .theme-btn-main .theme-btn-arrow-left {
    display: none !important;
  }

  .udi-hero-ctas .theme-btn-main .theme-btn {
    flex: 1 1 auto !important;
    text-align: center !important;
    justify-content: center !important;
    width: auto !important;
  }

  .udi-hero-ctas .theme-btn-main .theme-btn-arrow-right {
    position: absolute !important;
    right: 6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
  }
}

@media (max-width: 575.98px) {
  .udi-hero-stage,
  .udi-hero-rotator .xcm-hero-stage,
  .udi-hero-rotator .udi-hero-stage {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .udi-hero-copy .hero-title-1 {
    font-size: clamp(2.15rem, 10vw, 2.85rem) !important;
  }

  .udi-hero-copy .hero-title-2 {
    font-size: clamp(1rem, 4.4vw, 1.25rem) !important;
    max-width: 18ch !important;
  }

  .udi-hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  .udi-hero-ctas .theme-btn-main,
  .udi-hero-cta-ghost {
    width: min(100%, 280px);
    max-width: 280px;
  }
}

/* Mobile only: hero = exact phone screen so copy can true-center. Desktop untouched. */
@media (max-width: 991.98px) {
  .udi-home .udi-hero-rotator,
  .udi-home .udi-hero-rotator.hero-7,
  .udi-home .udi-hero-rotator.xcm-hero-fullscreen,
  .udi-home section.hero-section-7.udi-hero-rotator {
    width: 100% !important;
    height: 100svh !important;
    height: 100dvh !important;
    min-height: 100svh !important;
    min-height: 100dvh !important;
    max-height: 100svh !important;
    max-height: 100dvh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  .udi-home .udi-hero-stage,
  .udi-home .udi-hero-rotator .xcm-hero-stage,
  .udi-home .udi-hero-rotator .udi-hero-stage {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    /* Balanced insets so headline sits in the visual middle of the phone screen */
    padding-top: calc(64px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
  }

  .udi-home .udi-hero-copy,
  .udi-home .udi-hero-rotator .udi-hero-copy {
    margin: 0 auto !important;
    text-align: center !important;
  }

  .udi-home .udi-scroll-cue {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 575.98px) {
  .udi-home .udi-hero-stage,
  .udi-home .udi-hero-rotator .udi-hero-stage {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: calc(56px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
  }
}


/* Failsafe: never block the homepage */
body.udi-home .preloader {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ===== UDI BLOG ===== */
.udi-blog-index { background: #f7f4ef; }
.udi-blog-catrow { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:28px; }
.udi-blog-catpill {
  display:inline-flex; padding:8px 14px; border:1px solid rgba(20,17,14,.12);
  background:#fff; color:#14110e !important; text-decoration:none !important;
  font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
}
.udi-blog-catpill:hover { border-color: var(--udi-brown); color: var(--udi-brown) !important; }
.udi-blog-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap:22px; }
.udi-blog-card {
  display:flex; flex-direction:column; background:#fff; color:inherit !important;
  text-decoration:none !important; border:1px solid rgba(20,17,14,.08); overflow:hidden;
}
.udi-blog-card img { width:100%; aspect-ratio: 16/10; object-fit:cover; }
.udi-blog-card__body { padding:18px 18px 22px; }
.udi-blog-card__cat { display:block; color:var(--udi-brown); font-size:.7rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; margin-bottom:6px; }
.udi-blog-card time { display:block; color:#7a7268; font-size:.82rem; margin-bottom:8px; }
.udi-blog-card h3 { margin:0 0 8px; color:#14110e; font-size:1.15rem; line-height:1.35; }
.udi-blog-card p { margin:0; color:#5c534a; font-size:.92rem; line-height:1.5; }
.udi-blog-article { background:#f7f4ef; }
.udi-blog-article__header { margin-bottom:22px; }
.udi-blog-meta { color:#7a7268; font-size:.9rem; }
.udi-blog-meta a { color:var(--udi-brown) !important; font-weight:700; text-decoration:none !important; }
.udi-blog-dek { font-size:1.15rem; color:#3d372f; line-height:1.6; margin-top:12px; }
.udi-blog-toc {
  background:#fff; border:1px solid rgba(20,17,14,.08); padding:20px 22px; margin:0 0 28px;
}
.udi-blog-toc h2 { margin:0 0 12px; font-size:1rem; letter-spacing:.08em; text-transform:uppercase; }
.udi-blog-toc ol { margin:0; padding-left:1.2rem; }
.udi-blog-toc li { margin:6px 0; }
.udi-blog-toc a { color:#14110e !important; text-decoration:none !important; }
.udi-blog-toc a:hover { color:var(--udi-brown) !important; }
.udi-blog-content {
  background:#fff; border:1px solid rgba(20,17,14,.08); padding:28px 26px 36px;
}
.udi-blog-section { margin-bottom:28px; scroll-margin-top:110px; }
.udi-blog-section h2 { margin:0 0 12px; font-size:1.45rem; color:#14110e; }
.udi-blog-section p { color:#3d372f; line-height:1.7; margin:0 0 14px; }
.udi-blog-section a { color:var(--udi-brown) !important; font-weight:600; }
.udi-blog-cta {
  margin-top:36px; padding:24px; background:#f7f4ef; border:1px solid rgba(139,107,74,.25);
}
.udi-blog-cta h2 { margin:0 0 10px; font-size:1.25rem; }
.udi-blog-textlink { display:inline-block; margin-left:14px; color:var(--udi-brown) !important; font-weight:700; }
.udi-blog-sidebar .udi-blog-widget {
  background:#fff; border:1px solid rgba(20,17,14,.08); padding:20px; margin-bottom:18px;
}
.udi-blog-widget h3 { margin:0 0 12px; font-size:.95rem; letter-spacing:.08em; text-transform:uppercase; }
.udi-blog-widget ul { list-style:none; margin:0; padding:0; }
.udi-blog-widget li { margin:8px 0; }
.udi-blog-widget a { color:#14110e !important; text-decoration:none !important; font-weight:600; }
.udi-blog-widget a:hover { color:var(--udi-brown) !important; }
.udi-blog-related { margin-top:48px; }
.udi-blog-related h2 { margin-bottom:18px; }
.udi-blog-related__grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.udi-blog-related__card {
  display:block; background:#fff; border:1px solid rgba(20,17,14,.08);
  text-decoration:none !important; color:inherit !important; overflow:hidden;
}
.udi-blog-related__card img { width:100%; aspect-ratio:16/10; object-fit:cover; }
.udi-blog-related__card span, .udi-blog-related__card strong { display:block; padding:0 14px; }
.udi-blog-related__cat { margin-top:12px; color:var(--udi-brown); font-size:.68rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.udi-blog-related__card strong { padding-bottom:16px; margin-top:6px; font-size:.98rem; line-height:1.35; color:#14110e; }
@media (max-width: 991px) {
  .udi-blog-related__grid { grid-template-columns:1fr; }
}

/* ===== UDI BLOG FIGURE ===== */
.udi-blog-figure {
  margin: 0 0 22px;
  background: #fff;
  border: 1px solid rgba(20, 17, 14, 0.08);
  overflow: hidden;
}
.udi-blog-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.udi-blog-figure figcaption {
  padding: 10px 14px 12px;
  font-size: 0.88rem;
  color: #5c534a;
  line-height: 1.45;
}
.udi-blog-section h2 + .udi-blog-figure { margin-top: 4px; }

/* ===== PORTFOLIO CATEGORY PAGES ===== */
.udi-pcat {
  padding: 56px 0 88px;
  background: #f7f3ec;
  color: #14110e;
}
.udi-pcat__intro {
  max-width: 44rem;
  margin: 0 auto 40px;
  text-align: center;
}
.udi-pcat__intro h2 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  color: #14110e;
}
.udi-pcat__intro p {
  margin: 0 0 12px;
  color: #5c534a;
  line-height: 1.65;
  font-size: 1.02rem;
}
.udi-pcat__crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 18px 0 0;
  font-size: 0.92rem;
}
.udi-pcat__crumbs a {
  color: #3d342c;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.udi-pcat__crumbs a:hover { color: var(--udi-brown, #6b4f35); }

.udi-pcat-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 0 0 56px;
}
@media (min-width: 640px) {
  .udi-pcat-gallery { grid-template-columns: 1fr 1fr; gap: 22px; }
}
@media (min-width: 1100px) {
  .udi-pcat-gallery { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.udi-pcat-card {
  background: #fff;
  border: 1px solid rgba(20, 17, 14, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.udi-pcat-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #ebe4da;
}
.udi-pcat-card__body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.udi-pcat-card__tag {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--udi-brown, #6b4f35);
}
.udi-pcat-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
  color: #14110e;
}
.udi-pcat-card p {
  margin: 0;
  color: #5c534a;
  font-size: 0.94rem;
  line-height: 1.55;
}

.udi-pcat-case {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  background: #fff;
  border: 1px solid rgba(20, 17, 14, 0.08);
  padding: 28px 22px;
  margin-bottom: 48px;
}
@media (min-width: 960px) {
  .udi-pcat-case {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    padding: 36px 40px;
    align-items: start;
  }
}
.udi-pcat-case__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.udi-pcat-case__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #ebe4da;
}
.udi-pcat-case__media img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}
.udi-pcat-case__kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--udi-brown, #6b4f35);
}
.udi-pcat-case h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  color: #14110e;
}
.udi-pcat-case p {
  margin: 0 0 14px;
  color: #5c534a;
  line-height: 1.65;
}
.udi-pcat-steps {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.udi-pcat-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}
.udi-pcat-steps strong {
  display: block;
  margin-bottom: 2px;
  color: #14110e;
  font-size: 0.98rem;
}
.udi-pcat-steps span {
  color: #5c534a;
  font-size: 0.92rem;
  line-height: 1.5;
}
.udi-pcat-steps__n {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(107, 79, 53, 0.12);
  color: var(--udi-brown, #6b4f35);
  font-weight: 700;
  font-size: 0.85rem;
}

.udi-pcat-links {
  margin-bottom: 48px;
}
.udi-pcat-links h2 {
  margin: 0 0 18px;
  text-align: center;
  font-size: 1.35rem;
}
.udi-pcat-links__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  .udi-pcat-links__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .udi-pcat-links__grid { grid-template-columns: repeat(4, 1fr); }
}
.udi-pcat-links a {
  display: block;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(20, 17, 14, 0.08);
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.udi-pcat-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}
.udi-pcat-links strong {
  display: block;
  margin-bottom: 4px;
  color: #14110e;
  font-size: 0.98rem;
}
.udi-pcat-links span {
  color: #5c534a;
  font-size: 0.88rem;
  line-height: 1.45;
}

.udi-pcat-cta {
  text-align: center;
  padding: 36px 28px;
  background: #2a221c;
  color: #fff;
}
.udi-pcat-cta h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}
.udi-pcat-cta p {
  margin: 0 auto 22px;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}
.udi-pcat-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.udi-pcat-cta .udi-quote-btn {
  margin: 0;
}
.udi-pcat-cta .udi-pcat-cta__secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.92rem;
}
.udi-pcat-cta .udi-pcat-cta__secondary:hover {
  border-color: var(--udi-gold, #f5c518);
  color: var(--udi-gold, #f5c518) !important;
}
