/*
 * Optimal Home fullscreen Urban Trust Premium hero.
 * Scope: the WordPress homepage only.
 * Version: 0.2.16.
 */

body.page-id-20 #brx-content {
  overflow: clip !important;
}

body.page-id-20 #brx-content > #brxe-xpjsla {
  position: absolute !important;
  z-index: 0 !important;
  inset: 0 0 auto !important;
  width: 100% !important;
  min-height: max(700px, calc(100svh - 77px)) !important;
  height: max(700px, calc(100svh - 77px)) !important;
  pointer-events: none;
}

body.page-id-20 #brx-content > #brxe-xpjsla::before {
  background:
    linear-gradient(90deg, rgba(8, 13, 16, 0.94) 0%, rgba(8, 13, 16, 0.78) 35%, rgba(8, 13, 16, 0.38) 64%, rgba(8, 13, 16, 0.12) 100%),
    linear-gradient(180deg, rgba(11, 16, 19, 0.04) 56%, rgba(11, 16, 19, 0.66) 100%),
    url("/wp-content/themes/bricks-child/assets/images/optimalhome-hero-wroclaw-premium-2026-07-13.webp") center 46% / cover no-repeat !important;
  transform: translate3d(var(--oh-hero-x, 0), var(--oh-hero-y, 0), 0) scale(1.035) !important;
  transform-origin: 62% 50%;
}

body.page-id-20 #brx-content > #brxe-xpjsla::after,
body.page-id-20 #brx-content > .oh-hero-depth {
  display: none !important;
}

body.page-id-20 #brx-content > #brxe-dstvsw,
body.page-id-20 #brx-content > #brxe-ojlrnf,
body.page-id-20 #brx-content > #brxe-thxqka,
body.page-id-20 #brx-content > #brxe-fghkal,
body.page-id-20 #brx-content > #brxe-oyziev {
  display: none !important;
}

.oh-urban-hero {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: max(700px, calc(100svh - 77px));
  overflow: hidden;
  color: #fff;
}

.oh-urban-hero__inner {
  display: grid;
  align-items: center;
  width: min(1185px, calc(100% - 80px));
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(64px, 7vh, 118px) 0 clamp(46px, 6vh, 84px);
}

.oh-urban-hero__content {
  width: min(100%, 980px);
}

.oh-urban-hero__eyebrow {
  margin: 0 0 14px;
  color: #e1bf77;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oh-urban-hero__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.oh-urban-hero__signals span {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(13, 17, 20, 0.38);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.oh-urban-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(52px, 5vw, 82px);
  font-weight: 780;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.34);
  text-wrap: balance;
}

.oh-urban-hero h1 span {
  display: block;
}

.oh-urban-hero__lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.58;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

.oh-urban-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.oh-urban-hero__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.oh-urban-hero__primary {
  color: #16120a;
  border-color: #d7b66f !important;
  background: linear-gradient(135deg, #e8c97d, #c8a76b);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.oh-urban-hero__secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38) !important;
  background: rgba(13, 17, 20, 0.38);
  backdrop-filter: blur(12px);
}

.oh-urban-hero__actions a:hover,
.oh-urban-hero__actions a:focus-visible {
  transform: translateY(-2px);
}

.oh-urban-hero__actions a:focus-visible,
.oh-urban-hero__section-nav a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.oh-urban-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 1020px);
  margin-top: 30px;
}

.oh-urban-hero__facts article {
  min-height: 112px;
  padding: 16px 17px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.76);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.055));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16), inset 1px 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.oh-urban-hero__facts strong,
.oh-urban-hero__facts span {
  display: block;
}

