/* ========================================
   Canada.28 - SaaS Landing Page
   Shared Stylesheet
   ======================================== */

/* --- Smooth Scroll --- */
html {
  scroll-behavior: smooth;
}

/* --- Base --- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

/* --- Navbar Scroll Effect --- */
.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
}

/* --- Mobile Menu --- */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
  max-height: 500px;
}

/* --- Hero Gradient Overlay --- */
.hero-gradient {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.92) 0%, rgba(99, 102, 241, 0.88) 50%, rgba(129, 140, 248, 0.85) 100%);
}

/* --- Feature Card Hover --- */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.12);
}

/* --- Stat Counter --- */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* --- Testimonial Card --- */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid #e5e7eb;
}
.faq-question {
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq-question:hover {
  color: #4f46e5;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer.open {
  max-height: 300px;
  padding-bottom: 1.25rem;
}
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-icon.rotate {
  transform: rotate(180deg);
}

/* --- CTA Section --- */
.cta-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #4338ca;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45);
}

/* --- Form Validation Styles --- */
.input-error {
  border-color: #ef4444 !important;
}
.input-success {
  border-color: #10b981 !important;
}
.error-message {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}
.error-message.show {
  display: block;
}

/* --- Pulse Animation for CTA --- */
@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(79, 70, 229, 0); }
}
.pulse-animation {
  animation: pulse-border 2s infinite;
}

/* --- Fade In Up Animation --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* --- Reveal on Scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Team Card --- */
.team-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}
.team-card img {
  transition: transform 0.4s ease;
}
.team-card:hover img {
  transform: scale(1.05);
}

/* --- Contact Info Icons --- */
.contact-icon-wrapper {
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.contact-icon-wrapper:hover {
  transform: scale(1.1);
  background-color: #4f46e5;
  color: #fff;
}

/* --- Loading Spinner --- */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* --- Print Styles --- */
@media print {
  .back-to-top,
  .mobile-menu-toggle {
    display: none !important;
  }
}
