/* ============================================================
   QB Hero Slider — v3.0.0 FINAL CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap');

/* ── Wrapper ── */
.qb-hero-slider-wrapper {
	position: relative;
	overflow: hidden;
	width: 100%;
	font-family: 'Montserrat', sans-serif;
	--qb-gold: #C9A84C;
}

/* ── Swiper base ── */
.qb-hero-slider-wrapper .qb-hero-slider {
	width: 100%;
	height: 620px;
	overflow: hidden;
}
.qb-hero-slider-wrapper .swiper-slide { overflow: hidden; }

/* ── Slide ── */
.qb-slide {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

/* ============================================================
   IMAGE BACKGROUND
   ============================================================ */
.qb-slide-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.06);
	transition: transform 8s cubic-bezier(.25,.46,.45,.94);
	will-change: transform;
	z-index: 0;
}
.swiper-slide-active .qb-slide-bg { transform: scale(1); }

/* ============================================================
   MP4 VIDEO BACKGROUND
   ============================================================ */
.qb-video-wrap {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.qb-video {
	position: absolute;
	top: 50%;
	left: 50%;
	/* Oversized so it always fills the container regardless of aspect ratio */
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	transform: translate(-50%, -50%);
	object-fit: cover;
	will-change: transform;

	/* CRITICAL: pointer-events none stops browser from showing hover UI */
	pointer-events: none !important;
	outline: none !important;

	/* user-select none stops any text-selection cursor */
	user-select: none;
	-webkit-user-select: none;
}

/*
 * NUCLEAR CONTROL STRIP REMOVAL
 * Every browser vendor pseudo-element that could show player UI.
 * We use display:none + opacity:0 + visibility:hidden + pointer-events:none
 * on every known selector so nothing ever bleeds through.
 */
.qb-video::-webkit-media-controls                              { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.qb-video::-webkit-media-controls-enclosure                   { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.qb-video::-webkit-media-controls-panel                       { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.qb-video::-webkit-media-controls-overlay-enclosure           { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.qb-video::-webkit-media-controls-overlay-cast-button         { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.qb-video::-webkit-media-controls-play-button                 { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.qb-video::-webkit-media-controls-start-playback-button       { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.qb-video::-webkit-media-controls-volume-slider               { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.qb-video::-webkit-media-controls-volume-slider-container     { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.qb-video::-webkit-media-controls-mute-button                 { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.qb-video::-webkit-media-controls-timeline                    { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.qb-video::-webkit-media-controls-timeline-container          { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.qb-video::-webkit-media-controls-current-time-display        { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.qb-video::-webkit-media-controls-time-remaining-display      { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.qb-video::-webkit-media-controls-fullscreen-button           { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.qb-video::-webkit-media-controls-toggle-closed-captions-button { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.qb-video::-webkit-media-controls-picture-in-picture-button   { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.qb-video::-webkit-media-controls-closed-captions-container   { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.qb-video::-webkit-media-controls-return-to-realtime-button   { display: none !important; }
.qb-video::-webkit-media-controls-rewind-button               { display: none !important; }
.qb-video::-webkit-media-controls-seek-back-button            { display: none !important; }
.qb-video::-webkit-media-controls-seek-forward-button         { display: none !important; }
.qb-video::-internal-media-controls-overflow-button           { display: none !important; }
.qb-video::-internal-media-controls-download-button           { display: none !important; }
.qb-video::-internal-media-controls-picture-in-picture-button { display: none !important; }
.qb-video::-moz-media-controls                                { display: none !important; }

/*
 * THE SHIELD — an absolutely positioned transparent div that sits
 * DIRECTLY ON TOP of the <video> element.
 * This is the most reliable method to prevent ANY browser UI from
 * being visible or clickable because it's a real DOM element, not
 * a CSS pseudo-element, so it works in ALL browsers without exception.
 */
.qb-video-shield {
	position: absolute;
	inset: 0;
	z-index: 5;          /* above the video (z:0), below overlays (z:10+) */
	background: transparent;
	pointer-events: auto; /* absorbs all mouse/touch events */
	cursor: default;
}

/* ============================================================
   YOUTUBE BACKGROUND
   ============================================================ */
.qb-yt-wrap {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

/* Poster image fades out once the player reports PLAYING */
.qb-yt-poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 2;
	transition: opacity 1s ease;
	pointer-events: none;
}
.qb-yt-wrap.qb-yt-ready .qb-yt-poster { opacity: 0; }

/*
 * YouTube iframe / player div positioning.
 *
 * Strategy:
 * 1. Centre the iframe with top/left 50% + transform.
 * 2. Make it LARGER than the slide (we add 400px on each axis).
 *    This pushes the YouTube control bar, logo, and progress bar
 *    well outside the visible area — they exist but are clipped.
 * 3. The .qb-video-shield (above) is on top, so even the tiny
 *    YouTube watermark that appears in the top-left corner of the
 *    iframe can never be clicked or interacted with.
 */
.qb-yt-player,
.qb-yt-wrap iframe {
	position: absolute !important;
	top:  50% !important;
	left: 50% !important;
	/* +400px each axis guarantees full cover + hides all YouTube chrome */
	width:  calc(100% + 400px) !important;
	height: calc(100% + 400px) !important;
	transform: translate(-50%, -50%) !important;
	pointer-events: none !important;
	border: none !important;
	background: #000 !important;
	z-index: 1 !important;
}

/* ── Editor placeholder ── */
.qb-video-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	z-index: 0;
}
.qb-video-placeholder span {
	color: rgba(255,255,255,0.45);
	font-size: 16px;
	letter-spacing: 2px;
	font-family: 'Montserrat', sans-serif;
}

/* ============================================================
   OVERLAYS (above bg/video, below content)
   ============================================================ */
.qb-overlay {
	position: absolute;
	inset: 0;
	background: var(--qb-overlay, rgba(20,15,0,0.5));
	z-index: 10;
}

.qb-tint {
	position: absolute;
	inset: 0;
	z-index: 11;
	pointer-events: none;
}
.qb-tint::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--qb-tint, rgba(180,130,0,0.38));
	clip-path: polygon(0 0, 55% 0, 36% 100%, 0 100%);
}
.qb-tint::after {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--qb-tint, rgba(180,130,0,0.18));
	clip-path: polygon(80% 0, 100% 0, 100% 100%, 95% 100%);
	opacity: .5;
}

/* ============================================================
   SLIDE CONTENT
   ============================================================ */
.qb-slide-content {
	position: relative;
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 40px;
	max-width: 860px;
	width: 100%;
	text-align: center;
}

/* Sub Title */
.qb-slide-subtitle {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: var(--qb-sub-col, #E8D5A3);
	margin: 0 0 16px;
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .65s ease, transform .65s cubic-bezier(.23,1,.32,1);
}

/* Title */
.qb-slide-title {
	font-size: clamp(26px, 4.2vw, 56px);
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--qb-title-col, #fff);
	margin: 0 0 34px;
	text-shadow: 0 2px 28px rgba(0,0,0,.3);
	opacity: 0;
	transform: translateY(32px);
	transition: opacity .75s ease, transform .75s cubic-bezier(.23,1,.32,1);
}

/* Button wrapper */
.qb-btn-wrap {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .65s ease, transform .65s cubic-bezier(.23,1,.32,1);
}

/* Button */
.qb-slide-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 42px;
	background: var(--qb-btn-bg, #C9A84C);
	color: var(--qb-btn-col, #fff) !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	text-decoration: none !important;
	border: 2px solid transparent;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .3s ease;
	box-shadow: 0 4px 20px rgba(0,0,0,.22);
}
.qb-slide-btn::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--qb-btn-hover, #a8882e);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .35s cubic-bezier(.645,.045,.355,1);
	z-index: 0;
}
.qb-slide-btn:hover::before { transform: scaleX(1); transform-origin: left; }
.qb-slide-btn span { position: relative; z-index: 1; }
.qb-slide-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.28); }

/* ── Active slide: animate in ── */
.qb-slide.qb-slide-in .qb-slide-subtitle { opacity: 1; transform: translateY(0); transition-delay: .2s; }
.qb-slide.qb-slide-in .qb-slide-title    { opacity: 1; transform: translateY(0); transition-delay: .45s; }
.qb-slide.qb-slide-in .qb-btn-wrap       { opacity: 1; transform: translateY(0); transition-delay: .75s; }

/* ============================================================
   LAYOUT 2 — Split Left
   ============================================================ */
.qb-layout2 .qb-slide-content {
	align-items: flex-start;
	text-align: left;
	max-width: 680px;
	margin-left: 8%;
	padding-left: 0;
}
.qb-layout2 .qb-slide-title { font-size: clamp(24px, 3.5vw, 50px); }
.qb-deco-line {
	position: absolute;
	left: 8%;
	bottom: 100px;
	width: 0;
	height: 3px;
	background: var(--qb-gold);
	z-index: 20;
	transition: width .6s cubic-bezier(.23,1,.32,1) 1s;
}
.qb-slide.qb-slide-in .qb-deco-line { width: 80px; }

/* ============================================================
   ARROWS
   ============================================================ */
.qb-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 30;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255,255,255,.15);
	border: 1.5px solid rgba(255,255,255,.35);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .3s, border-color .3s, transform .25s;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	outline: none;
	padding: 0;
}
.qb-arrow svg { width: 20px; height: 20px; stroke: #C9A84C; transition: stroke .3s; flex-shrink: 0; }
.qb-prev { left: 24px; }
.qb-next { right: 24px; }
.qb-arrow:hover { background: rgba(201,168,76,.85); border-color: rgba(201,168,76,.9); transform: translateY(-50%) scale(1.1); }
.qb-arrow:hover svg { stroke: #fff; }

/* ============================================================
   PAGINATION
   ============================================================ */
.qb-hero-slider-wrapper .swiper-pagination { bottom: 28px; z-index: 30; }
.qb-hero-slider-wrapper .swiper-pagination-bullet {
	width: 10px; height: 10px;
	background: rgba(255,255,255,.5);
	opacity: 1;
	border-radius: 5px;
	transition: background .3s, width .35s;
}
.qb-hero-slider-wrapper .swiper-pagination-bullet-active {
	background: #C9A84C;
	width: 28px;
	border-radius: 5px;
}

/* ============================================================
   WAVE
   ============================================================ */
.qb-wave-wrap {
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 100%;
	z-index: 25;
	pointer-events: none;
	line-height: 0;
}
.qb-wave-wrap svg { display: block; width: 100%; height: 90px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
	.qb-hero-slider-wrapper .qb-hero-slider { height: 480px; }
	.qb-layout2 .qb-slide-content { margin-left: 5%; }
}
@media (max-width: 768px) {
	.qb-hero-slider-wrapper .qb-hero-slider { height: 420px; }
	.qb-slide-content { padding: 0 20px; max-width: 100%; }
	.qb-layout2 .qb-slide-content { align-items: center; text-align: center; margin-left: 0; }
	.qb-slide-btn { padding: 12px 28px; font-size: 11px; }
	.qb-arrow { width: 38px; height: 38px; }
	.qb-arrow svg { width: 16px; height: 16px; }
	.qb-prev { left: 10px; } .qb-next { right: 10px; }
	/* Bigger iframe offset on narrow screens (portrait videos) */
	.qb-yt-player, .qb-yt-wrap iframe { width: calc(200vw) !important; height: calc(200vw) !important; }
}
@media (max-width: 480px) {
	.qb-hero-slider-wrapper .qb-hero-slider { height: 360px; }
	.qb-wave-wrap svg { height: 55px; }
}
