/* =====================================================================
   ERPIFY - style.css
   Jedinstveni CSS fajl za erpify.hr (osim webshop stranica - vidi shop.css)
   Spojen iz starih css_erpiy.css + css_index.css + css_public.css
   ===================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

:root {
  --erp-primary: #2563eb;
  --erp-primary-soft: #e5edff;
  --erp-dark: #0f172a;
  --erp-accent: #22c55e;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-brand: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text: #0f172a;
  --muted: #4b5563;
  --brand-ink: #222288;

  --lh-body: 1.55;
  --lh-head: 1.15;
}


.poppins-thin {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.poppins-extralight {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.poppins-light {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.poppins-medium {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.poppins-semibold {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.poppins-extrabold {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.poppins-black {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.poppins-thin-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.poppins-extralight-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: italic;
}

.poppins-light-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.poppins-regular-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.poppins-medium-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.poppins-semibold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: italic;
}

.poppins-bold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.poppins-extrabold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: italic;
}

.poppins-black-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: italic;
}


body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.2px;
  line-height: var(--lh-body);
  color: var(--text);
  background: radial-gradient(circle at top, #e5edff 0, #f9fafb 45%, #eef2ff 100%);
  scroll-behavior: smooth;
}

section, header {
  overflow-x: hidden;
}

h1, h2, h3, h4, p {
  color: var(--text);
  text-decoration: none;
}

h1, h2, h3, .display-5, .h1, .h2, .h3 {
  line-height: var(--lh-head);
}

h5 {
  font-size: 16px;
  color: #777;
  font-weight: 100;
  margin: 8px 0;
}

hr {
  border-top: 1px solid #ddd;
  margin: 10px 0;
  color: #ddd;
  background: #eee;
}

.text-secondary {
  color: var(--muted) !important;
}

/* BRAND */

.brand {
  font-family: var(--font-brand);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--brand-ink);
}

/* NAVBAR */

.navbar {
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.35);
}

.navbar .nav-link {
  font-size: .9rem;
  color: #4b5563;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #111827;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--erp-primary), var(--erp-accent));
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.7);
}

/* HERO */

header.hero {
  display: flex;
  align-items: center;
  position: relative;
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-bg-orbit {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -120px;
  top: -80px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.32), transparent 65%),
    radial-gradient(circle at 70% 70%, rgba(56, 189, 248, 0.22), transparent 60%);
  opacity: .85;
  filter: blur(4px);
  z-index: -1;
  animation: slowShift 26s ease-in-out infinite alternate;
}

@keyframes slowShift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-18px, 16px, 0) scale(1.05); }
}

.badge-pill {
  border-radius: 999px;
  padding: .35rem .9rem;
  background: #eef2ff;
  border: 1px solid rgba(129, 140, 248, 0.7);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  color: #1f2937;
}

.btn-ghost {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .7);
  background: #ffffff;
  color: #111827;
}

.btn-ghost:hover {
  background: var(--erp-primary-soft);
  border-color: #2563eb;
  color: #111827;
}

/* KARTICE */

.erp-card {
  border-radius: 1.4rem;
  border: 1px solid rgba(148, 163, 184, .4);
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(148, 163, 184, .28);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.erp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 70px rgba(148, 163, 184, .32);
  border-color: #2563eb;
}

.erp-card .text-white {
  color: #111827 !important;
}

.chip {
  font-size: .72rem;
  border-radius: 999px;
  padding: .25rem .6rem;
  border: 1px solid rgba(148, 163, 184, .5);
  background: #f9fafb;
  color: #111827;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
  color: #6b7280;
}

/* ANIMACIJE NA SCROLL */

[data-animate] {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity .5s ease, transform .5s ease;
  will-change: opacity, transform;
}

[data-animate].show,
[data-animate].is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-animate="right"]  { transform: translate3d(16px, 0, 0); }
[data-animate="left"]   { transform: translate3d(-16px, 0, 0); }
[data-animate="top"]    { transform: translate3d(0, 16px, 0); }

[data-anim] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

[data-anim].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-anim="fade-left"]  { transform: translateX(-26px); }
[data-anim="fade-right"] { transform: translateX(26px); }

