/* ==========================================================================
   Pandit Sahadev Ji - Best Indian Astrologer in USA
   Master Stylesheet (Responsive, Modern, Vedic Aesthetic)
   ========================================================================== */

:root {
  --color-maroon-dark: #3b060d;
  --color-maroon: #720b18;
  --color-maroon-light: #941727;
  --color-gold: #d4af37;
  --color-gold-light: #f7d56e;
  --color-gold-amber: #d97706;
  --color-bg-dark: #120709;
  --color-bg-card: #1c0a0f;
  --color-bg-card-hover: #260e15;
  --color-border: rgba(212, 175, 55, 0.25);
  --color-border-hover: rgba(212, 175, 55, 0.7);
  --color-text-main: #f3f4f6;
  --color-text-muted: #9ca3af;
  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Motion & Physics Tokens (Taste Skill + Emil Kowalski) */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 180ms;
  --duration-normal: 280ms;
  --duration-reveal: 600ms;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Typography */
h1, h2, h3, h4, .font-serif, .brand-title {
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
}

.gold-text {
  background: linear-gradient(135deg, #fef08a 0%, #d4af37 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animations & Sacred Keyframes */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 16px rgba(212, 175, 55, 0.25); }
  50% { box-shadow: 0 0 32px rgba(212, 175, 55, 0.55); }
}

@keyframes omAura {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 28px rgba(212, 175, 55, 0.7);
  }
}

@keyframes fabPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  }
  50% {
    transform: scale(1.04);
    filter: drop-shadow(0 6px 20px rgba(212, 175, 55, 0.4));
  }
}

@keyframes bannerShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.spin-slow {
  animation: spinSlow 60s linear infinite;
}

/* Scroll-Driven Reveal System (Emil Kowalski + Taste Skill) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-reveal) var(--ease-out),
              transform var(--duration-reveal) var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Grid Animation */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
  transition-delay: calc(var(--stagger-i, 0) * 70ms);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons with Emil Kowalski Tactile Micro-Physics */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
  border: 1px solid transparent;
  min-height: 44px;
  will-change: transform;
}

.btn:active {
  transform: scale(0.97) translateY(0) !important;
}

.btn-primary {
  background: linear-gradient(135deg, #f7d56e 0%, #d4af37 50%, #b38a1f 100%);
  color: #120709;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fff08a 0%, #f7d56e 50%, #d4af37 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.45);
}

.btn-secondary {
  background: #250d14;
  color: #f7d56e;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.btn-secondary:hover {
  background: #36131d;
  border-color: rgba(212, 175, 55, 0.8);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-whatsapp:hover {
  background: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

/* Cards & Grid */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: linear-gradient(135deg, #1c0a0f 0%, #15070a 100%);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 24px;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out);
  will-change: transform;
}

.card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.15);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #f7d56e;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 8, 11, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(114, 11, 24, 0.4);
}

.announcement-bar {
  background: linear-gradient(90deg, #5c0712 0%, #800020 50%, #5c0712 100%);
  color: #fef08a;
  padding: 8px 16px;
  font-size: 13px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.announcement-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 480px) {
  .announcement-bar {
    padding: 4px 8px;
    font-size: 11px;
    text-align: center;
  }
  .announcement-inner {
    justify-content: center;
    gap: 4px;
  }
}

.navbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-om {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7d56e, #720b18);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: omAura 4.5s ease-in-out infinite;
  transition: transform var(--duration-fast) var(--ease-out);
}

.brand:hover .brand-om {
  transform: scale(1.08);
}

.brand-om-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #18090d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f7d56e;
  font-size: 24px;
  font-family: var(--font-serif);
}

.brand-text h1 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.brand-text p {
  font-size: 11px;
  color: #f7d56e;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #f7d56e;
  background: rgba(114, 11, 24, 0.4);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #f7d56e;
  font-size: 20px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.mobile-menu-btn:hover,
.mobile-menu-btn.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: #d4af37;
  color: #fff;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 70px 0;
  border-bottom: 1px solid rgba(114, 11, 24, 0.4);
  background: #15070a;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.hero-content h1 {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.15;
  margin: 16px 0;
}

.hero-content p {
  font-size: 17px;
  color: #d1d5db;
  margin-bottom: 24px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  aspect-ratio: 4/5;
  width: 100%;
  max-width: 420px;
  background: #220c12;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
.section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(114, 11, 24, 0.35);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px auto;
}

.section-header h2 {
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
  margin: 12px 0 8px 0;
}

.section-header p {
  font-size: 16px;
  color: var(--color-text-muted);
}

/* Stats Counter */
.stats-strip {
  background: #14080b;
  padding: 40px 0;
  border-bottom: 1px solid rgba(114, 11, 24, 0.4);
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: #1c0a0f;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out);
  will-change: transform;
}

.stat-item:hover {
  border-color: rgba(212, 175, 55, 0.7);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 16px rgba(212, 175, 55, 0.15);
}

.stat-num {
  font-size: 38px;
  font-weight: 900;
  font-family: var(--font-serif);
  color: #f7d56e;
  margin-bottom: 4px;
}

.stat-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 13px;
  color: #9ca3af;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #1a080d;
  border: 1px solid rgba(212, 175, 55, 0.25);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out);
  will-change: transform;
}

