/* Sekcija usluga */

.services-section {
  padding: 10px 0 40px;
}

.services-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.services-header {
  text-align: center;
  margin-bottom: 22px;
}

.services-header h2 {
  font-size: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f4c75;
  margin-bottom: 6px;
}

.services-header p {
  font-size: 14px;
  color: #4b5563;
  max-width: 520px;
  margin: 0 auto;
}

.services-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(63, 211, 199, 0.14);
  color: #0f4c75;
  margin-bottom: 6px;
}

/* Grid 4x2 na desktopu */

.services-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* Kartice */

.service-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 18px;
  padding: 16px 14px 14px;
  box-shadow: 0 12px 30px rgba(15, 76, 117, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.45);
  text-align: center;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
  cursor: pointer;

  text-decoration: none;
  color: #111827;
  display: block;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 76, 117, 0.25);
  border-color: #3fd3c7;
}

/* Ikonica u krugu */

.service-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: conic-gradient(from 160deg, #3fd3c7, #3282b8, #8fd694, #3fd3c7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 76, 117, 0.25);
}

.service-icon i {
  font-size: 22px;
}

/* Naslov usluge */

.service-card h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111827;
}

/* Responsive */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .services-inner {
    padding: 0 12px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 14px 12px 12px;
  }
}


/* ================================
   USLUGE.PHP – OVERVIEW STRANICA
   ================================ */

.page-main {
  padding: 24px 0 50px;
}

.services-overview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* Hero na vrhu usluga */

.services-overview-hero {
  text-align: center;
  margin-bottom: 32px;
}

.services-overview-hero h1 {
  font-size: 26px;
  line-height: 1.25;
  margin-bottom: 10px;
  color: #0f4c75;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.services-overview-hero p {
  font-size: 14px;
  color: #4b5563;
  max-width: 720px;
  margin: 0 auto 6px;
}

/* Lista sekcija (cross layout) */

.services-overview-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Jedan red – tekst + slika */

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 26px;
  align-items: center;
  padding: 22px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(15, 76, 117, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

/* Alternacija – za svaki drugi red zamijenimo strane */

.services-overview-list .service-row:nth-child(even) .service-row-content {
  order: 2;
}

.services-overview-list .service-row:nth-child(even) .service-row-image {
  order: 1;
}

/* Tekstualni dio */

.service-row-content h2 {
  font-size: 19px;
  margin-bottom: 8px;
  color: #0f4c75;
}

.service-row-content p {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 8px;
}

.service-row-content ul {
  margin: 0 0 10px 0;
  padding-left: 18px;
  font-size: 13px;
  color: #374151;
}

.service-row-content ul li {
  margin-bottom: 2px;
}

/* Link "detaljnije" */

.service-row-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(63, 211, 199, 0.12);
  color: #0f4c75;
  border: 1px solid rgba(63, 211, 199, 0.35);
  transition: background 0.15s ease, transform 0.15s ease,
              box-shadow 0.15s ease, border-color 0.15s ease;
}

.service-row-link::after {
  content: "→";
  font-size: 12px;
}

.service-row-link:hover {
  background: rgba(63, 211, 199, 0.2);
  border-color: #3fd3c7;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 76, 117, 0.18);
}

/* Slika */

.service-row-image {
  position: relative;
}

.service-row-image img {
  width: 100%;
  display: block;
  border-radius: 20px;
  object-fit: cover;
  max-height: 260px;
}

/* Blagi overlay kartice iza slike (glow efekat) */
.service-row-image::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 24px;
  background: radial-gradient(circle at top,
              rgba(63, 211, 199, 0.16),
              transparent 60%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* CTA na dnu */

.services-overview-cta {
  margin-top: 34px;
  text-align: center;
}

.services-overview-cta h2 {
  font-size: 18px;
  color: #0f4c75;
  margin-bottom: 8px;
}

.services-overview-cta p {
  font-size: 14px;
  color: #4b5563;
  max-width: 520px;
  margin: 0 auto 12px;
}

/* Ako već imaš .page-contact-list u CSS-u, možeš ovo preskočiti,
   ali ako ne, dodaj: */

.page-contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}

.page-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #111827;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.page-contact-item i {
  color: #0f4c75;
}

/* Responsive */

@media (max-width: 900px) {
  .service-row {
    grid-template-columns: 1fr;
  }

  .services-overview-list .service-row:nth-child(even) .service-row-content,
  .services-overview-list .service-row:nth-child(even) .service-row-image {
    order: initial; /* na mobitelu idu ispod reda, bez križanja */
  }

  .service-row {
    padding: 18px 14px;
  }
}

@media (max-width: 600px) {
  .services-overview {
    padding: 0 12px 30px;
  }

  .services-overview-hero h1 {
    font-size: 20px;
  }

  .service-row-image img {
    max-height: 220px;
  }
}

/* =========================
   MINI GALERIJA NA INDEXU
   ========================= */

.mini-gallery {
  padding: 10px 0 40px;
}

.mini-gallery-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.mini-gallery-header {
  text-align: center;
  margin-bottom: 18px;
}

.mini-gallery-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(63, 211, 199, 0.14);
  color: #0f4c75;
  margin-bottom: 6px;
}

.mini-gallery-header h2 {
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f4c75;
  margin-bottom: 4px;
}

.mini-gallery-header p {
  font-size: 14px;
  color: #4b5563;
  max-width: 520px;
  margin: 0 auto;
}

/* Grid 3 slike */

.mini-gallery-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mini-gallery-item {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 14px 35px rgba(15, 76, 117, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.mini-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.mini-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
      rgba(15, 76, 117, 0.0),
      rgba(15, 76, 117, 0.2));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mini-gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.mini-gallery-item:hover::after {
  opacity: 1;
}

/* Lightbox overlay */

.mini-gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 0.2s ease;
}

.mini-gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mini-gallery-lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

/* Close dugme */

.mini-lightbox-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Responsive */

@media (max-width: 900px) {
  .mini-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .mini-gallery-inner {
    padding: 0 12px;
  }

  .mini-gallery-grid {
    grid-template-columns: 1fr;
  }
}

