/* Single project page */
:root {
    --lime: #cfef7d;
    --olive: #3a4d00;
    --dark: #1b1c15;
}


.pj-hero { width: 100%; overflow: hidden; background: #111; max-height: 560px; }
.pj-hero__img { width: 100%; height: 560px; object-fit: cover; display: block; }

.pj-container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

.pj-header { padding: 48px 0 36px; margin-bottom: 40px; border-bottom: 1px solid #eee; }
.pj-header__date { font-size: 13px; color: #999; display: block; margin-bottom: 12px; letter-spacing: .02em; }
.pj-header__title { font-size: clamp(26px, 4vw, 38px); font-weight: 700; line-height: 1.25; margin: 0 0 18px; color: #111; }
.pj-header__excerpt { font-size: 16px; color: #555; line-height: 1.75; max-width: 700px; }

/* ── Buttons ── */
.btn-h {
    height: 46px;
    border-radius: var(--radius);
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-size: 14px;
    letter-spacing: 0.6px;
    color: #fff;
    white-space: nowrap;
    transition: filter .15s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.btn-h:hover { filter: brightness(1.06); color: #fff; }
.btn-h--green  { background: var(--green); text-transform: uppercase; }
.btn-h--teal   { background: var(--teal); text-transform: uppercase; }
.btn-h--olive  { background: var(--olive); height: 40px; font-size: 13px; padding: 0 28px; }

.pj-content { font-size: 16px; line-height: 1.85; color: #333; margin-bottom: 64px; }
.pj-content p { margin: 0 0 20px; }
.pj-content h2 { font-size: 22px; font-weight: 700; margin: 44px 0 14px; color: #111; }
.pj-content h3 { font-size: 18px; font-weight: 700; margin: 36px 0 12px; color: #111; }
.pj-content ul, .pj-content ol { padding-left: 24px; margin: 0 0 20px; }
.pj-content li { margin-bottom: 10px; }
.pj-content a { color: #7ab32e; text-decoration: none; }
.pj-content a:hover { text-decoration: underline; }
.pj-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; display: block; }
.pj-content strong { font-weight: 600; }

/* WP gallery shortcode */
.pj-content .gallery { display: grid; gap: 10px; margin: 36px 0; clear: both; }
.pj-content .gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.pj-content .gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.pj-content .gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.pj-content .gallery .gallery-item { float: none !important; width: 100% !important; margin: 0 !important; }
.pj-content .gallery .gallery-item dt { margin: 0; }
.pj-content .gallery img { width: 100%; height: 220px; object-fit: cover; border: none !important; border-radius: 6px; display: block; }
.pj-content .gallery .gallery-caption { display: none; }
@media (max-width: 600px) {
    .pj-content .gallery-columns-3,
    .pj-content .gallery-columns-4 { grid-template-columns: repeat(2, 1fr); }
    .pj-content .gallery img { height: 160px; }
}

/* ── Projektiranje CTA ── */
.proj-cta {
  margin-top: 160px;
  height: 600px;
  position: relative;
  display: flex;
}
.proj-cta__bg {
  position: relative;
  width: 100%;
  height: 600px;
  background: var(--lime);
  border-radius: 0 4px 4px 0;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}
.proj-cta__img {
  width: 712px;
  height: 500px;
  margin-top: 100px;
  background: url('/assets/img/home/projektiranje.jpg') center / cover no-repeat;
  border-radius: 0 4px 0 0;
  flex-shrink: 0;
}
.proj-cta__text {
  padding: 100px 0 0 32px;
  max-width: 417px;
}
.proj-cta__text h2 {
  font-family: var(--font);
  font-size: 43px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--olive);
}
.proj-cta__text p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.5px;
  color: var(--olive);
}
.proj-cta__text .btn-h { margin-top: 16px; }
@media (max-width: 1100px) {
  .proj-cta__img { width: 420px; }
  .proj-cta__text { max-width: 340px; }
}
@media (max-width: 900px) {
  .proj-cta { height: auto; }
  .proj-cta__bg { flex-direction: column; height: auto; }
  .proj-cta__img { width: 100%; height: 260px; border-radius: 0; margin-top: 0; }
  .proj-cta__text { padding: 32px 24px 40px; max-width: 100%; }
}

/* Sections: products + similar */
.pj-section { margin-bottom: 64px; }
.pj-section--last { margin-bottom: 80px; }
.pj-section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.pj-section__title { color: #000; font-size: 24px; font-weight: 700; margin: 0; }

.pj-arrows { display: flex; gap: 8px; }
.pj-arrow { width: 36px; height: 36px; border: 1px solid #ddd; background: #fff; border-radius: 8px; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #444; transition: border-color .15s, color .15s; padding: 0; }
.pj-arrow:hover { border-color: #7ab32e; color: #7ab32e; }

.pj-carousel-wrap { overflow: hidden; }
.pj-carousel-track { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 4px; }
.pj-carousel-track::-webkit-scrollbar { display: none; }

/* Product cards */
.pj-prod-card { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; min-width: 160px; max-width: 160px; gap: 10px; }
.pj-prod-card__img-wrap { width: 160px; height: 160px; background: #f5f5f5; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.pj-prod-card__img-wrap--empty { background: linear-gradient(135deg, #f0f0f0, #e0e0e0); }
.pj-prod-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-prod-card__name { font-size: 13px; font-weight: 500; line-height: 1.4; text-align: center; color: #222; }
.pj-prod-card:hover .pj-prod-card__name { color: #7ab32e; }

/* Similar project cards */
.pj-proj-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; min-width: 280px; max-width: 280px; border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden; transition: box-shadow .15s; flex-shrink: 0; }
.pj-proj-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.10); }
.pj-proj-card__img-wrap { aspect-ratio: 16/10; overflow: hidden; background: #f0f0f0; }
.pj-proj-card__img-wrap--empty { background: linear-gradient(135deg, #e8f5d0, #d0e8f5); }
.pj-proj-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-proj-card__body { padding: 16px 18px; }
.pj-proj-card__title { font-size: 15px; font-weight: 600; margin: 0 0 6px; line-height: 1.4; color: #111; }
.pj-proj-card__date { font-size: 12px; color: #999; }
