/* Clone B: layouts from the client's spec (31.10.2026). Loaded only when PLG_CLIENT_DESIGN is on. */
.plgb-section { padding: 80px 0; }
.plgb-head { margin-bottom: 32px; }
.plgb-head h2 { margin: 6px 0 0 !important; }
.plgb-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 8px; background: var(--plg-ember); color: #fff; }
.plgb-ico svg { width: 28px; height: 28px; }

/* service photo cards: whole card is the link */
.plgb-scards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.plgb-scards-big { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.plgb-scard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--plg-line); border-radius: 6px; overflow: hidden; color: var(--plg-ink) !important; text-decoration: none !important; transition: box-shadow .2s, border-color .2s; }
.plgb-scard:hover { border-color: #b9c6d6; box-shadow: 0 10px 28px rgba(14, 33, 73, .12); }
.plgb-scard-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--plg-paper); }
.plgb-scard-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.plgb-scard:hover .plgb-scard-img img { transform: scale(1.04); }
.plgb-scard-tx { display: flex; flex-direction: column; gap: 6px; padding: 18px 48px 20px 20px; }
.plgb-scard-title { font-family: var(--plg-display); font-weight: 700; font-size: 19px; line-height: 1.2; color: var(--plg-navy); }
.plgb-scard-sub { font-size: 15.5px; line-height: 1.45; color: var(--plg-muted); }
.plgb-scards-big .plgb-scard-title { font-size: 22px; }
.plgb-scards-big .plgb-scard-sub { font-size: 16.5px; }
.plgb-arrow { position: absolute; right: 18px; bottom: 18px; font-size: 20px; color: var(--plg-ember); transition: transform .2s; }
.plgb-scard:hover .plgb-arrow { transform: translateX(4px); }

