/* Lista Daniela Cukjatija — lokalne volitve 2026 */

:root {
  --accent: #1282a2;      /* heading colour from the 2022 site */
  --navy: #3f598e;        /* name colour on the candidate cards */
  --navy-dark: #24345a;
  --sky: #8ad5ea;
  --sky-light: #e3f4fa;
  --star: #d1dd26;        /* the "+" in the LDC logo */
  --text: #1f2633;
  --muted: #5b6475;
  --panel: #eeeeee;       /* the grey expansion items from the 2022 site */
  --white: #ffffff;
  --radius: 6px;
  --content: 72rem;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }

.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;
}

.wrap {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- Navigation (shared) ---------- */

.nav-links {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.95rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, background-color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible { border-bottom-color: var(--star); }

/* Fixed white header that slides in once the hero is scrolled past
   (same behaviour as the 2022 site). */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transform: translateY(-110%);
  transition: transform 0.25s ease;
}

.topbar.is-visible { transform: none; }

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar .brand img { height: 2.25rem; width: auto; }

.topbar .nav-links a { padding: 1.1rem 0.9rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: #d6f1f7; /* matches the banner's edges if it doesn't fill the width */
}

/* the jumbo banner, edge to edge; capped so the menu stays on screen */
.hero-photo { margin: 0; }

.hero-photo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100svh - 3.5rem);
  margin: 0 auto;
}

/* dark translucent tab bar at the bottom of the hero (2022 style) */
.hero-nav {
  background: #22363f;
  color: var(--white);
}

/* ---------- Sections ---------- */

.section { padding: 4.5rem 0; }

.section-alt { background: #f6f9fb; }

.section h2 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.subtitle {
  margin: 0 0 2rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}

.lead { max-width: 46rem; color: var(--muted); margin: 0 0 2rem; }

/* O meni / nagovor */

.nagovor {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.nagovor-text p { margin: 0 0 1.1rem; }

.nagovor-text p:first-child {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}

.signature {
  margin-top: 1.75rem !important;
  font-style: italic;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.15rem;
}

.bio-card {
  border-top: 4px solid var(--star);
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
}

.bio-card div { padding: 1.25rem 1.25rem 1.5rem; font-size: 0.92rem; }

.bio-card h3 {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bio-card p { margin: 0; }

/* Program — grey expansion items like on the 2022 site */

.program { display: grid; gap: 0.6rem; }

.program details {
  background: var(--panel);
  border-radius: var(--radius);
}

.program summary {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--accent);
}

.program summary::-webkit-details-marker { display: none; }

.program summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s;
}

.program details[open] summary::after { transform: rotate(-135deg) translate(-2px, 0); }

.program .num {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.9rem;
}

.program ul {
  margin: 0;
  padding: 0 1.5rem 1.25rem 4.4rem;
}

.program li { margin-bottom: 0.45rem; }

.program li::marker { color: var(--accent); }

.program-img {
  display: block;
  width: calc(100% - 5.9rem);
  max-width: 42rem;
  height: auto;
  margin: 0.25rem 1.5rem 1.5rem 4.4rem;
  border-radius: var(--radius);
}

/* Projekti */

.projekti-intro { max-width: 44rem; margin: 0 0 1.5rem; }

.projekti-map {
  height: min(80svh, 46rem);
  min-height: 28rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(36, 52, 90, 0.12);
}

.projekti-map iframe { display: block; width: 100%; height: 100%; border: 0; }

.projekti-link { margin: 0.9rem 0 0; font-weight: 600; }

/* Lista */

.enota {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2.5rem 0 1.25rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}

.enota::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--star), transparent);
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn:hover, .btn:focus-visible { background: var(--navy-dark); }

.kandidati {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kandidat-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--sky-light);
  box-shadow: 0 2px 10px rgba(36, 52, 90, 0.12);
}

a.kandidat-card { transition: transform 0.2s, box-shadow 0.2s; }

