/* Customer video testimonials: poster cards + one shared modal player.
   File: wp-content/uploads/baja-redesign/assets/baja-video.css (with baja-video.js).
   Loaded only by the sections that contain video cards. Cards are plain HTML
   inside one Elementor HTML widget per section; nothing here depends on page
   scope classes, so the same markup works on pages and UAE landing blocks.
   Theme button styles (Hello Elementor reset) are overridden explicitly. */

/* ---- Intro line under a section head / subheading ------------------------ */
.vt-head { margin: clamp(34px, 4vw, 52px) 0 clamp(16px, 1.8vw, 22px); }
.vt-head__title { margin: 0; font-family: var(--font-display); font-size: clamp(21px, 2vw, 25px); line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.vt-head__lede { margin: 8px 0 0; max-width: 62ch; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }

/* ---- Grid ----------------------------------------------------------------- */
.vt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 26px); margin: 0; padding: 0; }
.vt-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .vt-grid:not(.vt-grid--3) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .vt-grid--3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .vt-grid:not(.vt-grid--3) { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .vt-grid--3 { max-width: 560px; } }
@media (max-width: 600px) { .vt-grid--2 { max-width: 560px; } }

/* ---- Card (the whole card is the play button) ----------------------------- */
.vt-card { display: flex; min-width: 0; }
.vt-card[hidden] { display: none; }
.vt-card .vt-card__btn {
  display: flex; flex-direction: column; width: 100%; min-width: 0;
  margin: 0; padding: 0; border: 1px solid rgba(10, 118, 190, .2);
  border-radius: clamp(16px, 1.6vw, 22px); overflow: hidden;
  background: #FFFFFF; color: var(--ink); text-align: left;
  font: inherit; line-height: inherit; text-transform: none; letter-spacing: normal; white-space: normal;
  cursor: pointer; box-shadow: 0 20px 46px -34px rgba(9, 60, 92, .45);
  transition: transform .26s var(--ease), border-color .26s var(--ease), box-shadow .26s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.vt-card .vt-card__btn:hover { background: #FFFFFF; color: var(--ink); transform: translateY(-3px); border-color: rgba(10, 130, 208, .4); box-shadow: 0 28px 58px -32px rgba(9, 60, 92, .5); }
.vt-card .vt-card__btn:focus { background: #FFFFFF; color: var(--ink); outline: none; }
.vt-card .vt-card__btn:focus-visible { outline: 3px solid var(--aqua-600, #22A9E0); outline-offset: 3px; }

.vt-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0B2F44; flex: none; }
.vt-card .vt-card__media .vt-card__poster {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  margin: 0; border: 0; border-radius: 0; box-shadow: none; object-fit: cover;
}
/* Portrait sources: the whole frame, centred over a blurred copy (never cropped) */
.vt-card--portrait .vt-card__media .vt-card__poster { object-fit: contain; }
.vt-card .vt-card__media .vt-card__fill {
  position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); max-width: none;
  margin: 0; border: 0; border-radius: 0; object-fit: cover; filter: blur(16px) brightness(.72) saturate(1.1);
}
.vt-card__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5, 40, 60, 0) 55%, rgba(5, 40, 60, .55) 100%); }

.vt-card__play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 62px; height: 62px; margin: -31px 0 0 -31px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--navy-900, #0B2F44);
  box-shadow: 0 10px 28px -8px rgba(3, 20, 31, .6), 0 0 0 6px rgba(255, 255, 255, .22);
  transition: transform .26s var(--ease), background-color .26s var(--ease);
}
.vt-card__play svg { width: 24px; height: 24px; margin-left: 3px; fill: currentColor; }
.vt-card .vt-card__btn:hover .vt-card__play { transform: scale(1.07); background: #FFFFFF; color: var(--pool-500, #0A82D0); }
.vt-card__dur {
  position: absolute; right: 12px; bottom: 11px; z-index: 2; padding: 3px 9px; border-radius: 999px;
  background: rgba(4, 22, 33, .72); color: #FFFFFF; font-size: 12.5px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums;
}
.vt-card__cc {
  position: absolute; left: 12px; bottom: 11px; z-index: 2; padding: 2px 7px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .55); color: #FFFFFF; font-size: 11px; font-weight: 700; letter-spacing: .04em; line-height: 1.4;
}

