/* Pantry "Interior Design Studio" hero - rebuilt from its Slider Revolution 7 data (slider-7).
   Fonts: Syne 600 (title), Poppins 400 (text). Colours: bg #0f1114, text #f2eee4. */
.pxh {
  --pxh-bg: #0f1114;
  --pxh-fg: #f2eee4;
  --pxh-side: 70px;
  --pxh-bottom: 120px;
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  background: var(--pxh-bg);
  color: var(--pxh-fg);
  isolation: isolate;
  user-select: none;
  touch-action: pan-y;
}
.pxh-slide { position: absolute; inset: 0; visibility: hidden; }
.pxh-slide.is-active, .pxh-slide.is-leaving { visibility: visible; }
.pxh-slide.is-active { z-index: 2; }
.pxh-slide.is-leaving { z-index: 1; }

/* background + Ken Burns (100% -> 110% over 10s) */
.pxh-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.pxh-bg-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: 50% 50%;
  transform-origin: 50% 50%;
  will-change: transform;
}
/* "Blur & Slide" transition: 6 zooming, blurred columns */
.pxh-slots { position: absolute; inset: 0; z-index: 1; display: flex; pointer-events: none; }
.pxh-slot { position: relative; flex: 1 1 0; overflow: hidden; }
.pxh-slot > span {
  position: absolute; top: 0; bottom: 0;
  background-size: cover; background-position: 50% 50%;
  will-change: transform, opacity, filter;
  transition: none;
}

/* layers */
.pxh-mid {
  position: absolute; z-index: 3; left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  padding-left: var(--pxh-side);
}
.pxh-title {
  margin: 0 0 0 -4px; padding-right: 2px;
  font-family: "Syne", sans-serif; font-weight: 600;
  font-size: clamp(42px, 5.1vw, 98px);
  line-height: 0.939;
  letter-spacing: -1px;
  color: var(--pxh-fg);
  perspective: 600px;
}
.pxh-title .pxh-ch { display: inline-block; will-change: transform, opacity; }
.pxh-title .pxh-sp { display: inline-block; width: 0.26em; }

.pxh-bottom {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  margin: 0 var(--pxh-side) var(--pxh-bottom) var(--pxh-side);
  min-height: 56px;
}
.pxh-nav { display: flex; align-items: flex-start; gap: 30px; padding-top: 10px; }
.pxh-arrow {
  width: 42px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--pxh-fg); line-height: 0;
  transition: transform .3s ease;
}
.pxh-arrow svg { width: 100%; height: auto; display: block; }
.pxh-arrow.prev:hover { transform: translateX(-8px); }
.pxh-arrow.next:hover { transform: translateX(8px); }
.pxh-arrow:focus-visible { outline: 2px solid var(--pxh-fg); outline-offset: 6px; }
.pxh-text {
  position: absolute; right: 0; top: 0; width: 485px; margin: 0;
  font-family: "Poppins", sans-serif; font-weight: 400;
  font-size: 17px; line-height: 28px; color: var(--pxh-fg);
}
/* layers are hidden until the slide animates them in */
.pxh-slide .pxh-text, .pxh-slide .pxh-arrow-wrap, .pxh-slide .pxh-ch { opacity: 0; }

@media (max-width: 1439px) {
  .pxh { --pxh-bottom: 60px; }
  .pxh-arrow { width: 38px; }
  .pxh-nav { gap: 20px; padding-top: 8px; }
  .pxh-text { width: 423px; font-size: 15px; line-height: 26px; }
}
@media (max-width: 1279px) and (min-width: 769px) { .pxh { --pxh-side: 30px; } }
@media (max-width: 778px) {
  .pxh { --pxh-side: 30px; --pxh-bottom: 40px; }
  .pxh-title { font-size: clamp(40px, 7.6vw, 59px); }
  .pxh-nav { padding-top: 6px; }
  .pxh-text { display: none; }
}
@media (max-width: 480px) { .pxh { --pxh-side: 20px; --pxh-bottom: 30px; } }

@media (prefers-reduced-motion: reduce) {
  .pxh-slide .pxh-text, .pxh-slide .pxh-arrow-wrap, .pxh-slide .pxh-ch { opacity: 1; }
}

/* ---- Bella Casa additions ---- */
/* fill the screen below the site header (bc-hero.js sets --pxh-offset to the header height) */
.pxh[data-fit="header"] { height: calc(100vh - var(--pxh-offset, 0px)); height: calc(100svh - var(--pxh-offset, 0px)); }
/* the site photos are brighter than the demo's - darken them so the cream text stays readable */
.pxh-shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 17, 20, .78) 0%, rgba(15, 17, 20, .45) 50%, rgba(15, 17, 20, .2) 100%),
    linear-gradient(0deg, rgba(15, 17, 20, .65) 0%, rgba(15, 17, 20, 0) 40%);
}

/* ---- transparent header over the hero (home page only: header gets .bc-header-over from the fill script) ---- */
.th-header.bc-header-over { position: absolute; top: 0; left: 0; right: 0; z-index: 50; border-bottom-color: rgba(242, 238, 228, .14); }
.bc-header-over .sticky-wrapper:not(.sticky) { background: transparent; }
.bc-header-over .sticky-wrapper .main-menu > ul > li > a { color: #f2eee4; }
.bc-header-over .sticky-wrapper .main-menu > ul > li > a:hover,
.bc-header-over .sticky-wrapper .main-menu > ul > li > a:focus-visible { color: var(--theme-color); }
.bc-header-over .sticky-wrapper .main-menu > ul > li.menu-item-has-children > a:after { color: inherit; }
.bc-header-over .sticky-wrapper .header-button .th-btn.black-border { color: #f2eee4; border-color: rgba(242, 238, 228, .55); }
.bc-header-over .sticky-wrapper .header-button .th-btn.black-border:hover { color: var(--white-color); border-color: var(--theme-color); }
.bc-header-over .sticky-wrapper .header-button .icon-btn { color: #f2eee4; border-color: rgba(242, 238, 228, .55); background: transparent; }
/* darken the top of the photo so the menu reads well */
.pxh-shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 17, 20, .6) 0%, rgba(15, 17, 20, 0) 28%); }
/* the sticky (scrolled) menu style is sitewide now - see bella-casa.css */
.bc-header-over .sticky-wrapper .header-button .icon-btn:before,
.th-header.bc-header-over .sticky-wrapper.sticky .header-button .icon-btn:before { background-color: rgba(242, 238, 228, .15); }
.bc-header-over .th-menu-toggle { box-shadow: none; }
