/* src/css/index.css - COMPLETE AND WORKING */

/* ==================== FLUID TYPOGRAPHY ==================== */
:root {
  --fluid-min-width: 320;
  --fluid-max-width: 1280;
  --fluid-min-size: 16;
  --fluid-max-size: 18;
}

html {
  font-size: 16px;
}

@media (min-width: 320px) {
  html {
    font-size: calc(
      16px + (18 - 16) * ((100vw - 320px) / (1280 - 320))
    );
  }
}

@media (min-width: 1280px) {
  html {
    font-size: 18px;
  }
}

/* ==================== MODAL STYLES WITH SCROLL ==================== */
#modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 9999;
}

#modalOverlay.active {
  display: flex;
}

.modal {
  width: 95%;
  max-width: 600px;
  max-height: 80vh;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

/* Modal header colors */
.modal-header.blue {
  background: linear-gradient(to right, #1d4ed8, #1e40af);
}

.modal-header.green {
  background: linear-gradient(to right, #10b981, #059669);
}

.modal-header.yellow {
  background: linear-gradient(to right, #f59e0b, #d97706);
}

/* Modal content - THIS SCROLLS */
.modal .modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  max-height: 60vh;
}

/* Modal footer */
.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

/* Scrollbar styling */
.modal .modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal .modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal .modal-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.modal .modal-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ==================== FOOTER LINKS - ALWAYS HORIZONTAL ==================== */
.footer-links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1rem !important;
  margin-bottom: 1rem !important;
}

/* ==================== WHATSAPP BUTTON (NO BUBBLE) ==================== */
#whatsappBtn {
  transition: all 0.3s ease;
}

#whatsappBtn:hover {
  transform: scale(1.05);
}

/* ==================== MOBILE OPTIMIZATIONS ==================== */
@media (max-width: 640px) {
  .modal {
    width: 98%;
    max-height: 90vh;
    margin: 0.25rem;
  }
  
  .modal .modal-content {
    max-height: 70vh;
    padding: 1rem;
  }
  
  .footer-links {
    gap: 0.5rem !important;
  }
  
  .footer-links button {
    font-size: 0.75rem !important;
    padding: 0.5rem 0.5rem !important;
    min-height: 36px !important;
    min-width: 70px !important;
  }
  
  .footer-links button i {
    font-size: 0.875rem !important;
  }
}

/* Ensure buttons are tappable */
button {
  min-height: 44px;
  min-width: 44px;
}

/* ==================== ABOUT MODAL STYLES ==================== */
.faq-item {
  background: white;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transform: translateY(-1px);
}

/* Contact info styling */
.bg-blue-50 {
  background-color: #eff6ff;
}

/* Modal content spacing */
.modal-content p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.modal-content p:last-child {
  margin-bottom: 0;
}

/* Make sure all modals have consistent spacing */
.modal .modal-content > div:not(.modal-header) {
  padding: 1.5rem;
}

@media (max-width: 640px) {
  .modal .modal-content > div:not(.modal-header) {
    padding: 1rem;
  }
}

/* Get Started button hover effects */
#getStarted:hover {
  transform: translateY(-2px);
}

#getStarted:active {
  transform: translateY(0);
}