a.kandidat-card:hover,
a.kandidat-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(36, 52, 90, 0.22);
}

a.kandidat-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.kandidat-card img { width: 100%; height: auto; aspect-ratio: 4 / 5; }

.kandidat-more {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s;
}

a.kandidat-card:hover .kandidat-more,
a.kandidat-card:focus-visible .kandidat-more { opacity: 1; }

/* ---------- Footer ---------- */

.footer {
  background: var(--navy-dark);
  color: #d6dbe8;
  padding: 2.5rem 0;
  font-size: 0.9rem;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand { display: flex; align-items: center; gap: 1rem; }

.footer-brand img { height: 2.75rem; width: auto; }

.footer-brand strong { display: block; color: var(--white); font-size: 1.05rem; }

.footer a { color: var(--white); }

.footer p { margin: 0; }

/* ---------- Preglednost page ---------- */

.page-header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.page-header img { height: 2.5rem; width: auto; }

.page-header a.back {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}

.doc-hero {
  background: linear-gradient(160deg, #d5f0f9 0%, var(--sky) 100%);
  padding: 3rem 0 2.5rem;
  color: var(--navy-dark);
}

.doc-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}

.doc-hero p { margin: 0; max-width: 44rem; font-weight: 500; }

.doc-hero em { font-weight: 400; }

.doc { padding: 2.5rem 0 4rem; }

.doc .wrap { max-width: 50rem; }

.doc section {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e3e6ec;
}

.doc section:last-child { border-bottom: 0; }

.doc h2 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  color: var(--accent);
}

.doc h2 span {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  transform: translateY(-0.1rem);
}

.doc p { margin: 0 0 0.75rem; }

.doc ul { margin: 0 0 0.75rem; padding-left: 1.25rem; }

.doc li { margin-bottom: 0.3rem; }

.doc li::marker { color: var(--accent); }

.doc address { font-style: normal; }

.highlight {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  background: var(--sky-light);
  font-weight: 700;
  color: var(--navy-dark);
}

/* ---------- Candidate page ---------- */

.kandidat-page {
  padding: 3rem 0 4rem;
  background: linear-gradient(to bottom, var(--sky-light) 0, var(--white) 22rem);
}

.kandidat-layout {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.kandidat-photo img {
  position: sticky;
  top: 1.5rem;
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(36, 52, 90, 0.22);
}

.kandidat-text { max-width: 44rem; }

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.kandidat-text h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.1;
  font-weight: 800;
  color: var(--navy);
}

.kandidat-role {
  margin: 0.35rem 0 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--star);
  color: var(--muted);
}

.kandidat-text p { margin: 0 0 1.1rem; }

.kandidat-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e3e6ec;
}

.kandidat-pager a {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--navy-dark);
  font-weight: 700;
  text-decoration: none;
}

.kandidat-pager a:hover,
.kandidat-pager a:focus-visible { background: #e0e0e0; }

.kandidat-pager a span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.kandidat-pager .next { text-align: right; margin-left: auto; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nagovor { grid-template-columns: 1fr; gap: 2rem; }
  .kandidat-layout { grid-template-columns: 1fr; gap: 2rem; }
  .kandidat-photo img { position: static; max-width: 16rem; margin: 0 auto; }
  .kandidat-text { text-align: left; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 3.5rem; }
  .section { padding: 3rem 0; }
  .nav-links a { padding: 0.85rem 0.7rem; font-size: 0.78rem; letter-spacing: 0.05em; }
  .topbar .brand { display: none; }
  .topbar .wrap { justify-content: center; }
  .topbar .nav-links a { padding: 0.9rem 0.7rem; }
  .kandidati { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .program ul { padding-left: 1.5rem; }
  .program-img { width: calc(100% - 2rem); margin: 0.25rem 1rem 1rem; }
  .program summary { font-size: 1rem; padding: 0.9rem 1rem; }
  .kandidat-page { padding-top: 2rem; }
  .kandidat-pager a { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
