/* ============================================
   FamU Foundation - UI/UX Enhancements
   Created: November 16, 2024
   Purpose: Improve visual hierarchy, CTAs, and user experience
   ============================================ */

/* ============================================
   1. ENHANCED CTA BUTTONS - VISUAL HIERARCHY
   ============================================ */

/* Primary CTA - "Support a Mom" / Donate (Most Prominent) */
.btn-primary-fill,
.donate-btn,
a[href*="donation.html"],
a[href*="get-involved.html"].btn-primary-fill {
  background: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary-fill:hover,
.donate-btn:hover {
  background: linear-gradient(135deg, #E64A19 0%, #D84315 100%);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.6);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-primary-fill:active,
.donate-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 87, 34, 0.4);
}

/* Secondary CTA - "Apply for Help" (Less Prominent) */
.btn-secondary-outline,
a[href*="programs.html"].pill-btn {
  background: transparent;
  color: #FF5722;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid #FF5722;
  transition: all 0.3s ease;
}

.btn-secondary-outline:hover,
a[href*="programs.html"].pill-btn:hover {
  background: #FF5722;
  color: #ffffff;
  border-color: #FF5722;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
  transform: translateY(-2px);
}

/* Hero Section CTA Spacing */
.hero-caption .d-flex.gap-20 {
  gap: 20px;
  margin-top: 30px;
}

/* ============================================
   2. ENHANCED HOVER STATES FOR ALL LINKS
   ============================================ */

/* Navigation Links */
.main-menu nav ul li a {
  position: relative;
  transition: all 0.3s ease;
}

.main-menu nav ul li a:hover {
  color: #FF5722;
}

.main-menu nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FF5722;
  transition: width 0.3s ease;
}

.main-menu nav ul li a:hover::after {
  width: 100%;
}

/* Footer Links */
.footer-link a.single {
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}

.footer-link a.single:hover {
  color: #FF5722;
  padding-left: 5px;
}

/* Card Links */
.helpful-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.helpful-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.imp-link a:hover {
  color: #FF5722;
  text-decoration: underline;
}

/* ============================================
   3. VISUAL DIVIDERS & SECTION ANCHORS
   ============================================ */

/* Section Spacing and Visual Separation */
section {
  position: relative;
  padding: 80px 0;
}

/* Alternating Background Colors for Visual Hierarchy */
.hero-area-three {
  background: linear-gradient(135deg, #FFF8F5 0%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
}

.helpful-area-three {
  background: #FFFFFF;
  border-top: 1px solid #F0F0F0;
  border-bottom: 1px solid #F0F0F0;
}

.about-area {
  background: linear-gradient(135deg, #FFF8F5 0%, #FFFFFF 100%);
  position: relative;
}

.our-event-three {
  background: #FFFFFF;
  border-top: 1px solid #F0F0F0;
}

/* Section Divider Lines */
section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #FF5722, transparent);
  opacity: 0.5;
}

/* Remove divider from hero */
.hero-area-three::before {
  display: none;
}

/* Visual Anchor - Decorative Elements */
.section-tittle {
  position: relative;
  padding-bottom: 20px;
}

.section-tittle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #FF5722;
  border-radius: 2px;
}

.section-tittle.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================
   4. IMPROVED CARD VISUAL HIERARCHY
   ============================================ */

.helpful-card {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.helpful-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #FF5722, #FFA024);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.helpful-card:hover::before {
  opacity: 1;
}

.helpful-card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #FF5722 0%, #FFA024 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.helpful-card:hover .helpful-card-icon {
  transform: scale(1.1) rotate(5deg);
}

.helpful-card-icon i {
  font-size: 32px;
  color: #FFFFFF;
}

/* ============================================
   5. MOBILE RESPONSIVENESS ENHANCEMENTS
   ============================================ */

@media (max-width: 991px) {
  /* Mobile Navigation */
  .mobile_menu {
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  /* Hero Section Mobile */
  .hero-caption {
    text-align: center;
    padding: 40px 20px;
  }
  
  .hero-caption .d-flex.gap-20 {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-caption .btn-primary-fill,
  .hero-caption .pill-btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  /* Section Padding Mobile */
  section {
    padding: 60px 0;
  }
  
  /* Cards Mobile */
  .helpful-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  /* Typography Mobile */
  .hero-caption .title {
    font-size: 32px;
    line-height: 1.3;
  }
  
  .section-tittle .title {
    font-size: 28px;
  }
  
  /* Button Sizing Mobile */
  .btn-primary-fill,
  .btn-secondary-outline {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  /* Section Padding Mobile */
  section {
    padding: 40px 0;
  }
}

/* ============================================
   6. ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Focus States for Keyboard Navigation */
a:focus,
button:focus,
.btn-primary-fill:focus,
.btn-secondary-outline:focus {
  outline: 3px solid #FF5722;
  outline-offset: 3px;
}

/* Skip to Content Link */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #FF5722;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-content:focus {
  top: 0;
}

/* ============================================
   7. LOADING STATES & ANIMATIONS
   ============================================ */

/* Smooth Page Load */
body {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Button Loading State */
.btn-primary-fill.loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.btn-primary-fill.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   8. IMPACT STATS VISUAL ENHANCEMENT
   ============================================ */

.impact-number {
  position: relative;
  padding: 20px;
  margin-bottom: 15px;
}

.impact-number::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #FF5722, #FFA024);
  border-radius: 2px;
}

.impact-number .title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #FF5722 0%, #FFA024 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   9. FOOTER ENHANCEMENTS
   ============================================ */

footer {
  background: #1a1a1a;
  color: #ffffff;
}

.footer-link .title {
  color: #FF5722;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-social-link a:hover {
  background: #FF5722;
  color: #ffffff;
  transform: translateY(-3px);
}

/* ============================================
   10. PRINT STYLES
   ============================================ */

@media print {
  .header-area-three,
  footer,
  .btn-primary-fill,
  .btn-secondary-outline {
    display: none;
  }
  
  body {
    font-size: 12pt;
    color: #000000;
  }
}
