/* Bella Casa Interiors - small overrides on top of the Faren template (loaded after style.css). */

/* Real logo (bella-casa-logo.webp, 4:3 stacked mark) - keep each slot about the size the template expects */
.header-logo img { max-height: 78px; width: auto; }
.mobile-logo img { max-width: 170px; height: auto; }
.th-widget-about .about-logo img { max-width: 180px; height: auto; }
.footer-logo img { max-width: 240px; height: auto; }

/* Template sets the container to 1620px+gutters from 1400px up, which is wider than the screen on
   1400-1700px displays (e.g. 1920 laptops at 125% scaling) - content then touches the edges.
   Never let it exceed the viewport minus a comfortable side margin. */
@media (min-width: 1200px) {
  .container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl {
    max-width: min(calc(var(--main-container) + var(--container-gutters)), calc(100vw - 120px));
  }
}

/* Footer call-to-action that replaces the template's "Download Our App" image */
.bc-footer-cta { display: inline-flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.bc-footer-cta .bc-cta-text { color: var(--white-color); font-size: 20px; }
.footer-layout2 .bc-footer-cta { display: flex; justify-content: flex-end; margin-top: 48px; }
@media (max-width: 991px) { .footer-layout2 .bc-footer-cta { justify-content: center; text-align: center; margin-top: 32px; } }

/* Header on every page: dark bar with cream menu (matches the home hero).
   Normal position = solid dark; sticky (after scrolling 500px) = dark glass. The home page overrides the
   normal position to transparent over its hero (bc-hero.css, .bc-header-over). */
.th-header { border-bottom-color: rgba(242, 238, 228, .1); }
.th-header .sticky-wrapper { background-color: #0f1114; }
.th-header .sticky-wrapper.sticky {
  background-color: rgba(15, 17, 20, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(242, 238, 228, .08);
}
.th-header .sticky-wrapper .main-menu > ul > li > a { color: #f2eee4; }
.th-header .sticky-wrapper .main-menu > ul > li > a:hover,
.th-header .sticky-wrapper .main-menu > ul > li > a:focus-visible { color: var(--theme-color); }
.th-header .sticky-wrapper .header-button .th-btn { color: #f2eee4; background-color: transparent; border: 1px solid rgba(242, 238, 228, .55); }
.th-header .sticky-wrapper .header-button .th-btn:hover { color: var(--white-color); border-color: var(--theme-color); }
.th-header .sticky-wrapper .header-button .icon-btn { color: #f2eee4; border-color: rgba(242, 238, 228, .55); background-color: transparent; }
.th-header .sticky-wrapper .header-button .icon-btn:before,
.th-header .sticky-wrapper.sticky .header-button .icon-btn:before { background-color: rgba(242, 238, 228, .15); }

/* About counters: keep the circles round whatever the label length */
.counter-card.style5 { width: 320px; max-width: 320px; flex: 0 0 auto; }
.counter-card.style5 .box-text { max-width: 100%; }
@media (max-width: 1399px) { .counter-card.style5 { width: 280px; max-width: 280px; } }

/* numbered service lists: fixed number column so every title starts at the same x */
.service-list .service-wrapp .number { flex: 0 0 1.6em; }

/* 3D gallery (gallerySlider4): clean slide edges.
   - backdrop-filter on a rotated (coverflow) frame renders as a flat, mis-clipped rectangle in Chromium -> jagged/misaligned edges; replaced by a plain glass tint
   - transparent outline + backface-visibility force anti-aliased edges on the 3D-transformed frames
   - clip the blurred photo to its own box so the blur doesn't bleed into the white frame */
.gallery-slider4 .swiper-slide { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.gallery-item2 .box-img {
  -webkit-backdrop-filter: none; backdrop-filter: none;
  background: rgba(255, 255, 255, .32);
  outline: 1px solid transparent;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  transform: translateZ(0);
}
.gallery-item2 .box-img img { clip-path: inset(0); display: block; }
