/* service-cards.css - Service card and service section styles */

.services-section {
  background-color: var(--cream);
  padding: 0 20px 50px 20px;
}

.services-info {
  display: flex;
  gap: 30px;
  max-width: 800px;
  margin: 40px auto 0;
  flex-wrap: wrap;
  justify-content: center;
}

.deposit-notice {
  background: rgba(250, 249, 246, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px 30px;
  border-radius: 2px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.02);
  border: 1px solid rgba(203, 185, 164, 0.15);
  text-align: center;
  max-width: 800px;
  margin: 40px auto 0;
}

.deposit-notice p {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  font-weight: 400;
  margin: 0;
}

.info-box {
  background: rgba(250, 249, 246, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 25px 35px;
  border-radius: 2px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.02);
  border: 1px solid rgba(203, 185, 164, 0.15);
  text-align: center;
  flex: 1;
  min-width: 250px;
}

.info-box h3 {
  font-family: 'Fraunces', serif;
  color: var(--brown);
  font-size: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.info-box p {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  font-weight: 300;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(107, 74, 58, 0.1);
}

.card-image {
  height: 260px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

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

.service-content {
  padding: 30px 25px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-content h3 {
  font-family: 'Fraunces', serif;
  color: var(--brown);
  font-size: 24px;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
}

.service-content h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--brown);
  margin: 10px auto 0;
  opacity: 0.5;
}

.service-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #ffffff;
  font-weight: 300;
  max-width: 90%;
  margin: 0 auto 15px;
}

.service-btn {
  font-family: 'Montserrat', sans-serif;
  background: var(--brown);
  color: var(--white);
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
}

.service-btn:hover {
  background: var(--dark);
  transform: translateY(-2px);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(107, 74, 58, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 10;
  text-align: center;
}

.service-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.overlay-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: var(--white);
  cursor: pointer;
  transition: transform 0.2s ease;
  line-height: 1;
  padding: 5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.overlay-close:hover {
  transform: rotate(90deg);
}

.overlay-content {
  color: var(--white);
  text-align: center;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 4px;
}

.service-overlay .overlay-content h4 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.service-overlay .overlay-content p {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 300;
  margin-bottom: 12px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.service-overlay .overlay-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-top: 6px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* CTA SERVICE CARD */
.service-card-cta {
  background: var(--white);
}

.service-card-cta .card-image {
  position: relative;
}

.service-card-cta .card-image img {
  object-position: center;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
}

.cta-box {
  background: rgba(163, 126, 102, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 15px 30px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-text {
  font-family: 'Fraunces', serif;
  color: #ffffff;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  display: block;
}

@media (max-width: 768px) {
  .services-container {
    padding: 0 10px;
  }

  .services-info {
    flex-direction: column;
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .cta-text {
    font-size: 18px;
  }
  .cta-box {
    padding: 12px 24px;
  }
}