<!-- start Simple Custom CSS and JS -->
<style type="text/css">
/* mobile-services.css */

/* Ascundem secțiunea complet pe desktop */
@media (min-width: 768px) {
  .mobile-services-section {
    display: none !important;
  }
}

/* Stiluri valabile doar pe mobil */
@media (max-width: 767.98px) {
  /* Asigurăm că secțiunea desktop este ascunsă pe mobil */
  section.services {
    display: none !important;
  }

  .mobile-services-section {
    display: block; /* Facem vizibilă secțiunea mobilă */
    padding: 2rem 0; /* Spațiere generală */
  }

  .mobile-services-banner {
    display: block;
    width: 80%;
    max-width: 400px;
    height: auto;
    margin: 0 auto 2.5rem auto;
  }

  .mobile-small-circles-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .mobile-circle-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 20rem;
  }

  .mobile-circle-sm {
    position: relative;
    width: 9rem;
    height: 9rem;
    flex-shrink: 0;
    z-index: 3;
  }

  .mobile-circle-sm .mobile-text {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #54595F;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background-color 0.25s ease;
    padding: 0.5rem;
    box-sizing: border-box;
  }

  .mobile-circle-sm.is-active .mobile-text {
    background-color: #387d83;
  }

  .mobile-circle-sm .mobile-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: #387d83;
    border-radius: 50%;
    z-index: -1;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    animation: mobileCirclePing 12s infinite;
  }

  @keyframes mobileCirclePing {
    4% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    5% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
    20% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); }
    21% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  }

  .mobile-circle-sm.is-active .mobile-text::before {
    animation: none;
  }

  .mobile-circle-sm-1 .mobile-text::before { animation-delay: 2s; }
  .mobile-circle-sm-2 .mobile-text::before { animation-delay: 0s; }
  .mobile-circle-sm-3 .mobile-text::before { animation-delay: 8s; }
  .mobile-circle-sm-4 .mobile-text::before { animation-delay: 4s; }
  .mobile-circle-sm-5 .mobile-text::before { animation-delay: 10s; }
  .mobile-circle-sm-6 .mobile-text::before { animation-delay: 6s; }

  .mobile-info-slot {
    height: 0;
    overflow: hidden;
    transition: height 375ms ease;
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
  }

  /* ========================================================== */
  /* ===== AICI ESTE CORECȚIA ESENȚIALĂ ===== */
  
  /* 1. ASCUNDEM cardurile care se află în starea lor inițială (în interiorul bulinelor) */
  .mobile-circle-sm > .mobile-info-card {
    display: none;
  }

  /* 2. AFIȘĂM cardul DOAR atunci când este mutat de JavaScript în slotul vizibil */
  .mobile-info-slot > .mobile-info-card {
    display: block;
    background-color: #f4f3ef;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    margin: 0.5rem 0;
  }
  
  /* ========================================================== */

  .mobile-info-card .info-card-content,
  .mobile-info-card .info-card-content * {
    display: block !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    text-align: left !important;
    color: #000000 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    font-size: 14px;
    line-height: 1.6;
    padding: 12px 15px;
  }
  .mobile-info-card .headline {
    font-weight: normal !important;
    margin-top: 0;
  }
  .mobile-info-card ul {
    margin: 5px 0 0 0;
    padding-left: 20px;
  }
}</style>
<!-- end Simple Custom CSS and JS -->
