/* Complete redesign to match reference style with serif fonts, clean cards, and minimal aesthetic */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

/* Serif font for headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", Georgia, serif;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
}

/* Service card expand functionality */
.service-card .service-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, opacity 0.4s ease-out, margin-top 0.4s ease-out;
  opacity: 0;
}

.service-card.expanded .service-details {
  max-height: 500px;
  opacity: 1;
  margin-top: 1rem;
}

.service-card .expand-btn::after {
  content: " →";
  transition: transform 0.3s ease;
  display: inline-block;
}

.service-card.expanded .expand-btn::after {
  transform: rotate(90deg);
}

/* Smooth animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Form input focus states */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Button and link transitions */
button,
a {
  transition: all 0.3s ease;
}

/* Image optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Error message styling */
.error-message {
  animation: fadeIn 0.3s ease-out;
}

/* Cookie popup animation */
#cookiePopup {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Mobile menu animation */
#mobileMenu {
  transition: all 0.3s ease-in-out;
}

/* Responsive typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

/* Print styles */
@media print {
  header,
  footer,
  #cookiePopup {
    display: none;
  }
}

/* Additional hover effects for images */
.card-hover img {
  transition: transform 0.3s ease;
}

.card-hover:hover img {
  transform: scale(1.05);
}

/* Smooth shadow transitions */
.shadow-md {
  transition: box-shadow 0.3s ease;
}
