/* ─── STAMBENI PULS — Canvas custom theme ──────────────────────────────────── */

:root {
  --cnvs-themecolor:        #C0131A;
  --cnvs-themecolor-rgb:    192, 19, 26;
  --cnvs-body-font:         'DM Sans', system-ui, sans-serif;
  --cnvs-primary-font:      'DM Sans', system-ui, sans-serif;
  --cnvs-secondary-font:    'DM Serif Display', Georgia, serif;

  --sp-red:         #C0131A;
  --sp-red-dark:    #9A0F15;
  --sp-red-light:   #E8181F;
  --sp-dark:        #2B2B2B;
  --sp-dark-2:      #1E1E1E;
  --sp-mid:         #6B6B6B;
  --sp-light:       #F5F5F0;
  --sp-beige:       #E8E0D5;
  --sp-beige-dark:  #D9CFC2;
  --sp-border:      #E2DDD8;
}

/* ─── FLUID TIPOGRAFIJA (576px → 1400px) ───────────────────────────────────── */
h1, .h1 { font-size: clamp(2rem,    calc(2rem    + ((1vw - 5.76px) * 2.9126)), 3.5rem); }
h2, .h2 { font-size: clamp(1.625rem,calc(1.625rem + ((1vw - 5.76px) * 2.1845)), 2.75rem); }
h3, .h3 { font-size: clamp(1.375rem,calc(1.375rem + ((1vw - 5.76px) * 1.6990)), 2.25rem); }
h4, .h4 { font-size: clamp(1.125rem,calc(1.125rem + ((1vw - 5.76px) * 1.2136)), 1.75rem); }
h5, .h5 { font-size: clamp(1rem,    calc(1rem    + ((1vw - 5.76px) * 0.7282)), 1.375rem); }
body     { font-size: clamp(0.9375rem,calc(0.9375rem + ((1vw - 5.76px) * 0.2427)), 1.0625rem); }
.lead    { font-size: clamp(1.0625rem,calc(1.0625rem + ((1vw - 5.76px) * 0.6068)), 1.375rem); }

/* ─── TOP BAR ──────────────────────────────────────────────────────────────── */
#top-bar {
  background: var(--sp-red) !important;
  border-bottom: none !important;
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .02em;
}
#top-bar a,
#top-bar .top-links-container > li > a { color: rgba(255,255,255,.9); }
#top-bar a:hover { color: #fff; }

.topbar-emergency-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 4px;
  padding: 3px 14px 3px 10px;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  text-decoration: none;
}
.topbar-emergency-pill .lbl {
  font-weight: 400;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .8;
}

/* ─── HEADER ───────────────────────────────────────────────────────────────── */
#header { border-bottom: 1px solid var(--sp-border) !important; }
#header.sticky-header--shrink #header-wrap {
  background: #fff !important;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
#logo img { height: 46px; width: auto; }

.menu-item.nav-cta-btn > .menu-link > div {
  background: var(--sp-dark);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 5px;
  font-weight: 600;
  transition: background .2s;
}
.menu-item.nav-cta-btn > .menu-link:hover > div { background: var(--sp-red); }

/* ─── HERO ─────────────────────────────────────────────────────────────────── */
.hero-sp {
  background: var(--sp-dark-2);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-sp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(18,18,18,.98) 38%, rgba(18,18,18,.65) 62%, rgba(18,18,18,.15) 100%);
  z-index: 1;
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  opacity: .55;
}
.hero-sp-inner { position: relative; z-index: 2; width: 100%; padding: 80px 0; }

.hero-sp .pretitle-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--sp-red-light);
  margin-bottom: 20px;
}
.hero-sp .pretitle-tag::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--sp-red-light);
}
.hero-sp h1 {
  font-family: var(--cnvs-secondary-font);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  font-weight: 400;
  color: #fff;
  margin-bottom: 22px;
}
.hero-sp h1 em { color: #f0c0c0; font-style: italic; }
.hero-sp .hero-sub {
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  font-weight: 300;
  color: rgba(255,255,255,.72);
  line-height: 1.72;
  max-width: 510px;
  margin-bottom: 36px;
}
.hero-trust-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: rgba(255,255,255,.58);
}
.hero-trust-item i { color: var(--sp-red-light); font-size: 14px; }

