/*
Theme Name: Video Landing
Description: A minimal single-page theme with a full-screen looping background video and simple link buttons. Configure everything under Appearance > Customize.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: video-landing
*/

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #101418;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

.vl-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #101418 center / cover no-repeat;
}

.vl-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vl-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #000;
  opacity: var(--vl-overlay, .4);
}

.vl-main {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
}

.vl-content {
  width: 100%;
  max-width: 60rem;
  text-align: center;
}

.vl-logo img { max-width: 160px; height: auto; margin-bottom: 1.5rem; }

.vl-title {
  margin: 0 0 .5rem;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.1;
  font-weight: 700;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}

.vl-tagline {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  line-height: 1.5;
  text-shadow: 0 1px 10px rgba(0,0,0,.5);
}

.vl-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 18rem));
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
}

/* Your own graphic */
.vl-btn-graphic {
  display: block;
  line-height: 0;
  border-radius: 4px;
  transition: transform .15s;
}

.vl-btn-graphic img {
  display: block;
  width: 100%;
  height: auto;
}

.vl-btn-graphic:hover { transform: scale(1.04); }

/* Plain text fallback when no graphic is uploaded */
.vl-btn-text {
  display: block;
  padding: .9rem 1.25rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #101418;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.vl-btn-text:hover { background: transparent; color: #fff; }

.vl-btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .vl-btn-graphic, .vl-btn-text { transition: none; }
  .vl-btn-graphic:hover { transform: none; }
}
