/* ===================================================================
   PRAVICA GLASU – Gradiščak
   Minimalističen, hiter, dostopen slog.
   Barvno paleto lahko spremenite spodaj v ":root".
   =================================================================== */

:root {
  /* Barve */
  --green:        #2f7d4f;   /* glavni poudarek */
  --green-dark:   #245f3d;
  --green-soft:   #eaf4ee;   /* nežno zeleno ozadje */
  --yellow:       #f5c84b;   /* topel poudarek */
  --yellow-soft:  #fdf6e3;
  --bg:           #ffffff;
  --bg-alt:       #f7f9f7;   /* nežna naravna podlaga */
  --text:         #1f2421;   /* skoraj črna */
  --text-soft:    #55615a;
  --border:       #e4e9e5;

  /* Tipografija in razmiki */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max:  1080px;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(31, 36, 33, 0.07);
}

/* --------------------------- Osnova --------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--green-dark); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 .6em;
}

.lead { font-size: 1.18rem; color: var(--text-soft); }
.muted { color: var(--text-soft); }
.small { font-size: .9rem; }

/* --------------------------- Gumbi --------------------------- */
.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--green-dark); }

.btn-ghost {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--green); }

.btn-lg { padding: 1.05rem 2rem; font-size: 1.1rem; }

/* --------------------------- Glava --------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.brand-mark { font-size: 1.5rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.05rem; }
.brand-text small { color: var(--text-soft); font-size: .8rem; }

.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav a { text-decoration: none; color: var(--text-soft); font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: var(--green-dark); }
.nav-cta {
  background: var(--green); color: #fff !important;
  padding: .55rem 1.1rem; border-radius: 999px;
}
.nav-cta:hover { background: var(--green-dark); }

/* --------------------------- Hero --------------------------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0; background:
  radial-gradient(1200px 400px at 80% -10%, var(--green-soft), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-text h1 { margin-top: .2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  width: 100%;
}

.hero-hint {
  margin-top: 1.4rem; padding: .7rem 1.1rem;
  background: var(--yellow-soft); border: 1px solid #f0e2b8;
  border-radius: 12px; font-size: .98rem; color: var(--text);
  display: inline-block;
}

.signature-badge {
  display: inline-flex; align-items: baseline; gap: .5rem;
  margin-top: 1.6rem; padding: .6rem 1.1rem;
  background: var(--yellow-soft); border: 1px solid #f0e2b8;
  border-radius: 999px;
}
.signature-count { font-weight: 800; font-size: 1.3rem; color: var(--green-dark); }
.signature-label { color: var(--text-soft); font-size: .95rem; }

/* Statistika družin (spoštljivo predstavljeno) */
.stat-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
  margin: 1.8rem 0;
}
.stat {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem 1.6rem; min-width: 150px;
  box-shadow: var(--shadow);
}
.stat-num { display: block; font-size: 2.4rem; font-weight: 800; color: var(--green); line-height: 1; }
.stat-label { display: block; margin-top: .4rem; color: var(--text-soft); font-size: .95rem; }

/* Števec podpisov (samostojni blok v razdelku Podpora) */
.counter { margin: .5rem 0 1.6rem; }
.counter .count-number { display: block; font-size: clamp(2.6rem, 8vw, 3.6rem); font-weight: 800; color: var(--green); line-height: 1; }
.counter .count-text { display: block; color: var(--text-soft); margin-top: .4rem; }

/* ---- Trenutno stanje podpore ---- */
.support-stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem; max-width: 820px; margin: 0 auto;
}
.support-stats .stat { text-align: center; padding: 1.6rem 1.4rem; }
.support-stats .stat-label { font-size: 1rem; line-height: 1.45; }
.support-stats .stat-label strong { color: var(--text); }

.stats-note { margin: 1rem auto 0; max-width: 620px; font-size: .92rem; }

