/* ============================================================
   SAFFAL JYOTISH — home.css v3
   Fixes: hero clarity, trust bar single row, services gap,
   stats weight, Navgraha visual, centered button
   ============================================================ */

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  background: var(--grad-hero);
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Deep warm glow for text readability */
.hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(80,8,0,.55) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

/* Rings — centered */
.hero-rings { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.ring {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
  animation: ring-pulse 5s ease-out infinite;
}
.ring-1 { width: 280px;  height: 280px;  border: 1px solid rgba(212,144,10,.18); animation-delay: 0s; }
.ring-2 { width: 480px;  height: 480px;  border: 1px solid rgba(212,144,10,.10); animation-delay: 1s; }
.ring-3 { width: 700px;  height: 700px;  border: 1px solid rgba(212,144,10,.05); animation-delay: 2s; }
.ring-4 { width: 940px;  height: 940px;  border: 1px solid rgba(212,144,10,.025); animation-delay: 3s; }

@keyframes ring-pulse {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(.86); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.08); }
}

/* Stars */
.hero-stars { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.star {
  position: absolute; border-radius: 50%;
  background: var(--gold-lt);
  animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle {
  0%,100% { opacity: .12; transform: scale(1); }
  50%      { opacity: .8;  transform: scale(1.5); }
}

/* ── Hero content ────────────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin-inline: auto;
  padding-block: clamp(5rem, 12vw, 7rem);
}

/* Eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,215,100,.75);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fade-up .6s var(--ease) .1s forwards;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 26px; height: 1px;
  background: rgba(255,215,100,.3);
}

/* Title */
.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  opacity: 0;
  animation: fade-up .8s var(--ease) .25s forwards;
  /* Key fix: text-shadow for depth and readability */
  text-shadow: 0 2px 30px rgba(0,0,0,.5), 0 1px 4px rgba(0,0,0,.3);
}

/* "Jyotish Vidya" gold shimmer */
.hero-title .accent {
  background: linear-gradient(90deg,
    rgba(255,200,60,.95)  0%,
    rgba(255,240,130,1)   40%,
    rgba(255,200,60,.95)  80%,
    rgba(240,170,40,.9)   100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 250% auto;
  animation: shimmer 5s linear 1s infinite;
  display: inline;
  /* Gold text shadow via filter */
  filter: drop-shadow(0 2px 12px rgba(212,144,10,.4));
}
@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* Subtitle */
.hero-sub {
  font-size: clamp(.94rem, 1.6vw, 1.06rem);
  color: rgba(255,255,255,.68);
  line-height: 1.85;
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fade-up .8s var(--ease) .45s forwards;
  font-weight: 300;
  text-shadow: 0 1px 8px rgba(0,0,0,.25);
}

/* CTA — centered */
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-up .8s var(--ease) .65s forwards;
}

/* Price note */
.hero-price-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  color: rgba(255,255,255,.3);
  font-size: 0.76rem;
  opacity: 0;
  animation: fade-up .8s var(--ease) .85s forwards;
}
.hero-price-note span { color: rgba(255,255,255,.46); font-weight: 500; }
.hero-price-note .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,.2); flex-shrink: 0;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  opacity: 0;
  animation: fade-in 1s var(--ease) 1.4s forwards;
  z-index: 1;
}
.hero-scroll-line {
  width: 1px; height: 32px;
  background: linear-gradient(180deg, transparent, rgba(212,144,10,.45));
  animation: scroll-drop 2.5s ease-in-out 1.8s infinite;
}
@keyframes scroll-drop {
  0%,100% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%      { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── TRUST BAR — all 5 in one line, no wrap ─────────────── */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding-block: 0.9rem;
  overflow: hidden;
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  /* Scroll on tiny screens */
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.trust-items::-webkit-scrollbar { display: none; }

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-body);
  white-space: nowrap;
  padding: 0 clamp(0.65rem, 1.8vw, 1.6rem);
  flex-shrink: 0;
}
.trust-icon { font-size: 0.9rem; flex-shrink: 0; }
.trust-divider {
  width: 1px; height: 16px;
  background: var(--border-mid);
  opacity: 0.4;
  flex-shrink: 0;
}

/* ─── SERVICES SECTION ───────────────────────────────────── */
.services-section { background: var(--white); }

/* Section heading block — tighter gap to cards */
.services-top {
  margin-bottom: var(--space-xl);
}

/* 5 equal columns */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.95rem;
}

.service-card {
  background: var(--cream-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.35rem 1.1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all var(--dur-m) var(--ease);
  /* Start invisible — stagger animation adds .visible */
  opacity: 0;
  transform: translateY(18px);
}
.service-card.visible {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease),
              box-shadow var(--dur-m) var(--ease),
              border-color var(--dur-m),
              background var(--dur-m);
}

/* Top accent bar */
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-saffron);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-m) var(--ease);
}
.service-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,64,0,.045) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--dur-m);
  pointer-events: none;
}
.service-card:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  background: var(--white);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after  { opacity: 1; }

.service-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
  transition: transform var(--dur-m) var(--ease);
  position: relative; z-index: 1;
}
.service-card:hover .service-icon { transform: scale(1.1) translateY(-2px); }