[data-anim="fade-left"].visible,
[data-anim="fade-right"].visible {
  transform: translateX(0);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1.5s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.o-nama-container {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1.5s ease-out;
}

.o-nama-container.animate {
  opacity: 1;
  transform: translateY(0);
}

section.animate {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 576px) {
  [data-animate="left"] { transform: translateY(12px) scale(.99) !important; }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* TIMELINE / STATISTIKA */

.timeline-line {
  position: absolute;
  left: 0.95rem;
  top: .3rem;
  bottom: .3rem;
  border-left: 1px dashed rgba(148, 163, 184, 0.7);
}

.timeline-dot {
  width: .85rem;
  height: .85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.7);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: .03em;
}

/* USE CASES / TESTIMONIALS */

.usecase-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #f9fafb;
  padding: 1.2rem;
}

.usecase-pill {
  font-size: .75rem;
  border-radius: 999px;
  padding: .25rem .6rem;
  background: #e5e7eb;
}

/* ERPIFY WHEEL (kotač modula) */

.erpify-wheel {
  position: relative;
  width: min(500px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  margin: .5rem 0;
}

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 12px #eef2ff, 0 18px 40px rgba(148, 163, 184, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.wheel-center-inner {
  text-align: center;
}

.wheel-orbit {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  animation: wheel-rotate 60s linear infinite;
  z-index: 1;
}

.wheel-slot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-item {
  width: 120px;
  height: 120px;
  padding: .65rem .7rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(148, 163, 184, .3);
  border: 1px solid rgba(15, 23, 42, 0.06);
  text-align: center;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
  transform-origin: center;
  animation: wheel-rotate-counter 60s linear infinite;
}

.wheel-item i {
  display: block;
}

.wheel-item:hover,
.wheel-item:focus-visible,
.wheel-item.active {
  border-color: #2563eb;
  box-shadow: 0 18px 40px rgba(37, 99, 235, .35);
  transform: scale(1.03);
  outline: none;
}

.tiny-text {
  font-size: .72rem;
  color: #4b5563;
}

.wheel-slot.pos-top         { top: 11%; left: 50%; transform: translateX(-50%); }
.wheel-slot.pos-top-right   { top: 11%; right: 11%; }
.wheel-slot.pos-right       { top: 50%; right: 11%; transform: translateY(-50%); }
.wheel-slot.pos-bottom-right{ bottom: 11%; right: 11%; }
.wheel-slot.pos-bottom      { bottom: 11%; left: 50%; transform: translateX(-50%); }
.wheel-slot.pos-bottom-left { bottom: 11%; left: 11%; }
.wheel-slot.pos-left        { top: 50%; left: 11%; transform: translateY(-50%); }
.wheel-slot.pos-top-left    { top: 11%; left: 11%; }