.service-card:hover {
  border-color: rgba(212, 175, 55, 0.8);
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.75), 0 0 22px rgba(212, 175, 55, 0.18);
}

.service-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-spring);
}

.service-card:hover .service-icon {
  transform: scale(1.15) translateY(-2px);
}

.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #290e15;
  transition: transform var(--duration-normal) var(--ease-out);
}

.service-card:hover .service-img {
  transform: scale(1.03);
}

.service-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.service-body h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fef08a;
  margin-bottom: 8px;
}

.service-body p {
  font-size: 14px;
  color: #d1d5db;
  line-height: 1.55;
  margin-bottom: 16px;
}

.service-features {
  list-style: none;
  border-top: 1px solid rgba(114, 11, 24, 0.4);
  padding-top: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #f7d56e;
}

.service-features li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #f7d56e;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: #14070a;
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
}

.form-control:focus {
  outline: none;
  border-color: #f7d56e;
  background: #19090d;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* Modal with Emil Kowalski Fluid Scaling */
.modal-overlay,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out),
              visibility var(--duration-normal) var(--ease-out);
}

.modal-overlay.active,
.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-container,
.modal-card {
  background: #1b090e;
  border: 2px solid rgba(212, 175, 55, 0.6);
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.9), 0 0 40px rgba(212, 175, 55, 0.2);
  transform: scale(0.96) translateY(12px);
  opacity: 0;
  transition: transform var(--duration-normal) var(--ease-out),
              opacity var(--duration-normal) var(--ease-out);
  will-change: transform, opacity;
}

.modal-overlay.active .modal-container,
.modal-backdrop.active .modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #2a0e16;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #f7d56e;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.modal-close:hover {
  transform: rotate(90deg) scale(1.08);
  background: #3b101c;
  color: #ffffff;
}

.modal-close:active {
  transform: scale(0.92);
}

/* Floating Actions */
.floating-ctas,
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              filter var(--duration-fast) var(--ease-out);
  position: relative;
  animation: fabPulse 4s ease-in-out infinite;
  will-change: transform;
}

.floating-wa {
  background: #059669;
  border: 2px solid #34d399;
  color: #ffffff;
  animation-delay: 0s;
}

.floating-call {
  background: linear-gradient(135deg, #f7d56e, #d97706);
  border: 2px solid #fef08a;
  color: #120709;
  animation-delay: 2s;
}

.floating-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.75), 0 0 20px rgba(212, 175, 55, 0.4);
}

.floating-btn:active {
  transform: scale(0.94);
}

/* Mobile Bottom Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(18, 7, 9, 0.98);
  border-top: 1px solid rgba(212, 175, 55, 0.4);
  padding: 8px 12px;
  gap: 8px;
}

/* Footer */
.site-footer {
  background: #0c0406;
  border-top: 1px solid rgba(114, 11, 24, 0.5);
  padding: 60px 0 30px 0;
  color: #9ca3af;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #f7d56e;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: #f7d56e;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .nav-links {
    display: none;
  }
  .nav-links.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #17090c;
    border-bottom: 2px solid #d4af37;
    padding: 16px 24px;
    gap: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85);
    z-index: 1000;
  }
  .nav-links.active .nav-link {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.1);
  }
  .nav-links.active .nav-link:hover,
  .nav-links.active .nav-link.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
  }
  .mobile-menu-btn {
    display: flex !important;
  }
  .mobile-bottom-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .site-footer {
    padding-bottom: 90px;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 32px;
  }
  .section-header h2 {
    font-size: 28px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* FAQ Accordion Micro-Interactions */
.faq-question {
  transition: color var(--duration-fast) var(--ease-out);
}

.faq-answer {
  transition: opacity var(--duration-normal) var(--ease-out);
}

/* Mandatory Accessibility: Reduced-Motion Gating (Emil Kowalski + Taste Skill) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .brand-om,
  .floating-btn,
  .spin-slow {
    animation: none !important;
  }
}
