/* ===== AUDIOVISUAL.CSS ===== */

/* --- Hero --- */
#av-hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, #08000F 0%, #0F0020 55%, #08000F 100%);
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}
.av-hero-inner { max-width: 760px; width: 100%; }

.av-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 2.5rem;
  color: rgba(212,175,55,0.85);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.av-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #57AE6C;
  position: relative;
  flex-shrink: 0;
}
.av-badge-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #57AE6C;
  animation: av-ping 1.6s ease-out infinite;
}
@keyframes av-ping {
  75%, 100% { transform: scale(2.4); opacity: 0; }
}

.av-hero-title {
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}
.av-word-row {
  position: relative;
  display: block;
  height: 1.2em;
  overflow: hidden;
}
.av-word {
  position: absolute;
  left: 0; right: 0;
  font-weight: 700;
  color: #D4AF37;
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1),
              transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.av-word.active { opacity: 1; transform: translateY(0); }
.av-word.exit   { opacity: 0; transform: translateY(-80px); }

.av-hero-sub {
  color: rgba(255,255,255,0.52);
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.65;
  max-width: 560px;
  margin: 1.75rem auto 2.5rem;
}

.av-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
/* Magnetic wrapper (JS handles transform) */
.av-mag { display: inline-block; }

.av-btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  background: rgba(87,174,108,0.12);
  border: 1px solid rgba(87,174,108,0.35);
  border-radius: 100px;
  color: #57AE6C;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.av-btn-wa:hover { background: rgba(87,174,108,0.2); }

.av-btn-port {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 100px;
  color: #D4AF37;
  font-size: 0.95rem; font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.av-btn-port:hover { background: rgba(212,175,55,0.15); }

/* --- Feature Steps --- */
#av-services {
  padding: 100px 24px;
  background: #08000F;
}
.av-services-inner {
  max-width: 980px;
  margin: 0 auto;
}
.av-section-label {
  text-align: center;
  color: rgba(212,175,55,0.7);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.av-section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
}
.av-section-title span { font-weight: 700; color: #D4AF37; }

.av-steps-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) {
  .av-steps-wrap { grid-template-columns: 1fr; }
}

.av-steps-col { display: flex; flex-direction: column; min-height: 320px; justify-content: center; }

.av-step {
  padding: 22px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}
.av-step:last-child { border-bottom: none; }
.av-step.active { background: rgba(212,175,55,0.05); }

.av-step-head { display: flex; align-items: center; gap: 14px; }
.av-step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
  color: rgba(212,175,55,0.45);
  flex-shrink: 0;
  transition: all 0.3s;
}
.av-step.active .av-step-num {
  background: rgba(212,175,55,0.15);
  border-color: rgba(212,175,55,0.6);
  color: #D4AF37;
}
.av-step-title {
  font-size: 1rem; font-weight: 600;
  color: rgba(255,255,255,0.45);
  transition: color 0.3s;
}
.av-step.active .av-step-title { color: #fff; }

.av-step-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1),
              opacity 0.3s ease, margin-top 0.3s;
  opacity: 0; margin-top: 0;
  padding-left: 46px;
}
.av-step.active .av-step-body {
  max-height: 200px; opacity: 1; margin-top: 12px;
}
.av-step-body p {
  color: rgba(255,255,255,0.48);
  font-size: 0.88rem; line-height: 1.7;
}

.av-step-progress {
  height: 1px; background: rgba(212,175,55,0.45);
  width: 0%; margin-top: 12px;
  border-radius: 1px;
}
.av-step.active .av-step-progress {
  animation: av-prog 4s linear forwards;
}
@keyframes av-prog { to { width: 100%; } }

.av-img-col { position: sticky; top: 100px; }
.av-img-frame {
  width: 100%; aspect-ratio: 4/3;
  border-radius: 16px; overflow: hidden;
  position: relative;
  background: #1a0030;
  border: 1px solid rgba(212,175,55,0.12);
}
.av-img-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1);
}
.av-img-slide.active { opacity: 1; }

/* --- Portfolio (shared reel styles) --- */
#av-videos, #av-photos {
  padding: 80px 0 80px;
  background: #08000F;
}
#av-videos { border-top: 1px solid rgba(255,255,255,0.05); }
#av-photos { border-top: 1px solid rgba(255,255,255,0.05); }

.av-reel-header {
  padding: 0 48px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
@media (max-width: 600px) { .av-reel-header { padding: 0 20px; } }

.av-reel-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.02em;
}
.av-reel-title span { font-weight: 700; color: #D4AF37; }

.av-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.av-filter-btn {
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Helvetica Neue", Helvetica, sans-serif;
}
.av-filter-btn.active {
  border-color: rgba(212,175,55,0.5);
  background: rgba(212,175,55,0.1);
  color: #D4AF37;
}
.av-filter-btn:hover:not(.active) {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
}

.av-reel {
  display: flex;
  gap: 16px;
  padding: 8px 48px 24px;
  overflow-x: auto;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  user-select: none;
}
.av-reel::-webkit-scrollbar { display: none; }
.av-reel.grabbing { cursor: grabbing; }
@media (max-width: 600px) { .av-reel { padding: 8px 20px 24px; gap: 12px; } }

/* Video cards */
.av-vid-card {
  position: relative;
  flex-shrink: 0;
  width: 280px;
  aspect-ratio: 9/16;
  border-radius: 12px;
  overflow: hidden;
  background: #1a0030;
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.av-vid-card:hover { border-color: rgba(212,175,55,0.3); }
@media (max-width: 600px) { .av-vid-card { width: 240px; } }

.av-vid-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}
.av-vid-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background 0.2s;
}
.av-vid-card:hover .av-vid-play { background: rgba(0,0,0,0.5); }
.av-vid-play-icon {
  width: 48px; height: 48px;
  border: 2px solid rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.av-vid-play-icon::after {
  content: '';
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid white;
  margin-left: 4px;
}
.av-vid-card iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.av-vid-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 500;
}

/* Photo cards */
.av-photo-card {
  flex-shrink: 0;
  width: 260px;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  transition: border-color 0.2s;
  background: #1a0030;
}
.av-photo-card:hover { border-color: rgba(212,175,55,0.3); }
.av-photo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
@media (max-width: 600px) { .av-photo-card { width: 200px; } }

/* Lightbox */
#av-lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
#av-lightbox.open { display: flex; }
#av-lightbox img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  pointer-events: none;
}
.av-lb-close {
  position: absolute; top: 20px; right: 20px;
  width: 42px; height: 42px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 50%;
  color: #D4AF37; font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.av-lb-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff; font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.av-lb-prev { left: 20px; }
.av-lb-next { right: 20px; }

/* --- CTA Section --- */
#av-cta-wa {
  text-align: center;
  margin-bottom: 2rem;
}
.av-mag-wa {
  display: inline-block;
  transition: transform 0.15s ease;
}
.av-wa-big {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px;
  background: rgba(87,174,108,0.12);
  border: 1px solid rgba(87,174,108,0.35);
  border-radius: 100px;
  color: #57AE6C;
  font-size: 1.05rem; font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.av-wa-big:hover { background: rgba(87,174,108,0.22); }

/* Simplified form: hide unused fields */
#customForm .input-row:nth-child(2),
#customForm .input-rowS { display: none; }
