/*
 * Home page banner slider.
 * Two kinds of slide (see resources/views/web/pages/index.blade.php):
 *   .vh-slide--text   a picture that fills the slide, with a heading, sub text and a button written on top of it
 *   .vh-slide--flyer  a ready-made picture shown complete (any shape) in front of a blurred copy of itself
 * Best picture size for the admin upload: 1920 x 700 px.
 */
.vh-hero { position: relative; background: #1b1b1b; overflow: hidden; }

/* before the carousel script has started, show only the first slide instead of a tall stack */
.vh-hero-carousel:not(.owl-loaded) { display: flex; overflow: hidden; }
.vh-hero-carousel:not(.owl-loaded) > .vh-slide { flex: 0 0 100%; }

.vh-slide { position: relative; height: clamp(250px, 38vw, 560px); overflow: hidden; color: #fff; }

/* ---- picture with text ---- */
.vh-slide__img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; object-position: center; }
.vh-slide__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 8, 8, .80) 0%, rgba(20, 8, 8, .50) 42%, rgba(20, 8, 8, 0) 74%); }
.vh-slide__body { position: absolute; inset: 0; display: flex; align-items: center; }
.vh-slide__text { max-width: 620px; padding: 0 clamp(18px, 6vw, 90px); }
.vh-slide__title { margin: 0; font-weight: 800; line-height: 1.12; font-size: clamp(1.6rem, 3.6vw, 3.1rem); color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.vh-slide__sub { margin: 12px 0 0; font-size: clamp(.95rem, 1.5vw, 1.3rem); line-height: 1.45; color: rgba(255, 255, 255, .94); text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.vh-slide__btn { display: inline-block; margin-top: 22px; padding: 12px 30px; border-radius: 999px; background: #fff; color: #711516 !important; font-weight: 700; font-size: 1rem; text-decoration: none !important; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.vh-slide__btn:hover, .vh-slide__btn:focus { background: #fdf2f3; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .34); }

/* ---- complete picture (flyer) ---- */
.vh-slide__backdrop { position: absolute; inset: -24px; background-size: cover; background-position: center; filter: blur(24px) brightness(.55); }
.vh-slide__flyer { position: relative; z-index: 1; display: block; height: 100%; text-decoration: none; }
.vh-slide__flyer img { display: block; width: 100% !important; height: 100% !important; object-fit: contain; }

/* ---- no banner has been added yet ---- */
.vh-slide--default { background: linear-gradient(120deg, #4a0c0e 0%, #711516 55%, #a8321f 100%); }

/* ---- arrows and dots ---- */
.vh-hero .owl-nav { margin: 0; }
.vh-hero .owl-nav button.owl-prev, .vh-hero .owl-nav button.owl-next { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; margin: 0; border-radius: 50%; background: rgba(255, 255, 255, .22) !important; color: #fff !important; font-size: 18px; backdrop-filter: blur(4px); transition: background .15s ease; z-index: 3; }
.vh-hero .owl-nav button.owl-prev { left: clamp(8px, 2vw, 28px); }
.vh-hero .owl-nav button.owl-next { right: clamp(8px, 2vw, 28px); }
.vh-hero .owl-nav button.owl-prev:hover, .vh-hero .owl-nav button.owl-next:hover { background: rgba(255, 255, 255, .42) !important; }
.vh-hero .owl-dots { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; z-index: 3; margin: 0; }
.vh-hero .owl-dots .owl-dot { display: inline-block; margin: 0 4px; }
.vh-hero .owl-dots .owl-dot span { display: block; width: 9px; height: 9px; margin: 0; border-radius: 999px; background: rgba(255, 255, 255, .55); transition: width .2s ease, background .2s ease; }
.vh-hero .owl-dots .owl-dot.active span { width: 26px; background: #fff; }

/* ---- phones and small tablets: text sits at the bottom over a lower shade, arrows get smaller ---- */
@media (max-width: 767.98px) {
    .vh-slide { height: clamp(300px, 92vw, 420px); }
    .vh-slide__shade { background: linear-gradient(0deg, rgba(20, 8, 8, .88) 0%, rgba(20, 8, 8, .40) 55%, rgba(20, 8, 8, 0) 100%); }
    .vh-slide__body { align-items: flex-end; padding-bottom: 38px; }
    .vh-slide__text { padding: 0 18px; max-width: none; }
    .vh-slide__title { font-size: 1.55rem; }
    .vh-slide__sub { font-size: .95rem; margin-top: 8px; }
    .vh-slide__btn { margin-top: 14px; padding: 10px 24px; }
    .vh-slide--flyer, .vh-slide:has(.vh-slide__flyer) { height: clamp(200px, 56vw, 320px); }
    .vh-hero .owl-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .vh-slide__btn { transition: none; }
}
