/* Updated to match screenshot's sophisticated aesthetic */

* {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Serif font for headings matching screenshot style */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", Georgia, serif;
}

/* Refined transitions */
a,
button,
.service-card,
.case-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced form input styling to match minimalist design */
input:focus,
textarea:focus {
  box-shadow: none;
  outline: none;
}

/* Custom scrollbar with stone theme */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f5f4;
}

::-webkit-scrollbar-thumb {
  background: #78716c;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #57534e;
}

/* Service card flip effect */
.service-card {
  perspective: 1000px;
  min-height: 400px;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.service-card.flipped .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.service-card-back {
  transform: rotateY(180deg);
}

/* Enhanced shadow system matching screenshot */
.shadow-lg {
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

/* Cookie popup refined animation */
#cookiePopup {
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Case card hover transition */
.case-card {
  transition: transform 0.4s ease-out;
}

/* Stat items animation */
.stat-item {
  will-change: opacity, transform;
}

/* Geometric decorative elements */
.bg-rose-100,
.bg-rose-200 {
  filter: blur(80px);
}

/* Image overlay gradient refinement */
.bg-gradient-to-t {
  background: linear-gradient(to top, rgba(28, 25, 23, 0.9), rgba(28, 25, 23, 0.3), transparent);
}

/* Enhanced typography spacing */
p {
  line-height: 1.75;
  letter-spacing: 0.01em;
}

/* Uppercase text refinement */
.tracking-widest {
  letter-spacing: 0.15em;
}

/* Button hover effects matching minimalist aesthetic */
button:hover,
a:hover {
  transform: translateY(-1px);
}

/* Border refinements */
.border,
.border-2 {
  border-color: #e7e5e4;
}

/* Focus states for accessibility */
input:focus,
textarea:focus,
button:focus {
  outline: 2px solid #1c1917;
  outline-offset: 2px;
}

/* Smooth page load animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeIn 0.6s ease-out;
}

/* Image hover effects */
img {
  max-width: 100%;
  height: auto;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive typography adjustments */
@media (max-width: 768px) {
  .font-serif {
    font-size: 0.85em;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }
}

/* Print styles */
@media print {
  header,
  footer,
  #cookiePopup {
    display: none;
  }
}
