/* ============================================================
   MSME GLOBAL — assets/css/homepage.css
   Homepage-specific styles only. Sections: hero, stats,
   featured, influencers, categories, testimonials, cta.
   ============================================================ */

/* ===================== HERO SECTION ===================== */
.hero {
  position: relative;
  background: var(--navy-dark);
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(201,150,42,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 30%, rgba(27,140,122,0.08) 0%, transparent 50%);
  pointer-events: none;
}
/* Decorative dot grid */
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-24) 0 var(--space-16);
}
.hero-inner {
  max-width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-5);
  animation: fadeInDown 0.6s ease both;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-light);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--space-5);
  animation: fadeInDown 0.6s ease 0.1s both;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
  display: block;
}
.hero-sub {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 560px;
  animation: fadeInDown 0.6s ease 0.2s both;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fadeInDown 0.6s ease 0.3s both;
}
.hero-trust-bar {
  margin-top: var(--space-10);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  animation: fadeInDown 0.6s ease 0.4s both;
}
.hero-trust-faces {
  display: flex;
}
.hero-trust-faces img {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  margin-left: -8px;
  object-fit: cover;
}
.hero-trust-faces img:first-child { margin-left: 0; }
.hero-trust-text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
}
.hero-trust-text strong { color: var(--gold-light); font-weight: 600; }

/* Hero slider controls */
.hero-slider-dots {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: var(--space-2);
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.hero-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--gold-light);
}

/* ===================== SEARCH SECTION ===================== */
.search-section {
  background: var(--white);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: var(--z-sticky);
}
.search-section-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.search-section-label {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}

/* ===================== STATS BAR ===================== */
.stats-section {
  background: var(--navy);
  padding: var(--space-10) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item + .stat-item {
  border-left: 1px solid rgba(255,255,255,0.1);
}

/* ===================== FEATURED MEMBERS ===================== */
.featured-section { background: var(--cream); }
.members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

/* ===================== MID AD STRIP ===================== */
.mid-ads-section {
  background: var(--gray-50);
  padding: var(--space-8) 0;
}
.mid-ads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

/* ===================== INFLUENCERS ===================== */
.influencers-section {
  background: var(--cream);
  position: relative;
}
.influencers-section::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--coral));
}
.influencers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

/* ===================== PILLARS & MENTORS ===================== */
.pillars-section {
  background: linear-gradient(160deg, var(--navy-dark) 0%, #1B2B4B 100%);
  position: relative;
  overflow: hidden;
}
.pillars-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(201,150,42,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.pillars-section .section-eyebrow { color: var(--gold-light); }
.pillars-section .section-title   { color: var(--white); }
.pillars-section .section-subtitle{ color: rgba(255,255,255,0.6); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

/* ===================== CATEGORIES ===================== */
.categories-section { background: var(--white); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
}

/* ===================== LATEST MEMBERS (horizontal scroll) ===================== */
.latest-section { background: var(--gray-50); }
.latest-scroll-wrap {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-2);
}
.latest-scroll-wrap::-webkit-scrollbar { display: none; }
.latest-scroll-track {
  display: flex;
  gap: var(--space-4);
  width: max-content;
  padding: var(--space-2) var(--space-1);
}
.latest-scroll-track .member-card {
  width: 220px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* ===================== TESTIMONIALS ===================== */
.testimonials-section { background: var(--cream); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

/* ===================== CTA SECTION ===================== */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #1A5F4A 100%);
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '"';
  position: absolute;
  font-family: var(--font-display);
  font-size: 300px;
  color: rgba(255,255,255,0.03);
  top: -60px;
  left: var(--space-8);
  line-height: 1;
  pointer-events: none;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-5xl));
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-4);
  line-height: 1.15;
}
.cta-title em {
  font-style: italic;
  color: var(--gold-light);
}
.cta-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}

/* ===================== SECTION TRANSITION BAND ===================== */
.wave-divider {
  height: 60px;
  overflow: hidden;
  line-height: 0;
}
.wave-divider svg { display: block; width: 100%; height: 60px; }