.hero-deco-wrap {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  opacity: .07;
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 991px) { .hero-deco-wrap { display: none; } }

/* ─── STATS BAR ────────────────────────────────────────────────────────────── */
.sp-stats-wrap { background: #fff; border-bottom: 1px solid var(--sp-border); }
.sp-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.sp-stat {
  padding: 32px 20px;
  text-align: center;
  border-right: 1px solid var(--sp-border);
  transition: background .2s;
}
.sp-stat:last-child { border-right: none; }
.sp-stat:hover { background: var(--sp-light); }
.sp-stat .num {
  font-family: var(--cnvs-secondary-font);
  font-size: 2.25rem;
  color: var(--sp-red);
  line-height: 1;
  margin-bottom: 5px;
  letter-spacing: -.02em;
}
.sp-stat .lbl { font-size: 11px; font-weight: 600; color: var(--sp-mid); text-transform: uppercase; letter-spacing: .09em; }
.sp-stat .sub { font-size: 11.5px; color: var(--sp-mid); margin-top: 3px; }
@media (max-width: 767px) {
  .sp-stats-grid { grid-template-columns: repeat(2,1fr); }
  .sp-stat:nth-child(2) { border-right: none; }
  .sp-stat:nth-child(3), .sp-stat:last-child { border-top: 1px solid var(--sp-border); }
}

/* ─── PRETITLE ─────────────────────────────────────────────────────────────── */
.sp-pretitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sp-red);
  margin-bottom: 10px;
}
.sp-pretitle::before { content: ''; display: block; width: 18px; height: 2px; background: var(--sp-red); }

/* ─── SERVICE CARDS ─────────────────────────────────────────────────────────── */
.sp-fbox {
  background: #fff;
  border: 1px solid var(--sp-border);
  border-radius: 10px;
  padding: 32px 26px;
  height: 100%;
  transition: box-shadow .2s, transform .2s;
}
.sp-fbox:hover { box-shadow: 0 8px 28px rgba(0,0,0,.07); transform: translateY(-3px); }
.sp-fbox .icon-wrap {
  width: 48px; height: 48px;
  border-radius: 9px;
  background: rgba(192,19,26,.07);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: background .2s;
}
.sp-fbox:hover .icon-wrap { background: rgba(192,19,26,.13); }
.sp-fbox .icon-wrap i { font-size: 21px; color: var(--sp-red); }
.sp-fbox h4 { font-size: .975rem; font-weight: 600; margin-bottom: 8px; color: var(--sp-dark); }
.sp-fbox p  { font-size: .875rem; color: var(--sp-mid); line-height: 1.62; margin: 0 0 14px; }
.sp-fbox a.more {
  font-size: .825rem; font-weight: 600; color: var(--sp-red);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap .2s;
}
.sp-fbox a.more:hover { gap: 8px; }

/* ─── ABOUT ─────────────────────────────────────────────────────────────────── */
.sp-check-list { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 11px; }
.sp-check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .925rem; line-height: 1.5; }
.sp-check-list li i { font-size: 17px; color: var(--sp-red); flex-shrink: 0; margin-top: 2px; }

.about-img-wrap { position: relative; }
.about-img-ph {
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, var(--sp-beige-dark), var(--sp-border));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.about-img-ph i { font-size: 52px; color: var(--sp-beige-dark); opacity: .45; }
.about-badge {
  position: absolute; bottom: -16px; right: -16px;
  background: var(--sp-red); color: #fff;
  border-radius: 10px; padding: 16px 20px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(192,19,26,.3);
}
.about-badge .n { font-family: var(--cnvs-secondary-font); font-size: 2rem; line-height: 1; margin-bottom: 2px; }
.about-badge .t { font-size: 11px; font-weight: 500; opacity: .85; }

/* ─── ENERGY CTA ────────────────────────────────────────────────────────────── */
.energy-section { background: var(--sp-dark-2); position: relative; overflow: hidden; }
.energy-section::before {
  content: ''; position: absolute;
  top: 0; right: 0; bottom: 0; width: 40%;
  background: linear-gradient(135deg, transparent 30%, rgba(192,19,26,.12) 100%);
  pointer-events: none;
}
.energy-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(192,19,26,.18); border: 1px solid rgba(192,19,26,.35);
  color: #ff9090; font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 4px; margin-bottom: 14px;
}

