/* =========================================================
   PAGE-INDEX-SERVICES.CSS
   Xpress Vending – Services Section (Luxury Enhanced)
   ========================================================= */


/* =========================================================
   SERVICES SECTION BASE
   ========================================================= */

   #services {
    position: relative;
    padding: 110px 0;
    background: linear-gradient(
      180deg,
      var(--color-gray-100) 0%,
      #f7f9fb 100%
    );
    text-align: center;
    overflow: hidden;
    font-size: 1.5rem;
  }
  
  /* Subtle ambient background glow */
  #services::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(
      circle,
      rgba(0,174,239,0.08) 0%,
      transparent 70%
    );
    pointer-events: none;
  }
  
  #services::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -200px;
    width: 450px;
    height: 450px;
    background: radial-gradient(
      circle,
      rgba(28,163,199,0.07) 0%,
      transparent 75%
    );
    pointer-events: none;
  }
  
  
  /* =========================================================
     SERVICES HEADER
     ========================================================= */
  
  .services-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
  }
  
  /* Premium underline accent */
  .services-title::after {
    content: '';
    display: block;
    width: 90px;
    height: 4px;
    margin: 18px auto 0;
    background: linear-gradient(
      90deg,
      var(--color-primary-cyan),
      var(--color-primary-teal)
    );
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0,174,239,0.3);
  }
  
  /* Geographic eyebrow */
  .services-eyebrow {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary-teal);
    margin-bottom: 0.75rem;
  }
  
  .services-subtitle {
    max-width: 780px;
    margin: 1.75rem auto 3.5rem;
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--color-gray-900);
  }
  
  
  /* =========================================================
     GRID LAYOUT
     ========================================================= */
  
  .grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 2.5rem;
  }
  
  
  /* =========================================================
     CARD BASE (More Depth + Refinement)
     ========================================================= */
  
  .card {
    position: relative;
    padding: 3rem 2rem 2.25rem;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow:
      0 8px 20px rgba(0,0,0,0.06),
      0 20px 45px rgba(0,0,0,0.05);
    overflow: hidden;
    transition:
      transform 0.45s cubic-bezier(.22,.61,.36,1),
      box-shadow 0.45s ease;
  }
  
  /* Soft top accent glow (not a border) */
  .card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    width: 70%;
    height: 5px;
    background: linear-gradient(
      90deg,
      var(--color-primary-cyan),
      var(--color-primary-teal)
    );
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(0,174,239,0.4);
  }
  
  /* Bottom ambient depth panel */
  .card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background: linear-gradient(
      180deg,
      rgba(0,174,239,0.03) 0%,
      rgba(28,163,199,0.08) 100%
    );
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 0;
    transition: opacity 0.4s ease;
  }
  
  .card:hover {
    transform: translateY(-10px);
    box-shadow:
      0 20px 40px rgba(0,0,0,0.1),
      0 30px 70px rgba(0,0,0,0.08);
  }
  
  .card:hover::before {
    opacity: 0.85;
  }
  
  
  /* =========================================================
     CARD CONTENT LAYERING
     ========================================================= */
  
  .card h3,
  .card p,
  .card .equipment-slider {
    position: relative;
    z-index: 2;
  }
  
  
  /* =========================================================
     CARD TITLE
     ========================================================= */
  
  .card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--color-primary-dark);
    display: inline-block;
    padding-bottom: 0.5rem;
    position: relative;
    letter-spacing: -0.3px;
  }
  
  .card h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
      90deg,
      var(--color-primary-cyan),
      var(--color-primary-teal)
    );
    border-radius: 3px;
    transition: opacity 0.3s ease;
  }
  
  .card:hover h3::after {
    opacity: 0.8;
  }
  
  
  /* =========================================================
     CARD PARAGRAPH
     ========================================================= */
  
  .card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-gray-900);
    margin-bottom: 2rem;
  }
  
  
  /* =========================================================
     ENHANCED EQUIPMENT IMAGE SLIDER
     ========================================================= */
  
  .card .equipment-slider {
    position: static;
    width: 100%;
    height: 240px; /* Bigger */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Artistic subtle frame */
  .card .equipment-slider::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 16px;
    background: linear-gradient(
      145deg,
      rgba(255,255,255,0.85),
      rgba(0,0,0,0.03)
    );
    box-shadow:
      inset 0 0 0 1px rgba(0,0,0,0.04),
      0 10px 25px rgba(0,0,0,0.08);
    z-index: 0;
  }
  
  /* Subtle light reflection */
  .card .equipment-slider::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 20%;
    width: 60%;
    height: 35%;
    background: linear-gradient(
      180deg,
      rgba(255,255,255,0.4),
      transparent
    );
    border-radius: 50%;
    filter: blur(20px);
    z-index: 1;
    pointer-events: none;
  }
  
  .card .equipment-slider img {
    position: absolute;
    max-width: 95%;
    max-height: 220px;
    object-fit: contain;
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    transition:
      opacity 1.2s ease,
      transform 0.8s cubic-bezier(.22,.61,.36,1);
    z-index: 2;
    filter: drop-shadow(0 10px 22px rgba(0,0,0,0.18));
    will-change: opacity, transform;
    pointer-events: none;
  }
  
  /* Visible state (JS adds this) */
  .card .equipment-slider img.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  
  /* Hover micro-elevation */
  .card:hover .equipment-slider img.visible {
    transform: translateY(-2px) scale(1.05);
  }
  
  
  /* =========================================================
     SERVICES BUTTON (Elevated)
     ========================================================= */
  
  .services-button-wrapper {
    margin-top: 3.5rem;
    text-align: center;
  }
  
  .btn-services-catalog {
    display: inline-block;
    width: 85%;
    max-width: 420px;
    padding: 18px 0;
    font-weight: 600;
    font-size: 1.1rem;
    background: linear-gradient(
      135deg,
      var(--color-primary-cyan),
      var(--color-primary-teal)
    );
    color: #fff;
    border-radius: 16px;
    box-shadow:
      0 10px 25px rgba(0,0,0,0.25),
      0 0 0 1px rgba(255,255,255,0.2) inset;
    text-decoration: none;
    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
  }
  
  .btn-services-catalog:hover {
    transform: translateY(-4px);
    box-shadow:
      0 18px 35px rgba(0,0,0,0.35),
      0 0 0 1px rgba(255,255,255,0.3) inset;
  }
  
  
  /* =========================================================
     RESPONSIVE
     ========================================================= */
  
  @media (max-width: 900px) {
  
    #services {
      padding: 80px 0;
    }
  
    .services-title {
      font-size: 2rem;
    }
  
    .services-subtitle {
      font-size: 1rem;
    }
  
    .card {
      padding: 2.25rem 1.5rem;
    }
  
    .card h3 {
      font-size: 1.3rem;
    }
  
    .card p {
      font-size: 0.95rem;
    }
  
    .card .equipment-slider {
      height: 200px;
    }
  
    .card .equipment-slider img {
      max-height: 180px;
    }
  
    .btn-services-catalog {
      width: 95%;
      font-size: 1rem;
      padding: 15px 0;
    }
  }

  


  /* =========================================================
   CORE SERVICES IMAGE ENHANCEMENTS
   (SEO + PROFESSIONAL VISUAL DEPTH)
   ========================================================= */

/* Slightly larger visual area for premium feel */
#core-services-smart-vending-micro-market .equipment-slider {
  margin-bottom: 1.75rem;
}

/* Smooth fade between images if JS swaps them */
#core-services-smart-vending-micro-market .equipment-slider img {
  backface-visibility: hidden;
}

/* Improve transparent PNG/WebP blending */
#core-services-smart-vending-micro-market .equipment-slider img {
  mix-blend-mode: normal;
}

/* Subtle hover polish */
#core-services-smart-vending-micro-market .card:hover .equipment-slider::before {
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.06),
    0 14px 35px rgba(0,0,0,0.14);
}

/* Better spacing for image-first cards */
#core-services-smart-vending-micro-market .card h3 {
  margin-top: 0.5rem;
}


.section-header {
font-size: 1.5rem;
}