.service-name {
  font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.45rem; line-height: 1.3;
  position: relative; z-index: 1;
}
.service-desc {
  font-size: 0.79rem; color: var(--text-light);
  line-height: 1.6; flex: 1;
  margin-bottom: 0.8rem;
  position: relative; z-index: 1;
}
.service-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.service-price {
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.98rem;
  color: var(--saffron);
}
.service-duration {
  font-size: 0.68rem; color: var(--text-faint);
  background: rgba(201,64,0,.07);
  padding: 0.14rem 0.45rem;
  border-radius: var(--r-full); font-weight: 500;
}

/* ─── ABOUT / NAVGRAHA SECTION ───────────────────────────── */
.about-section { background: var(--grad-section); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.about-visual { display: flex; align-items: center; justify-content: center; }

/* Navgraha system container */
.navgraha-wrap {
  position: relative;
  width: clamp(300px, 40vw, 480px);
  aspect-ratio: 1;
}

/* Central Om */
.navgraha-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 68px; height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,64,0,.12), rgba(201,64,0,.04));
  border: 1.5px solid rgba(201,64,0,.2);
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
}
.navgraha-om {
  font-family: var(--font-hindi);
  font-size: 1.8rem;
  color: var(--saffron);
  opacity: .45;
  line-height: 1;
  animation: om-breathe 4s ease-in-out infinite;
}
@keyframes om-breathe {
  0%,100% { opacity: .35; transform: scale(1); }
  50%      { opacity: .55; transform: scale(1.06); }
}

/* Each orbit track */
.orbit {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(201,64,0,.1);
  transform: translate(-50%,-50%);
}

/* Planet dot on its orbit */
.planet {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
  /* Each planet is positioned via inline style on the arm */
}

/* The rotating arm — makes planet revolve */
.planet-arm {
  position: absolute;
  top: 50%; left: 50%;
  transform-origin: 0 0;
  /* width = orbit radius, set via inline style */
}

/* Planet dot itself */
.planet-dot {
  position: absolute;
  border-radius: 50%;
  /* translate to end of arm */
  transform: translateY(-50%);
}

/* Glow pulse on planets */
@keyframes planet-glow {
  0%,100% { box-shadow: 0 0 4px currentColor; transform: translateY(-50%) scale(1); }
  50%      { box-shadow: 0 0 10px currentColor; transform: translateY(-50%) scale(1.35); }
}

/* Orbit label — planet initial */
.planet-label {
  position: absolute;
  font-size: 0.42rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translate(-50%, -50%) translateY(-10px);
  white-space: nowrap;
  opacity: .7;
  pointer-events: none;
}

/* ─── STATS ───────────────────────────────────────────────── */
.stats-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}
.stat {
  text-align: center;
  padding: 1rem var(--space-md);
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-m) var(--ease);
}
.stat:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-mid); }

/* Lighter, less aggressive stat number */
.stat-number {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;          /* was 800 — much lighter */
  color: var(--saffron);
  line-height: 1;
  margin-bottom: 0.28rem;
  letter-spacing: -0.01em;
}
.stat-label {
  font-size: 0.71rem;
  color: var(--text-light);
  line-height: 1.4;
  font-weight: 400;
}

/* ─── HOW IT WORKS ───────────────────────────────────────── */
.how-section { background: var(--white); }

.steps-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: var(--space-xl);
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 27px; left: 13%; right: 13%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-mid) 20%, var(--border-mid) 80%, transparent);
}

.step { text-align: center; position: relative; z-index: 1; }
.step-number {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--cream-card);
  border: 1.5px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: var(--text-light);
  margin: 0 auto var(--space-lg);
  transition: all var(--dur-m) var(--ease);
}
.step.active .step-number {
  background: var(--grad-saffron);
  border-color: transparent; color: var(--white);
  box-shadow: 0 4px 16px rgba(201,64,0,.3);
}
.step-title { font-family: var(--font-display); font-weight: 600; font-size: .93rem; margin-bottom:.42rem; color: var(--text-dark); }
.step-desc  { font-size: 0.8rem; color: var(--text-light); line-height: 1.65; }

/* Centered CTA under steps */
.how-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
}

/* ─── DISCLAIMER BANNER ──────────────────────────────────── */
.disclaimer-banner {
  background: linear-gradient(135deg, var(--deep) 0%, var(--maroon) 100%);
  padding-block: var(--space-2xl);
  text-align: center;
  border-top: 1px solid rgba(212,144,10,.1);
}
.disclaimer-banner p {
  font-size: 0.85rem; color: rgba(255,255,255,.5);
  max-width: 620px; margin-inline: auto; line-height: 1.85;
}
.disclaimer-banner a { color: var(--gold-lt); }
.disclaimer-banner a:hover { text-decoration: underline; }

/* ─── CTA SECTION ────────────────────────────────────────── */
.cta-section {
  background: var(--grad-hero-2);
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(212,144,10,.09) 0%, transparent 60%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); margin-bottom: var(--space-md); }
.cta-section p  {
  color: rgba(255,255,255,.62); font-size: 1rem;
  max-width: 460px; margin-inline: auto;
  margin-bottom: var(--space-2xl);
}
.cta-actions {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-lg); flex-wrap: wrap;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .steps-grid::before { display: none; }
}
@media (max-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid    { grid-template-columns: 1fr; }
  .about-visual  { display: none; }
  .stats-row     { grid-template-columns: 1fr; }
  .steps-grid    { grid-template-columns: 1fr; }
  .trust-items   { flex-wrap: wrap; gap: .3rem; }
  .trust-item    { padding: .25rem .55rem; font-size: .79rem; }
  .trust-divider { display: none; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
}
