/**
 * TARA FITNESS MASTER STYLESHEET
 * Phase 1 Production Foundation
 */

@import url('tokens.css?v=2.1');
@import url('reset.css?v=2.1');
@import url('typography.css?v=2.1');
@import url('layout.css?v=2.1');
@import url('components.css?v=2.1');

/* ==========================================================================
   HERO SECTION FOUNDATION
   ========================================================================== */

.hero-section {
  position: relative;
  background-color: var(--color-bg-base);
  padding-top: var(--space-8);
  padding-bottom: var(--space-12);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border-subtle);
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-16);
  }
}

@media (min-width: 1024px) {
  .hero-section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-20);
  }
}

.hero-grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-12);
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hero-headline {
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  color: var(--color-primary-900);
  letter-spacing: -0.03em;
}

.hero-subhead {
  font-size: var(--font-size-body-lg);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-2);
}

@media (max-width: 640px) {
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: var(--space-3);
  }

  .hero-cta-group .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}

.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-subtle);
  font-size: var(--font-size-caption);
  color: var(--color-text-light);
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.hero-trust-item svg {
  width: 16px;
  height: 16px;
  fill: var(--color-primary-600);
}

/* ==========================================================================
   AMBIENT GLOWS & BACKGROUND EFFECTS
   ========================================================================== */

.hero-section {
  position: relative;
  background-color: var(--color-bg-base);
  background-image: var(--grad-mesh-hero);
  padding-top: var(--space-8);
  padding-bottom: var(--space-12);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border-subtle);
}

.ambient-glow-emerald {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 133, 85, 0.18) 0%, rgba(27, 79, 50, 0.06) 50%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  animation: floatGentle 8s ease-in-out infinite alternate;
}

.ambient-glow-gold {
  position: absolute;
  bottom: -100px;
  left: 10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 151, 38, 0.15) 0%, rgba(184, 130, 32, 0.04) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: floatGentle 10s ease-in-out infinite alternate-reverse;
}

/* ==========================================================================
   COACH TARA PRASAD — HERO VISUAL CARD & SPOTLIGHT
   ========================================================================== */

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
  background: transparent;
  z-index: 1;
}

.coach-frame-inner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(180deg, #ffffff 0%, #f4f1ea 100%);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.hero-visual-card:hover .coach-frame-inner {
  transform: translateY(-4px);
  box-shadow: 0 32px 70px -16px rgba(13, 43, 26, 0.22), 0 0 30px rgba(46, 133, 85, 0.2);
}

.hero-img {
  width: 100%;
  height: 100%;
  max-height: 540px;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual-card:hover .hero-img {
  transform: scale(1.025);
}

/* Floating Status Beacon: Online */
.coach-live-pill {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: rgba(13, 43, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-family-display);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
  animation: floatSlow 5s ease-in-out infinite;
}

.live-dot {
  width: 9px;
  height: 9px;
  background-color: #25d366;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.8);
  animation: liveBeacon 2s infinite;
}

/* Floating Verification Pill */
.coach-verified-tag {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-primary-900);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-family-display);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-bold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(212, 151, 38, 0.35);
  z-index: 2;
}

.coach-verified-tag svg {
  width: 14px;
  height: 14px;
  fill: #d49726;
}

/* Floating Coach Glass Badge */
.hero-badge-floating {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 36px -8px rgba(13, 43, 26, 0.16);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 2;
  transition: transform var(--transition-normal);
}

.hero-visual-card:hover .hero-badge-floating {
  transform: translateY(-2px);
}

.hero-badge-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2.5px solid #2e8555;
  box-shadow: 0 2px 8px rgba(46, 133, 85, 0.3);
}

.hero-badge-title {
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-extrabold);
  font-size: var(--font-size-body);
  color: var(--color-primary-900);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-badge-sub {
  font-size: var(--font-size-caption);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
}

/* ==========================================================================
   MEET COACH TARA PRASAD — SPOTLIGHT SHOWCASE CARD (SECTION 9)
   ========================================================================== */

.coach-spotlight-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 2px solid rgba(46, 133, 85, 0.15);
  display: flex;
  flex-direction: column;
}

.coach-spotlight-img-wrap {
  position: relative;
  width: 100%;
  min-height: 420px;
  max-height: 500px;
  overflow: hidden;
  background: #f4f1ea;
}

.coach-spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.coach-spotlight-badge {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  background: rgba(13, 43, 26, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.coach-spotlight-badge-title {
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: var(--font-size-small);
  color: #ffffff;
}

.coach-spotlight-badge-sub {
  font-size: var(--font-size-caption);
  color: #d49726;
  font-weight: 600;
}

/* Feature Check Pills */
.coach-feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.coach-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-small);
  color: var(--color-text-main);
  background: rgba(255, 255, 255, 0.7);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
}

