/* Homepage — Vishnu Global University (VGU brand) */
:root {
  --vgu-navy: #0c1f4a;
  --vgu-navy-light: #1a3270;
  --vgu-gold: #c9a227;
  --vgu-gold-light: #e8c547;
  --primary: var(--vgu-navy);
  --primary-mid: var(--vgu-navy-light);
  --accent: var(--vgu-gold);
  --accent-hover: #a8861e;
  --accent-glow: rgba(201, 162, 39, 0.4);
  --header-h: 76px;
}

.page-home { padding-bottom: 0; }
.page-home.has-sticky-bar { padding-bottom: 76px; }

/* Hero */
.hero-home {
  padding: 32px 0 48px;
  min-height: auto;
}
.hero-home-bg {
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(201, 162, 39, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(26, 50, 112, 0.08), transparent 45%),
    linear-gradient(180deg, #fff 0%, #f0f4fa 55%, #e8eef8 100%);
}
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  animation: floatShape 8s ease-in-out infinite;
}
.hero-shape-1 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 70%);
  top: -80px; right: -60px;
}
.hero-shape-2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.15), transparent 70%);
  bottom: 10%; left: -40px;
  animation-delay: -3s;
}
.hero-shape-3 {
  width: 120px; height: 120px;
  background: rgba(12, 31, 74, 0.06);
  top: 40%; right: 15%;
  animation-delay: -5s;
}
@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -16px) scale(1.05); }
}

.hero-home-grid {
  position: relative;
  z-index: 1;
}
.hero-home h1 {
  font-size: clamp(1.65rem, 5.5vw, 2.85rem);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.text-gradient {
  background: linear-gradient(135deg, var(--vgu-navy), #2563eb 45%, var(--vgu-gold));
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
}
.hero-chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--vgu-navy);
  background: #fff;
  border: 1px solid rgba(12, 31, 74, 0.12);
  padding: 8px 14px;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  animation: chipIn 0.6s ease backwards;
}
.hero-chip:nth-child(1) { animation-delay: 0.1s; }
.hero-chip:nth-child(2) { animation-delay: 0.2s; }
.hero-chip:nth-child(3) { animation-delay: 0.3s; }
.hero-chip:nth-child(4) { animation-delay: 0.4s; }
@keyframes chipIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-cta-row .btn { width: 100%; }
@media (min-width: 480px) {
  .hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
  .hero-cta-row .btn { width: auto; }
}

.hero-stats-inline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-stat {
  text-align: center;
  padding: 12px 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.hero-stat strong {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--vgu-navy);
}
.hero-stat span { font-size: 11px; display: block; margin-top: 2px; }

/* Form card — premium */
.hero-form-wrap {
  position: relative;
}
.hero-form-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, var(--vgu-gold), var(--vgu-navy), var(--vgu-gold));
  border-radius: calc(var(--radius-lg) + 3px);
  z-index: -1;
  opacity: 0.85;
  animation: borderGlow 4s ease infinite;
}
@keyframes borderGlow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.lead-form-card {
  animation: formSlide 0.8s ease 0.2s backwards;
}
@keyframes formSlide {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.form-card-header h2 { color: var(--vgu-navy); }

/* Stats — card style (no awkward overlap) */
.stats-bar-home {
  margin: -32px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 3;
  max-width: 1180px;
}
.stats-bar-home .stats-bar {
  margin-top: 0;
  padding: 0;
  background: transparent;
}
.stats-bar-inner {
  background: linear-gradient(135deg, var(--vgu-navy) 0%, var(--vgu-navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(201, 162, 39, 0.25);
}
.stats-bar-inner .stat-number { color: var(--vgu-gold-light); font-size: clamp(1.5rem, 4vw, 2rem); }
.stats-bar-inner .stat-label { color: rgba(255,255,255,0.88); font-size: 13px; }

/* Program cards — hover animation */
.program-card {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.program-card:hover {
  transform: translateY(-8px);
}
.program-card .btn-primary {
  background: var(--vgu-navy);
}
.program-card .btn-primary:hover {
  background: var(--vgu-navy-light);
}

/* Why cards stagger */
.why-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-card:hover {
  transform: translateY(-4px);
}
.why-icon {
  background: linear-gradient(135deg, rgba(12,31,74,0.08), rgba(201,162,39,0.12));
}

/* Steps — connected on desktop */
@media (min-width: 768px) {
  .steps-grid {
    position: relative;
  }
  .steps-grid::before {
    content: '';
    position: absolute;
    top: 42px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--vgu-gold), var(--secondary), var(--vgu-gold));
    opacity: 0.35;
    z-index: 0;
  }
  .step-card { position: relative; z-index: 1; }
}

.step-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--vgu-gold);
}
.step-card .step-num { color: var(--vgu-gold); }

/* Final CTA — full premium block (fixes "end" layout) */
.final-cta-premium {
  padding: 0 20px 56px;
  margin-top: 0;
}
.final-cta-box {
  background: linear-gradient(135deg, var(--vgu-navy) 0%, #152a5c 50%, #0c1f4a 100%);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(201, 162, 39, 0.3);
}
.final-cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.15), transparent 60%);
  pointer-events: none;
}
.final-cta-box .hero-badge {
  background: rgba(201, 162, 39, 0.2);
  color: var(--vgu-gold-light);
  border-color: rgba(201, 162, 39, 0.4);
}
.final-cta-box h2 {
  color: #fff;
  font-size: clamp(1.35rem, 4vw, 2rem);
  margin-bottom: 12px;
  position: relative;
}
.final-cta-box > p {
  color: rgba(255,255,255,0.9);
  max-width: 520px;
  margin: 0 auto 24px;
  position: relative;
}
.final-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  position: relative;
}
.final-cta-actions .btn { min-width: 200px; width: 100%; max-width: 280px; }
@media (min-width: 480px) {
  .final-cta-actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  .final-cta-actions .btn { width: auto; }
}

/* Footer — proper end layout */
.site-footer {
  margin-top: 0;
}
.footer-grid {
  text-align: left;
}
@media (max-width: 767px) {
  .footer-grid {
    text-align: center;
  }
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .social-links { justify-content: center; }
  .footer-col a, .footer-col p { text-align: center; }
}

/* Sticky + WhatsApp — clear footer */
.page-home .whatsapp-float {
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  animation: waPulse 2.5s ease infinite;
}
.page-home .sticky-cta {
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.65); }
}

/* Reveal animations */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up[data-delay="1"] { transition-delay: 0.1s; }
.fade-up[data-delay="2"] { transition-delay: 0.2s; }
.fade-up[data-delay="3"] { transition-delay: 0.3s; }

/* Hero visible immediately */
.hero-animate-in {
  animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Testimonial hover */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Section spacing mobile */
@media (max-width: 767px) {
  .section { padding: 56px 0; }
  .hero-home { padding-top: 24px; }
  .stats-bar-home { margin-top: -24px; }
  .programs-grid { gap: 16px; }
  .testimonials-grid { gap: 16px; }
  .urgency-bar p { font-size: 12px; line-height: 1.4; }
}

@media (min-width: 768px) {
  .hero-home { padding: 48px 0 64px; }
  .hero-home-grid {
    grid-template-columns: 1.05fr 400px;
    gap: 48px;
    align-items: center;
  }
  .hero-form-wrap {
    position: sticky;
    top: calc(var(--header-h) + var(--urgency-h) + 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up, .hero-shape, .hero-chip, .lead-form-card, .whatsapp-float {
    animation: none !important;
    transition: none !important;
  }
  .fade-up { opacity: 1; transform: none; }
}
