/*
Theme Name: PGE Celje
Theme URI: https://www.pge-celje.si
Author: PGE Celje
Author URI: https://www.pge-celje.si
Description: Moderna tema za Poklicno gasilsko enoto Celje. Čist, profesionalen dizajn z rdečo identiteto.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pge-celje
Tags: custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   RESET & BASE
========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:          #CC2200;
  --red-dark:     #991A00;
  --red-light:    #FF3A1A;
  --charcoal:     #1A1A1A;
  --charcoal-mid: #2C2C2C;
  --charcoal-lt:  #3D3D3D;
  --off-white:    #F8F6F3;
  --warm-gray:    #E8E4E0;
  --text-muted:   #6B6460;
  --text-light:   #9A9490;
  --border:       rgba(0,0,0,0.08);
  --font:         'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    14px;
  --radius-xl:    20px;
  --shadow-sm:    0 1px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg:    0 8px 36px rgba(0,0,0,0.12);
  --max-w:        1180px;
  --transition:   0.18s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--charcoal);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* =========================================================
   TYPOGRAPHY
========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--charcoal);
}
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3.5vw, 38px); }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 15px; font-weight: 700; letter-spacing: 0; }
p  { line-height: 1.7; color: var(--text-muted); }

/* =========================================================
   UTILITIES
========================================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header h2 { color: var(--charcoal); }
.section-header p {
  max-width: 560px;
  margin: 14px auto 0;
  font-size: 16px;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(204,34,0,0.3);
  color: #fff;
}

.btn-secondary {
  background: var(--charcoal);
  color: #fff;
}
.btn-secondary:hover {
  background: var(--charcoal-lt);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.22);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}
.btn-outline:hover {
  background: var(--red);
  color: #fff;
}

/* =========================================================
   TOP BAR
========================================================= */
.site-topbar {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  font-size: 12.5px;
  padding: 7px 0;
  letter-spacing: 0.01em;
}
.site-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-item a { color: inherit; transition: color var(--transition); }
.topbar-item a:hover { color: #fff; }
.topbar-item svg { width: 13px; height: 13px; color: var(--red-light); flex-shrink: 0; }

.topbar-socials {
  display: flex;
  gap: 8px;
  align-items: center;
}
.topbar-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  color: rgba(255,255,255,0.55);
  transition: all var(--transition);
}
.topbar-socials a:hover {
  border-color: var(--red);
  color: #fff;
  background: rgba(204,34,0,0.15);
}
.topbar-socials a svg { width: 13px; height: 13px; }

/* =========================================================
   NAVIGATION
========================================================= */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 24px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--red);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 22px; height: 22px; color: #fff; }
.logo-text strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  line-height: 1.2;
}
.logo-text span {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 400;
}

/* Main menu */
.primary-nav { display: flex; align-items: center; gap: 2px; }
.primary-nav > li { position: relative; }
.primary-nav > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.primary-nav > li > a:hover,
.primary-nav > li.current-menu-item > a,
.primary-nav > li.current-menu-ancestor > a {
  background: var(--off-white);
  color: var(--red);
}
.primary-nav > li > a svg { width: 13px; height: 13px; opacity: 0.5; transition: opacity var(--transition); }
.primary-nav > li:hover > a svg { opacity: 1; }