.village-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem; max-width: 820px; margin: 2.4rem auto 0;
}
.village-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow);
}
.village-card h3 { color: var(--green-dark); font-size: 1.25rem; margin-bottom: .8rem; }
.village-card ul { list-style: none; margin: 0; padding: 0; }
.village-card li { padding: .45rem 0; border-bottom: 1px solid var(--border); color: var(--text-soft); }
.village-card li:last-child { border-bottom: 0; }
.village-card li strong { color: var(--green); font-size: 1.25rem; margin-right: .35rem; }
.vc-note { color: var(--text-soft); font-size: .9rem; }
.village-card .vc-note { display: block; margin: 0 0 .6rem; }

.extra-support { max-width: 680px; margin: 1.8rem auto 0; color: var(--text-soft); }

.message-box {
  max-width: 720px; margin: 2.6rem auto 0; text-align: center;
  background: var(--green-soft); border: 1px solid #cfe6d8;
  border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.6rem);
}
.message-box h3 { color: var(--green-dark); font-size: 1.8rem; margin-bottom: .6rem; }
.message-box p { color: var(--text); margin: 0 0 .8rem; }
.message-emph { font-weight: 700; color: var(--green-dark) !important; margin-top: 1rem !important; }

@media (max-width: 700px) {
  .support-stats { grid-template-columns: 1fr; }
  .village-grid { grid-template-columns: 1fr; }
}

/* --------------------------- Dejstva --------------------------- */
.facts { padding: 1rem 0 2.5rem; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.fact-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem;
}
.fact-icon { font-size: 1.7rem; display: block; margin-bottom: .5rem; }
.fact-card h3 { margin-bottom: .35em; }
.fact-card p { margin: 0; color: var(--text-soft); }

/* --------------------------- Razdelki --------------------------- */
.section { padding: clamp(2.8rem, 6vw, 5rem) 0; }
.section-soft { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 2rem; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-sub { color: var(--text-soft); font-size: 1.1rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 4 / 3; width: 100%; }

blockquote {
  margin: 1.4rem 0 0; padding: 1rem 1.3rem;
  border-left: 4px solid var(--yellow);
  background: var(--yellow-soft); border-radius: 0 12px 12px 0;
  font-size: 1.1rem; font-style: italic; color: var(--text);
}
.quote-center {
  max-width: 620px; margin: 1.8rem auto 0; border-left: 0;
  border-radius: 12px; text-align: center; font-size: 1.2rem;
}

.img-caption { margin: .6rem 0 0; font-size: .85rem; color: var(--text-soft); text-align: center; }

/* --------------------------- Naše prošnje --------------------------- */
.asks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.asks li {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; position: relative;
}
.asks li::before {
  content: "✓"; display: inline-grid; place-items: center;
  width: 1.9rem; height: 1.9rem; margin-bottom: .6rem;
  background: var(--green-soft); color: var(--green-dark);
  border-radius: 50%; font-weight: 800;
}
.asks h3 { margin: 0 0 .3em; }
.asks p { margin: 0; color: var(--text-soft); }

/* --------------------------- Peticija --------------------------- */
.petition { background:
  radial-gradient(900px 360px at 50% 120%, var(--green-soft), transparent 60%); }
.petition-card {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(1.8rem, 4vw, 2.8rem);
}
.petition-count { margin-bottom: 1.4rem; }
.count-number { display: block; font-size: clamp(2.4rem, 7vw, 3.4rem); font-weight: 800; color: var(--green); line-height: 1; }
.count-text { display: block; color: var(--text-soft); margin-top: .4rem; }

.petition-note { margin: 1rem 0 0; color: var(--text-soft); font-size: .92rem; }

.petition-embed-wrap { margin-top: 1.6rem; text-align: left; }
.petition-embed-wrap summary {
  cursor: pointer; font-weight: 600; color: var(--green-dark);
  padding: .6rem 0; user-select: none;
}
.petition-embed {
  margin-top: 1rem; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; background: var(--bg-alt);
}
.petition-embed iframe { width: 100%; height: 620px; border: 0; display: block; }
.embed-fallback { color: var(--text-soft); font-size: .9rem; margin: .8rem 0 0; }

.doc-link { text-align: center; margin-top: 1.6rem; }
.doc-link a { font-weight: 600; }

/* --------------------------- FAQ --------------------------- */
.faq details {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: .3rem 1.2rem; margin-bottom: .8rem;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: .9rem 0;
  list-style: none; position: relative; padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .2rem; top: 50%;
  transform: translateY(-50%); font-size: 1.4rem; color: var(--green);
  transition: transform .15s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1rem; color: var(--text-soft); }

/* --------------------------- Zaključni poziv --------------------------- */
.cta-final { background: var(--green-soft); }
.cta-final h2 { color: var(--green-dark); }

/* --------------------------- Animacije (reveal / zoom / štetje) --------------------------- */
/* Skrijemo le, če je na voljo JavaScript (sicer ostane vsebina vidna). */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .10s; }
.js .reveal.d2 { transition-delay: .20s; }
.js .reveal.d3 { transition-delay: .30s; }
.js .reveal.d4 { transition-delay: .40s; }

