/* Updated to match reference design with serif fonts, clean spacing, and minimal style */

/* Font families */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif {
  font-family: "Merriweather", Georgia, serif;
}

/* Cookie Popup Styles */
.cookie-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 400px;
  z-index: 9999;
}

.cookie-popup.hidden {
  display: none;
}

.cookie-content {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e7eb;
}

/* Smooth transitions */
* {
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

/* Focus states */
input:focus,
textarea:focus {
  outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f9fafb;
}

::-webkit-scrollbar-thumb {
  background: #1e3a8a;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1e40af;
}

/* Mobile menu animation */
#mobileMenu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form error states */
.border-red-500 {
  border-color: #ef4444 !important;
}

.text-red-500 {
  color: #ef4444 !important;
}

/* Feature card flip animation */
.feature-card {
  perspective: 1000px;
  min-height: 400px;
}

.feature-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.feature-card.flipped .feature-card-inner {
  transform: rotateY(180deg);
}

.feature-card-front,
.feature-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.feature-card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Expandable card animations */
.expandable-card {
  transition: all 0.3s ease;
}

.expandable-card:hover {
  transform: translateY(-2px);
}

.card-expanded {
  animation: expandDown 0.3s ease-out;
}

@keyframes expandDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

.expand-icon {
  transition: transform 0.3s ease;
}

/* Prose styles for long-form content */
.prose {
  max-width: 65ch;
}

.prose p {
  margin-bottom: 1.25em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cookie-popup {
    left: 16px;
    right: 16px;
    max-width: none;
    bottom: 16px;
  }

  .feature-card {
    min-height: auto;
  }

  .feature-card-front,
  .feature-card-back {
    position: relative;
  }

  .feature-card.flipped .feature-card-front {
    display: none;
  }

  .feature-card:not(.flipped) .feature-card-back {
    display: none;
  }
}

/* Subtle hover effects for cards and links */
a {
  transition: color 0.2s ease;
}

/* Border accent animations */
.border-l-4 {
  transition: border-color 0.3s ease;
}

/* Image loading optimization */
img {
  max-width: 100%;
  height: auto;
}
