/* Client photo banners, preview only (?banneri=1). Photos are 1620x540 (3:1); text is HTML on top. */
.plg-banner { position: relative; background: var(--plg-navy-deep); color: #fff; overflow: hidden; margin: 0 !important; max-width: none !important; }
.plg-banner-media { background-size: cover; background-position: right center; background-repeat: no-repeat; }
.plg-banner-logo { display: flex; align-items: center; gap: 0.35em; font-family: var(--plg-display); font-weight: 800; line-height: 1; letter-spacing: -0.01em; }
.plg-banner-logo img { display: block; height: 1.9em !important; width: auto !important; max-width: none !important; aspect-ratio: auto !important; object-fit: contain !important; filter: brightness(0) invert(1); }
.plg-banner-tag { white-space: nowrap; margin: 0; padding: 0; font-family: var(--plg-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.plg-banner-tag::after { content: ""; display: block; width: 3.6em; height: 4px; margin-top: 0.9em; background: #2ea8e6; }
.plg-banner h1 { margin: 0; color: #fff; font-weight: 800; }
.plg-banner-sub { margin: 0; padding: 0; color: #e6eef8; line-height: 1.35; }
.plg-banner-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plg-banner-items li { text-shadow: 0 1px 6px rgba(8, 20, 45, 0.6); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5em; padding: 0 0.8em; line-height: 1.25; border-left: 2px solid rgba(46, 168, 230, 0.75); }
.plg-banner-items li:first-child { border-left: 0; }
.plg-banner-items svg { width: 2.4em; height: 2.4em; color: #fff; }

@media (min-width: 1100px) {
  /* Text and icon row stack in normal flow, so they can never overlap; the banner grows if the content needs more than 3:1. */
  .plg-banner { width: 100%; max-width: 1920px !important; margin-inline: auto !important; aspect-ratio: 3 / 1; display: flex; flex-direction: column; padding: 3.4% 4.5% 2.8%; box-sizing: border-box; }
  .plg-banner-media { position: absolute; inset: 0; }
  .plg-banner-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 33, 73, 0.8) 0%, rgba(14, 33, 73, 0.55) 30%, rgba(14, 33, 73, 0) 52%), linear-gradient(0deg, rgba(14, 33, 73, 0.75) 0%, rgba(14, 33, 73, 0) 38%); }
  .plg-banner-text { position: relative; width: 34%; display: flex; flex-direction: column; gap: clamp(8px, 0.9vw, 18px); }
  .plg-banner-logo { font-size: clamp(30px, 2.9vw, 56px); }
  .plg-banner-tag { font-size: clamp(13px, 1vw, 19px); }
  /* One title size for all subpage banners (Usluge, O nama, Reference). */
  .plg-banner h1 { font-size: clamp(40px, 4.2vw, 80px); }
  .plg-banner-sub { font-size: clamp(15px, 1.25vw, 23px); }
  .plg-banner-items { position: relative; margin-top: auto; padding-top: clamp(14px, 1.4vw, 28px); width: 40%; margin-left: -1%; font-size: clamp(13px, 1vw, 18px); }

  /* Home: slogan headline in two lines, wider than the base column. */
  .plg-banner--naslovnica .plg-banner-text { width: 46%; }
  .plg-banner--naslovnica h1 { font-size: clamp(30px, 3vw, 58px); }
  .plg-banner--naslovnica .plg-banner-items { width: 42%; }

  /* Usluge: one label at the foot of each diagonal photo strip. */
  .plg-banner--usluge .plg-banner-text { width: 20%; } .plg-banner--usluge .plg-banner-sub { max-width: 15.5vw; }
  .plg-banner--usluge .plg-banner-sub { font-size: clamp(14px, 1.1vw, 21px); }
  .plg-banner--usluge .plg-banner-media::after { background: linear-gradient(0deg, rgba(14, 33, 73, 0.85) 0%, rgba(14, 33, 73, 0) 42%); }
  .plg-banner--usluge .plg-banner-items { position: absolute; inset: 0; width: auto; margin: 0; padding: 0; display: block; }
  .plg-banner--usluge .plg-banner-items li { position: absolute; bottom: 7%; width: 16%; flex-direction: column; align-items: flex-start; text-align: left; border: 0; padding: 0; }
  .plg-banner--usluge .plg-banner-items li span { border-left: 3px solid #2ea8e6; padding-left: 0.6em; font-weight: 600; }
  .plg-banner--usluge .plg-banner-items svg { margin-left: 1.2em; }
  .plg-banner--usluge .plg-banner-items li:nth-child(1) { left: 21%; }
  .plg-banner--usluge .plg-banner-items li:nth-child(2) { left: 42%; }
  .plg-banner--usluge .plg-banner-items li:nth-child(3) { left: 61.5%; }
  .plg-banner--usluge .plg-banner-items li:nth-child(4) { left: 82%; }
}

/* Below desktop: text in its own navy block above the photo, labels as a 2x2 grid under it. */
@media (max-width: 1099px) {
  .plg-banner { display: flex; flex-direction: column; }
  .plg-banner-text { order: 1; padding: 32px 22px 26px; display: flex; flex-direction: column; gap: 12px; }
  .plg-banner-media { order: 2; aspect-ratio: 3 / 1; }
  .plg-banner-items { order: 3; grid-template-columns: 1fr 1fr; row-gap: 22px; padding: 24px 12px 28px; font-size: 15px; }
  .plg-banner-items li:nth-child(3) { border-left: 0; }
  .plg-banner-logo { font-size: 30px; }
  .plg-banner-tag { font-size: 13px; }
  .plg-banner h1 { font-size: clamp(34px, 8vw, 52px); }
  .plg-banner--naslovnica h1 { font-size: clamp(28px, 6.6vw, 40px); }
  .plg-banner-sub { font-size: 17px; }
}
@media (max-width: 600px) {
  .plg-banner-media { aspect-ratio: 2 / 1; }
}

/* Kontakt (client package 2026-11-02): the navy fade is already in the photo, so no extra overlay. */
.plg-banner--kontakt .plg-banner-media::after { background: none !important; }
.plg-banner--kontakt .plg-banner-sub { text-wrap: balance; }


/* 24. 11.: banners run the full window width on any screen (no 1920px cap, so no white side
   margins on wide monitors). Height follows 3:1 up to 700px; beyond that the photo is cropped
   (cover), never stretched. Text starts on the same line as the page content (1132px frame). */
@media (min-width: 1100px) {
  .plg-banner { max-width: none !important; aspect-ratio: auto; min-height: min(33.333vw, 700px);
    padding: clamp(36px, 3.4vw, 66px) 4.5% clamp(30px, 2.8vw, 54px) max(4.5%, calc((100% - 1132px) / 2)); }
  .plg-banner-text { width: min(594px, 31vw); max-width: none; }
  .plg-banner--naslovnica .plg-banner-text { width: min(804px, 42vw); }
  .plg-banner-items { max-width: 700px; }
  /* Usluge: labels sit on the photo strips, so its text keeps its place at the left edge. */
  .plg-banner--usluge { padding-left: 4.5%; }
  .plg-banner--usluge .plg-banner-text { width: 20%; }
  .plg-banner--usluge .plg-banner-items { max-width: none; }
}
/* Wider than 1920: the text moves in with the content frame, so the dark fade behind it follows. */
@media (min-width: 1921px) {
  .plg-banner:not(.plg-banner--usluge) .plg-banner-media::after,
  .plg-banner--kontakt .plg-banner-media::after {
    background: linear-gradient(90deg, rgba(14, 33, 73, 0.85) 0, rgba(14, 33, 73, 0.6) calc(50% - 566px + 560px), rgba(14, 33, 73, 0) calc(50% - 566px + 1000px)),
                linear-gradient(0deg, rgba(14, 33, 73, 0.75) 0%, rgba(14, 33, 73, 0) 38%) !important;
  }
}
