/* Enhanced CTA Styles for Zero Waste Gujarat */

:root {
  --primary-color: #215f44;
  --primary-light: #2e7d5a;
  --secondary-color: #fff6ea;
  --white: #FFFFFF;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --text-dark: #333333;
  --text-light: #666666;
  --transition: all 0.3s ease;
  --shadow: 0 10px 30px rgba(33, 95, 68, 0.1);
  --border-radius: 12px;
}

/* Main CTA Section Styles */
.cta-section {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(33, 95, 68, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(33, 95, 68, 0.02) 0%, transparent 50%);
  z-index: 1;
}

.cta-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.cta-card {
  background: var(--white);
  padding: 4rem 3rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-description {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--white);
  border: none;
  padding: 1.25rem 2.5rem;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(33, 95, 68, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-primary-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary-cta:hover::before {
  left: 100%;
}

.btn-primary-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(33, 95, 68, 0.3);
}

.btn-primary-cta:active {
  transform: translateY(-1px);
}

.btn-text {
  font-weight: 600;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-primary-cta:hover .btn-icon {
  transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .cta-section {
    padding: 4rem 0;
  }
  
  .cta-container {
    padding: 0 1rem;
  }
  
  .cta-card {
    padding: 3rem 2rem;
  }
  
  .btn-primary-cta {
    padding: 1rem 2rem;
    font-size: 1rem;
    gap: 0.75rem;
  }
  
  .cta-title {
    font-size: 1.75rem;
  }
  
  .cta-description {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .cta-card {
    padding: 2rem 1.5rem;
  }
  
  .btn-primary-cta {
    width: 100%;
    justify-content: center;
  }
}

/* Sticky Header CTA */
.sticky-header-cta {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(33, 95, 68, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.75rem 0;
  text-align: center;
  z-index: 999;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.sticky-header-cta.show {
  transform: translateY(0);
}

.sticky-header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.sticky-header-text {
  font-size: 0.9rem;
  font-weight: 600;
}

.sticky-header-button {
  background: white;
  color: var(--primary-color);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sticky-header-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Urgency Banner */
.urgency-banner {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  color: white;
  padding: 1rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #ff5722;
}

.urgency-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.urgency-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.urgency-icon {
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.urgency-text {
  font-weight: 700;
  font-size: 0.95rem;
}

.urgency-button {
  background: white;
  color: #ff5722;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.urgency-button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Section-end CTAs */
.section-end-cta {
  background: rgba(33, 95, 68, 0.03);
  padding: 3rem 2rem;
  border-radius: 24px;
  text-align: center;
  margin: 3rem 0;
  border: 1px solid rgba(33, 95, 68, 0.08);
  position: relative;
  overflow: hidden;
}

.section-end-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at top, rgba(33, 95, 68, 0.02) 0%, transparent 60%),
    radial-gradient(ellipse at bottom, rgba(255, 246, 234, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.section-end-cta > * {
  position: relative;
  z-index: 1;
}

.section-end-cta h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-end-cta p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-end-cta-button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.section-end-cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.4s;
}

.section-end-cta-button:hover::before {
  left: 100%;
}

.section-end-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(33, 95, 68, 0.3);
}

/* Inline CTAs */
.inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(33, 95, 68, 0.08);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(33, 95, 68, 0.15);
}

.inline-cta:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(33, 95, 68, 0.25);
}

.inline-cta-icon {
  width: 16px;
  height: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .sticky-header-content {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
  }
  
  .urgency-content {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .section-end-cta {
    padding: 2rem 1.5rem;
    margin: 2rem 0;
  }
  
  .section-end-cta h3 {
    font-size: 1.5rem;
  }
  
  .section-end-cta-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Animation Classes */
.cta-animate-in {
  animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.cta-pulse {
  animation: ctaPulse 2s infinite;
}

@keyframes ctaPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
