/* SERVISO — Services grid, compact homepage grid, service detail page. */
/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.service-card {
  flex: 1 1 300px;
  max-width: 380px;
}
.service-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--gray-200);
  transition: all .4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-smooth);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: rgba(30,136,229,.3); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  padding: .875rem;
  background: var(--primary-gradient);
  border-radius: 14px;
  color: white; stroke: white;
  margin-bottom: 1.25rem;
  transition: all .4s var(--ease-smooth);
  flex-shrink: 0;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(5deg); }
.service-title { font-size: 1.25rem; font-weight: 600; color: var(--gray-900); margin-bottom: .75rem; }
.service-desc { color: var(--gray-600); line-height: 1.7; font-size: .9375rem; margin-bottom: 1.25rem; }
.service-features { display: flex; flex-direction: column; gap: .375rem; margin-bottom: 1.5rem; flex: 1; }
.service-features li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  color: var(--gray-700);
  padding: .25rem 0;
}
.service-features li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--primary-gradient);
  border-radius: 50%;
  flex-shrink: 0;
}
.service-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: .9375rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
  margin-top: auto;
  transition: gap .3s var(--ease-smooth), color .3s var(--ease-smooth);
}
.service-link:hover { color: var(--primary-dark); gap: .75rem; }

/* ============================================================
   COMPACT SERVICES GRID (index homepage)
   ============================================================ */
.services-compact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}
.service-compact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 1.75rem 1rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all .25s var(--ease-smooth);
  gap: .625rem;
  flex: 0 1 calc((100% - 4 * 1.25rem) / 5);
  min-width: 140px;
}
.service-compact-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: inherit;
}
.service-compact-icon {
  width: 36px; height: 36px;
  stroke: var(--primary);
  flex-shrink: 0;
}
.service-compact-card h3 {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.3;
}
.service-compact-card p {
  font-size: .8125rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ============================================================
   SERVICE DETAIL PAGE (usluga.php)
   ============================================================ */
.service-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.service-detail-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin-bottom: 1.75rem;
}
.service-detail-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.service-cta-box {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 1.75rem;
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}
.service-cta-box h3 { font-size: 1.125rem; color: var(--gray-900); margin-bottom: .75rem; }
.service-cta-box > p { color: var(--gray-600); font-size: .9375rem; line-height: 1.65; margin-bottom: 1.25rem; }
.service-detail-lead {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}
.service-detail-body {
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}
.service-detail-features {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 2rem;
}
.service-detail-features li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9375rem;
  color: var(--gray-800);
  padding: .5rem .875rem;
  background: var(--gray-50);
  border-radius: 8px;
}
.service-detail-features li::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.service-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ── Responsive ─────────────────────────────────────────────── */
/* Kept beside the component these rules modify, instead of in a single
 * block at the bottom of the stylesheet, separated from everything they
 * apply to. */

@media (max-width: 992px) {
  .services-compact-grid .service-compact-card { flex: 0 1 calc((100% - 2 * 1.25rem) / 3); }
  .service-detail-layout { grid-template-columns: 1fr; }
  .service-cta-box { position: static; }
  .services-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
  .services-compact-grid .service-compact-card { flex: 0 1 calc((100% - 1.25rem) / 2); }
  .services-grid { grid-template-columns: 1fr; }
}