/* ─── NEWS CARDS ─────────────────────────────────────────────────────────────── */
.sp-news-card {
  background: #fff; border: 1px solid var(--sp-border);
  border-radius: 10px; overflow: hidden; height: 100%;
  transition: box-shadow .2s, transform .2s;
}
.sp-news-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.08); transform: translateY(-3px); }
.sp-news-card .thumb {
  aspect-ratio: 16/9; background: var(--sp-beige);
  display: flex; align-items: center; justify-content: center;
}
.sp-news-card .thumb i { font-size: 30px; color: var(--sp-beige-dark); }
.sp-news-card .body { padding: 20px; }
.sp-news-card .meta { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.sp-news-card .cat {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sp-red); background: rgba(192,19,26,.07); padding: 2px 8px; border-radius: 3px;
}
.sp-news-card .date { font-size: 11.5px; color: var(--sp-mid); }
.sp-news-card h5 { font-size: .95rem; font-weight: 600; line-height: 1.4; margin-bottom: 7px; }
.sp-news-card p  { font-size: .85rem; color: var(--sp-mid); line-height: 1.6; margin-bottom: 14px; }
.sp-news-card .read-more {
  font-size: .825rem; font-weight: 600; color: var(--sp-dark);
  display: inline-flex; align-items: center; gap: 4px;
  transition: color .2s, gap .2s;
}
.sp-news-card .read-more:hover { color: var(--sp-red); gap: 8px; }

/* ─── KONTAKT ──────────────────────────────────────────────────────────────── */
.sp-contact-card {
  display: flex; align-items: flex-start; gap: 13px;
  background: #fff; border: 1px solid var(--sp-border);
  border-radius: 9px; padding: 16px; margin-bottom: 12px;
}
.sp-contact-card .ci {
  width: 40px; height: 40px; border-radius: 7px;
  background: rgba(192,19,26,.07);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sp-contact-card .ci i { font-size: 19px; color: var(--sp-red); }
.sp-contact-card .clabel { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sp-mid); margin-bottom: 2px; }
.sp-contact-card .cval { font-size: .875rem; font-weight: 600; color: var(--sp-dark); }
.sp-contact-card .csub { font-size: .775rem; color: var(--sp-mid); margin-top: 1px; }

.sp-emergency-block {
  background: var(--sp-dark-2); color: #fff; border-radius: 9px;
  padding: 20px; display: flex; gap: 13px; align-items: flex-start; margin-bottom: 18px;
}
.sp-emergency-block > i { font-size: 24px; color: var(--sp-red-light); flex-shrink: 0; margin-top: 2px; }
.sp-emergency-block h5 {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 4px;
}
.sp-emergency-block .phones { font-size: 1.05rem; font-weight: 600; line-height: 1.55; }
.sp-emergency-block .phones span { display: block; }
.sp-emergency-block .note { font-size: .75rem; color: rgba(255,255,255,.38); margin-top: 5px; }

.sp-map-ph {
  border-radius: 9px; border: 1px solid var(--sp-border);
  background: var(--sp-beige); height: 190px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  color: var(--sp-mid); font-size: .78rem;
}
.sp-map-ph i { font-size: 26px; color: var(--sp-red); opacity: .4; }

/* ─── FOOTER ────────────────────────────────────────────────────────────────── */
#footer { background: var(--sp-dark-2) !important; }
#footer .widget h4 { color: rgba(255,255,255,.32) !important; }
#footer .widget p,
#footer .widget li a,
#footer .list-unstyled li { color: rgba(255,255,255,.52) !important; font-size: .85rem; }
#footer .widget li a:hover { color: #fff !important; }
#footer .widget_links ul li::before { border-color: rgba(255,255,255,.12) !important; }
#copyrights { background: rgba(0,0,0,.28) !important; border-top: 1px solid rgba(255,255,255,.06) !important; }
#copyrights, #copyrights a { color: rgba(255,255,255,.28) !important; font-size: .78rem; }
#copyrights a:hover { color: rgba(255,255,255,.65) !important; }

/* ─── MISC ──────────────────────────────────────────────────────────────────── */
.section-bg-light { background: var(--sp-light) !important; }
.section-bg-beige { background: var(--sp-beige) !important; }
.color { color: var(--sp-red) !important; }
.button { border-radius: 5px !important; }
