/* ============================================
   SPLIT VIDEO TEXT BANNER — Banner statement + video player
   Supports four layout modes via modifier classes:
   .svtb--video-top    (default) video above text
   .svtb--video-bottom video below text
   .svtb--video-left   side-by-side, video left
   .svtb--video-right  side-by-side, video right

   Content alignment via:
   .svtb--align-left / .svtb--align-center / .svtb--align-right
   ============================================ */

.svtb {
  position: relative;
  overflow: hidden;
}

/* ─── Background image + overlay ───────────────────────── */
.svtb__image-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.svtb__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.svtb__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--svtb-overlay-color, #2d3122);
  opacity: var(--svtb-overlay-opacity, 0.55);
  pointer-events: none;
}

.svtb__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ─── Grid — single column base (mobile-first) ─────────── */
.svtb__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
}

/* ============================================
   CONTENT ALIGNMENT
   ============================================ */
.svtb--align-left .svtb__content   { text-align: left; }
.svtb--align-center .svtb__content { text-align: center; }
.svtb--align-right .svtb__content  { text-align: right; }

.svtb--align-left .svtb__button-wrap   { justify-content: flex-start; }
.svtb--align-center .svtb__button-wrap { justify-content: center; }
.svtb--align-right .svtb__button-wrap  { justify-content: flex-end; }

/* ============================================
   STACKED LAYOUTS: video-top / video-bottom
   ============================================ */
.svtb--video-top .svtb__video-col,
.svtb--video-bottom .svtb__video-col,
.svtb--video-top .svtb__content,
.svtb--video-bottom .svtb__content {
  max-width: 100%;
}

.svtb--video-top .svtb__video-frame,
.svtb--video-bottom .svtb__video-frame {
  max-height: 52vh;
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 0 auto;
  container-type: size;
}

.svtb--video-top .svtb__video-frame .svtb__video,
.svtb--video-bottom .svtb__video-frame .svtb__video {
  object-fit: contain;
  background: #000;
}

@media (min-width: 768px) {
  .svtb--video-top .svtb__video-frame,
  .svtb--video-bottom .svtb__video-frame {
    max-height: 58vh;
  }
}

.svtb--video-bottom .svtb__video-col { order: 2; }
.svtb--video-bottom .svtb__content   { order: 1; }

/* ============================================
   SIDE-BY-SIDE LAYOUTS: video-left / video-right
   ============================================ */
@media (min-width: 900px) {
  .svtb--video-left .svtb__grid,
  .svtb--video-right .svtb__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--space-3xl);
  }

  .svtb--video-left .svtb__video-col  { order: 1; }
  .svtb--video-left .svtb__content    { order: 2; }

  .svtb--video-right .svtb__video-col { order: 2; }
  .svtb--video-right .svtb__content   { order: 1; }

  .svtb--video-left .svtb__content,
  .svtb--video-right .svtb__content {
    max-width: 640px;
  }
}

/* ─── Content column ────────────────────────────────────── */
.svtb__content {
  min-width: 0;
}

.svtb__eyebrow {
  margin: 0 0 var(--space-lg);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.4;
}

.svtb__heading {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0.018em;
  font-size: clamp(2.25rem, 5vw + 0.5rem, 4.5rem);
  display: flex;
  flex-direction: column;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.svtb__heading-line1 {
  display: block;
  text-transform: uppercase;
  font-weight: 600;
}

.svtb__heading-line2 {
  display: block;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 0.85em;
  line-height: 1.0;
  margin-top: var(--space-xs);
}

.svtb__subtext {
  margin: var(--space-lg) 0 0;
  font-size: var(--font-size-base);
  font-weight: 300;
  line-height: 1.65;
  text-wrap: pretty;
}

@media (min-width: 1024px) {
  .svtb__subtext { font-size: 17px; }
}

/* ─── Button wrap ───────────────────────────────────────── */
.svtb__button-wrap {
  margin: var(--space-xl) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ─── Button — matches site's 4px rounded corner style ─── */
.svtb__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-xl);
  height: 52px;
  border-radius: 4px;
  font-family: var(--font-body, inherit);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

/* Primary — white fill, dark olive text */
.svtb__btn--primary {
  background: var(--clr-text-inverse, #fdfcfa);
  color: var(--clr-primary, #2d3122);
  border-color: var(--clr-text-inverse, #fdfcfa);
}

.svtb__btn--primary:hover {
  opacity: 0.88;
}

/* Outline — transparent fill, white border and text */
.svtb__btn--outline {
  background: transparent;
  color: var(--clr-text-inverse, #fdfcfa);
  border-color: var(--clr-text-inverse, #fdfcfa);
}

.svtb__btn--outline:hover {
  background: rgba(253, 252, 250, 0.12);
}

/* Dark background context — outline uses dark colors */
.svtb--copy-dark .svtb__btn--outline {
  color: var(--clr-primary, #2d3122);
  border-color: var(--clr-primary, #2d3122);
}

.svtb--copy-dark .svtb__btn--outline:hover {
  background: rgba(45, 49, 34, 0.08);
}

/* ============================================
   Copy color modes
   ============================================ */
.svtb--copy-light .svtb__eyebrow       { color: var(--clr-brand-accent); }
.svtb--copy-light .svtb__heading-line1 { color: var(--clr-text-inverse); }
.svtb--copy-light .svtb__heading-line2 { color: var(--clr-brand-accent); }
.svtb--copy-light .svtb__subtext       { color: var(--clr-text-inverse); opacity: 0.88; }

.svtb--copy-dark .svtb__eyebrow        { color: var(--clr-primary); }
.svtb--copy-dark .svtb__heading-line1  { color: var(--clr-primary); }
.svtb--copy-dark .svtb__heading-line2  { color: var(--clr-primary); }
.svtb--copy-dark .svtb__subtext        { color: var(--clr-text-secondary); }

/* ─── Video column ──────────────────────────────────────── */
.svtb__video-col {
  min-width: 0;
}

.svtb__video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  isolation: isolate;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.svtb__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}

.svtb__video-frame--embed {
  cursor: default;
}

.svtb__video-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 25%, rgba(181, 168, 130, 0.22), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(242, 223, 207, 0.10), transparent 55%),
    linear-gradient(160deg, #2d3122 0%, #3c422e 100%);
  position: relative;
}

.svtb__video-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(253, 252, 250, 0.04) 0 1px, transparent 1px 14px);
  pointer-events: none;
}

/* ─── Play / Pause overlay ─────────────────────────────── */
.svtb__play,
.svtb__pause {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: rgba(253, 252, 250, 0.94);
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (min-width: 768px) {
  .svtb__play,
  .svtb__pause {
    width: 76px;
    height: 76px;
  }
}

.svtb__play svg {
  margin-left: 3px;
}

.svtb__play:hover,
.svtb__pause:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.svtb__play:focus-visible,
.svtb__pause:focus-visible {
  outline: 2px solid var(--clr-brand-accent);
  outline-offset: 4px;
}

.svtb__pause {
  opacity: 0;
  pointer-events: none;
}

.svtb.is-playing .svtb__video-frame:hover .svtb__pause,
.svtb.is-playing .svtb__video-frame:focus-within .svtb__pause {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .svtb__play,
  .svtb__pause {
    transition: none;
  }
  .svtb__play:hover,
  .svtb__pause:hover {
    transform: translate(-50%, -50%);
  }
}