/* ========== VARIABLES ========== */
:root {
  --crimson: #cf2238;
  --crimson-dk: #b81b33;
  --text: #fff;
  --nav-h: 60px;
  --max-content: 1100px;
}

/* ========== RESET ========== */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #111;
  color: #eee;
}

/* ========== NAVIGATION ========== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--crimson);
  border-bottom: 2px solid rgba(255,255,255,.12);
  height: var(--nav-h);
}

.site-nav .brand {
  color: #fff;
  font-weight: 800;
  letter-spacing: .5px;
  font-size: 1.4rem;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  transition: all .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.15);
  outline: 1px solid rgba(255,255,255,.25);
}

.burger {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 4px;
}

/* ========== MOBILE NAV ========== */
@media (max-width: 900px) {
  .burger {
    display: block;
  }
  
  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--crimson);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  
  .site-nav.open .nav-links {
    max-height: 300px;
    border-top: 1px solid rgba(255,255,255,.15);
  }
  
  .nav-links li {
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  
  .nav-links a {
    display: block;
    padding: 14px 20px;
    border-radius: 0;
  }
}

/* ========== VIDEO HERO ========== */
.video-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  min-height: calc(100vh - var(--nav-h));
}

#hero {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - var(--nav-h));
  object-fit: contain;
  display: block;
}

/* Force controls to be visible - desktop */
@media (min-width: 901px) {
  #hero {
    controls: true;
  }
  
  /* For webkit browsers (Chrome, Safari) */
  #hero::-webkit-media-controls {
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
  }
  
  #hero:hover::-webkit-media-controls {
    opacity: 1 !important;
  }
  
  /* For Firefox */
  #hero::-moz-media-controls {
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  #hero:hover::-moz-media-controls {
    opacity: 1;
  }
  
  /* Additional hover area to ensure controls show */
  .video-wrap:hover #hero::-webkit-media-controls {
    opacity: 1 !important;
  }
}

/* Mobile: Always show controls */
@media (max-width: 900px) {
  #hero::-webkit-media-controls {
    opacity: 1;
  }
}

/* ========== TAP-TO-UNMUTE OVERLAY ========== */
.sound-overlay {
  position: absolute;
  left: 50%;
  top: 70%; /* 20% below center */
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.65);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
  z-index: 50;
}

.sound-overlay:hover {
  background: rgba(0,0,0,.75);
  transform: translate(-50%, -50%) scale(1.05);
}

.sound-overlay .icon {
  font-size: 1.2rem;
}

/* Hide on desktop */
@media (min-width: 901px) {
  .sound-overlay {
    display: none !important;
  }
}

/* ========== GALLERY ========== */
.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

.gallery-item {
  width: 100%;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,.3);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== PAGE CONTENT ========== */
.page.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 40px 20px;
  min-height: calc(100vh - var(--nav-h) - 80px);
}

.page h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.page p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ddd;
}

.page a {
  color: var(--crimson);
  text-decoration: none;
}

.page a:hover {
  text-decoration: underline;
}

/* ========== FOOTER ========== */
.site-footer {
  color: #999;
  text-align: center;
  padding: 25px 20px;
  border-top: 1px solid #333;
  background: #0a0a0a;
  margin-top: auto;
}