/* ==========================================================================
   Advocate Ajay Kumar Srivastava — Custom Stylesheet
   Tailwind CSS (utility-first) + light custom layer for
   animations, typography rhythm and a few signature components
   that are cleaner to hand-write than to compose purely in classes.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #0F172A;
  --color-secondary: #1E293B;
  --color-accent: #C8A45D;
  --color-bg: #F8FAFC;
  --color-text: #111827;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .font-heading {
  font-family: 'Cinzel', serif;
}

/* Custom scrollbar — subtle, premium */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 4px; }

/* ==========================================================================
   Signature divider — a thin gold rule flanked by a scales motif.
   Used across sections as the site's recurring visual signature.
   ========================================================================== */
.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}
.gold-divider::before,
.gold-divider::after {
  content: '';
  height: 1px;
  width: 48px;
  background: linear-gradient(to right, transparent, var(--color-accent));
}
.gold-divider::after { background: linear-gradient(to left, transparent, var(--color-accent)); }

/* ==========================================================================
   Header
   ========================================================================== */
#site-header {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  background-color: transparent;
}
#site-header.scrolled {
  background-color: #FFFFFF;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

/* Text/icon color is driven ONLY by the .scrolled state, so it stays
   correct whether that class is present on load or added later by JS. */
#site-header .header-text {
  color: #FFFFFF;
  transition: color 0.4s ease;
}
#site-header.scrolled .header-text {
  color: var(--color-primary);
}

#site-header .header-toggle {
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: color 0.4s ease, border-color 0.4s ease;
}
#site-header.scrolled .header-toggle {
  color: var(--color-primary);
  border-color: rgba(15, 23, 42, 0.15);
}

#site-header .header-call-btn {
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  transition: color 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}
#site-header.scrolled .header-call-btn {
  color: var(--color-primary);
  border-color: rgba(15, 23, 42, 0.18);
}
#site-header .header-call-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.nav-link {
  position: relative;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.9rem 2rem;
  border-radius: 9999px;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}
.btn-gold {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 8px 24px -8px rgba(200, 164, 93, 0.55);
}
.btn-gold:hover {
  background: #b7913f;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(200, 164, 93, 0.65);
}
.btn-outline {
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(255,255,255,0.04);
}
.btn-dark {
  background: var(--color-primary);
  color: #fff;
}
.btn-dark:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card-premium {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}
.card-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.16);
  border-color: rgba(200, 164, 93, 0.35);
}

.icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0F172A, #1E293B);
  color: var(--color-accent);
  transition: background 0.4s ease, transform 0.4s ease;
}
.card-premium:hover .icon-badge {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: rotate(-6deg) scale(1.05);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.reveal {
  opacity: 0;
}
.reveal.fade-up.is-visible { animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.reveal.zoom-in.is-visible { animation: zoomIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

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

/* Mobile drawer */
#mobile-drawer {
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
#mobile-drawer.open { transform: translateX(0); }

/* Lightbox */
#lightbox { backdrop-filter: blur(6px); }

/* Glass hover utility for select cards */
.glass-hover:hover {
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.08);
}

/* Timeline (About + Services process) */
.timeline-line {
  background: linear-gradient(to bottom, var(--color-accent), transparent);
}

/* FAQ and Testimonials */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary {
  list-style: none;
}

.faq-item[open] summary {
  color: var(--color-accent);
}
