:root {
  --red: #E30613;
  --red-dark: #B8050F;
  --navy: #1B1F5C;
  --navy-light: #3A4080;
  --black: #000000;
  --white: #FFFFFF;
  --bg-light: #F7F6F2;
  --card-border: #E8E4E0;
  --text: #1A1A1A;
  --text-secondary: #4A4A4A;
  --shadow: 0 8px 40px rgba(27, 31, 92, 0.15);
  --max-width-content: 56rem;

  --font-display: 'Archivo Black', 'Barlow Condensed', sans-serif;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

a {
  color: inherit;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 9999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: scale(1.03);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--navy-light);
  transform: scale(1.03);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: scale(1.03);
}

.btn:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .btn, html { transition: none; scroll-behavior: auto; }
}

/* ---------- Header ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--card-border);
  padding: 1.25rem 1.5rem;
}

.header-inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.header-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  list-style: none;
  width: 100%;
}

.header-logos img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 640px) {
  .header-inner { justify-content: center; text-align: center; }
}

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

.hero {
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 60%);
  padding: 4rem 1.5rem 4.5rem;
  text-align: center;
}

.hero-inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.hero-fist {
  width: 360px;
  margin: 0 auto;
}

.hero-title {
  position: relative;
  margin: -3.75rem auto 2.75rem;
}

.hero-title span {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 6vw, 2.9rem);
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.6em 0.9em;
  transform: rotate(-3deg);
  box-shadow: var(--shadow);
}

/* Progress bar */

.progress-wrap {
  max-width: 34rem;
  margin: 0 auto 2.25rem;
  text-align: left;
}

.progress-numbers {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text);
  flex-wrap: wrap;
}

.progress-numbers strong {
  font-size: 1.15rem;
  color: var(--navy);
}

.progress-goal strong {
  color: var(--navy);
}

.progress-bar {
  background: var(--card-border);
  border-radius: 9999px;
  height: 20px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: 9999px;
  transition: width 0.6s ease;
}

/* CTA */

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero-guide-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 3rem;
}

.hero-guide-link:hover {
  color: var(--red);
}

/* Countdown */

.countdown-wrap {
  margin-top: 2.5rem;
}

.countdown-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.countdown-unit {
  background: var(--navy);
  color: var(--white);
  border-radius: 1.25rem;
  padding: 1.5rem 2rem;
  min-width: 120px;
  box-shadow: var(--shadow);
}

.countdown-value {
  display: block;
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.countdown-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

@media (max-width: 480px) {
  .countdown { gap: 0.85rem; }
  .countdown-unit { padding: 1.1rem 0.9rem; min-width: 92px; }
  .countdown-value { font-size: 2.3rem; }
  .countdown-name { font-size: 0.85rem; }
  .countdown-label { font-size: 1.1rem; }
}

/* ---------- Reasons / vsebinska sekcija ---------- */

.reasons {
  background: var(--white);
  padding: 5rem 1.5rem;
}

.reasons-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.reasons-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.75rem);
  text-align: center;
  text-transform: uppercase;
  color: var(--navy);
  text-wrap: balance;
  max-width: 46rem;
  margin: 0 auto 3.5rem;
  line-height: 1.15;
}

.reasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.reason-card {
  display: flex;
  flex-direction: column;
}

.reason-image {
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
}

.reason-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tablet: image and text side by side */
@media (min-width: 640px) and (max-width: 959px) {
  .reason-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  .reason-image {
    width: 40%;
    margin-bottom: 0;
  }

  .reason-card .reason-text {
    flex: 1;
  }
}

/* Desktop: three columns, image on top */
@media (min-width: 960px) {
  .reasons-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

.reason-card h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.reason-card h3 span {
  color: var(--red);
}

.reason-card p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---------- Želiš pomagati ---------- */

.help {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
}

.help-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.help h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.help p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.25rem;
}

.help-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.help .btn-outline {
  color: var(--white);
  border-color: var(--white);
}

.help .btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

/* ---------- Oddaj podpis na upravni enoti ---------- */

.ue-section {
  background: var(--red);
  padding: 5rem 1.5rem;
}

.ue-inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.ue-head {
  text-align: center;
  margin-bottom: 3rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.75rem;
}

.ue-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
  text-wrap: balance;
  margin-bottom: 1.25rem;
}

.ue-head .lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  max-width: 36rem;
  margin: 0 auto 0.6rem;
}

.ue-head .lead-bold {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.5;
}

.ue-card {
  background: var(--bg-light);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ue-info {
  padding: 2.25rem 2rem;
}

.ue-info + .ue-info {
  border-top: 1px solid var(--card-border);
}

@media (min-width: 640px) {
  .ue-info { padding: 2.75rem 3rem; }
}

.ue-info h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red);
  margin-bottom: 1rem;
}

.ue-info p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.ue-info p:last-child { margin-bottom: 0; }

.ue-info p strong {
  font-weight: 700;
  color: var(--navy);
}

.ue-info a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.ue-info a:hover { opacity: 0.75; }

.map-placeholder {
  background: var(--card-border);
  border-radius: 0.75rem;
  height: 260px;
  margin: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ue-cta {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--card-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .ue-cta { padding: 2.75rem 3rem; }
}

.ue-cta h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  text-transform: uppercase;
  color: var(--navy);
  text-wrap: balance;
  line-height: 1.1;
}

/* ---------- Social ---------- */

.social {
  background: var(--white);
  padding: 4.5rem 1.5rem;
  text-align: center;
}

.social-inner {
  max-width: 36rem;
  margin: 0 auto;
}

.social h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: var(--bg-light);
  border: 2px solid var(--card-border);
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--navy);
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: scale(1.03);
}

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

.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: 36rem;
  margin: 0 auto;
}

.site-footer p {
  font-size: 0.85rem;
  line-height: 1.6;
}
