/* ================================================================
   Ereventis - Custom Styles
   SEO-Optimised Legal Services Website
   ================================================================ */

/* Typography */
:root {
  --primary-950: #0f1040;
  --primary-900: #1a1c5e;
  --primary-700: #3e46d1;
  --primary-600: #4f59e7;
  --accent-400: #f59e0b;
}

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

/* Base body */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll effect */
#navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* Active nav link */
.nav-link.active {
  color: #3e46d1;
  background-color: #f0f4ff;
}

/* Prose styles for blog content */
.prose h1, .prose h2, .prose h3 {
  font-family: 'Playfair Display', serif;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose p {
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.prose ul, .prose ol {
  color: #4b5563;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.75;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose strong {
  color: #111827;
  font-weight: 600;
}

.prose a {
  color: #3e46d1;
  text-decoration: underline;
}

.prose a:hover {
  color: #1a1c5e;
}

/* FAQ Toggle */
.faq-item.open .faq-content {
  display: block;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* Card hover effects */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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

/* Progress bar for page loading */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, #4f59e7, #f59e0b);
  z-index: 9999;
  transition: width 0.3s ease;
  width: 0%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f9fafb;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Cookie banner */
#cookie-banner {
  animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(79, 89, 231, 0.1);
}

/* Service tag hover */
.service-tag {
  transition: all 0.2s ease;
}

/* Hero gradient animation */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Pulse animation for live badge */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Back to top button */
#back-to-top {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Print styles */
@media print {
  nav, footer, #cookie-banner, #back-to-top {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    color: #000;
  }
}

/* Accessibility: Focus visible */
:focus-visible {
  outline: 2px solid #4f59e7;
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background-color: #e0eaff;
  color: #1a1c5e;
}

/* Responsive typography */
@media (max-width: 640px) {
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.5rem !important; }
}