.oh-urban-hero__facts strong {
  margin-bottom: 7px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.oh-urban-hero__facts span {
  font-size: 13px;
  line-height: 1.48;
}

.oh-urban-hero__section-nav {
  position: fixed;
  z-index: 20;
  top: 50%;
  right: 18px;
  display: grid;
  gap: 10px;
  padding: 12px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(13, 17, 20, 0.68);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
  transform: translateY(-50%);
}

.oh-urban-hero__section-nav a {
  display: block;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: transparent;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.oh-urban-hero__section-nav a:hover,
.oh-urban-hero__section-nav a:focus-visible,
.oh-urban-hero__section-nav a.is-current {
  border-color: #e1bf77;
  background: #e1bf77;
  transform: scale(1.12);
}

.oh-urban-decision-strip {
  position: relative;
  z-index: 3;
  color: #fff;
  background: #0d1114;
  border-top: 1px solid rgba(225, 191, 119, 0.22);
}

.oh-urban-decision-strip__inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(0, 1.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  width: min(1185px, calc(100% - 80px));
  margin: 0 auto;
  padding: 25px 0 27px;
}

.oh-urban-decision-strip__intro {
  display: grid;
  gap: 6px;
}

.oh-urban-decision-strip__intro strong {
  color: #e1bf77;
  font-size: 13px;
  font-weight: 800;
}

.oh-urban-decision-strip__intro span,
.oh-urban-decision-strip li span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.45;
}

.oh-urban-decision-strip ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oh-urban-decision-strip li {
  display: grid;
  gap: 3px;
  min-height: 54px;
  padding: 4px 18px;
  border-left: 1px solid rgba(225, 191, 119, 0.58);
}

.oh-urban-decision-strip li strong {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

@media (prefers-reduced-motion: no-preference) {
  .oh-urban-hero__eyebrow,
  .oh-urban-hero__signals,
  .oh-urban-hero h1,
  .oh-urban-hero__lead,
  .oh-urban-hero__actions,
  .oh-urban-hero__facts {
    animation: oh-urban-rise 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .oh-urban-hero__signals { animation-delay: 60ms; }
  .oh-urban-hero h1 { animation-delay: 120ms; }
  .oh-urban-hero__lead { animation-delay: 190ms; }
  .oh-urban-hero__actions { animation-delay: 260ms; }
  .oh-urban-hero__facts { animation-delay: 330ms; }

  @keyframes oh-urban-rise {
    from { opacity: 0; transform: translate3d(0, 22px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
  }
}

@media (max-width: 980px) {
  .oh-urban-hero__inner,
  .oh-urban-decision-strip__inner {
    width: min(100% - 48px, 860px);
  }

  .oh-urban-hero h1 {
    max-width: 700px;
    font-size: clamp(48px, 7vw, 68px);
  }

  .oh-urban-hero__facts {
    max-width: 840px;
  }

  .oh-urban-decision-strip__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 767px) {
  body.page-id-20 #brx-content > #brxe-xpjsla {
    min-height: max(900px, calc(100svh - 70px)) !important;
    height: max(900px, calc(100svh - 70px)) !important;
  }

  body.page-id-20 #brx-content > #brxe-xpjsla::before {
    background:
      linear-gradient(180deg, rgba(8, 13, 16, 0.78) 0%, rgba(8, 13, 16, 0.68) 45%, rgba(8, 13, 16, 0.94) 100%),
      url("/wp-content/themes/bricks-child/assets/images/optimalhome-hero-wroclaw-premium-2026-07-13.webp") 62% center / cover no-repeat !important;
    transform: scale(1.025) !important;
  }

  .oh-urban-hero {
    min-height: max(900px, calc(100svh - 70px));
  }

  .oh-urban-hero__inner {
    align-items: start;
    width: calc(100% - 40px);
    padding: 38px 0 40px;
  }

  .oh-urban-hero__eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .oh-urban-hero__signals {
    gap: 6px;
    margin-bottom: 17px;
  }

  .oh-urban-hero__signals span {
    min-height: 27px;
    padding: 5px 8px;
    font-size: 10px;
  }

  .oh-urban-hero h1 {
    font-size: clamp(38px, 11vw, 48px);
    line-height: 1.02;
  }

  .oh-urban-hero__lead {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.5;
  }

  .oh-urban-hero__actions {
    display: grid;
    gap: 9px;
    margin-top: 20px;
  }

  .oh-urban-hero__actions a {
    width: 100%;
    min-height: 49px;
  }

  .oh-urban-hero__facts {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 20px;
  }

  .oh-urban-hero__facts article {
    min-height: 0;
    padding: 12px 14px;
  }

  .oh-urban-hero__facts strong {
    margin-bottom: 4px;
    font-size: 15px;
  }

  .oh-urban-hero__facts span {
    font-size: 12px;
  }

  .oh-urban-hero__section-nav {
    display: none;
  }

  .oh-urban-decision-strip__inner {
    width: calc(100% - 40px);
    padding: 24px 0 26px;
  }

  .oh-urban-decision-strip ul {
    grid-template-columns: 1fr;
  }

  .oh-urban-decision-strip li {
    min-height: 0;
    padding: 10px 0 10px 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oh-urban-hero *,
  .oh-urban-decision-strip * {
    animation: none !important;
    transition: none !important;
  }
}
