/* ==========================================================================
   TRIPPLE A CO. DESIGNS - SERVICES PAGE STYLESHEET
   ========================================================================== */

/* Outer Page Wrapper with Full Ribbon Background Image */
.services-page-wrapper {
  position: relative;
  min-height: 100vh;
  /* Top metallic grey overlay mixed with the full ribbon background image */
  background: 
    linear-gradient(135deg, rgba(120, 133, 144, 0.75) 0%, rgba(88, 100, 110, 0.65) 50%, rgba(70, 80, 88, 0.75) 100%),
    url('../media/images/IMG_4383.JPG.jpeg') no-repeat center center;
  background-size: cover;
  background-attachment: scroll;
  color: #000000;
  font-family: 'Montserrat', sans-serif;
  overflow: hidden;
  padding-top: 7.5rem;
  padding-bottom: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Fallback background check for .JPG extension */
@supports not (background-image: url('../media/images/IMG_4383.JPG.jpeg')) {
  .services-page-wrapper {
    background-image: 
      linear-gradient(135deg, rgba(120, 133, 144, 0.75) 0%, rgba(88, 100, 110, 0.65) 50%, rgba(70, 80, 88, 0.75) 100%),
      url('../media/images/IMG_4383.JPG');
  }
}

.services-container {
  position: relative;
  z-index: 10;
  max-width: 1220px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header Title Section */
.services-header-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.services-header-title h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  color: #000000;
  letter-spacing: -1.5px;
}

.services-header-title .orange-italic {
  color: #ff5500;
  font-style: italic;
  font-weight: 700;
  font-family: Georgia, 'Times New Roman', serif;
}

/* 4 Feature Cards Grid Layout */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
  margin-bottom: 3.5rem;
}

/* Individual Dark Metallic Grey Box Card */
.grey-box-card {
  background: rgba(80, 92, 104, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  padding: 1rem 1rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.grey-box-card:hover {
  transform: translateY(-6px);
  background: rgba(90, 104, 118, 0.85);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* White Inner Frame for 3D Icon */
.card-icon-frame {
  width: 100%;
  aspect-ratio: 1 / 0.92;
  background: #f0f2f4;
  border-radius: 20px;
  padding: 0.8rem;
  overflow: hidden;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* White Upper Title */
.card-title-white {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

/* Dark/Black Description Text */
.card-desc-dark {
  font-size: 0.82rem;
  font-weight: 700;
  color: #121518;
  line-height: 1.35;
}

/* Bottom Stats Capsule Banner */
.stats-banner-capsule {
  width: 100%;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 30px;
  padding: 2.2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 900;
  color: #000000;
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1e21;
}

.stat-divider {
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.25);
  user-select: none;
}

/* Responsive Breakdown */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-banner-capsule {
    flex-direction: column;
    gap: 1.8rem;
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .stat-divider {
    display: none;
  }
}