/*
Theme Name: AstroWizard
Theme URI: https://astrowizard.co.in
Author: AstroWizard Team
Author URI: https://astrowizard.co.in
Description: Custom Vedic Astrology consultation theme with golden/cream design system. Designed for use with Elementor.
Version: 1.0.0
License: GPL v2 or later
Text Domain: astrowizard
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ===================== DESIGN TOKENS ===================== */
:root {
  --aw-background: hsl(42, 60%, 95%);
  --aw-foreground: hsl(20, 42%, 10%);
  --aw-card: hsl(42, 70%, 97%);
  --aw-card-foreground: hsl(20, 42%, 10%);
  --aw-primary: hsl(45, 92%, 54%);
  --aw-primary-foreground: hsl(20, 30%, 10%);
  --aw-secondary: hsl(41, 62%, 87%);
  --aw-secondary-foreground: hsl(20, 42%, 10%);
  --aw-muted: hsl(41, 48%, 89%);
  --aw-muted-foreground: hsl(20, 24%, 24%);
  --aw-accent: hsl(0, 55%, 35%);
  --aw-accent-foreground: hsl(35, 40%, 95%);
  --aw-border: hsl(41, 34%, 74%);
  --aw-gold: hsl(45, 92%, 54%);
  --aw-gold-light: hsl(47, 96%, 67%);
  --aw-gold-dark: hsl(42, 86%, 34%);
  --aw-midnight: hsl(20, 42%, 10%);
  --aw-cream: hsl(35, 40%, 95%);
  --aw-warm: hsl(25, 60%, 92%);
  --aw-radius: 0.75rem;
  --aw-gradient-gold: linear-gradient(135deg, hsl(42, 96%, 48%), hsl(45, 92%, 54%), hsl(48, 96%, 66%));
  --aw-gradient-celestial: linear-gradient(140deg, hsl(46, 78%, 95%), hsl(42, 62%, 88%), hsl(35, 45%, 91%));
  --aw-shadow-gold: 0 8px 34px -8px hsla(45, 92%, 54%, 0.45);
}

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--aw-background);
  color: var(--aw-foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(circle at 20% 0%, hsla(45, 92%, 54%, 0.1), transparent 36%),
    radial-gradient(circle at 85% 20%, hsla(47, 96%, 67%, 0.08), transparent 42%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===================== UTILITIES ===================== */
.aw-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.aw-section { padding: 6rem 0; }
.aw-section-alt { padding: 6rem 0; background: hsla(41, 62%, 87%, 0.5); }

.aw-text-gold { color: var(--aw-gold); }
.aw-text-gold-dark { color: var(--aw-gold-dark); }
.aw-text-muted { color: var(--aw-muted-foreground); }
.aw-text-foreground { color: var(--aw-foreground); }

.aw-text-gradient-gold {
  background: var(--aw-gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.aw-bg-card { background: var(--aw-card); }
.aw-bg-gradient-gold { background: var(--aw-gradient-gold); }

.aw-border { border: 1px solid var(--aw-border); }
.aw-border-gold { border: 1px solid hsla(45, 92%, 54%, 0.4); }
.aw-rounded { border-radius: var(--aw-radius); }

.aw-shadow-sm { box-shadow: 0 1px 3px hsla(20, 42%, 10%, 0.06); }
.aw-shadow-lg { box-shadow: 0 10px 25px -5px hsla(20, 42%, 10%, 0.1); }
.aw-glow-gold { box-shadow: var(--aw-shadow-gold); }

/* ===================== BUTTONS ===================== */
.aw-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--aw-radius);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.aw-btn-gold {
  background: var(--aw-gradient-gold);
  color: var(--aw-primary-foreground);
  box-shadow: var(--aw-shadow-gold);
}
.aw-btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px -8px hsla(45, 92%, 54%, 0.55);
}

.aw-btn-gold-outline {
  background: transparent;
  color: var(--aw-gold-dark);
  border: 1.5px solid var(--aw-gold);
}
.aw-btn-gold-outline:hover {
  background: hsla(45, 92%, 54%, 0.1);
}

.aw-btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }

/* ===================== SECTION HEADING ===================== */
.aw-section-heading { text-align: center; margin-bottom: 3rem; }
.aw-section-heading .aw-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--aw-gold);
  margin-bottom: 0.75rem;
  display: block;
}
.aw-section-heading h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--aw-foreground);
  margin-bottom: 1rem;
}
.aw-section-heading p {
  color: var(--aw-muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===================== CARDS ===================== */
.aw-card {
  background: var(--aw-card);
  border: 1px solid var(--aw-border);
  border-radius: var(--aw-radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px hsla(20, 42%, 10%, 0.06);
  transition: all 0.3s ease;
}
.aw-card:hover {
  box-shadow: 0 10px 25px -5px hsla(20, 42%, 10%, 0.1);
  border-color: hsla(45, 92%, 54%, 0.4);
}

/* ===================== GRID ===================== */
.aw-grid { display: grid; gap: 1.5rem; }
.aw-grid-2 { grid-template-columns: repeat(2, 1fr); }
.aw-grid-3 { grid-template-columns: repeat(3, 1fr); }
.aw-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .aw-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .aw-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .aw-grid-2, .aw-grid-3, .aw-grid-4 { grid-template-columns: 1fr; }
  .aw-section { padding: 3rem 0; }
  .aw-section-heading h2 { font-size: 1.5rem; }
}

/* ===================== ANIMATIONS ===================== */
@keyframes aw-fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes aw-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes aw-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes aw-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.aw-animate-fadeInUp { animation: aw-fadeInUp 0.6s ease forwards; }
.aw-animate-fadeIn { animation: aw-fadeIn 0.5s ease forwards; }
.aw-animate-rotate { animation: aw-rotate 60s linear infinite; }
.aw-animate-float { animation: aw-float 3s ease-in-out infinite; }

/* Scroll-triggered animations */
.aw-scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.aw-scroll-animate.aw-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.aw-stagger > *:nth-child(1) { transition-delay: 0s; }
.aw-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.aw-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.aw-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.aw-stagger > *:nth-child(5) { transition-delay: 0.4s; }
.aw-stagger > *:nth-child(6) { transition-delay: 0.5s; }
.aw-stagger > *:nth-child(7) { transition-delay: 0.6s; }
.aw-stagger > *:nth-child(8) { transition-delay: 0.7s; }
.aw-stagger > *:nth-child(9) { transition-delay: 0.8s; }

/* Testimonial carousel */
.aw-testimonial-slider { position: relative; overflow: hidden; }
.aw-testimonial-slide {
  opacity: 0;
  position: absolute;
  inset: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateX(50px);
}
.aw-testimonial-slide.aw-active {
  opacity: 1;
  position: relative;
  transform: translateX(0);
}

/* WhatsApp floating button */
.aw-whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
  text-decoration: none;
}
.aw-whatsapp-float:hover { transform: scale(1.1); }
.aw-whatsapp-float svg { width: 28px; height: 28px; }

/* Star field background */
.aw-star-field {
  background-image:
    radial-gradient(1px 1px at 10% 20%, hsla(43, 80%, 70%, 0.3), transparent),
    radial-gradient(1px 1px at 30% 60%, hsla(43, 80%, 70%, 0.2), transparent),
    radial-gradient(1.5px 1.5px at 50% 10%, hsla(43, 80%, 70%, 0.35), transparent),
    radial-gradient(1px 1px at 70% 40%, hsla(43, 80%, 70%, 0.25), transparent),
    radial-gradient(1px 1px at 90% 80%, hsla(43, 80%, 70%, 0.15), transparent);
}