.coach-feature-item svg {
  width: 18px;
  height: 18px;
  fill: var(--color-primary-600);
  flex-shrink: 0;
}

/* ==========================================================================
   PAGE LOAD SEQUENCE & HERO ENTRANCE (CALM & STAGGERED)
   ========================================================================== */

.hero-visual-card {
  animation: heroEntrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.hero-headline {
  animation: heroEntrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

.hero-subhead {
  animation: heroEntrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.30s both;
}

.hero-cta-group {
  animation: heroEntrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}

.hero-trust-bar {
  animation: heroEntrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.54s both;
}

@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   CARD HOVER ELEVATION & REFINED MICRO-INTERACTIONS
   ========================================================================== */

.card, .decision-card, .product-card, .story-card, .step-card {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.25s ease;
  will-change: transform, box-shadow;
}

.card:hover, .decision-card:hover, .product-card:hover, .story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(46, 133, 85, 0.28);
}

.decision-card:hover .decision-card-icon {
  transform: translateY(-2px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.decision-card:hover .decision-card-cta {
  color: var(--color-primary-600);
}

/* Product Card Refined Micro-Zoom */
.product-card .product-card-img {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card-img {
  transform: scale(1.025);
}

.product-card:hover .product-card-body {
  transform: translateY(-1px);
}

/* Step Card Progression */
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(46, 133, 85, 0.25);
}

.step-card .step-number {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
}

.step-card:hover .step-number {
  transform: scale(1.06);
  background-color: var(--color-primary-600);
}

/* Lifecycle Chip Progression */
.lifecycle-chip {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease,
              box-shadow 0.22s ease;
}

.lifecycle-chip:hover {
  transform: translateY(-2px);
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   BUTTON & CTA MICRO-INTERACTIONS
   ========================================================================== */

.btn {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn svg {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover svg {
  transform: scale(1.06);
}

.btn-whatsapp:hover svg {
  transform: scale(1.08) rotate(-4deg);
}

/* ==========================================================================
   COMPACT & REFINED FLOATING WHATSAPP (CALM, NO INFINITE PULSE)
   ========================================================================== */

.floating-whatsapp {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-sticky);
  background-color: var(--color-whatsapp);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-small);
  box-shadow: 0 4px 16px rgba(21, 128, 61, 0.28);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(21, 128, 61, 0.40);
  background-color: var(--color-whatsapp-hover);
  color: #ffffff;
}

.floating-whatsapp:active {
  transform: translateY(0) scale(0.98);
}

.floating-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-whatsapp:hover svg {
  transform: scale(1.08) rotate(-4deg);
}

/* ==========================================================================
   SCROLL REVEAL UTILITY (INTERSECTION OBSERVER DRIVEN)
   ========================================================================== */

.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* ==========================================================================
   COMMUNITY BANNER COMPONENT
   ========================================================================== */

.community-banner-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin-top: var(--space-8);
  border: 1px solid var(--color-border-subtle);
}

.community-banner-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.community-banner-wrap:hover .community-banner-img {
  transform: scale(1.015);
}

.community-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(13, 43, 26, 0.95) 0%, rgba(13, 43, 26, 0.65) 60%, transparent 100%);
  color: #ffffff;
  padding: var(--space-6) var(--space-4);
}

@media (min-width: 768px) {
  .community-banner-overlay {
    padding: var(--space-8) var(--space-6);
  }
}

.community-banner-overlay h3 {
  color: #ffffff;
  margin-bottom: var(--space-2);
}

.community-banner-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-body);
  max-width: 640px;
}

/* ==========================================================================
   MOBILE & ACCESSIBILITY (SECTIONS 21 & 22)
   ========================================================================== */

@media (max-width: 768px) {
  .hero-visual-card:hover .coach-frame-inner,
  .card:hover, .decision-card:hover, .product-card:hover, .story-card:hover, .step-card:hover {
    transform: none;
  }
  .ambient-glow-emerald,
  .ambient-glow-gold {
    display: none;
  }
  .floating-whatsapp {
    bottom: var(--space-4);
    right: var(--space-4);
    padding: 0.65rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-delay: 0s !important;
    transition-duration: 0s !important;
  }
  .ambient-glow-emerald,
  .ambient-glow-gold,
  .coach-live-pill,
  .live-dot {
    animation: none !important;
  }
  .hero-visual-card,
  .hero-headline,
  .hero-subhead,
  .hero-cta-group,
  .hero-trust-bar,
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }
}
