/* ===========================================
   BAZENI – single service page
   Putanja: assets/css/usluge/bazeni.css
=========================================== */

/* HERO – pozadina bazena (ISPRAVNA putanja) */
.hero--bazeni {
  background-image: url("../../img/services/bazen-scriptus.jpg");
  background-size: cover;
  background-position: center;
}

.hero--subpage .hero-inner {
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding-top: 110px;
  padding-bottom: 60px;
}

.hero-content-sub {
  max-width: 780px;
}

/* Eyebrow */
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(235, 241, 255, 0.8);
  margin-bottom: 8px;
}

.hero--subpage .hero-title {
  font-size: clamp(2rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero--subpage .hero-subtitle {
  max-width: 600px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* ===========================================
   GLAVNI LAYOUT – tekst + galerija
=========================================== */
.section-bazeni-main {
  padding-top: 56px;
  padding-bottom: 56px;
}

.service-layout-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.service-layout-two-column__text h2 {
  font-size: clamp(1.8rem, 3vw, 2.1rem);
  margin-bottom: 10px;
}

.service-layout-two-column__text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.service-layout-two-column__text .service-bullets {
  margin-top: 14px;
  margin-bottom: 18px;
}

/* CTA button */
.btn-bazeni-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #477f8b, #355b64);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(0,0,0,0.65);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-bazeni-cta:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #5ba4b4, #3e6d78);
  box-shadow: 0 16px 32px rgba(0,0,0,0.75);
}

.btn-bazeni-cta:active {
  transform: translateY(-1px) scale(0.98);
}

/* ===========================================
   GALERIJA
=========================================== */
.service-layout-two-column__media {
  display: flex;
  justify-content: flex-end;
}

/* Grid koji lijepo podnosi 6 itema */
.service-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-auto-rows: 140px;
  gap: 14px;
  max-width: 520px;
}

.service-gallery__item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 40px rgba(0,0,0,0.8);
  transform: translateZ(0);
}

.service-gallery__item:first-child {
  grid-row: span 2;
  min-height: 290px;
}

.service-gallery__item--small {
  min-height: 140px;
}

.service-gallery__item--wide {
  grid-column: 1 / -1;
  min-height: 160px;
}

.service-gallery__image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.service-gallery__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 55%);
}

/* ISPRAVNE putanje slika (CSS je u /css/usluge/) */
.service-gallery__image--pool-main {
  background-image: url("../../img/services/bazen-scriptus.jpg");
}

.service-gallery__image--pool-night {
  background-image: url("../../img/services/bazen-noc.jpg");
}

.service-gallery__image--pool-detail {
  background-image: url("../../img/services/bazen-detail.jpg");
}

/* nove slike – stavi ih u assets/img/bazeni/ */
.service-gallery__image--pool-overflow {
  background-image: url("../../img/bazeni/pool-overflow.jpg");
}

.service-gallery__image--pool-villa {
  background-image: url("../../img/bazeni/pool-villa.jpg");
}

.service-gallery__image--pool-steps {
  background-image: url("../../img/bazeni/pool-steps.jpg");
}

/* Tag */
.service-gallery__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: 999px;
  background: rgba(2,6,23,0.96);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text-muted);
}

/* Parallax */
.parallax-card {
  transform-style: preserve-3d;
}

/* ===========================================
   TIMELINE
=========================================== */
.section-bazeni-steps {
  padding-top: 50px;
  padding-bottom: 70px;
}

.section-bazeni-steps .section-header {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-bazeni-steps .section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.section-bazeni-steps .section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.timeline-bazeni {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline__item {
  position: relative;
  padding: 18px 18px 20px;
  border-radius: 16px;
  background: rgba(3, 7, 18, 0.96);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 16px 32px rgba(0,0,0,0.75);
  overflow: hidden;
}

.timeline__item::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(71,127,139,0.9), transparent);
  opacity: 0;
  transform: translateX(-22px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.timeline__item:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.timeline__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(215,225,255,0.9);
  margin-bottom: 8px;
}

.timeline__item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.timeline__item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===========================================
   Responsive
=========================================== */
@media (max-width: 960px) {
  .service-layout-two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-layout-two-column__media {
    justify-content: flex-start;
  }

  .service-gallery {
    max-width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .timeline-bazeni {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero--subpage .hero-inner {
    min-height: 46vh;
    align-items: center;
  }

  .timeline-bazeni {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
  }

  .service-gallery__item:first-child {
    grid-row: auto;
    min-height: 220px;
  }

  .service-gallery__item--wide {
    grid-column: auto;
  }

  .section-bazeni-main {
    padding-top: 40px;
    padding-bottom: 46px;
  }
}