/* ============================================
   Venetian Plaster Moray - Custom Styles
   Premium luxury aesthetic
   ============================================ */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1A1A1A;
}
::-webkit-scrollbar-thumb {
  background: #C9A96E;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B8952E;
}

/* Hero video overlay */
.hero-overlay {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.55) 0%, rgba(44, 44, 44, 0.35) 50%, rgba(26, 26, 26, 0.5) 100%);
}

/* Gold shimmer text effect */
.text-shimmer {
  background: linear-gradient(135deg, #C9A96E 0%, #E8D5A3 25%, #C9A96E 50%, #E8D5A3 75%, #C9A96E 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

/* Subtle gold line accent */
.gold-line::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #C9A96E, #E8D5A3);
  margin-top: 1rem;
}
.gold-line-center::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #C9A96E, #E8D5A3);
  margin: 1rem auto 0;
}

/* Fade in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children animation */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.75s; opacity: 1; transform: translateY(0); }

/* Image hover zoom */
.img-zoom {
  overflow: hidden;
}
.img-zoom img {
  transition: transform 0.7s ease;
}
.img-zoom:hover img {
  transform: scale(1.07);
}

/* Premium card hover */
.premium-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.premium-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Navigation */
.nav-scrolled {
  background: #1A1A1A !important;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
  transform: translateX(0);
}

/* Parallax */
.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
@media (max-width: 768px) {
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* Gallery masonry */
.masonry-grid {
  columns: 1;
  column-gap: 1rem;
}
@media (min-width: 640px) {
  .masonry-grid {
    columns: 2;
  }
}
@media (min-width: 1024px) {
  .masonry-grid {
    columns: 3;
  }
}
.masonry-grid > * {
  break-inside: avoid;
  margin-bottom: 1rem;
}

/* Testimonial cards */
.testimonial-card {
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 5rem;
  font-family: 'Playfair Display', serif;
  color: #C9A96E;
  opacity: 0.2;
  line-height: 1;
}

/* Form focus styles */
.form-input:focus {
  border-color: #C9A96E;
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
  outline: none;
}

/* Button hover glow */
.btn-gold {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}
.btn-gold:hover::before {
  left: 100%;
}
.btn-gold:hover {
  box-shadow: 0 8px 30px rgba(201, 169, 110, 0.35);
}

/* Counter animation */
.counter {
  font-variant-numeric: tabular-nums;
}

/* FAQ accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer.open {
  max-height: 500px;
}

/* Divider */
.luxury-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #C9A96E, transparent);
  border: none;
}

/* Video background */
.hero-video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
}

/* Loading state for images */
.img-loading {
  background: linear-gradient(90deg, #2C2C2C 25%, #3a3a3a 50%, #2C2C2C 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}
@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Print styles */
@media print {
  nav, footer, .no-print { display: none !important; }
  body { color: #000; background: #fff; }
}
