/* =====================================================================
   Romana Lesjak — predstavitvena stran
   Barvna paleta: primarna #2D3D34, sekundarna #4A6853, ozadje #F7F4EE, poudarek #A67054
   ===================================================================== */

:root {
  --c-primary: #2D3D34;
  --c-secondary: #4A6853;
  --c-bg: #F7F4EE;
  --c-accent: #A67054;
  --c-white: #FFFFFF;
  --c-ink: #23271F;
  --c-muted: #5B6459;
  --c-border: #E1DACD;
  --c-card: #FFFFFF;

  --font-heading: -apple-system, "Segoe UI", "Outfit", "Poppins", Roboto, Arial, sans-serif;
  --font-body: -apple-system, "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -14px rgba(45, 61, 52, 0.35);
  --shadow-sm: 0 4px 14px -8px rgba(45, 61, 52, 0.3);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-secondary); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--c-primary); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-primary);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; background: var(--c-primary); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm); z-index: 1000; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 100px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: #1f2b24; color: #fff; transform: translateY(-1px); }
.btn--secondary { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn--secondary:hover { background: var(--c-primary); color: #fff; }
.btn--cta { background: var(--c-accent); color: #fff; }
.btn--cta:hover { background: #8f5c44; color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: #fff; color: var(--c-primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6em; }

.flash { padding: 14px 18px; border-radius: var(--radius-sm); margin: 18px 0; font-weight: 600; }
.flash--success { background: #e4efe2; color: #234a2c; }
.flash--error { background: #f6e2df; color: #7a2e21; }

/* ---------- Header ---------- */
/* Opomba: blur ozadja je namenoma na ::before, ne na .site-header samem.
   Če ima .site-header (prednik) lastnost backdrop-filter/filter/transform,
   postane on "sidrišče" za position:fixed otroke (mobilni meni spodaj) namesto
   celotnega zaslona – to je povzročilo, da se je meni na telefonu prikazal
   stisnjen v višino glave namesto čez celoten zaslon. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid var(--c-border);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(247,244,238,.92); backdrop-filter: saturate(140%) blur(8px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; }
.brand { text-decoration: none; line-height: 1.1; }
.brand__name { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--c-primary); }
.brand__role { display: block; font-size: 0.8rem; color: var(--c-muted); font-weight: 500; }

.primary-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.primary-nav { display: flex; align-items: center; gap: 22px; }
.primary-nav a {
  display: inline-block; padding: 9px 14px; border-radius: 100px; color: var(--c-ink);
  text-decoration: none; font-weight: 600; font-size: 0.98rem;
}
.primary-nav a:hover, .primary-nav a.is-active { background: var(--c-primary); color: #fff; }
.nav-cta { white-space: nowrap; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: transparent; border: 1px solid var(--c-border); border-radius: 10px; cursor: pointer;
}
.nav-toggle__bar { width: 22px; height: 2px; background: var(--c-primary); margin: 0 auto; transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 1060px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 68px 0 0 0; background: var(--c-bg); flex-direction: column;
    align-items: flex-start; padding: 24px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease; overflow-y: auto;
  }
  .primary-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .primary-nav ul { flex-direction: column; width: 100%; gap: 4px; }
  .primary-nav a { display: block; padding: 14px 16px; font-size: 1.1rem; }
  .nav-cta { margin-top: 14px; width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 40px;
  /* pozor: samo padding-top/bottom, NE "padding: 56px 0 64px" – ta element ima
     hkrati razred .wrap (levo/desno 24px roba); skrajšan "padding" bi to prepisal na 0 */
  padding-top: 56px; padding-bottom: 64px;
}
.hero__eyebrow { font-weight: 700; color: var(--c-accent); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; margin-bottom: .6em; }
.hero__lead { font-size: 1.2rem; color: var(--c-muted); max-width: 46ch; }
.hero__media {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 5; background: var(--c-secondary);
 position: relative;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero__media { order: -1; aspect-ratio: 16/11; }
}

/* ---------- Sections ---------- */
/* pozor: samo padding-top/bottom – v enem primeru (novica.php, stran "ni najdena")
   je ta razred na istem elementu kot .wrap, ki skrbi za levi/desni rob */
.section { padding-top: 64px; padding-bottom: 64px; }
.section--alt { background: #fff; }
.section--dark { background: var(--c-primary); color: #f2efe8; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: #d9cdbd; }
.section__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.section__grid.reverse { direction: rtl; }
.section__grid.reverse > * { direction: ltr; }
.section__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; position: relative; }
.section__media img { width: 100%; height: 100%; object-fit: cover; }
.section__kicker { color: var(--c-accent); font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: .08em; margin-bottom: .5em; }
.section__lead { font-size: 1.15rem; color: var(--c-muted); max-width: 62ch; }
.zakljucek__logo { display: block; width: 130px; height: auto; margin: 6px auto 22px; opacity: .95; }

@media (max-width: 880px) {
  .section__grid { grid-template-columns: 1fr; }
  .section__grid.reverse { direction: ltr; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.stat-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 26px 22px; text-align: left;
}
.stat-card__value { font-family: var(--font-heading); font-weight: 800; font-size: 2.4rem; color: var(--c-accent); line-height: 1; }
.stat-card__label { font-weight: 700; margin-top: .4em; color: var(--c-primary); }
.stat-card__sub { font-size: .9rem; color: var(--c-muted); margin-top: .2em; }
.stats-footnote { font-size: .85rem; color: var(--c-muted); margin-top: 14px; }
@media (max-width: 880px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Award banner ---------- */
.award-banner {
  background: linear-gradient(120deg, var(--c-secondary), var(--c-primary));
  color: #fff; border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow);
}
.award-banner h2 { color: #fff; }
.award-banner p { color: #e7e2d6; max-width: 70ch; }

/* ---------- Cards / grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.card__media { aspect-ratio: 16/10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card__icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--c-bg);
  display: flex; align-items: center; justify-content: center; color: var(--c-secondary); margin-bottom: 12px;
}
.card h3 { margin-bottom: .35em; }
@media (max-width: 980px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check-list li { padding-left: 26px; position: relative; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--c-accent);
}

/* ---------- Investor badges ---------- */
.badge {
  display: inline-block; font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: .03em;
}
.badge--obcinski { background: #e4efe2; color: #2c4a2f; }
.badge--drzavni { background: #e6ecf3; color: #2a3f5c; }
.badge--skupni { background: #f3ecdd; color: #6b4f21; }
.badge--evropski { background: #eee2f2; color: #563a63; }
.badge--regionalni { background: #f0e6df; color: #6b4429; }

.fact-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 22px 24px; }
.fact-card + .fact-card { margin-top: 14px; }
.fact-card__title { font-weight: 700; color: var(--c-primary); margin-bottom: 6px; }
.fact-card__source { font-size: .82rem; color: var(--c-muted); margin-top: 8px; }
.fact-card--img { display: flex; align-items: center; gap: 22px; }
.fact-card__thumb { flex: none; width: 120px; height: 120px; border-radius: 10px; overflow: hidden; border: 1px solid var(--c-border); background: #f6f2ea; display: block; line-height: 0; cursor: zoom-in; }
.fact-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.fact-card__thumb:hover img, .fact-card__thumb:focus-visible img { transform: scale(1.05); }
@media (max-width: 520px) { .fact-card--img { gap: 14px; } .fact-card__thumb { width: 92px; height: 92px; } }
.fact-grid { display: grid; gap: 16px; margin-top: 24px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 40px; padding-left: 28px; border-left: 3px solid var(--c-border); }
.timeline__item { position: relative; padding-bottom: 34px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -35.5px; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--c-accent); border: 3px solid var(--c-bg);
}
.timeline__label { font-weight: 800; color: var(--c-accent); text-transform: uppercase; font-size: .85rem; letter-spacing: .05em; }
.timeline__title { margin: .25em 0 .3em; }

/* ---------- Before / after slider ---------- */
.ba-slider {
  position: relative; aspect-ratio: 4/3; max-width: 720px; margin: 32px auto 0;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); touch-action: pan-y;
}
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; }
.ba-slider__after-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.ba-slider__after-wrap img { width: var(--ba-w, 720px); max-width: none; }
.ba-slider__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 44px; margin-left: -22px;
  display: flex; align-items: center; justify-content: center; cursor: ew-resize;
}
.ba-slider__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.ba-slider__grip {
  position: relative; width: 40px; height: 40px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); font-weight: 700; color: var(--c-primary);
}
.ba-slider__tag { position: absolute; top: 12px; padding: 5px 12px; border-radius: 100px; background: rgba(45,61,52,.75); color: #fff; font-size: .78rem; font-weight: 700; }
.ba-slider__tag--before { left: 12px; }
.ba-slider__tag--after { right: 12px; }

/* ---------- Testimonials ---------- */
.testimonials { margin-top: 30px; }
.testimonial-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; -webkit-overflow-scrolling: touch;
}
.testimonial-card {
  scroll-snap-align: start; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.testimonial-card__quote { font-size: 1.05rem; color: var(--c-ink); flex: 1; }
.testimonial-card__quote::before { content: "\201C"; color: var(--c-accent); font-size: 1.4em; line-height: 0; vertical-align: -0.3em; margin-right: 2px; }
.testimonial-card__person { display: flex; align-items: center; gap: 12px; }
.testimonial-card__avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.testimonial-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-card__name { font-weight: 700; color: var(--c-primary); }
.testimonial-card__role { font-size: .85rem; color: var(--c-muted); }
.testimonial-card__placeholder-tag {
  align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  background: #f3ecdd; color: #6b4f21; padding: 3px 10px; border-radius: 100px;
}

.testimonial-card__more, .testimonial-card__share {
  align-self: flex-start; background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 700; color: var(--c-secondary); text-decoration: underline; text-underline-offset: 3px;
}
.testimonial-card__more:hover, .testimonial-card__share:hover { color: var(--c-primary); }
.testimonial-card__share { font-weight: 600; color: var(--c-muted); text-decoration: none; }
.testimonial-card__more { margin-top: -6px; }

.testimonial-dialog {
  border: none; border-radius: var(--radius); padding: 0; max-width: 560px; width: calc(100% - 40px);
  max-height: calc(100vh - 60px); box-shadow: 0 20px 50px rgba(35, 39, 31, .25);
}
.testimonial-dialog::backdrop { background: rgba(35, 39, 31, .55); }
.testimonial-dialog__inner { padding: 34px 32px 28px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.testimonial-dialog__quote { color: var(--c-ink); font-size: 1.02rem; }
.testimonial-dialog__quote p:first-child::before { content: "\201C"; color: var(--c-accent); font-size: 1.5em; line-height: 0; vertical-align: -0.3em; margin-right: 2px; }
.testimonial-dialog__quote p:last-child { margin-bottom: 0; }
/* Podstran »Podpora«: 3 stolpci na računalniku, 2 na tablici, 1 na telefonu */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.support-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); }
.support-card__person { display: flex; align-items: center; gap: 16px; }
.support-card__avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex: none; background: #eee; }
.support-card__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.support-card__name { font-size: 1.15rem; margin: 0; line-height: 1.25; }
.support-card__role { margin: 2px 0 0; font-size: .88rem; color: var(--c-muted); line-height: 1.35; }
.support-card__quote { margin: 0; flex: 1; font-size: 1.02rem; color: var(--c-ink); }
.support-card__quote::before { content: "\201C"; color: var(--c-accent); font-size: 1.4em; line-height: 0; vertical-align: -0.3em; margin-right: 2px; }
.support-card__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.support-card__btn { padding: 9px 20px; font-size: .95rem; }
@media (max-width: 1000px) { .support-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .support-grid { grid-template-columns: 1fr; gap: 16px; }
  .support-card { padding: 20px 18px; }
  .support-card__avatar { width: 60px; height: 60px; }
}

.testimonial-page { max-width: 720px; display: flex; flex-direction: column; gap: 20px; }
.testimonial-page__quote { font-size: 1.15rem; }

/* gumbi za deljenje */
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--c-border); }
.share__label { font-size: .85rem; font-weight: 600; color: var(--c-muted); }
.share__btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--c-border); background: #fff; color: var(--c-primary);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.share__btn:hover, .share__btn:focus-visible { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.share__status { font-size: .85rem; color: var(--c-secondary); }

/* ---------- Program ---------- */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.program-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 26px; }
.program-card h3 { margin-bottom: .25em; }
.program-card__sub { margin: 0 0 6px; font-size: .9rem; font-weight: 700; line-height: 1.35; color: var(--c-secondary); }
.program-card__status {
  display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--c-bg); color: var(--c-secondary); border: 1px solid var(--c-border); padding: 5px 12px; border-radius: 100px; margin-top: 10px;
}
@media (max-width: 980px) { .program-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .program-grid { grid-template-columns: 1fr; } }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.news-card__meta { font-size: .82rem; color: var(--c-muted); display: flex; gap: 10px; margin-bottom: 6px; }
.news-card__category { color: var(--c-accent); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.news-card__excerpt { color: var(--c-muted); }
@media (max-width: 980px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } }

/* Novice na naslovnici: ena novica = velika kartica, več = mreža kartic */
.home-news-feature { display: grid; grid-template-columns: 1.1fr 1fr; margin-top: 30px; text-decoration: none; color: inherit; }
.home-news-feature__media { overflow: hidden; min-height: 280px; }
.home-news-feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-news-feature__body { padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.home-news-feature__body h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: .5em; }
.home-news-feature__cta { margin-top: 1.2em; }
@media (max-width: 800px) {
  .home-news-feature { grid-template-columns: 1fr; }
  .home-news-feature__media { min-height: 0; aspect-ratio: 16/10; }
  .home-news-feature__body { padding: 22px 22px 26px; }
}

.article { max-width: 760px; margin: 0 auto; }
.article__meta { color: var(--c-muted); margin-bottom: 20px; }
.article__media { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.article__body p { font-size: 1.08rem; }
.article__share { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 46px; margin-top: 30px; align-items: start; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--c-primary); }
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
  font: inherit; background: #fff; color: var(--c-ink);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--c-secondary); }
.form-field--checkbox { display: flex; gap: 10px; align-items: flex-start; }
.form-field--checkbox input { width: auto; margin-top: 5px; }
.form-field--checkbox label { font-weight: 500; }
.form-note { font-size: .85rem; color: var(--c-muted); }
.contact-info-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 26px; }
.error-text { color: #a13a2a; font-size: .88rem; margin-top: 4px; }
@media (max-width: 880px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
/* pozor: samo padding-top/bottom – ta element ima hkrati razred .wrap za levi/desni rob */
.page-hero { padding-top: 48px; padding-bottom: 20px; }
.page-hero h1 { max-width: 22ch; }
.page-hero__lead { font-size: 1.15rem; color: var(--c-muted); max-width: 62ch; }
.breadcrumb { font-size: .85rem; color: var(--c-muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--c-muted); }

.empty-state {
  background: #fff; border: 1px dashed var(--c-border); border-radius: var(--radius);
  padding: 40px; text-align: center; color: var(--c-muted); margin-top: 24px;
}

/* ---------- Ekipa: kandidati za svete ---------- */
.candidate-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px; margin-top: 28px;
}
.candidate-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 20px 14px; display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
.candidate-card:hover, .candidate-card:focus-visible {
  border-color: var(--c-secondary); box-shadow: 0 6px 18px rgba(45, 61, 52, .1); outline: none;
}
.candidate-card__photo { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.candidate-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.candidate-card__name { font-weight: 700; color: var(--c-primary); }
.candidate-card__role { font-size: .82rem; color: var(--c-muted); margin-top: -4px; }
.candidate-card__tag {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  background: #f3ecdd; color: #6b4f21; padding: 3px 10px; border-radius: 100px;
}

.candidate-dialog {
  border: none; border-radius: var(--radius); padding: 0; max-width: 440px; width: calc(100% - 40px);
  box-shadow: 0 20px 50px rgba(35, 39, 31, .25);
}
.candidate-dialog::backdrop { background: rgba(35, 39, 31, .55); }
.candidate-dialog__inner { padding: 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; position: relative; }
.candidate-dialog__close {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: var(--c-bg); color: var(--c-primary); font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.candidate-dialog__close:hover { background: var(--c-border); }
.candidate-dialog__photo { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; margin-bottom: 4px; }
.candidate-dialog__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.candidate-dialog__role { font-size: .9rem; color: var(--c-muted); margin-top: -6px; }
.candidate-dialog__bio { color: var(--c-ink); text-align: left; }
@media (max-width: 480px) { .candidate-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; } }

/* utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.max-prose { max-width: 68ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-primary); color: rgba(255,255,255,.82); margin-top: 64px; padding-top: 48px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer p { margin: 0 0 .6em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 .45em; }
.site-footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.site-footer .brand__name { color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; }
.site-footer__col > p:first-child:not(.brand__name) { color: #fff; font-weight: 600; }
.site-footer .footer-contact { margin-bottom: 1em; }
.site-footer .social-links { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer .social-links li { margin: 0; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.16); padding-top: 18px; padding-bottom: 22px; font-size: .85rem; color: rgba(255,255,255,.65); }
.site-footer__bottom p { margin: 0; }
@media (max-width: 760px) {
  .site-footer { margin-top: 48px; padding-top: 36px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 26px; }
}
.site-footer nav ul { columns: 2; column-gap: 28px; }
.site-footer nav li { break-inside: avoid; }

/* ---------- Galerija v novici + povečava ---------- */
.gallery { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.gallery::after { content: ""; flex: 100 1 0; }
.gallery__item { display: block; overflow: hidden; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); line-height: 0; }
.gallery__item img { width: 100%; height: auto; display: block; transition: transform .25s ease; }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.03); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.lightbox::backdrop { background: rgba(15, 22, 18, .92); }
.lightbox__fig { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px 24px; gap: 12px; }
.lightbox__fig img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lightbox__fig figcaption { color: #fff; font-size: .95rem; text-align: center; min-height: 1.2em; max-width: 70ch; }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; border-radius: 50%; width: 46px; height: 46px; font-size: 2rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
@media (max-width: 620px) { .lightbox__fig { padding: 60px 8px 16px; } .lightbox__nav { top: auto; bottom: 14px; transform: none; } }

/* Podpis avtorja fotografije */
.photo-credit {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: .72rem; line-height: 1.4; letter-spacing: .02em;
  pointer-events: none;
}
.site-footer__bottom p + p { margin-top: 6px; font-size: .8rem; }

/* Uvodno besedilo čez celotno širino (npr. stran Ekipa) */
.page-hero__lead--wide, .section__lead--wide { max-width: none; }

/* Opomba o avtorju fotografij (stran Ekipa) */
.photo-note-wrap { padding: 28px 0 0; }
.photo-note { margin: 0; font-size: .85rem; color: var(--c-muted); }

/* Slogan »S srcem za Črno« pod naslovom (logotip je bel, zato na temni podlagi) */
.page-hero__slogan { display: inline-block; margin: 10px 0 18px; padding: 8px 22px; background: var(--c-primary); border-radius: 14px; line-height: 0; }
.page-hero__slogan img { display: block; width: 150px; height: auto; }

/* Razdelek takoj za uvodnim blokom strani: manj praznine nad prvimi ploščicami */
.section--after-hero { padding-top: 12px; }
.section--after-hero .program-grid { margin-top: 0; }

/* Posamezen kandidat (kandidat.php) in deljenje v pojavnem oknu */
.candidate-page { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; max-width: 900px; }
.candidate-page__photo { width: 220px; height: 220px; border-radius: 50%; overflow: hidden; display: block; }
.candidate-page__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.candidate-page__text { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 700px) {
  .candidate-page { grid-template-columns: 1fr; gap: 22px; justify-items: center; }
  .candidate-page__photo { width: 160px; height: 160px; }
  .candidate-page__text { width: 100%; }
}
.candidate-dialog .share { margin-top: 6px; justify-content: center; }

/* Obvestilo ob deljenju na Instagram/TikTok: besedilo je kopirano, prilepite ga v opis */
.share-notice { z-index: 1000; }
.share-notice h3 { margin: 0; }
.share-notice__msg { margin: 0; color: var(--c-muted); }
.share-notice__text { width: 100%; font: inherit; font-size: .9rem; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: 10px; resize: none; background: var(--c-bg); color: inherit; }
.share-notice__cancel { background: none; border: none; color: var(--c-muted); font: inherit; font-weight: 600; text-decoration: underline; padding: 10px 14px; cursor: pointer; }
.share-notice__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }

/* Povezava novice s kandidatom */
.news-candidate { display: flex; gap: 20px; align-items: center; margin-top: 36px; padding: 20px 22px; background: var(--c-surface, #fff); border: 1px solid var(--c-border); border-radius: 16px; max-width: 640px; }
.news-candidate__photo { flex: none; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display: block; }
.news-candidate__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-candidate__text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.news-candidate__text p { margin: 0; }
.news-candidate__kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); font-weight: 700; }
.news-candidate__name { font-size: 1.15rem; font-weight: 700; }
.news-candidate__role { font-size: .92rem; color: var(--c-muted); }
.news-candidate__text .btn { margin-top: 10px; }
.candidate-dialog__news { margin-top: 6px; }
@media (max-width: 560px) { .news-candidate { flex-direction: column; text-align: center; } .news-candidate__text { align-items: center; } }

/* ---------------------------------------------------------------------
   Videoposnetki (pokončni 9:16)
   --------------------------------------------------------------------- */
.vcards { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; margin-top: 22px; -webkit-overflow-scrolling: touch; }
.vcards--grid { flex-wrap: wrap; overflow: visible; scroll-snap-type: none; }
.vcard { flex: 0 0 auto; width: clamp(168px, 23%, 270px); scroll-snap-align: start; color: var(--c-ink); text-decoration: none; display: block; }
.vcards--grid .vcard { width: clamp(168px, 22%, 270px); }
.section--dark .vcard { color: #fff; }
.vcard__media { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: #1c1f1b; box-shadow: var(--shadow-sm); }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.vcard:hover .vcard__media img, .vcard:focus-visible .vcard__media img { transform: scale(1.04); }
.vcard:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 4px; border-radius: var(--radius); }
.vcard__play {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  background: rgba(35, 39, 31, .62); color: #fff; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px); transition: background .2s, transform .2s;
}
.vcard:hover .vcard__play, .vcard:focus-visible .vcard__play { background: var(--c-accent); transform: scale(1.08); }
.vcard__play svg { margin-left: 3px; }
.vcard__time { position: absolute; left: 10px; bottom: 10px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.vcard__title { display: block; margin-top: 10px; font-weight: 600; line-height: 1.3; font-size: .98rem; }
@media (max-width: 620px) { .vcard, .vcards--grid .vcard { width: 62%; max-width: 250px; } .vcards--grid { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; } }

/* gumbi za deljenje videa */
.vshare { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vshare__label { font-size: .85rem; font-weight: 600; color: var(--c-muted); margin-right: 2px; }
.vshare__btn {
  display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border-radius: 999px; font: inherit; font-size: .88rem; font-weight: 600;
  background: var(--c-primary); color: #fff; border: 1px solid var(--c-primary); cursor: pointer; text-decoration: none; line-height: 1.2;
}
.vshare__btn:hover, .vshare__btn:focus-visible { background: #1f2b24; color: #fff; }
.vshare__btn--ghost { background: transparent; color: var(--c-primary); }
.vshare__btn--ghost:hover, .vshare__btn--ghost:focus-visible { background: var(--c-primary); color: #fff; }
.vshare__status { flex-basis: 100%; font-size: .85rem; color: var(--c-secondary); min-height: 1.2em; }
.vshare__status:empty { display: none; }

/* stran videa */
.vpage { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 40px; align-items: start; }
.vpage__player video { width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: var(--radius); display: block; box-shadow: var(--shadow); object-fit: contain; }
.vpage__text h1 { margin-top: 0; }
.vpage__text .vshare { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--c-border); }
@media (max-width: 760px) { .vpage { grid-template-columns: 1fr; gap: 22px; } .vpage__player { max-width: 380px; margin: 0 auto; width: 100%; } }

/* predvajalnik čez cel zaslon */
.video-dialog {
  --vh: min(70dvh, 700px);
  border: none; padding: 0; background: #111; color: #fff; border-radius: var(--radius); overflow: hidden;
  width: calc(var(--vh) * 9 / 16 + 150px); max-width: 100vw; max-height: 100dvh; box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.video-dialog::backdrop { background: rgba(10, 12, 9, .78); }
.video-dialog__stage { position: relative; display: flex; flex-direction: column; }
.video-dialog__screen { position: relative; display: flex; justify-content: center; background: #000; }
.video-dialog__screen video { display: block; height: var(--vh); aspect-ratio: 9 / 16; max-width: 100%; background: #000; object-fit: contain; }
.video-dialog__close {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.video-dialog__close:hover { background: var(--c-accent); }
.video-dialog__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.video-dialog__nav:hover { background: var(--c-accent); }
.video-dialog__nav--prev { left: 16px; }
.video-dialog__nav--next { right: 16px; }
.video-dialog--single .video-dialog__nav { display: none; }
.video-dialog__bar { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 10px; background: #181b17; }
.video-dialog__bar strong { font-size: 1rem; line-height: 1.3; }
.video-dialog__desc { flex-shrink: 0; margin: 0; font-size: .9rem; line-height: 1.45; color: #cfc9bb; white-space: pre-line; max-height: 6.5em; overflow-y: auto; }
.video-dialog .vshare__label { color: #cfc9bb; }
.video-dialog .vshare__btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; min-height: 34px; padding: 4px 12px; font-size: .82rem; }
.video-dialog .vshare__btn:hover, .video-dialog .vshare__btn:focus-visible { background: var(--c-accent); border-color: var(--c-accent); }
.video-dialog .vshare__btn--ghost { background: transparent; }
.video-dialog .vshare__status { color: #d9cdbd; }
.video-dialog__page { color: #d9cdbd; font-size: .88rem; }
@media (max-width: 700px) {
  .video-dialog { --vh: calc(100dvh - 190px); width: 100vw; height: 100dvh; max-width: none; border-radius: 0; }
  .video-dialog__stage { height: 100%; }
  .video-dialog__screen video { width: 100%; height: var(--vh); aspect-ratio: auto; }
  .video-dialog__nav { top: 42%; width: 40px; height: 40px; background: rgba(0, 0, 0, .4); }
  .video-dialog__nav--prev { left: 6px; } .video-dialog__nav--next { right: 6px; }
  .video-dialog__bar { padding: 10px 14px 14px; gap: 8px; overflow-y: auto; }
}

/* Glavni meni: z dodano povezavo »Video« je 9 postavk, zato je meni kompaktnejši, hamburger pa se vklopi že pri 1060 px */
.primary-nav ul { flex-wrap: nowrap; }
@media (min-width: 1061px) {
  .primary-nav { gap: 12px; }
  .primary-nav ul { gap: 2px; }
  .primary-nav a { padding: 8px 10px; font-size: .92rem; white-space: nowrap; }
  .brand__name { font-size: 1.05rem; }
}

/* Obvestilo »Politika piškotkov!« v nogi strani (teaser) in pojavno okno */
.site-footer__bottom .cookie-teaser { margin-top: 14px; }
.cookie-teaser__btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: inherit; font-size: .95rem; font-weight: 700; letter-spacing: .01em;
  background: var(--c-accent); color: #fff; border: none; border-radius: 999px; padding: 9px 18px 9px 14px;
  box-shadow: 0 0 0 0 rgba(166, 112, 84, .55); animation: cookiePulse 2.6s ease-out infinite;
  transition: transform .15s ease, background .2s ease;
}
.cookie-teaser__btn:hover, .cookie-teaser__btn:focus-visible { background: #bf8465; transform: translateY(-1px); animation-play-state: paused; }
.cookie-teaser__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@keyframes cookiePulse {
  0% { box-shadow: 0 0 0 0 rgba(166, 112, 84, .55); }
  70% { box-shadow: 0 0 0 12px rgba(166, 112, 84, 0); }
  100% { box-shadow: 0 0 0 0 rgba(166, 112, 84, 0); }
}
@media (prefers-reduced-motion: reduce) { .cookie-teaser__btn { animation: none; } }

.cookie-dialog {
  border: none; border-radius: var(--radius); padding: 0; width: min(540px, calc(100% - 32px)); max-height: calc(100dvh - 40px);
  box-shadow: 0 20px 50px rgba(35, 39, 31, .3); overflow: auto; background: var(--c-white); color: var(--c-ink);
}
.cookie-dialog::backdrop { background: rgba(35, 39, 31, .6); }
.cookie-dialog__inner { position: relative; display: block; margin: 0; }
.cookie-dialog__inner .candidate-dialog__close { z-index: 2; background: rgba(255, 255, 255, .92); }
.cookie-dialog__photo { display: block; width: 100%; max-height: 52dvh; object-fit: cover; background: var(--c-border); }
.cookie-dialog__body { padding: 22px 28px 28px; font-size: 1.1rem; line-height: 1.55; }
.cookie-dialog__body p { margin: 0 0 .7em; }
.cookie-dialog__body p:last-child { margin-bottom: 0; }
@media (max-width: 480px) { .cookie-dialog__body { padding: 18px 20px 22px; font-size: 1.02rem; } }