.zoom-img { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.zoom-img img { display: block; width: 100%; border-radius: 0; box-shadow: none; }
.js .zoom-img img { transform: scale(1.14); transition: transform 1.3s ease; will-change: transform; }
.js .zoom-img.is-visible img { transform: scale(1); }

/* --------------------------- Pravna stran (legal) --------------------------- */
.legal h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal ul { padding-left: 1.2rem; color: var(--text-soft); }
.legal li { margin-bottom: .4rem; }
.legal-updated { margin-top: 2.2rem; font-size: .9rem; }

/* --------------------------- Noga / Footer --------------------------- */
.site-footer { background: var(--green-dark); color: #e7f0ea; margin-top: 2.5rem; }
.site-footer a { color: #ffffff; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-muted { color: #aecbb9; }

.footer-grid {
  display: grid; grid-template-columns: 1.7fr 1.3fr 1fr 1fr;
  gap: 2.2rem; padding: 3.4rem 0 2.4rem;
}
.footer-brand .brand-mark { font-size: 1.8rem; }
.footer-brand h2 { color: #fff; font-size: 1.3rem; margin: .5rem 0 .6rem; }
.footer-brand p { color: #c7ddcf; max-width: 36ch; margin: 0; }

.footer-col h3 {
  color: #fff; font-size: .82rem; text-transform: uppercase;
  letter-spacing: .1em; margin: 0 0 1rem;
}
.footer-col p { color: #c7ddcf; margin: 0 0 .55rem; line-height: 1.5; }

.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: .55rem; }
.footer-nav a { color: #dceae1; }

/* Kontaktni obrazec */
.footer-form { border-top: 1px solid rgba(255,255,255,.14); padding: 2.4rem 0; max-width: 720px; }
.footer-form h3 { color: #fff; font-size: 1.25rem; margin: 0 0 .4rem; }
.footer-form > p { color: #c7ddcf; margin: 0 0 1.2rem; }

.contact-form label { display: block; font-size: .88rem; color: #dceae1; margin-bottom: 1rem; }
.contact-form input,
.contact-form textarea {
  width: 100%; margin-top: .35rem; padding: .75rem .9rem;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.07); color: #fff;
  font-family: inherit; font-size: 1rem; resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9bbaa8; }
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--yellow); border-color: transparent; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cf-note { color: #aecbb9; font-size: .85rem; margin: .7rem 0 0; }

.btn-accent { background: var(--yellow); color: #3a2e00; }
.btn-accent:hover { background: #e8b933; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 1.3rem 0; }
.footer-bottom p { margin: 0; text-align: center; color: #b6cfc0; font-size: .9rem; }

/* --------------------------- Odzivnost --------------------------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .facts-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: -1; }
  .asks { grid-template-columns: 1fr; }
  .main-nav a:not(.nav-cta) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cf-row { grid-template-columns: 1fr; }
}

/* --------------------------- Dostopnost: manj animacij --------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  /* Vsebina mora ostati vidna tudi brez animacij. */
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .zoom-img img { transform: none !important; }
}