/* Dokaznica: text + steps left, white card with the real plan and Excel rows right */
.plgb-doc { background: linear-gradient(180deg, #f3f6fb 0%, #e9eff8 100%); padding: 88px 0; }
.plgb-doc-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: 56px; align-items: start; }
.plgb-doc-text { display: flex; flex-direction: column; gap: 18px; }
.plgb-doc-text h2 { font-size: clamp(32px, 3.4vw, 48px); margin: 0 !important; }
.plgb-doc-text .plg-eyebrow::after { content: ""; display: block; width: 52px; height: 3px; margin-top: 10px; background: var(--plg-ember); }
.plgb-steps { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.plgb-steps li { display: flex; gap: 18px; align-items: flex-start; }
.plgb-steps b { display: block; font-family: var(--plg-display); font-size: 19px; color: var(--plg-navy); }
.plgb-steps b span { color: var(--plg-ember); margin-right: 6px; }
.plgb-steps li > div > span { display: block; color: var(--plg-muted); font-size: 16.5px; line-height: 1.45; }
.plgb-doc-card { background: #fff; border-radius: 12px; padding: 26px; box-shadow: 0 18px 50px rgba(14, 33, 73, .12); }
.plgb-doc-card h3 { margin: 0 0 16px !important; font-size: 21px; color: var(--plg-navy); }
.plgb-plan { margin: 0 0 18px !important; border: 1px solid var(--plg-line); border-radius: 6px; overflow: hidden; }
.plgb-plan img { display: block; width: 100%; height: auto; }
.plgb-tbl { overflow-x: auto; border: 1px solid #c9d6e8; border-radius: 6px; }
.plgb-tbl table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.3; }
.plgb-tbl th { background: #dbe7f6; color: var(--plg-navy); font-weight: 700; padding: 8px 8px; text-align: center; white-space: nowrap; }
.plgb-tbl td { padding: 6px 8px; text-align: center; border-top: 1px solid #e3e9f1; white-space: nowrap; }
.plgb-tbl td:first-child { font-weight: 700; color: var(--plg-navy); }
.plgb-note { margin: 12px 0 0 !important; font-size: 13.5px; color: var(--plg-muted); }

/* home: 4 featured references in a row */
.plgb-refq4 .wp-block-post-template { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

/* home: short O nama + Kontakt */
.plgb-ac { background: #fff; border-top: 1px solid var(--plg-line); }
.plgb-ac-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
.plgb-ac-about { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.plgb-ac-about h2, .plgb-ac-contact h2 { margin: 0 !important; }
.plgb-ac-contact { background: var(--plg-navy-deep); color: #fff; border-radius: 10px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.plgb-ac-contact h2 { color: #fff !important; }
.plgb-ac-contact p { color: #c8d6ea; margin: 0 !important; }
.plgb-ac-contact .plg-eyebrow { color: #8fb6e3; }
.plgb-ac-contact ul { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.plgb-ac-contact li { display: flex; align-items: center; gap: 10px; }
.plgb-ac-contact li svg { width: 20px; height: 20px; color: #8fc3f5; }
.plgb-ac-contact a:not(.plg-btn) { color: #fff !important; font-weight: 600; text-decoration: none !important; }
.plgb-ac-contact .plg-btn { align-self: flex-start; }

/* Usluge page */
.plgb-intro { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px !important; }
.plgb-intro h2 { margin: 0 !important; }
.plgb-matnote { margin-top: 48px !important; }
.plgb-matnote-in { display: flex; gap: 22px; align-items: flex-start; background: var(--plg-paper); border-radius: 8px; padding: 30px 32px; }
.plgb-matnote-in h3 { margin: 0 0 8px !important; color: var(--plg-navy); }
.plgb-matnote-in p { margin: 0 !important; color: var(--plg-muted); }

/* service pages */
.plgb-svc-overview { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.plgb-svc-text { display: flex; flex-direction: column; gap: 14px; }
.plgb-svc-text h2, .plgb-svc-works h2, .plgb-svc-photos h2 { margin: 0 0 4px !important; }
.plgb-svc-works, .plgb-svc-photos, .plgb-svc-two { margin-top: 64px !important; }
.plgb-checks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.plgb-checks li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--plg-line); }
.plgb-checks svg { flex: none; width: 22px; height: 22px; color: var(--plg-ember); margin-top: 2px; }
.plgb-checks-1 { grid-template-columns: 1fr; }
.plgb-photo-todo { display: flex; gap: 16px; align-items: center; margin-top: 16px; padding: 26px 28px; border: 2px dashed #c3ccd7; border-radius: 8px; color: var(--plg-muted); }
.plgb-photo-todo svg { flex: none; width: 34px; height: 34px; color: #9aa6b4; }
.plgb-photo-todo p { margin: 0 !important; }
.plgb-svc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.plgb-svc-col { display: flex; flex-direction: column; gap: 12px; }
.plgb-svc-col h3 { margin: 0 !important; color: var(--plg-navy); }

/* Kontakt */
.plgb-kontakt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.plgb-kinfo h2, .plgb-kform h2 { margin: 0 0 8px !important; padding-left: 14px; border-left: 4px solid var(--plg-ember); }
.plgb-kinfo > p { color: var(--plg-muted); margin: 0 0 12px !important; }
.plgb-klist { list-style: none; margin: 0 0 36px; padding: 0; }
.plgb-klist li { display: flex; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--plg-line); }
.plgb-klist svg { flex: none; width: 30px; height: 30px; color: var(--plg-ember); }
.plgb-klist b { display: block; color: var(--plg-navy); }
.plgb-klist a { font-size: 19px; font-weight: 600; color: var(--plg-navy) !important; text-decoration: none !important; }
.plgb-kinfo h3 { margin: 0 0 4px !important; color: var(--plg-navy); }
.plgb-kform { background: var(--plg-paper); border-radius: 10px; padding: 32px; }
.plgb-kform form.wp-block-gutena-forms { padding-top: 0.5rem !important; padding-bottom: 1rem !important; margin: 0 !important; }
.plgb-kform select.gutena-forms-field { width: 100%; padding: 10px 12px; border: 1px solid #c3ccd7; border-radius: 4px; background: #fff; font: inherit; font-size: 17px; }
.plgb-attach { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 2px dashed #b9c6d6; border-radius: 8px; background: #fff; color: var(--plg-ink) !important; text-decoration: none !important; }
.plgb-attach:hover { border-color: var(--plg-ember); }
.plgb-attach svg { flex: none; width: 26px; height: 26px; color: var(--plg-ember); }
.plgb-attach b { display: block; color: var(--plg-navy); }
.plgb-attach small { display: block; color: var(--plg-muted); font-size: 14.5px; }

@media (max-width: 1100px) {
  .plgb-scards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plgb-doc-grid, .plgb-ac-grid, .plgb-kontakt, .plgb-svc-overview { grid-template-columns: 1fr; gap: 40px; }
  .plgb-refq4 .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 700px) {
  .plgb-section, .plgb-doc { padding: 56px 0; }
  .plgb-scards, .plgb-scards-big, .plgb-checks, .plgb-svc-two { grid-template-columns: 1fr; }
  .plgb-refq4 .wp-block-post-template { grid-template-columns: 1fr !important; }
  .plgb-doc-card, .plgb-kform, .plgb-ac-contact { padding: 20px; }
  .plgb-matnote-in { flex-direction: column; padding: 24px; }
}

/* fixes after first screenshots */
.plgb-head { margin-bottom: 32px !important; }
html body .entry-content.wp-block-post-content :is(a.plgb-scard, a.plgb-attach, .plgb-klist a),
html body :is(a.plgb-scard, a.plgb-attach) * { text-decoration: none !important; }
.plgb-tbl th { white-space: normal; padding: 7px 6px; font-size: 13px; line-height: 1.2; }
.plgb-tbl td { padding: 6px 6px; font-size: 13.5px; }
@media (min-width: 1101px) { .plgb-doc-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr); gap: 48px; } }
.plgb-ac-about { justify-content: flex-start; }
.plgb-ac-about .plg-more { margin-top: 6px !important; }
.plgb-kform .wp-block-gutena-field-group:has(.required-field) .heading-input-label-gutena::after { content: " *"; color: var(--plg-ember); }

/* WhatsApp: floating button on every page + line in the Kontakt list */
.plg-wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 9990; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border-radius: 28px; background: #25d366; color: #fff !important; font-family: var(--plg-body); font-weight: 700; font-size: 16px; text-decoration: none !important; box-shadow: 0 8px 24px rgba(14, 33, 73, .28); transition: transform .2s, box-shadow .2s; }
.plg-wa-float:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(14, 33, 73, .34); }
.plg-wa-float:focus-visible { outline: 3px solid var(--plg-navy); outline-offset: 3px; }
.plg-wa-float svg { width: 28px; height: 28px; }
@media (max-width: 700px) { .plg-wa-float { right: 16px; bottom: 16px; width: 56px; padding: 0; justify-content: center; } .plg-wa-float span { display: none; } }
html body .plgb-klist a.plg-wa-link { display: inline-flex; align-items: center; gap: 0; }
.plgb-klist li.plgb-wa svg { color: #25d366; }

/* Justified descriptive paragraphs on all pages (client package 2026-11-02). Headings, buttons and short labels keep their design. */
.plg-main p:not(.plg-eyebrow, .plg-banner-tag, .plg-banner-sub, .plg-loc, .plg-type, .plg-fact-label, .plg-fact-val, .plg-more, .plg-other-link, .plg-slogan, .plg-intro, .plg-subtitle, .plg-consent, .has-text-align-center, .gutena-forms-field-error-msg, .plgb-photo-todo p) {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
}

/* Reference gallery: photos come in different shapes, so they are fitted into equal frames, never cropped. Captions sit below. */
.plg-ref-content .plg-gallery.wp-block-gallery { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px !important; }
.plg-ref-content .plg-gallery.wp-block-gallery .wp-block-image { width: auto !important; margin: 0 !important; display: block !important; flex: none !important; }
.plg-ref-content .plg-gallery .wp-block-image a { display: block; aspect-ratio: 4 / 3; background: #eef2f7; }
.plg-ref-content .plg-gallery .wp-block-image img { display: block; width: 100% !important; height: 100% !important; object-fit: contain !important; }
.plg-ref-content .plg-gallery .wp-block-image figcaption { position: static !important; max-height: none !important; overflow: visible !important; margin: 0 !important; padding: 8px 2px 0 !important; background: none !important; color: inherit !important; font-size: 15px !important; font-weight: 600; text-align: left !important; text-shadow: none !important; }
@media (max-width: 600px) { .plg-ref-content .plg-gallery.wp-block-gallery { grid-template-columns: 1fr; } }

/* Plava Laguna hero: the building sits low in the drone photo, and a lighter fade keeps it visible. */
.postid-440 .plg-refhero img.wp-block-cover__image-background { object-position: 50% 82% !important; }
.postid-440 .plg-refhero .wp-block-cover__background { background: linear-gradient(90deg, rgba(14,33,73,0.92) 0%, rgba(14,33,73,0.6) 42%, rgba(14,33,73,0.05) 75%) !important; }

/* Service pages: gallery of real site photos (client package 2026-11-20), same framing as reference galleries, three per row. */
.plgb-svc-photos .plg-gallery.wp-block-gallery { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px !important; }
.plgb-svc-photos .plg-gallery.wp-block-gallery .wp-block-image { width: auto !important; margin: 0 !important; display: block !important; flex: none !important; }
.plgb-svc-photos .plg-gallery .wp-block-image a { display: block; aspect-ratio: 4 / 3; background: #eef2f7; }
.plgb-svc-photos .plg-gallery .wp-block-image img { display: block; width: 100% !important; height: 100% !important; object-fit: contain !important; }
.plgb-svc-photos .plg-gallery .wp-block-image figcaption { position: static !important; max-height: none !important; overflow: visible !important; margin: 0 !important; padding: 8px 2px 0 !important; background: none !important; color: inherit !important; font-size: 15px !important; font-weight: 600; text-align: left !important; text-shadow: none !important; }
@media (max-width: 900px) { .plgb-svc-photos .plg-gallery.wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .plgb-svc-photos .plg-gallery.wp-block-gallery { grid-template-columns: 1fr; } }

/* O nama: only one confirmed photo, so the "Naše znanje i iskustvo" block is text only. */
.plg-about-knowledge:not(:has(.plg-about-img)) { grid-template-columns: 1fr; }
.plg-about-knowledge:not(:has(.plg-about-img)) .plg-about-text { max-width: 860px; }

/* Reference without a cover photo: plain navy header instead of a fade into white. */
.plg-refhero:not(:has(img)) .wp-block-cover__background { background: #0e2149 !important; }


/* Reference list: projects without a photo are plain text, not links (20. 11.). */
.plg-ref-list strong { color: var(--plg-navy); font-weight: 600; }
.plg-ref-list li { cursor: default; }

/* Mobile menu: "Usluge" submenu closed until its arrow is tapped (21. 11.). */
.wp-block-navigation__responsive-container.is-menu-open .has-child:not(.plg-sub-open) > .wp-block-navigation__submenu-container { display: none !important; }
/* The arrow sits on top of the full-width "Usluge" link, so tapping it toggles instead of navigating. */
.wp-block-navigation__responsive-container.is-menu-open .has-child > .wp-block-navigation-submenu__toggle { z-index: 2; }
.wp-block-navigation__responsive-container.is-menu-open .has-child > .wp-block-navigation-submenu__toggle svg { transform: none !important; transition: transform .2s; }
.wp-block-navigation__responsive-container.is-menu-open .has-child.plg-sub-open > .wp-block-navigation-submenu__toggle svg { transform: rotate(180deg) !important; }
