@charset "utf-8";
/* CSS Document */

/* ======================================================
   First Page CSS - Feature Boxes for Services Section
====================================================== */

/* ==== Section spacing ==== */
.services-section {
  margin-bottom: 80px; /* white space between sections */
}

/* ==== Feature Boxes ==== */
.feature-box-link {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 30px; /* space between boxes */
}

.feature-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 400px; /* desktop default height */
  box-shadow: 0 6px 18px rgba(0,0,0,0.08); /* subtle lift */
}

/* ==== Background images via <img> ==== */
.feature-box-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.3s ease;
}

/* ==== Overlay for text readability ==== */
.feature-box-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0) 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border-radius: 12px; /* match box corners */
}

/* ==== Overlay Text ==== */
.feature-box-overlay h3 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.feature-box-overlay p {
  color: #f0e6d2; /* soft antique cream */
  font-size: 1rem;
  line-height: 1.4;
}

/* ==== Hover Effects ==== */
.feature-box:hover .feature-box-img {
  transform: scale(1.05);
}

.feature-box:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 14px 28px rgba(0,0,0,0.15);
}

/* ==== Responsive ==== */

/* Tablet */
@media (max-width: 1024px) {
  .feature-box {
    height: 320px;
  }
  .feature-box-overlay h3 {
    font-size: 2.5rem;
  }
  .feature-box-overlay p {
    font-size: 1.2rem;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .feature-box {
    height: 250px;
    border-radius: 8px;
  }
  .feature-box-overlay h3 {
    font-size: 2.5rem;
  }
  .feature-box-overlay p {
    font-size: 1.2rem;
  }
}

/* ==== Optional: Smooth image loading ==== */
.feature-box-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.3s ease;
}
