/* 
  Sirumugai Silks - Premium Redesign Styling
  Custom CSS for animations, typography overrides, and complex hover effects.
*/

/* Custom Fonts & Smooth Scrolling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

html {
  scroll-behavior: smooth;
  background-color: #FAF7F2;
  color: #252525;
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: 'Playfair Display', serif;
}

/* Custom Selection Highlight */
::selection {
  background-color: #6B002D;
  color: #FAF7F2;
}

/* Scroll reveal transition base styles */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }
  
  .reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  /* Delay utilities for sequential reveals */
  .delay-100 { transition-delay: 100ms; }
  .delay-200 { transition-delay: 200ms; }
  .delay-300 { transition-delay: 300ms; }
  .delay-400 { transition-delay: 400ms; }
  .delay-500 { transition-delay: 500ms; }
}

/* Premium Gold Shimmer Border Animation */
.gold-shimmer-border {
  position: relative;
  background: linear-gradient(to right, #C6A15B 30%, #F3E5AB 50%, #C6A15B 70%);
  background-size: 200% auto;
  animation: goldShimmer 4s linear infinite;
}

@keyframes goldShimmer {
  to {
    background-position: 200% center;
  }
}

/* Silk Shine Effect on Hover */
.silk-shine-hover {
  position: relative;
  overflow: hidden;
}

.silk-shine-hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%);
  transform: skewX(-25deg);
  transition: none;
}

.silk-shine-hover:hover::after {
  left: 125%;
  transition: all 0.75s ease-in-out;
}

/* Premium Asymmetric Grid Highlights */
.editorial-grid-item:nth-child(even) {
  transform: translateY(20px);
}

@media (max-width: 768px) {
  .editorial-grid-item:nth-child(even) {
    transform: translateY(0);
  }
}

/* Floating WhatsApp Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.whatsapp-float-btn {
  animation: float 4s ease-in-out infinite;
}

/* Custom Scrollbar for Luxury Aesthetics */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #FAF7F2;
}

::-webkit-scrollbar-thumb {
  background: #C6A15B;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6B002D;
}

/* Testimonial Slider Transitions */
.testimonial-carousel-container {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Glassmorphism for announcement bar overlay background */
.glass-header {
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dark-glass-overlay {
  background: rgba(61, 0, 27, 0.4);
  backdrop-filter: blur(2px);
}

/* Typography styles for letter spacing and lines */
.letter-spacing-widest {
  letter-spacing: 0.15em;
}

.letter-spacing-wider {
  letter-spacing: 0.08em;
}

#main-header {
  top: 36px; /* Fallback for initial desktop load before JS execution */
}

/* Sticky Header states (transparent vs scrolled) styling */
#main-header.header-transparent {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: rgba(255, 255, 255, 0.15);
}

#main-header.header-transparent #header-logo-title {
  color: #FFFFFF;
}

#main-header.header-transparent #header-nav a {
  color: rgba(255, 255, 255, 0.95);
}

#main-header.header-transparent #header-nav a::after {
  background-color: #C6A15B;
}

#main-header.header-transparent #header-nav a:hover {
  color: #C6A15B;
}

#main-header.header-transparent #mobile-menu-btn {
  color: #FFFFFF;
}

#main-header.header-transparent .header-icon {
  color: #FFFFFF;
}

#main-header.header-transparent .header-icon:hover {
  color: #C6A15B;
}

/* Scrolled/sticky header transitions (white background, wine/charcoal texts) */
#main-header.header-scrolled {
  background-color: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(198, 161, 91, 0.15);
}

#main-header.header-scrolled #header-logo-title {
  color: #6B002D;
}

#main-header.header-scrolled #header-nav a {
  color: #252525;
}

#main-header.header-scrolled #header-nav a::after {
  background-color: #6B002D;
}

#main-header.header-scrolled #header-nav a:hover {
  color: #6B002D;
}

#main-header.header-scrolled #mobile-menu-btn {
  color: #252525;
}

#main-header.header-scrolled .header-icon {
  color: #252525;
}

#main-header.header-scrolled .header-icon:hover {
  color: #6B002D;
}

/* Custom override for large screen layout padding limits */
@media (min-width: 1024px) {
    .lg\:px-12 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

