/* ==========================================================================
 * Services Overview – imagine + text (stânga) și panou servicii (dreapta)
 * Version: 1.0.2
 *  - Stânga puțin mai îngustă, dreapta mai lată
 *  - Fix SVG “tăiate” (overflow vizibil + padding)
 *  - Hover smooth (tranziții)
 *  - Mobile: 1 col pentru servicii
 * ========================================================================== */

.et-services-overview-block{
  --et-so-blue:#2F53DB;
  --et-so-blue-strong:#2F53DB;
  --et-so-border:#2F53DB;
  --et-so-split:#D7DFFE;
  --et-so-text:#4B4F55;
  --et-so-title:#154ADC;

  position:relative;
  font-family: var(--et-font-onest, 'Onest', Arial, sans-serif);
}

/* Header (opțional) */
.et-services-overview-block .et-so-header{ margin:0 0 clamp(12px,1.6vw,18px); }
.et-services-overview-block .et-so-title{ margin:6px 0 0; }

/* Shape decorativ (identic asset ca în celelalte blocuri) */
.et-services-overview-block .et-so-shape{
  position:absolute;
  top:-130px;
  right:-6px;
  width:220px;
  aspect-ratio:1/1;
  background:url('../img/line_square.png') no-repeat center / contain;
  transform:scaleX(-1) rotate(6deg);
  pointer-events:none;
  z-index:5;
}
@media (max-width:1100px){
  .et-services-overview-block .et-so-shape{ top:-96px; right:-6px; width:170px; transform:scaleX(-1) rotate(5deg); }
}

/* Grid 2 coloane – dreapta mai lată */
.et-services-overview-block .et-so-grid{
  display:grid;
  grid-template-columns: 0.85fr 1.15fr; /* stânga mai îngustă, dreapta mai lată */
  gap: clamp(18px,2.6vw,30px);
  align-items:start;
}
@media (min-width:1400px){
  .et-services-overview-block .et-so-grid{
    grid-template-columns: 0.8fr 1.2fr; /* pe ecrane mari, încă puțin în favoarea panoului */
  }
}

/* Stânga */
.et-services-overview-block .et-so-left-media{
  border-radius:18px;
  overflow:hidden;
  background:linear-gradient(135deg,#eef1f5,#d9dee5);
}
.et-services-overview-block .et-so-left-image{
  width:100%; height:auto; display:block; border-radius:inherit;
}
.et-services-overview-block .et-so-left-placeholder{
  width:100%; padding-top:62%; border-radius:inherit;
  background:linear-gradient(135deg,#eef1f5,#d9dee5);
}
.et-services-overview-block .et-so-left-text{
  margin-top: clamp(12px,1.6vw,16px);
  color: var(--et-so-text);
  font-size:16px; line-height:1.6;
}
.et-services-overview-block .et-so-left-text p{ margin:0 0 12px; }
.et-services-overview-block .et-so-left-text p:last-child{ margin-bottom:0; }

/* Dreapta – Panou servicii */
.et-services-overview-block .et-so-panel{
  border:2px solid var(--et-so-border);
  border-radius:20px;
  padding: clamp(14px,1.8vw,20px) clamp(14px,1.8vw,22px);
  background:#fff;
  position:relative;
}

/* Grid servicii: 2 coloane pe desktop (mobil – 1 col mai jos) */
.et-services-overview-block .et-so-services{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:0; /* separatoarele sunt prin borders */
}

/* Celulă serviciu */
.et-services-overview-block .et-so-service{
  position:relative;
}

/* Linkul: 
   - rând 1: icon (col 1) + titlu (col 2)
   - rând 2: descriere (span pe ambele coloane) */
.et-services-overview-block .et-so-service-link{
  display:grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  align-items:start;
  gap:12px 14px;
  padding: clamp(14px,1.6vw,18px) clamp(14px,1.6vw,18px);
  text-decoration:none;
  color:inherit;
  min-height:96px;
  transition: color .28s ease, background-color .28s ease;
}

/* Body ca “contents”, pentru a permite titlu + text în grid rows */
.et-services-overview-block .et-so-service-body{
  display: contents;
}

/* Icon – fix SVG “tăiate”: overflow vizibil + puțin padding + dimensiuni confortabile */
.et-services-overview-block .et-so-icon{
  grid-row:1; grid-column:1;
  width:44px; height:44px;          /* +2px față de 42 pentru spațiu */
  padding:2px;                       /* respiră în interiorul cercului */
  box-sizing:border-box;
  border-radius:50%;
  border:2px solid var(--et-so-border);
  color: var(--et-so-blue-strong);
  display:inline-flex; align-items:center; justify-content:center;
  margin:auto 0;
  flex-shrink:0;
  overflow:visible;                  /* previne tăierea vârfurilor din SVG */
  transition: color .28s ease, border-color .28s ease, transform .28s ease;
}
.et-services-overview-block .et-so-icon .et-so-icon-svg,
.et-services-overview-block .et-so-icon svg{
  width:22px; height:22px; display:block; fill:currentColor;
  overflow:visible;                  /* sigur că nu e tăiat */
}

/* Titlu + text */
.et-services-overview-block .et-so-service-title{
  grid-row:1; grid-column:2;
  font-size:18px; line-height:1.28; font-weight:400;
  color: var(--et-so-title);
  transition: color .28s ease, text-underline-offset .28s ease;
}
.et-services-overview-block .et-so-service-text{
  grid-row:2; grid-column:1 / -1;
  color:#475467; font-size:15px; line-height:1.55;
  margin-top: 4px;
}
.et-services-overview-block .et-so-service-text p{ margin:0; }

/* Hover smooth */
.et-services-overview-block .et-so-service-link:hover .et-so-service-title,
.et-services-overview-block .et-so-service-link:focus-visible .et-so-service-title{
  color: var(--et-so-title);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.et-services-overview-block .et-so-service-link:hover .et-so-icon,
.et-services-overview-block .et-so-service-link:focus-visible .et-so-icon{
  border-color: var(--et-so-title);
  color: var(--et-so-title);
}

/* Separatoare interioare (desktop): coloană + rând (optimizat pentru 2×2) */
.et-services-overview-block .et-so-service:nth-child(odd){
  border-right:1px solid var(--et-so-split);
}
.et-services-overview-block .et-so-service:nth-child(-n+2){
  border-bottom:1px solid var(--et-so-split);
}

/* Responsive */
@media (max-width:1100px){
  .et-services-overview-block .et-so-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:900px){
  /* 1 col pentru servicii */
  .et-services-overview-block .et-so-services{
    grid-template-columns: 1fr;
  }
  /* Curățăm separatoarele de desktop și facem listă verticală */
  .et-services-overview-block .et-so-service{
    border-right:none !important;
    border-bottom:1px solid var(--et-so-split);
  }
  .et-services-overview-block .et-so-service:last-child{
    border-bottom:none;
  }
}

/* Empty */
.et-services-overview-block .et-so-empty{
  color:#667085; font-size:15px; margin: 6px 0 0;
}

/* Spacing între blocuri */
.et-services-overview-block + .et-services-overview-block{
  margin-top: clamp(42px,5.2vw,88px);
}