/* assets/css/style.css */
:root { scroll-behavior: smooth; }

/* ===== Theme tokens (RGB triplets, consumed by Tailwind as rgb(var(..) / alpha)) ===== */
:root,
html[data-theme="dark"] {
  --color-charcoal: 11 9 8;
  --color-charcoal-deep: 5 4 3;
  --color-gold: 201 162 75;
  --color-gold-light: 232 217 168;
  --color-gold-dark: 138 107 33;
  --color-crimson: 142 27 27;
  --color-crimson-deep: 92 15 15;
  --color-cream: 243 233 210;
  --color-brown: 42 26 18;
}

html[data-theme="light"] {
  --color-charcoal: 246 240 227;     /* warm cream surface */
  --color-charcoal-deep: 235 224 199; /* slightly deeper cream */
  --color-gold: 154 111 27;          /* deepened gold for contrast on light bg */
  --color-gold-light: 184 140 55;
  --color-gold-dark: 110 78 16;
  --color-crimson: 142 27 27;
  --color-crimson-deep: 108 18 18;
  --color-cream: 36 26 18;           /* dark brown text */
  --color-brown: 246 240 227;
}

/* Hero / video / image-overlay sections stay cinematic-dark in both themes,
   so text stays legible over footage regardless of the site theme. */
.theme-fixed-dark {
  --color-charcoal: 11 9 8;
  --color-charcoal-deep: 5 4 3;
  --color-gold: 201 162 75;
  --color-gold-light: 232 217 168;
  --color-gold-dark: 138 107 33;
  --color-crimson: 142 27 27;
  --color-crimson-deep: 92 15 15;
  --color-cream: 243 233 210;
  --color-brown: 42 26 18;
}

.text-crimson-deep { color: #5C0F0F; }
.hover\:bg-crimson-deep:hover { background-color: rgb(var(--color-crimson-deep)); }

/* Navbar glass state, toggled via JS */
#site-navbar.scrolled {
  background-color: rgb(var(--color-charcoal-deep) / 0.85);
  backdrop-filter: blur(10px);
  border-bottom-color: rgb(var(--color-gold) / 0.25);
}

/* Theme toggle switch */
.theme-toggle {
  width: 52px; height: 28px; border-radius: 999px;
  border: 1px solid rgb(var(--color-gold) / 0.4);
  background: rgb(var(--color-charcoal-deep));
  position: relative; cursor: pointer; flex-shrink: 0;
}
.theme-toggle .knob {
  position: absolute; top: 2px; left: 2px;
  width: 22px; height: 22px; border-radius: 999px;
  background: rgb(var(--color-gold));
  transition: transform 0.3s ease;
  display: flex; align-items: center; justify-content: center;
}
html[data-theme="light"] .theme-toggle .knob { transform: translateX(24px); }

/* Decorative floating dhol PNG elements */
.decor-png {
  position: absolute;
  pointer-events: none;
  opacity: 0.12;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
}
html[data-theme="light"] .decor-png { opacity: 0.08; }

/* Dhol beat pulse — used on decorative dhol icons/badges */
@keyframes dhol-beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.dhol-pulse { animation: dhol-beat 1.8s ease-in-out infinite; }

/* Sound wave bars */
@keyframes wave-bar {
  0%, 100% { height: 8px; }
  50% { height: 26px; }
}
.wave-bar { animation: wave-bar 1s ease-in-out infinite; background: linear-gradient(180deg, #C9A24B, #8E1B1B); border-radius: 2px; }
.wave-bar:nth-child(2) { animation-delay: 0.15s; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; }
.wave-bar:nth-child(4) { animation-delay: 0.1s; }
.wave-bar:nth-child(5) { animation-delay: 0.25s; }

/* Gentle golden glow */
@keyframes glow {
  0%, 100% { box-shadow: 0 0 18px 2px rgba(201, 162, 75, 0.25); }
  50% { box-shadow: 0 0 30px 6px rgba(201, 162, 75, 0.45); }
}
.gold-glow { animation: glow 2.6s ease-in-out infinite; }

/* Floating drift for decorative particles */
@keyframes drift {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(4deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
.drift { animation: drift 6s ease-in-out infinite; }

/* Hero overlay gradient */
.hero-overlay {
  background: linear-gradient(180deg, rgba(5,4,3,0.55) 0%, rgba(5,4,3,0.35) 35%, rgba(5,4,3,0.85) 100%);
}

/* Service card gold border on hover */
.service-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 75, 0.7);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.6);
}
.service-card .service-image {
  height: 18rem;
  overflow: hidden;
  background: rgba(11, 9, 8, 0.9);
}
.service-card .service-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: rgba(11, 9, 8, 0.9);
}

/* Reveal on load (single orchestrated hero sequence) */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise-in { animation: rise-in 0.9s cubic-bezier(.2,.7,.3,1) both; }

@media (prefers-reduced-motion: reduce) {
  .dhol-pulse, .wave-bar, .gold-glow, .drift, .rise-in { animation: none !important; }
}
