/* ═══════════════════════════════════════════
   National Gold Loan — Custom Styles
   Brand: Gold (#C5A236) + Green (#3A8C3F)
   Powered by Finacc Technologies
   ═══════════════════════════════════════════ */

/* ── Base & Reset ── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #4A4A5A;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #1A1A2E;
}

.font-outfit {
  font-family: 'Outfit', sans-serif;
}

/* ── Gold Shimmer Animation ── */
@keyframes goldShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.gold-shimmer {
  background: linear-gradient(
    90deg,
    #C5A236 0%,
    #E8D48B 25%,
    #C5A236 50%,
    #E8D48B 75%,
    #C5A236 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 4s linear infinite;
}

/* ── Scroll Animations ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ── Ticker ── */
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 30s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

/* ── Card Hover Effects ── */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(197, 162, 54, 0.15);
}

/* ── Navigation ── */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C5A236;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ── Dropdown ── */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ── Mobile Menu ── */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── WhatsApp Button Animation ── */
@keyframes whatsappBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.whatsapp-btn {
  animation: whatsappBounce 2s ease-in-out infinite;
}

.whatsapp-btn:hover {
  animation: none;
  transform: scale(1.15);
}

/* ── Back to Top Button ── */
.back-to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ── Counter Animation ── */
.counter-value {
  font-family: 'Outfit', sans-serif;
}

/* ── Testimonial Carousel ── */
.testimonial-track {
  transition: transform 0.5s ease-in-out;
}

/* ── Stepper Line ── */
.stepper-line {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #C5A236, #E8D48B);
  z-index: 0;
}

/* ── Form Styles ── */
.form-input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  border-color: #C5A236;
  box-shadow: 0 0 0 3px rgba(197, 162, 54, 0.15);
  outline: none;
}

.form-input.error {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* ── Range Slider ── */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #C5A236 0%, #E8D48B 100%);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #C5A236;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #C5A236;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ── Donut Chart ── */
.donut-chart {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: relative;
}

/* ── Accordion ── */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fixed: toggle 'open' on .accordion-item, content expands via parent state */
.accordion-item.open .accordion-content {
  max-height: 800px;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

/* Purity Radio Buttons */
.purity-option {
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid #E5E7EB;
}
.purity-option:hover {
  border-color: #C5A236;
  background: #FFF9E6;
}
.purity-option.selected {
  border-color: #C5A236;
  background: linear-gradient(135deg, #FFF9E6, #FFFDF5);
  box-shadow: 0 0 0 3px rgba(197,162,54,0.15);
}
.purity-option.selected .purity-check {
  display: flex;
}
.purity-check {
  display: none;
}

/* ── Multi-step Form Progress ── */
.step-indicator {
  transition: all 0.4s ease;
}

.step-indicator.active {
  background: #C5A236;
  color: white;
  box-shadow: 0 0 0 4px rgba(197, 162, 54, 0.2);
}

.step-indicator.completed {
  background: #3A8C3F;
  color: white;
}

.step-connector {
  height: 3px;
  background: #E5E7EB;
  transition: background 0.4s ease;
}

.step-connector.active {
  background: #C5A236;
}

/* ── Cookie Banner ── */
.cookie-banner {
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.visible {
  transform: translateY(0);
}

/* ── Pulse Animation for CTA ── */
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(197, 162, 54, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(197, 162, 54, 0); }
}

.pulse-gold {
  animation: pulse-gold 2s ease-in-out infinite;
}

/* ── Gold Gradient Text ── */
.gold-gradient-text {
  background: linear-gradient(135deg, #C5A236, #E8D48B);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Loading Skeleton ── */
@keyframes shimmerLoad {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmerLoad 1.5s infinite;
}

/* ── Print Styles ── */
@media print {
  .no-print {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
  .shadow-lg, .shadow-xl, .shadow-md {
    box-shadow: none !important;
  }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #C5A236;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #96791A;
}

/* ── Selection ── */
::selection {
  background: rgba(197, 162, 54, 0.3);
  color: #1A1A2E;
}

/* ── Glassmorphism ── */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Gradient Backgrounds ── */
.bg-gold-gradient {
  background: linear-gradient(135deg, #C5A236 0%, #E8D48B 100%);
}

.bg-green-gradient {
  background: linear-gradient(135deg, #3A8C3F 0%, #2A6B2E 100%);
}

.bg-hero-gradient {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF9E6 50%, #F8F9FA 100%);
}

.bg-cta-gradient {
  background: linear-gradient(135deg, #C5A236 0%, #3A8C3F 100%);
}

/* ── Gold Particles Background ── */
.gold-particles {
  position: relative;
  overflow: hidden;
}

.gold-particles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(197, 162, 54, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(232, 212, 139, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(58, 140, 63, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Timeline ── */
.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, #C5A236, #E8D48B);
}

@media (max-width: 768px) {
  .timeline-item::before {
    left: 20px;
  }
}

/* ── Tab Active Indicator ── */
.tab-btn {
  position: relative;
  transition: color 0.3s ease;
}

.tab-btn.active {
  color: #C5A236;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: #C5A236;
  border-radius: 2px;
}

/* ── Blog Category Tag ── */
.category-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Floating Label ── */
.floating-label {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  pointer-events: none;
  color: #9CA3AF;
}

.form-input:focus ~ .floating-label,
.form-input:not(:placeholder-shown) ~ .floating-label {
  top: 0;
  font-size: 0.75rem;
  color: #C5A236;
  background: white;
  padding: 0 4px;
}