/* Dropdown */
.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--transition);
  z-index: 100;
}
.primary-nav > li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-nav .sub-menu li a {
  display: block;
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.primary-nav .sub-menu li a:hover {
  background: var(--off-white);
  color: var(--red);
}

/* Nav CTA + hamburger */
.nav-cta {
  background: var(--red) !important;
  color: #fff !important;
  border-radius: var(--radius-md);
  padding: 9px 18px !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--red-dark) !important; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: #fff;
  padding: 80px 24px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.02em;
}
.mobile-nav a:hover { color: var(--red); }
.mobile-menu-close {
  position: absolute;
  top: 16px; right: 20px;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu-close svg { width: 20px; height: 20px; }

/* =========================================================
   HERO
========================================================= */
.site-hero {
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
  padding: 90px 0 80px;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero-bg-layer {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1A1A1A 0%, #2C1008 55%, #1A0804 100%);
}
.hero-glow {
  position: absolute;
  right: -120px; top: -120px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204,34,0,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(204,34,0,0.2);
  border: 1px solid rgba(204,34,0,0.4);
  color: #FF7A60;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-badge svg { width: 13px; height: 13px; }
.hero-title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.07;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero-title em { font-style: normal; color: var(--red-light); }
.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.52);
  line-height: 1.72;
  margin-bottom: 36px;
  max-width: 460px;
}
.hero-desc p { color: rgba(255,255,255,0.52); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero right — stat cards */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(204,34,0,0.12);
  border: 1px solid rgba(204,34,0,0.25);
  padding: 9px 16px;
  border-radius: 100px;
  color: rgba(255,255,255,0.65);
  font-size: 12.5px;
  font-weight: 500;
  align-self: flex-start;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #FF4422;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(255,68,34,0.4); }
  50% { opacity: 0.7; transform: scale(0.75); box-shadow: 0 0 0 6px rgba(255,68,34,0); }
}
.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background var(--transition);
}
.stat-card:hover { background: rgba(255,255,255,0.08); }
.stat-icon {
  width: 46px; height: 46px;
  background: rgba(204,34,0,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 22px; height: 22px; color: var(--red-light); }
.stat-info { }
.stat-num { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1; }
.stat-lbl { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 3px; }

/* =========================================================
   PILLARS STRIP
========================================================= */
.pillars-strip {
  background: var(--off-white);
  padding: 56px 0;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--warm-gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pillar-card {
  background: #fff;
  padding: 36px 32px;
  transition: background var(--transition);
}
.pillar-card:hover { background: #FDFCFB; }
.pillar-icon {
  width: 50px; height: 50px;
  background: var(--off-white);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: background var(--transition);
}
.pillar-card:hover .pillar-icon { background: #FFF0ED; }
.pillar-icon svg { width: 24px; height: 24px; color: var(--red); }
.pillar-card h3 { font-size: 17px; margin-bottom: 10px; color: var(--charcoal); }
.pillar-card p { font-size: 14px; line-height: 1.7; }

/* =========================================================
   NEWS SECTION
========================================================= */
.news-section { padding: 80px 0; background: #fff; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  background: #fff;
  text-decoration: none;
  color: inherit;
}
.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.news-thumb {
  position: relative;
  height: 192px;
  background: var(--warm-gray);
  overflow: hidden;
  flex-shrink: 0;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-cat {
  position: absolute; top: 14px; left: 14px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 5px;
}
.news-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
}
.news-meta svg { width: 12px; height: 12px; }
.news-body h3 { font-size: 15.5px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; color: var(--charcoal); letter-spacing: -0.01em; }
.news-body p { font-size: 13.5px; line-height: 1.62; flex-grow: 1; }
.news-readmore {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  margin-top: 16px;
  transition: gap var(--transition);
}
.news-card:hover .news-readmore { gap: 8px; }
.news-readmore svg { width: 14px; height: 14px; }
.news-footer { text-align: center; margin-top: 44px; }

/* =========================================================
   SERVICES SECTION
========================================================= */
.services-section { padding: 80px 0; background: var(--off-white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-icon {
  width: 50px; height: 50px;
  background: #FFF0ED;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: background var(--transition);
}
.service-card:hover .service-icon { background: #FFE0D9; }
.service-icon svg { width: 24px; height: 24px; color: var(--red); }
.service-card h3 { font-size: 16px; margin-bottom: 10px; color: var(--charcoal); }
.service-card p { font-size: 13.5px; line-height: 1.65; }

/* =========================================================
   SERVISI (dark section)
========================================================= */
.servisi-section {
  padding: 80px 0;
  background: var(--charcoal);
}
.servisi-section .section-header h2 { color: #fff; }
.servisi-section .section-header p { color: rgba(255,255,255,0.45); }
.servisi-section .eyebrow { color: var(--red-light); }
.servisi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.servis-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  text-align: center;
  transition: all var(--transition);
  display: block;
  text-decoration: none;
  color: inherit;
}
.servis-card:hover {
  background: rgba(204,34,0,0.12);
  border-color: rgba(204,34,0,0.3);
  transform: translateY(-3px);
}
.servis-icon {
  width: 54px; height: 54px;
  margin: 0 auto 18px;
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.servis-card:hover .servis-icon { background: rgba(204,34,0,0.25); }
.servis-icon svg { width: 26px; height: 26px; color: var(--red-light); }
.servis-card h3 { font-size: 14.5px; font-weight: 700; color: #fff; margin-bottom: 8px; letter-spacing: -0.01em; }
.servis-card p { font-size: 12.5px; color: rgba(255,255,255,0.4); line-height: 1.6; }

/* =========================================================
   CTA SECTION
========================================================= */
.cta-section { padding: 80px 0; background: #fff; }
.cta-box {
  background: var(--charcoal);
  border-radius: var(--radius-xl);
  padding: 60px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.cta-glow-left {
  position: absolute; left: -100px; top: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(204,34,0,0.22) 0%, transparent 65%);
  pointer-events: none;
}
.cta-text { position: relative; }
.cta-text h2 { font-size: clamp(22px, 3vw, 30px); color: #fff; margin-bottom: 12px; }
.cta-text p { color: rgba(255,255,255,0.48); font-size: 15px; line-height: 1.68; max-width: 460px; }
.cta-action { flex-shrink: 0; position: relative; }

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  background: var(--charcoal-mid);
  padding: 64px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 52px;
}
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-brand-logo .logo-icon { width: 38px; height: 38px; }
.footer-brand-logo .logo-text strong { color: #fff; }
.footer-brand-logo .logo-text span { color: rgba(255,255,255,0.3); }
.footer-brand > p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.38);
  line-height: 1.72;
  max-width: 270px;
  margin-bottom: 22px;
}
.footer-contacts { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: rgba(255,255,255,0.48);
  transition: color var(--transition);
  text-decoration: none;
}
.footer-contact-item:hover { color: rgba(255,255,255,0.85); }
.footer-contact-item svg { width: 14px; height: 14px; color: var(--red-light); flex-shrink: 0; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-socials a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.45);
  transition: all var(--transition);
}
.footer-socials a:hover {
  border-color: var(--red);
  color: #fff;
  background: rgba(204,34,0,0.15);
}
.footer-socials a svg { width: 15px; height: 15px; }

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom p { font-size: 12.5px; color: rgba(255,255,255,0.28); }
.footer-emergency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: background var(--transition);
}
.footer-emergency:hover { background: var(--red-dark); color: #fff; }
.footer-emergency svg { width: 15px; height: 15px; }

/* =========================================================
   SINGLE / ARCHIVE PAGES
========================================================= */
.page-hero {
  background: var(--charcoal);
  padding: 52px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1A1A1A 0%, #2C1008 100%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(26px, 4vw, 42px); }
.page-hero p { color: rgba(255,255,255,0.5); margin-top: 10px; font-size: 16px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.breadcrumb a:hover { color: rgba(255,255,255,0.85); }
.breadcrumb svg { width: 12px; height: 12px; }

.main-content { padding: 64px 0; }
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* Post content */
.entry-content { max-width: 720px; }
.entry-content h2 { margin: 36px 0 16px; font-size: 24px; }
.entry-content h3 { margin: 28px 0 12px; font-size: 19px; }
.entry-content p { margin-bottom: 18px; color: var(--text-muted); }
.entry-content ul, .entry-content ol {
  padding-left: 20px;
  margin-bottom: 18px;
  color: var(--text-muted);
}
.entry-content ul li { list-style: disc; margin-bottom: 6px; }
.entry-content ol li { list-style: decimal; margin-bottom: 6px; }
.entry-content img { border-radius: var(--radius-md); margin: 24px 0; }
.entry-content a { color: var(--red); text-decoration: underline; }
.entry-content blockquote {
  border-left: 3px solid var(--red);
  padding: 16px 20px;
  background: var(--off-white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--charcoal);
}

/* Sidebar */
.sidebar { position: sticky; top: 90px; }
.sidebar-widget {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-widget h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
}
.sidebar-recent li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-recent li:last-child { border-bottom: none; }
.sidebar-recent a { font-size: 13.5px; font-weight: 600; color: var(--charcoal); transition: color var(--transition); }
.sidebar-recent a:hover { color: var(--red); }
.sidebar-recent .date { font-size: 12px; color: var(--text-light); margin-top: 3px; }

/* Archive grid */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* =========================================================
   CONTACTS PAGE
========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.contact-info-card h3 { margin-bottom: 24px; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: none; }
.contact-row-icon {
  width: 38px; height: 38px;
  background: #FFF0ED;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row-icon svg { width: 18px; height: 18px; color: var(--red); }
.contact-row-text strong { display: block; font-size: 13px; color: var(--text-light); font-weight: 500; margin-bottom: 3px; }
.contact-row-text a, .contact-row-text span { font-size: 15px; font-weight: 600; color: var(--charcoal); }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { flex-direction: row; flex-wrap: wrap; }
  .stat-card { flex: 1; min-width: 180px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .content-wrapper { grid-template-columns: 1fr; }
  .servisi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-topbar { display: none; }
  .primary-nav, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .pillars-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .cta-box { flex-direction: column; text-align: center; padding: 40px 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .archive-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero-actions { flex-direction: column; }
  .hero-right { flex-direction: column; }
  .hero-live-badge { align-self: auto; }
  .servisi-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   COMMENTS
========================================================= */
.comments-area { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--border); }
.comments-area h2 { font-size: 22px; margin-bottom: 28px; }
.comment { padding: 20px 0; border-bottom: 1px solid var(--border); }
.comment-author { font-weight: 700; margin-bottom: 6px; }
.comment-date { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
.comment-content p { font-size: 14px; }

/* =========================================================
   WP CORE CLASSES
========================================================= */
.alignleft { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--text-light); margin-top: 6px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.sticky { }
.bypostauthor { }

/* =========================================================
   PAGE TEMPLATES
   Velja za vse 4 template variante
========================================================= */

/* ── Skupne lastnosti ─────────────────────────────────── */
.tpl-featured-img {
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tpl-featured-img img {
  width: 100%;
  height: auto;
  display: block;
}

.page-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
.page-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  color: var(--charcoal);
  transition: all var(--transition);
}
.page-links a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ── Template 1 & 3: brez sidebara ───────────────────── */
.tpl-fullwidth  { padding: 64px 0; }
.tpl-centered   { padding: 64px 0; }

/* entry-content--full: raztegne se čez celotno širino vsebinskega stolpca */
.entry-content--full {
  max-width: 100%;
}

/* ── Template 3 & 4: centrirana vsebina ──────────────── */
.tpl-centered-wrap {
  max-width: 760px;
  margin: 0 auto;
}

/* Ko je centered template s stranskim menijem,
   je .main-centered-col ozki stolpec, sidebar pa je fiksne širine */
.main-centered-col .entry-content--centered,
.entry-content--centered {
  max-width: 760px;
  margin: 0 auto;
}
.tpl-featured-img--centered {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.tpl-comments-wrap {
  max-width: 760px;
  margin: 0 auto;
}

/* ── Sidebar pozicija: levo ───────────────────────────── */
.content-wrapper--sidebar-left {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}
.content-wrapper--sidebar-left .sidebar {
  order: -1; /* sidebar gre vizualno levo */
}

/* ── Sidebar pozicija: desno ──────────────────────────── */
.content-wrapper--sidebar-right {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* ── Sidebar skupni CSS ───────────────────────────────── */
.sidebar { position: sticky; top: 90px; }

.sidebar-widget {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.sidebar-widget:last-child { margin-bottom: 0; }

.sidebar-widget h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
}

.sidebar-recent { display: flex; flex-direction: column; }
.sidebar-recent li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-recent li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-recent a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.45;
  display: block;
  transition: color var(--transition);
}
.sidebar-recent a:hover { color: var(--red); }
.sidebar-recent .date {
  font-size: 11.5px;
  color: var(--text-light);
  margin-top: 3px;
}

.sidebar-cats { display: flex; flex-direction: column; gap: 4px; }
.sidebar-cats li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--charcoal);
  transition: all var(--transition);
}
.sidebar-cats li a:hover {
  background: #FFF0ED;
  color: var(--red);
}
.sidebar-cats .cat-count {
  font-size: 11px;
  font-weight: 700;
  background: var(--warm-gray);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: 100px;
}
.sidebar-cats li a:hover .cat-count {
  background: rgba(204,34,0,0.12);
  color: var(--red);
}

/* Klic v sili sidebar widget */
.sidebar-emergency {
  background: var(--charcoal) !important;
  border-color: transparent !important;
  text-align: center;
}
.sidebar-emergency h4 { color: rgba(255,255,255,0.4) !important; }
.sidebar-emergency-icon {
  width: 48px; height: 48px;
  background: rgba(204,34,0,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.sidebar-emergency-icon svg { color: var(--red-light); }
.sidebar-emergency-num {
  display: block;
  font-size: 42px;
  font-weight: 800;
  color: var(--red-light);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
  transition: color var(--transition);
}
.sidebar-emergency-num:hover { color: #fff; }
.sidebar-emergency p {
  color: rgba(255,255,255,0.38) !important;
  font-size: 12.5px;
  line-height: 1.6;
}
.sidebar-emergency p a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.sidebar-emergency p a:hover { color: #fff; }

/* ── Responsive: sidebar na mobilu gre pod vsebino ───── */
@media (max-width: 900px) {
  .content-wrapper--sidebar-left,
  .content-wrapper--sidebar-right {
    grid-template-columns: 1fr;
  }
  .content-wrapper--sidebar-left .sidebar {
    order: 0; /* nazaj pod vsebino */
  }
  .sidebar { position: static; }
  .tpl-centered-wrap { max-width: 100%; }
}

/* =========================================================
   MOBILE MENU — popravljeno
========================================================= */

/* Overlay za zapiranje ob kliku izven */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 997;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-overlay.is-visible {
  display: block;
  opacity: 1;
}

/* Mobile menu panel — drsi iz desne */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  z-index: 999;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu.is-open {
  transform: translateX(0);
}

/* Header znotraj mobile menija */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-menu-close {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.mobile-menu-close:hover {
  background: var(--off-white);
  border-color: var(--warm-gray);
}
.mobile-menu-close svg { width: 18px; height: 18px; }

/* Navigacijski links */
.mobile-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}
.mobile-nav-list { list-style: none; }
.mobile-nav-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
  letter-spacing: -0.01em;
}
.mobile-nav-list li a:hover {
  color: var(--red);
  background: var(--off-white);
  padding-left: 24px;
}
.mobile-nav-list li:last-child a { border-bottom: none; }

/* Sub-menu v mobilnem meniju */
.mobile-nav-list .sub-menu {
  background: var(--off-white);
}
.mobile-nav-list .sub-menu li a {
  padding: 10px 20px 10px 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.mobile-nav-list .sub-menu li a:hover {
  color: var(--red);
  padding-left: 36px;
}

/* Footer znotraj mobile menija */
.mobile-menu-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.mobile-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition);
}
.mobile-contact-item:hover { color: var(--charcoal); }
.mobile-contact-item svg { width: 15px; height: 15px; color: var(--red); flex-shrink: 0; }
.mobile-emergency {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: background var(--transition);
}
.mobile-emergency:hover { background: var(--red-dark); color: #fff; }
.mobile-emergency svg { width: 16px; height: 16px; }

/* Hamburger — animacija v X ob odpiranju */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.hamburger:hover {
  border-color: var(--red);
  background: #FFF0ED;
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}
/* X animacija ko je meni odprt */
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Sticky header shadow class */
.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.10);
}

/* Touch dropdown odprt */
.primary-nav > li.drop-open .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Prikaz hamburgerja na mobilnih */
/* Desktop — hamburger skrit, nav viden */
@media (min-width: 769px) {
  .hamburger { display: none !important; }
  .mobile-menu { display: none !important; }
  .mobile-overlay { display: none !important; }
}

/* Mobil — hamburger viden, nav skrit */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .primary-nav { display: none !important; }
  .nav-cta { display: none; }
  .topbar-item--address { display: none; }
}
@media (max-width: 480px) {
  .topbar-left { gap: 12px; }
}
