/* ===== Hero Section Popup Styles ===== */
/* This file handles popup styling ONLY for the hero section */

/* Popup Overlay - Scoped to hero section */
.hero__popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.hero__popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Popup Container */
.hero__popup {
  background: #fff;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero__popup-overlay.active .hero__popup {
  transform: scale(1);
}

/* Popup Header */
.hero__popup-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero__popup-title {
  font-family: "ivypresto-display", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1E312F;
  margin: 0;
}

/* Close Button */
.hero__popup-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  color: #6b7280;
  line-height: 1;
}

.hero__popup-close:hover {
  background-color: #f3f4f6;
  color: #374151;
}

/* Popup Content */
.hero__popup-content {
  padding: 1.5rem;
}

.hero__popup-content p {
  margin: 0 0 1rem 0;
  line-height: 1.6;
  color: #374151;
}

/* Popup Footer */
.hero__popup-footer {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Popup Buttons */
.hero__popup-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero__popup-btn--primary {
  background-color: #1E312F;
  color: white;
}

.hero__popup-btn--primary:hover {
  background-color: #0f1f1d;
}

.hero__popup-btn--secondary {
  background-color: #f3f4f6;
  color: #374151;
}

.hero__popup-btn--secondary:hover {
  background-color: #e5e7eb;
}

/* Responsive Design */
@media (max-width: 640px) {
  .hero__popup {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
  
  .hero__popup-header {
    padding: 1rem 1rem 0.75rem;
  }
  
  .hero__popup-content {
    padding: 1rem;
  }
  
  .hero__popup-footer {
    padding: 0.75rem 1rem 1rem;
    flex-direction: column;
  }
  
  .hero__popup-btn {
    width: 100%;
  }
}

/* Animation for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero__popup-overlay,
  .hero__popup {
    transition: none;
  }
  
  .hero__popup-overlay.active .hero__popup {
    transform: none;
  }
}