@keyframes wheel-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes wheel-rotate-counter {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

.erpify-wheel:hover .wheel-orbit,
.erpify-wheel:hover .wheel-item {
  animation-play-state: paused;
}

@media (max-width: 476px) {
  .wheel-slot.pos-top          { top: 2%; left: 50%; transform: translateX(-50%); }
  .wheel-slot.pos-top-right    { top: 14%; right: 12%; }
  .wheel-slot.pos-right        { top: 50%; right: 2%; transform: translateY(-50%); }
  .wheel-slot.pos-bottom-right { bottom: 14%; right: 12%; }
  .wheel-slot.pos-bottom       { bottom: 2%; left: 50%; transform: translateX(-50%); }
  .wheel-slot.pos-bottom-left  { bottom: 14%; left: 12%; }
  .wheel-slot.pos-left         { top: 50%; left: 2%; transform: translateY(-50%); }
  .wheel-slot.pos-top-left     { top: 14%; left: 12%; }
}

/* MODULI (krugovi s ikonama) */

.module-circle {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, .45);
  background: #fff;
  box-shadow: 0 12px 34px rgba(148, 163, 184, .22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .9rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.module-circle:hover {
  transform: translateY(-3px);
  border-color: var(--erp-primary);
  box-shadow: 0 18px 46px rgba(37, 99, 235, .18);
}

.module-circle .code {
  font-size: .75rem;
  opacity: .75;
  margin-bottom: .25rem;
}

.module-circle .title {
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.1;
}

.module-circle i {
  font-size: 1.6rem;
  margin-bottom: .35rem;
  color: var(--erp-primary);
}

@media (max-width: 576px) {
  .module-circle .title { font-size: .85rem; }
  .module-circle i { font-size: 1.35rem; }
}

.bg-sales      { background: linear-gradient(135deg, #bbf7d0, #ecfdf5); }
.bg-finance    { background: linear-gradient(135deg, #bfdbfe, #eff6ff); }
.bg-stock      { background: linear-gradient(135deg, #fde68a, #fffbeb); }
.bg-services   { background: linear-gradient(135deg, #fed7aa, #fff7ed); }
.bg-hr         { background: linear-gradient(135deg, #fecaca, #fef2f2); }
.bg-production { background: linear-gradient(135deg, #ddd6fe, #f5f3ff); }
.bg-asset      { background: linear-gradient(135deg, #bae6fd, #e0f2fe); }
.bg-bi         { background: linear-gradient(135deg, #e5e7eb, #f9fafb); }

/* BACK TO TOP */

.to-top {
  position: fixed;
  right: 18px;
  bottom: 8px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .65);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.to-top i {
  font-size: 1.25rem;
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top:hover {
  border-color: var(--erp-primary);
  box-shadow: 0 18px 46px rgba(37, 99, 235, .22);
}

.to-top:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .18), 0 18px 46px rgba(37, 99, 235, .22);
}

@media (max-width: 576px) {
  .to-top { right: 12px; bottom: 12px; width: 46px; height: 46px; }
}

/* NASLOVI / SADRŽAJ STRANICA */

#naslov {
  font-family: "Poiret One", sans-serif;
  font-size: 40px;
  text-align: center;
  font-weight: 100;
  margin-bottom: 20px;
}

@media screen and (max-width: 800px) {
  #naslov {
    width: 100%;
    font-size: 30px;
    margin-bottom: 20px;
  }
}

#omotac_1 {
  font-family: "Lato", "Open Sans", "Montserrat", sans-serif;
  width: 100%;
  color: #666;
  padding: 1% 2%;
  box-sizing: border-box;
}

/* KARTICE ČLANAKA (card_index - koristi section_blog.php i drugi) */

.card_index {
  position: relative;
  width: 98%;
  border-radius: 8px;
  margin: 6% 2%;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  opacity: 1;
  transition: transform .3s ease, opacity 1s, box-shadow 1s;
}

.card_index:hover {
  opacity: .8;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.5);
  transform: scale(.98);
}

.card_naslov {
  position: absolute;
  color: #fff;
  left: 10%;
  bottom: -15px;
  background: rgba(20, 20, 10, 0.5);
  text-align: center !important;
  width: 80%;
  height: 60px;
  min-height: 60px;
  padding: 5px 10px;
  box-shadow: 10px 10px 20px #ccc;
  transition: 1s;
}

.card_index:hover .card_naslov {
  position: absolute;
  bottom: 0;
  background: rgba(0, 180, 0, 0.9);
  box-shadow: 0 0 0 #ccc;
  width: 78%;
  left: 11%;
}

.card_naslov_p {
  text-align: center !important;
  font-size: 15px !important;
  letter-spacing: 1.5px;
  font-weight: 200 !important;
  color: #fff !important;
}

.card_body {
  height: 80px;
  min-height: 80px;
}

@media screen and (max-width: 800px) {
  .card_index {
    width: 96%;
    margin: 0 2% 20px 2%;
  }
}

.respon_50 {
  float: left;
  width: 46%;
  margin: 10px 1%;
}

@media screen and (max-width: 800px) {
  .respon_50 {
    width: 94%;
  }
}

/* ČLANAK (clanak.php) */

#clanak {
  width: 100%;
  color: #666;
}

#clanak span,
#clanak p {
  font-size: 16px;
}

@media screen and (max-width: 800px) {
  #clanak {
    width: 96%;
    margin: 0 auto;
  }
}

.container_cl {
  position: relative;
  margin: 0 auto;
}

.container_cl img {
  width: 100%;
}

.container_cl .content_cl {
  position: absolute;
  top: 0;
  background: rgba(0, 10, 10, 0.5);
  color: #ddd;
  width: 100%;
  font-size: 18px;
  padding: 10px 3%;
}

.container_cl .content_cl h1,
.container_cl .content_cl h2,
.container_cl .content_cl h3,
.container_cl .content_cl h4,
.container_cl .content_cl h5 {
  color: #eee;
}

.container_cl .content_cl h1 {
  font-size: 28px;
  color: #fff;
  font-weight: 100;
}

@media screen and (max-width: 1100px) {
  .container_cl .content_cl h1 {
    font-size: 4vw;
    margin-top: 0;
  }
}

.container_naslov {
  text-decoration: none;
  color: #666;
  font-size: 14pt;
  margin: 0;
  padding: 10px;
  font-weight: 300;
  vertical-align: middle;
  background-color: #f9f6fe;
}

.sadrzaj {
  padding: 10px;
}

.sadrzaj table {
  border-collapse: collapse;
  width: 100%;
}

.sadrzaj td,
.sadrzaj th {
  border: 1px solid #999;
  padding: 10px;
}

.sadrzaj tr:hover {
  background-color: #ddd;
}

.sadrzaj th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #4CAF50;
  color: white;
}

/* CIJENE (section_cijene1.php - carousel cijena) */

#section_cijene {
  width: 100%;
  margin: 0;
  padding: 0;
}

.carousel-cijene-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 430px;
  perspective: 1200px;
  margin: 0 auto;
}

.card-cijene {
  position: absolute;
  width: 280px;
  height: 400px;
  padding: 0;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform .5s ease, opacity .5s ease;
  opacity: .7;
  cursor: pointer;
  transform-origin: center;
  z-index: 0;
}

.active-cijena { transform: translateX(0) scale(1.2); opacity: 1; z-index: 3; }
.prev-cijena   { transform: translateX(-70%) scale(1); z-index: 2; }
.prev2-cijena  { transform: translateX(-140%) scale(.9); z-index: 1; }
.next-cijena   { transform: translateX(70%) scale(1); z-index: 2; }
.next2-cijena  { transform: translateX(140%) scale(.9); z-index: 1; }

.card-cijene img {
  height: 150px;
  width: 100%;
  object-fit: cover;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.proiz_naslov { height: 80px; }
.proiz_podnaslov { height: 70px; }

.proiz_naslov h4 {
  font-family: "Poiret One", sans-serif;
  font-size: 18px;
  color: #113366;
}

.proiz_podnaslov h5 {
  font-size: 14px;
  color: #002255;
}

.card-cijene ul {
  list-style: none;
  padding: 20px;
}

.card-cijene ul li {
  margin: 2px 0;
  font-size: 14px;
}

.card-cijene .btn-select {
  padding: 5px 20px;
  background-color: #0085c8;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.card-cijene .btn-select a {
  text-decoration: none;
  color: white;
}

@media screen and (max-width: 768px) {
  .carousel-cijene-container {
    display: block;
    width: 100%;
    height: auto;
    perspective: none;
  }

  .card-cijene {
    position: relative;
    width: 80%;
    min-height: 400px;
    margin: 50px auto;
    opacity: 1;
    transform: none;
    z-index: 1;
  }

  .active-cijena, .prev-cijena, .prev2-cijena, .next-cijena, .next2-cijena {
    transform: none;
    z-index: 1;
  }
}

/* FOOTER */

footer {
  border-top: 1px solid rgba(148, 163, 184, .6);
  background: #0f172a;
  color: #9ca3af;
}

.footer {
  font-family: "Poiret One", sans-serif;
  width: 100%;
  background: #fff;
  color: #999;
  text-align: center;
  font-size: 12px;
  padding: 20px;
  box-shadow: 0 -6px 10px #eee;
  margin-top: 30px;
}

.footer h2 {
  font-size: 18px;
  margin: 2px;
  color: #000040;
}

.footer h4 {
  font-size: 16px;
  margin: 2px;
  color: #000040;
}

.footer h4 a {
  font-size: 16px;
  margin: 2px;
  color: #000040;
  text-decoration: none;
}

.footer h4 a:hover {
  color: red;
  font-weight: 800;
  text-decoration: none;
}

/* SLIKE - vidljivost nakon učitavanja */

img {
  opacity: 1;
  transition: opacity .5s ease-in;
}

img[data-src] {
  opacity: 1;
  transition: opacity .5s ease-in;
}


.proizvod-kartica {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
    transition: transform .2s ease, box-shadow .2s ease;
}
.proizvod-kartica:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(13, 110, 253, .12);
}
.proizvod-ikona {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
    color: #fff;
    font-size: 1.8rem;
}

.section-gradient {
    background: linear-gradient(180deg, #eef2f9 0%, #ffffff 100%);
}

/* CIJENIK PAKETI (section_cijene.php - kartice paketa, 3 varijante) */

.cijene-kartica {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .4);
  border-radius: 1.2rem;
  padding: 2rem 1.5rem;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 34px rgba(148, 163, 184, .22);
  transition: transform .25s ease, box-shadow .25s ease;
}

.cijene-kartica:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(37, 99, 235, .18);
}

.cijene-istaknuta {
  border: 2px solid var(--erp-primary);
}

.cijene-badge {
  position: absolute;
  top: -14px;
  left: 1.5rem;
  background: var(--erp-primary);
  color: #fff !important;
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 999px;
}

.cijene-naziv {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.cijene-podnaslov {
  font-size: 14px;
  color: var(--muted) !important;
  margin-bottom: 1.5rem;
}

.cijene-cijena-wrap {
  margin-bottom: 1.5rem;
}

.cijene-cijena {
  font-size: 32px;
  font-weight: 700;
  color: var(--erp-dark) !important;
}

.cijene-period {
  font-size: 14px;
  color: var(--muted) !important;
}



.cijene-stara-cijena {
  font-size: 14px;
  color: #9ca3af !important;
  text-decoration: line-through;
  margin-left: 8px;
}

.cijene-znacajke {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex: 1;
  text-align: left;
}

.cijene-znacajke li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  color: var(--text) !important;
}

.cijene-znacajke li::before {
  content: "✓ ";
  color: var(--erp-primary);
  font-weight: 700;
}

.cijene-cta {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: .75rem;
  border: 1px solid var(--erp-primary);
  color: var(--erp-primary) !important;
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
}

.cijene-cta:hover {
  background: var(--erp-primary-soft);
}

.cijene-cta-primary {
  background: var(--erp-primary);
  color: #fff !important;
}

.cijene-cta-primary:hover {
  background: #1d4ed8;
  color: #fff !important;
}


/* REFERENCE (section_partneri.php - horizontalni scroll logoa s auto-pomakom) */

/* REFERENCE - STATICNI GRID (5 ili manje logoa, desktop: 5 stupaca x 20%) */

.reference-grid-wrap {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 12px;
    padding: 20px 24px;
    width: 100%;
    box-sizing: border-box;
}

.reference-grid-wrap .reference-item {
    width: 100%;
    min-width: 0;
}

.reference-grid-wrap .reference-logo {
    max-width: 100%;
}

/* Na mobitelu/tabletu - grid postaje horizontalni scroll red, isti
   ponasanje kao .reference-scroll-wrap, jer vertikalno gomilanje 2-3
   stupca po redu izduzuje sekciju previse na uskom ekranu. */
@media (max-width: 768px) {
    .reference-grid-wrap {
        display: flex;
        align-items: center;
        gap: 32px;
        overflow-x: auto;
        justify-items: unset;
        scrollbar-width: none;
    }

    .reference-grid-wrap::-webkit-scrollbar {
        display: none;
    }

    .reference-grid-wrap .reference-item {
        flex: 0 0 auto;
        width: auto;
        min-width: 100px;
    }

    .reference-grid-wrap .reference-logo {
        max-width: 130px;
        max-height: 50px;
    }
}

/* REFERENCE - SCROLL S AUTO-POMAKOM (6+ logoa) */

.reference-scroll-wrap {
    overflow: hidden;
    width: 100%;
}

.reference-scroll-track {
    display: flex;
    align-items: center;
    gap: 48px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 24px;
    scrollbar-width: none;
}

.reference-scroll-track::-webkit-scrollbar {
    display: none;
}

.reference-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    min-width: 120px;
}

.reference-logo {
    max-height: 60px;
    max-width: 160px;
    object-fit: contain;
    transition: transform .2s ease;
}

.reference-item a:hover .reference-logo {
    transform: scale(1.05);
}

@media (max-width: 576px) {
    .reference-scroll-track {
        gap: 32px;
        padding: 16px;
    }
    .reference-item {
        height: 56px;
        min-width: 90px;
    }
    .reference-logo {
        max-height: 48px;
        max-width: 120px;
    }
}