/* Dodaci za CMS verziju: pomoćne klase pluginova, podstranice, kontakt forma, galerija, uređivački način. */

/* Sekcije */
.section.pt0 { padding-top: 0; }
.section__head .link { display: inline-block; margin-top: .4rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.section__head .link:hover { text-decoration: underline; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p, .section--dark .sub, .section--dark .split__text p { color: rgba(255,255,255,.78); }
.section--dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #fff; }
.section--dark .card p { color: rgba(255,255,255,.7); }
.section--dark .checks li { color: rgba(255,255,255,.85); }
.section--dark .brands li { background: rgba(255,255,255,.1); color: #fff; }
.section--panel .card { background: #fff; }
.razmak-s { height: 24px; } .razmak-m { height: 48px; } .razmak-l { height: 96px; }

/* Rasporedi */
.cols { display: grid; gap: 1.6rem; align-items: start; }
.cols--2 { grid-template-columns: repeat(2, 1fr); }
.cols--3 { grid-template-columns: repeat(3, 1fr); }
.cols--4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }
.center .hero__actions { justify-content: center; }
.prose { max-width: 760px; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.hero__actions { margin-top: .4rem; }
.split__text .hero__actions { margin-top: .4rem; }
.link { color: var(--accent); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Kartice kao link */
a.card { display: block; text-decoration: none; color: inherit; }
a.card h3 { color: var(--ink); }
a.card:hover h3 { color: var(--accent); }

/* Cjenik */
.price-table .price-table { padding: 0; border: 0; box-shadow: none; }
.price-note { margin: .6rem 0 0; font-size: .88rem; color: var(--muted); }
.prices + .example { margin-top: 1.6rem; }

/* Slike */
figure.slika { margin: 0 0 1.2rem; }
figure.slika img { border-radius: var(--radius); box-shadow: var(--shadow); }
figure.slika--puna img { border-radius: 0; box-shadow: none; width: 100%; }
figure.slika figcaption { font-size: .88rem; color: var(--muted); margin-top: .5rem; }
.split__media figure.slika { margin: 0; }
.split__media .split__inset { position: absolute; right: -6%; bottom: -10%; width: 46%; border: 6px solid #fff; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Kontakt */
.contact__item a { text-decoration: none; font-weight: 600; }
.section:not(.section--dark) .contact__label { color: var(--muted); }
.section:not(.section--dark) .contact__item--muted { color: var(--muted); }
.section:not(.section--dark) .contact__maplink { color: var(--muted); }
.karta iframe { width: 100%; aspect-ratio: 4 / 3; max-height: 480px; border: 0; border-radius: var(--radius); background: #2b3138; }
.karta .contact__maplink { display: inline-block; margin-top: .6rem; font-size: .9rem; }

/* Naslov podstranice */
.phead { position: relative; isolation: isolate; background: var(--ink); color: #fff; padding: clamp(3rem, 7vw, 5.5rem) 0; overflow: hidden; }
.phead__bg { position: absolute; inset: 0; z-index: -2; }
.phead__bg img { width: 100%; height: 100%; object-fit: cover; }
.phead--img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(13,27,36,.92), rgba(13,27,36,.55)); }
.phead h1 { margin-bottom: .3em; }
.phead .lead { margin-bottom: 0; max-width: 680px; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: 1.2rem; }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span::before { content: "/"; margin: 0 .5rem; color: rgba(255,255,255,.4); }

/* Harmonika */
.acc { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.2rem; margin-bottom: .8rem; background: #fff; }
.acc summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; padding: 1rem 0; list-style: none; position: relative; padding-right: 2rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; position: absolute; right: 0; top: .8rem; font-size: 1.4rem; color: var(--accent); font-weight: 400; }
.acc[open] summary::after { content: "–"; }
.acc__body { padding: 0 0 1rem; color: var(--ink-2); }
.acc__body p:last-child { margin-bottom: 0; }

/* Galerija + lightbox */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(14,16,19,.94); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 86vh; border-radius: 6px; }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; padding: .5rem 1rem; }
.lb-x { top: .6rem; right: .8rem; } .lb-p { left: .4rem; top: 50%; transform: translateY(-50%); } .lb-n { right: .4rem; top: 50%; transform: translateY(-50%); }
.lb-c { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: .9rem; }

/* Podnožje */
.footer__cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; align-items: start; margin-bottom: 1.8rem; }
.footer__col--logo img { width: 220px; }
.footer__col h4 { font-family: var(--font-head); color: #fff; font-size: .95rem; margin: 0 0 .7rem; letter-spacing: .04em; text-transform: uppercase; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: .4rem; }
.footer__col a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer__col a:hover { color: #fff; }
.footer__col p, .footer__col address { margin: 0 0 .4rem; font-style: normal; color: rgba(255,255,255,.65); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__links a { margin-left: 1.2rem; color: rgba(255,255,255,.65); text-decoration: none; }
.footer__links a:first-child { margin-left: 0; }
.footer__links a:hover { color: #fff; }

/* Kontakt forma */
.kforma { background: var(--panel); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); color: var(--ink); }
.section--dark .kforma { background: #fff; }
.kforma h3 { margin-bottom: .3rem; }
.kforma__note { color: var(--muted); font-size: .95rem; margin-bottom: 1.2rem; }
.kforma label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
.kforma input:not([type=checkbox]), .kforma textarea { display: block; width: 100%; margin-top: .35rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
.kforma input:focus, .kforma textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.kforma .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.kforma .fcheck { display: flex; gap: .6rem; align-items: start; font-weight: 400; font-size: .88rem; color: var(--muted); }
.kforma .fcheck input { margin-top: .25rem; }
.kforma .btn { margin-top: .3rem; }
.form-poruka { padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1.2rem; font-size: .95rem; }
.form-poruka--success { background: #e6f4ea; color: #1e6b3a; }
.form-poruka--error { background: #fdecea; color: #b3261e; }

/* Uređivački način */
body.cms-toolbar-expanded .header { top: 46px; }
.cms-toolbar-expanded .cms-plugin:empty { min-height: 20px; }

@media (max-width: 960px) {
  .cols--3, .cols--4 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .cols--2, .cols--3, .cols--4 { grid-template-columns: 1fr; }
  .kforma .frow { grid-template-columns: 1fr; gap: 0; }
  .footer__cols { grid-template-columns: 1fr; }
}
.section--dark .link, .section--dark .card__icon, .phead .kicker { color: var(--accent-light); }
.section--dark .card__icon { background: rgba(133,153,255,.14); }
.prices--csv { align-items: start; }
.downloads { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.btn--ghost-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost-dark:hover { background: var(--ink); color: #fff; }
.example + .btn, .example + a.btn { margin-top: 1.4rem; }

/* Novosti: kartice, straničenje, pojedina objava */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.news--2 { grid-template-columns: repeat(2, 1fr); }
.news--4 { grid-template-columns: repeat(4, 1fr); }
.ncard { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.ncard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.ncard__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel); }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; }
.ncard__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.5rem; }
.ncard__meta { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-bottom: .6rem; }
.ncard__tag { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.ncard__skica { background: #fff3cd; color: #7a5a00; font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 6px; text-transform: uppercase; letter-spacing: .06em; }
.ncard--skica { border-style: dashed; }
.ncard h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: .5rem; }
.ncard:hover h3 { color: var(--accent); }
.ncard p { color: var(--muted); font-size: .95rem; margin: 0 0 1rem; flex: 1; }
.ncard .link { font-size: .92rem; }
.section--dark .ncard { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #fff; }
.section--dark .ncard h3 { color: #fff; }
.section--dark .ncard p, .section--dark .ncard__meta { color: rgba(255,255,255,.7); }
.section--panel .ncard { background: #fff; }
.news--4 .ncard__body { padding: 1.1rem 1.2rem 1.2rem; }
.news--4 .ncard h3 { font-size: 1.05rem; }
.pager { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: 2.4rem; font-size: .95rem; }
.pager a, .pager span { padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 600; background: #fff; }
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .pager__on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .pager__dots { border: 0; background: none; color: var(--muted); }
.phead__meta { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin: 0; color: rgba(255,255,255,.75); font-size: .95rem; }
.phead__meta .ncard__tag { color: var(--accent-light); }
.post { max-width: 760px; }
.post__img { margin: 0 0 2rem; }
.post__lead { font-size: 1.18rem; color: var(--ink-2); font-weight: 500; }
.post p, .post li { font-size: 1.05rem; }
.post img { border-radius: var(--radius); }
.post__back { margin-top: 2.4rem; }
.cms-napomena { padding: 1rem 1.2rem; margin: 1rem 0; border: 1px dashed var(--accent); border-radius: var(--radius); color: var(--muted); font-size: .92rem; }
@media (max-width: 960px) { .news, .news--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .news, .news--2, .news--4 { grid-template-columns: 1fr; } }
