/* Component specific styles */

/* Card components */
.card {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-hover:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  padding: 1rem;
}

.card-title {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: #111827;
  transition: color 0.3s ease;
}

.card-hover:hover .card-title {
  color: #c1121f;
}

.card-subtitle {
  color: #6b7280;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Button components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background-color: #c1121f;
  color: white;
}

.btn-primary:hover {
  background-color: #a00f1a;
}

.btn-secondary {
  background-color: #f3f4f6;
  color: #111827;
}

.btn-secondary:hover {
  background-color: #e5e7eb;
}

.btn-outline {
  border: 1px solid #d1d5db;
  color: #374151;
  background-color: transparent;
}

.btn-outline:hover {
  background-color: #f9fafb;
}

/* Form components */
.form-group {
  display: grid;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.form-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
  border-color: #c1121f;
  box-shadow: 0 0 0 2px rgba(193, 18, 31, 0.2);
}

.form-textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
  resize: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-textarea:focus {
  border-color: #c1121f;
  box-shadow: 0 0 0 2px rgba(193, 18, 31, 0.2);
}

.form-select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-select:focus {
  border-color: #c1121f;
  box-shadow: 0 0 0 2px rgba(193, 18, 31, 0.2);
}

/* Alert components */
.alert {
  padding: 1rem;
  border: 1px solid;
  border-radius: 0.375rem;
}

.alert-success {
  background-color: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.alert-error {
  background-color: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.alert-warning {
  background-color: #fffbeb;
  color: #92400e;
  border-color: #fed7aa;
}

.alert-info {
  background-color: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

/* Badge components */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-primary {
  background-color: #c1121f;
  color: white;
}

.badge-secondary {
  background-color: #f3f4f6;
  color: #374151;
}

.badge-success {
  background-color: #dcfce7;
  color: #166534;
}

.badge-warning {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-error {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Navigation components */
.nav-link {
  position: relative;
  padding-bottom: 0.25rem;
  transition: color 0.15s ease-in-out;
  color: #374151;
  text-decoration: none;
}

.nav-link:hover {
  color: #c1121f;
}

.nav-link-active {
  color: #c1121f;
}

.nav-link-indicator {
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  background-color: #c1121f;
  transition: width 0.3s ease;
}

.nav-link-indicator-active {
  width: 100%;
}

.nav-link-indicator-hover {
  width: 0;
}

.nav-link:hover .nav-link-indicator-hover {
  width: 100%;
}

/* Mobile menu components */
.mobile-menu-item {
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.mobile-menu-item:active {
  transform: scale(0.95);
}

.mobile-menu-icon {
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background-color: rgba(193, 18, 31, 0.1);
  color: #c1121f;
}

.mobile-menu-text {
  font-weight: 500;
}

/* Hero carousel components */
.hero-slide {
  min-width: 0;
  flex: 0 0 100%;
  position: relative;
  min-height: 60vh;
}

@media (min-width: 640px) {
  .hero-slide {
    min-height: 70vh;
  }
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.hero-text {
  color: white;
  max-width: 48rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-subtitle {
  margin-top: 0.75rem;
  font-size: 1rem;
  opacity: 0.95;
}

@media (min-width: 640px) {
  .hero-subtitle {
    margin-top: 1rem;
    font-size: 1.125rem;
  }
}

.hero-cta {
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .hero-cta {
    margin-top: 2rem;
  }
}

/* Carousel indicators */
.carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.carousel-indicator {
  height: 0.875rem;
  width: 0.875rem;
  border-radius: 9999px;
  transition: background-color 0.15s ease;
  border: none;
  cursor: pointer;
}

.carousel-indicator-active {
  background-color: white;
}

.carousel-indicator-inactive {
  background-color: rgba(255, 255, 255, 0.5);
}

/* Grid layouts */
.grid-responsive {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid-responsive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .grid-responsive {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.grid-responsive-2 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .grid-responsive-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* Spacing utilities */
.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 640px) {
  .section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.container-padding {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-padding {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-padding {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Text utilities */
.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* Focus styles */
.focus-ring {
  outline: none;
}

.focus-ring:focus {
  box-shadow: 0 0 0 2px #c1121f;
}

/* Animation utilities */
.animate-in {
  animation: fadeIn 0.5s ease-in-out;
}

.animate-slide-up {
  animation: slideInUp 0.6s ease-out;
}

/* Responsive utilities */
@media (max-width: 640px) {
  .mobile-hidden {
    display: none;
  }
}

@media (min-width: 641px) {
  .mobile-only {
    display: none;
  }
}
}