.vt-card__body { display: flex; flex-direction: column; gap: 5px; padding: 16px 18px 19px; }
.vt-card__eb { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pool-ink, #0A6FB4); }
.vt-card__title { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; color: var(--ink); }

/* ---- Show more ------------------------------------------------------------ */
.vt-more { display: flex; justify-content: center; margin-top: clamp(24px, 2.6vw, 34px); }
.vt-more[hidden] { display: none; }
.vt-more .vt-more__btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin: 0; padding: 12px 26px;
  border: 1.5px solid rgba(21, 56, 74, .28); border-radius: 999px; background: #FFFFFF; color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-transform: none; letter-spacing: normal; cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.vt-more .vt-more__btn:hover, .vt-more .vt-more__btn:focus { background: #FFFFFF; color: var(--pool-ink, #0A6FB4); border-color: var(--pool-400, #22A9E0); }
.vt-more .vt-more__btn:focus-visible { outline: 3px solid var(--aqua-600, #22A9E0); outline-offset: 3px; }
.vt-more__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* Dark sections */
:is(.section--navy900, .section--deep) .vt-more .vt-more__btn { background: transparent; color: #FFFFFF; border-color: rgba(246, 251, 255, .4); }
:is(.section--navy900, .section--deep) .vt-more .vt-more__btn:hover,
:is(.section--navy900, .section--deep) .vt-more .vt-more__btn:focus { background: rgba(255, 255, 255, .08); color: #FFFFFF; border-color: var(--pool-300, #63DDD8); }
:is(.section--navy900, .section--deep) .vt-card .vt-card__btn { border-color: rgba(99, 221, 216, .18); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .75); }
:is(.section--navy900, .section--deep) .vt-head__title { color: #FFFFFF; }
:is(.section--navy900, .section--deep) .vt-head__lede { color: var(--text-muted); }
.vt-note { margin: clamp(18px, 2vw, 24px) 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
:is(.section--navy900, .section--deep) .vt-note { color: var(--text-muted); }

/* ---- Modal ---------------------------------------------------------------- */
html.vt-lock { overflow: hidden; }
.vt-modal {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: #FFFFFF; overflow: auto;
  overscroll-behavior: contain;
}
.vt-modal:not([open]) { display: none; }
.vt-modal::backdrop { background: rgba(3, 17, 27, .88); }
.vt-modal.vt-modal--fallback { z-index: 2147483000; background: rgba(3, 17, 27, .88); }
.vt-modal__panel {
  box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  width: min(980px, 100%); min-height: 100%; margin: 0 auto; padding: 18px 16px 22px;
}
.vt-modal--portrait .vt-modal__panel { width: min(600px, 100%); }
.vt-modal__bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.vt-modal__eb { margin: 0 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pool-300, #63DDD8); }
.vt-modal__title { margin: 0; font-family: var(--font-display); font-size: clamp(18px, 2vw, 22px); font-weight: 700; line-height: 1.25; color: #FFFFFF; }
.vt-modal .vt-modal__close {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; margin: 0; padding: 0;
  border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #FFFFFF; cursor: pointer;
}
.vt-modal .vt-modal__close:hover, .vt-modal .vt-modal__close:focus { background: rgba(255, 255, 255, .18); color: #FFFFFF; border-color: #FFFFFF; }
.vt-modal .vt-modal__close:focus-visible { outline: 3px solid var(--pool-300, #63DDD8); outline-offset: 3px; }
.vt-modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.vt-modal__frame {
  position: relative; width: min(100%, calc((100vh - 190px) * var(--vt-ar, 1.7778))); aspect-ratio: var(--vt-ar, 1.7778);
  margin: 0 auto; border-radius: 14px; overflow: hidden; background: #000000;
}
@supports (height: 100dvh) { .vt-modal__frame { width: min(100%, calc((100dvh - 190px) * var(--vt-ar, 1.7778))); } }
.vt-modal__frame video { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: contain; background: #000000; }
/* Native cues (used only in fullscreen) */
.vt-modal__frame video::cue { line-height: 1.35; background: rgba(0, 0, 0, .8); color: #FFFFFF; }
/* Caption overlay drawn by baja-video.js: readable at any player size */
.vt-modal__cc {
  position: absolute; left: 50%; bottom: 66px; z-index: 2; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 28px); padding: 5px 12px; border-radius: 6px;
  background: rgba(0, 0, 0, .8); color: #FFFFFF; text-align: center; white-space: pre-line;
  font-family: var(--font-body); font-size: clamp(15px, 1.5vw, 20px); font-weight: 500; line-height: 1.4;
  pointer-events: none;
}
.vt-modal__cc[hidden] { display: none; }
@media (max-width: 600px) { .vt-modal__cc { bottom: 62px; font-size: 15px; padding: 4px 9px; } }
.vt-modal--portrait .vt-modal__cc { bottom: 72px; }
.vt-modal__tx { width: 100%; margin: 2px auto 0; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 10px; }
.vt-modal__tx summary { cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 600; color: #FFFFFF; list-style: none; }
.vt-modal__tx summary::-webkit-details-marker { display: none; }
.vt-modal__tx summary::after { content: ""; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease); }
.vt-modal__tx[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.vt-modal__tx summary:focus-visible { outline: 3px solid var(--pool-300, #63DDD8); outline-offset: 3px; border-radius: 6px; }
.vt-modal__txbody { padding: 6px 0 4px; font-size: 15px; line-height: 1.65; color: #D9E6EE; }
.vt-modal__txbody p { margin: 0 0 10px; }
.vt-modal__txnote { font-size: 13px; color: #A9BFCC; }

@media (max-width: 600px) {
  .vt-modal__panel { padding: 12px 12px 18px; gap: 12px; }
  .vt-modal__frame { border-radius: 10px; width: min(100%, calc((100vh - 170px) * var(--vt-ar, 1.7778))); }
  @supports (height: 100dvh) { .vt-modal__frame { width: min(100%, calc((100dvh - 170px) * var(--vt-ar, 1.7778))); } }
  .vt-card__play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
}

@media (prefers-reduced-motion: reduce) {
  .vt-card .vt-card__btn, .vt-card__play, .vt-more .vt-more__btn, .vt-modal__tx summary::after { transition: none; }
  .vt-card .vt-card__btn:hover { transform: none; }
  .vt-card .vt-card__btn:hover .vt-card__play { transform: none; }
}
