/* Berrak v1.86 — homepage bridge for Salient 15.1.0 components.
   Core carousel/fancy-box/recent-post CSS is loaded directly from the user's Salient theme files. */

/* Shared section shell */
.berrak-home-recipes,.berrak-home-blog{overflow:hidden}
.berrak-home-recipes .home-showcase-shell{width:calc(100% - 70px);max-width:none;margin:0 0 0 70px}
.berrak-home-recipes .home-showcase-head{width:calc(100% - 70px);display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin:0 0 30px;padding-right:0}
.berrak-home-recipes .home-showcase-head h2{margin:0;color:#a60000;font-size:34px;line-height:1.08}
.berrak-home-recipes .home-showcase-head p{margin:14px 0 0;color:#111;font-size:16px;line-height:1.45}
.berrak-home-recipes .home-showcase-all{display:inline-block;color:#111!important;border-bottom:1px solid #111;padding-bottom:4px;white-space:nowrap}

/* Recipes — actual Salient/Flickity class structure */
.berrak-home-recipes{padding:30px 0 76px;background:#fff}
.berrak-home-recipes .home-recipe-carousel-wrap{width:100%;overflow:visible}
.berrak-home-recipes .berrak-salient-recipes{overflow:visible}
.berrak-home-recipes .berrak-salient-recipes .flickity-viewport{margin:0!important;overflow:hidden}
.berrak-home-recipes .berrak-salient-recipes .flickity-slider{display:block!important}
.berrak-home-recipes .berrak-salient-recipes .cell{overflow:visible}
.berrak-home-recipes .nectar-fancy-box[data-style="image_above_text_underline"] .image-wrap{position:relative;aspect-ratio:4/5;overflow:hidden;background:#f2f0eb}
.berrak-home-recipes .nectar-fancy-box[data-style="image_above_text_underline"] .image-wrap .box-bg{position:absolute!important;inset:0!important;width:100.2%!important;height:100.2%!important;background-size:cover!important;background-position:center!important}
.berrak-home-recipes .nectar-fancy-box[data-style="image_above_text_underline"] .text{padding:28px 6% 0 0;color:#111}
.berrak-home-recipes .nectar-fancy-box[data-style="image_above_text_underline"] .text h4{margin:0;color:#111;font-size:21px;line-height:1.24;font-weight:600}
.berrak-home-recipes .nectar-fancy-box[data-style="image_above_text_underline"] .text p{margin:0;padding-top:10px;color:#555;font-size:14px;line-height:1.58;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.berrak-home-recipes .nectar-fancy-box[data-style="image_above_text_underline"] .box-link{inset:0!important;width:100%!important;height:100%!important}
.berrak-home-recipes .berrak-salient-recipes.is-moving .nectar-fancy-box{pointer-events:none}
.berrak-home-recipes .berrak-salient-recipes .flickity-page-dots{position:relative;bottom:auto;margin:26px 0 0;text-align:center}
.berrak-home-recipes .berrak-salient-recipes .flickity-page-dots .dot{width:30px;margin:0;opacity:.35;background:transparent}
.berrak-home-recipes .berrak-salient-recipes .flickity-page-dots .dot:before{width:6px;height:6px;margin-left:11px;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 5px #111;transition:all .25s ease}
.berrak-home-recipes .berrak-salient-recipes .flickity-page-dots .dot.is-selected{opacity:1}
.berrak-home-recipes .berrak-salient-recipes .flickity-page-dots .dot.is-selected:before{transform:scale(2);box-shadow:inset 0 0 0 1px #111}

/* Blog — Salient recent-posts multiple-visible layout */
.berrak-home-blog{position:relative;padding:74px 0 82px;background:linear-gradient(to bottom,#d34b3b 0,#d34b3b 58%,#fff 58%,#fff 100%)}
.berrak-home-blog .home-blog-intro{width:min(1100px,calc(100% - 70px));margin:0 auto 42px;text-align:center;color:#fff}
.berrak-home-blog .home-blog-intro h2{margin:0;color:#fff;font-size:clamp(42px,4vw,66px);line-height:1.05;font-weight:500;letter-spacing:-.03em}
.berrak-home-blog .home-blog-intro p{margin:14px auto 0;max-width:720px;color:rgba(255,255,255,.9);font-size:16px}
.berrak-home-blog .nectar-recent-posts-slider_multiple_visible{width:100%;overflow:hidden}
.berrak-home-blog .nectar-recent-posts-slider-inner{width:100%;overflow:visible;padding:0 0 38px}
.berrak-home-blog .nectar-recent-posts-slider-inner .flickity-viewport{overflow:visible}
.berrak-home-blog .nectar-recent-post-slide{width:46.5%;height:478px;margin-right:3.4%;position:relative;overflow:hidden;background:#222;box-shadow:0 14px 38px rgba(0,0,0,.13)}
.berrak-home-blog .nectar-recent-post-slide:after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(to top,rgba(0,0,0,.66) 0,rgba(0,0,0,.12) 62%,rgba(0,0,0,.03) 100%);pointer-events:none}
.berrak-home-blog .nectar-recent-post-bg-wrap,.berrak-home-blog .nectar-recent-post-bg-blur,.berrak-home-blog .nectar-recent-post-bg{position:absolute;inset:0;width:100%;height:100%;background-size:cover;background-position:center}
.berrak-home-blog .nectar-recent-post-bg{transition:transform .55s cubic-bezier(.2,.75,.5,1)}
.berrak-home-blog .nectar-recent-post-slide:hover .nectar-recent-post-bg{transform:scale(1.045)}
.berrak-home-blog .nectar-recent-post-bg-blur{display:none}
.berrak-home-blog .recent-post-container.container{position:relative;z-index:2;width:100%;max-width:none!important;height:100%;padding:0 8%!important;margin:0!important;pointer-events:none}
.berrak-home-blog .recent-post-container .inner-wrap{position:absolute;left:8%;right:8%;bottom:8%;top:auto;max-width:84%;width:auto;transform:none;pointer-events:auto;color:#fff}
.berrak-home-blog .recent-post-container .strong{display:block;margin:0 0 14px;font-size:12px;line-height:1.2;letter-spacing:.12em;text-transform:uppercase}
.berrak-home-blog .recent-post-container .strong a{color:#fff!important;margin:0 10px 0 0;font-weight:600}
.berrak-home-blog .recent-post-container h3{margin:0 0 22px;color:#fff;font-size:clamp(25px,2.2vw,39px);line-height:1.08;font-weight:600;letter-spacing:-.025em}
.berrak-home-blog .recent-post-container h3 a{color:#fff!important}
.berrak-home-blog .nectar-button{display:inline-flex!important;align-items:center;justify-content:center;min-height:46px;padding:0 22px;border-radius:0;background:#fff!important;color:#111!important;font-size:14px;font-weight:600;box-shadow:none!important;visibility:visible!important}
.berrak-home-blog .nectar-recent-posts-slider-inner.is-moving a{pointer-events:none}
.berrak-home-blog .flickity-page-dots{position:relative;bottom:auto;margin:27px 0 0;text-align:center}
.berrak-home-blog .flickity-page-dots .dot{width:30px;margin:0;opacity:.35;background:transparent}
.berrak-home-blog .flickity-page-dots .dot:before{width:6px;height:6px;margin-left:11px;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 5px #111;transition:all .25s ease}
.berrak-home-blog .flickity-page-dots .dot.is-selected{opacity:1}
.berrak-home-blog .flickity-page-dots .dot.is-selected:before{transform:scale(2);box-shadow:inset 0 0 0 1px #111}

@media(max-width:1180px){
  .berrak-home-recipes .home-showcase-shell{width:calc(100% - 52px);margin-left:52px}
  .berrak-home-recipes .home-showcase-head{width:calc(100% - 52px)}
  .berrak-home-blog .nectar-recent-post-slide{height:420px}
}
@media(max-width:820px){
  .berrak-home-recipes{padding:38px 0 64px}
  .berrak-home-recipes .home-showcase-shell{width:calc(100% - 36px);margin-left:36px}
  .berrak-home-recipes .home-showcase-head{width:calc(100% - 36px);align-items:flex-start;flex-direction:column;gap:18px}
  .berrak-home-recipes .nectar-fancy-box[data-style="image_above_text_underline"] .text{padding-top:20px}
  .berrak-home-blog{padding:58px 0 66px;background:linear-gradient(to bottom,#d34b3b 0,#d34b3b 50%,#fff 50%,#fff 100%)}
  .berrak-home-blog .home-blog-intro{width:calc(100% - 36px);margin-bottom:30px}
  .berrak-home-blog .nectar-recent-post-slide{width:74%;height:390px;margin-right:4%}
}
@media(max-width:560px){
  .berrak-home-recipes{padding:28px 0 52px}
  .berrak-home-recipes .home-showcase-shell{width:calc(100% - 28px);margin-left:28px}
  .berrak-home-recipes .home-showcase-head{width:calc(100% - 28px);margin-bottom:22px}
  .berrak-home-recipes .home-showcase-head h2{font-size:29px}
  .berrak-home-recipes .nectar-fancy-box[data-style="image_above_text_underline"] .text h4{font-size:19px}
  .berrak-home-blog{padding:46px 0 56px}
  .berrak-home-blog .home-blog-intro{width:calc(100% - 28px)}
  .berrak-home-blog .home-blog-intro h2{font-size:38px}
  .berrak-home-blog .nectar-recent-post-slide{width:86%;height:345px;margin-right:4.5%}
  .berrak-home-blog .recent-post-container h3{font-size:27px}
}

/* v1.87 — hard fallback so homepage carousels never collapse into vertical stacks
   when Flickity fails to initialize or is blocked by cache/load-order issues. */
.berrak-home-recipes .berrak-salient-recipes:not(.flickity-enabled){
  display:flex;
  gap:30px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  cursor:grab;
  padding:0 0 10px;
  scrollbar-width:none;
}
.berrak-home-recipes .berrak-salient-recipes:not(.flickity-enabled)::-webkit-scrollbar{display:none}
.berrak-home-recipes .berrak-salient-recipes:not(.flickity-enabled).is-native-dragging{cursor:grabbing;scroll-snap-type:none;user-select:none}
.berrak-home-recipes .berrak-salient-recipes:not(.flickity-enabled)>.cell{
  flex:0 0 calc((100% - 90px)/4);
  width:auto!important;
  min-width:0;
  margin:0!important;
  scroll-snap-align:start;
}

.berrak-home-blog .nectar-recent-posts-slider-inner:not(.flickity-enabled){
  display:flex;
  gap:3.4%;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  cursor:grab;
  padding:0 3.5% 38px;
  scrollbar-width:none;
}
.berrak-home-blog .nectar-recent-posts-slider-inner:not(.flickity-enabled)::-webkit-scrollbar{display:none}
.berrak-home-blog .nectar-recent-posts-slider-inner:not(.flickity-enabled).is-native-dragging{cursor:grabbing;scroll-snap-type:none;user-select:none}
.berrak-home-blog .nectar-recent-posts-slider-inner:not(.flickity-enabled)>.nectar-recent-post-slide{
  flex:0 0 46.5%;
  width:auto!important;
  min-width:0;
  margin-right:0!important;
  scroll-snap-align:center;
}

@media(max-width:1299px) and (min-width:1000px){
  .berrak-home-recipes .berrak-salient-recipes:not(.flickity-enabled)>.cell{flex-basis:calc((100% - 60px)/3)}
}
@media(max-width:999px) and (min-width:691px){
  .berrak-home-recipes .berrak-salient-recipes:not(.flickity-enabled)>.cell{flex-basis:calc((100% - 30px)/2)}
  .berrak-home-blog .nectar-recent-posts-slider-inner:not(.flickity-enabled)>.nectar-recent-post-slide{flex-basis:74%}
}
@media(max-width:690px){
  .berrak-home-recipes .berrak-salient-recipes:not(.flickity-enabled){gap:18px}
  .berrak-home-recipes .berrak-salient-recipes:not(.flickity-enabled)>.cell{flex-basis:86%}
  .berrak-home-blog .nectar-recent-posts-slider-inner:not(.flickity-enabled){gap:18px;padding-left:7%;padding-right:7%}
  .berrak-home-blog .nectar-recent-posts-slider-inner:not(.flickity-enabled)>.nectar-recent-post-slide{flex-basis:86%}
}
