@tailwind base;
@tailwind components;
@tailwind utilities;

.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* Animation for buttons */
.btn-hover {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.btn-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
/* Hero section overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

/* Figures gallery */
.figures-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.figure-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.figure-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.figure-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.figure-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.figure-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.figure-desc {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.figure-price {
    font-weight: 600;
    color: #dc2626;
    font-size: 1.1rem;
    margin-top: auto;
}
/* Adjust content for sidebar */
@media (min-width: 768px) {
  .custom-sidebar {
    left: 0;
  }
  .custom-sidebar .toggle-button {
    display: none;
  }
  main {
    margin-left: 250px;
  }
  .custom-sidebar .sidebar-container {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d40000 rgba(0, 0, 0, 0.1);
  }
  .custom-sidebar .sidebar-container::-webkit-scrollbar {
    width: 6px;
  }
  .custom-sidebar .sidebar-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
  }
  .custom-sidebar .sidebar-container::-webkit-scrollbar-thumb {
    background: #d40000;
    border-radius: 3px;
  }
  .custom-sidebar .sidebar-container::-webkit-scrollbar-thumb:hover {
    background: #b30000;
  }
}
/* Floating button visibility */
floating-button {
  display: block !important;
}
/* Sidebar animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.nav-link {
  animation: fadeIn 0.3s ease-out forwards;
  opacity: 0;
}

.nav-link:nth-child(1) { animation-delay: 0.1s; }
.nav-link:nth-child(2) { animation-delay: 0.2s; }
.nav-link:nth-child(3) { animation-delay: 0.3s; }
.nav-link:nth-child(4) { animation-delay: 0.4s; }
/* Testimonial card hover effect */
.testimonial-card {
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
@media (max-width: 767px) {
    .hero-section img {
        object-position: 70% center;
    }
}
/* Form input focus */
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}