/* ===== CUSTOM PROPERTIES ===== */
:root {
  --bg:         #fefcf8;
  --bg-alt:     #f5f0e8;
  --accent:     #f37020;
  --text:       #1a100a;
  --text-muted: #7a6555;
  --border:     rgba(0, 0, 0, 0.1);

  --red:          #d8261d;

  --font-display:   'Barlow Condensed', sans-serif;
  --font-body:      'Inter', system-ui, -apple-system, sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;

  --container-max:    1200px;
  --container-narrow: 680px;
  --section-pad:      clamp(64px, 9vw, 120px);
  --radius: 8px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

/* ===== BASE ===== */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 24px;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(254, 252, 248, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border);
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.btn-sm  { padding: 8px 20px; font-size: 13px; }
.btn-lg  { padding: 15px 36px; font-size: 1rem; }
.btn-cta { background: var(--accent); color: #fff; }
.btn-cta:hover { background: #e06010; }
.btn-full { width: 100%; }

/* ===== HERO ===== */
.hero {
  min-height: 100svh;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: clamp(88px, 14vw, 120px) clamp(24px, 5vw, 72px) clamp(48px, 8vw, 80px);
}
.hero-flame {
  position: absolute;
  right: 0; top: 0;
  height: 100%;
  width: 60%;
  pointer-events: none;
  opacity: 0.15;
}
.hero-flame img {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: auto;
  max-width: none;
}
@media (min-width: 720px) {
  .hero {
    flex-direction: row;
    align-items: stretch;
  }
  .hero-content {
    flex: 0 0 58%;
  }
  .hero-flame {
    position: relative;
    flex: 1;
    width: auto;
    height: auto;
    opacity: 1;
    overflow: hidden;
  }
  .hero-flame img {
    position: absolute;
    top: 0; right: 0;
    height: 100%;
    width: auto;
  }
}
.hero-label {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--red);
  letter-spacing: 0.02em;
}
.hero-title {
  font-family: var(--font-condensed);
  font-weight: 900;
  font-size: clamp(4.5rem, 14vw, 10rem);
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.hero-hook {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.5;
}
.hero-hook em {
  font-style: italic;
  display: block;
  margin-bottom: 4px;
}
.hero-hook strong {
  display: block;
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: 0.04em;
}
.hero-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ===== SECTIONS ===== */
.section      { padding: var(--section-pad) 24px; }
.section--alt { background: var(--bg-alt); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
}
.container--narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 48px;
}
.text-center { text-align: center; }

/* ===== KAJ JE TO ===== */
.kaj-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 768px) {
  .kaj-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
}
.kaj-list {
  list-style: none;
  margin: 24px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kaj-list li {
  padding-left: 24px;
  position: relative;
  font-size: 1.05rem;
  color: var(--text);
}
.kaj-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.kaj-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.scripture-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text);
  line-height: 1.6;
  padding: 0 0 0 24px;
  border-left: 3px solid var(--accent);
}
.scripture-quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.82em;
  color: var(--text-muted);
}

/* ===== PROGRAM ===== */
.program { background: var(--bg); }

.program-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.program-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 88px 1fr 80px;
  gap: 20px 24px;
  align-items: center;
  transition: background 0.2s ease;
}
.program-card:hover { background: #ece5d6; }

.program-card--highlight {
  background: #fef3ea;
  border-left: 3px solid var(--accent);
}
.program-card--highlight:hover { background: #fde8d4; }
.program-card--highlight .pc-theme { color: var(--accent); }
.program-card--highlight .pc-avatar { border-color: var(--accent); }

@media (max-width: 580px) {
  .program-card {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 16px;
  }
  .pc-meta { grid-column: 1; grid-row: 1; flex-direction: row; gap: 10px; align-items: baseline; }
  .pc-body { grid-column: 1 / -1; grid-row: 2; padding-top: 8px; }
  .pc-speaker { grid-column: 2; grid-row: 1; align-self: start; }
}

.pc-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pc-num {
  font-family: var(--font-condensed);
  font-weight: 900;
  font-size: 2rem;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  letter-spacing: -0.02em;
}
.pc-date {
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 600;
}
.pc-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.pc-body { min-width: 0; }
.pc-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.pc-theme {
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.pc-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 10px;
}
.pc-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 2px;
  margin-right: 4px;
}
.pc-tag--muted { opacity: 0.6; }

.pc-speaker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.pc-teach {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.7;
}
.pc-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--border);
  display: block;
}
.pc-speaker-name {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
  line-height: 1.3;
}

/* ===== TESTIMONIALS CAROUSEL ===== */
.testimonials {
  background: var(--text);
  color: #fefcf8;
  padding: clamp(56px, 8vw, 96px) 24px;
  text-align: center;
}
.testimonials-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 40px;
}
.carousel {
  max-width: 760px;
  margin: 0 auto;
}
.carousel-track {
  display: grid;
  min-height: 160px;
}
.carousel-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  margin: 0;
}
.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.carousel-slide blockquote {
  font-family: var(--font-condensed);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.45rem, 3.5vw, 2.2rem);
  line-height: 1.3;
  color: #fefcf8;
  margin: 0 0 20px;
  position: relative;
}
.carousel-slide blockquote::before {
  content: '\201C';
  font-family: var(--font-condensed);
  font-size: 5rem;
  color: var(--accent);
  line-height: 0;
  vertical-align: -0.45em;
  margin-right: 6px;
}
.carousel-slide figcaption {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ===== ZA KOGA ===== */
.zakoga-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 40px 0 28px;
}
@media (min-width: 768px) {
  .zakoga-grid { grid-template-columns: repeat(3, 1fr); }
}
.zakoga-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.zakoga-mark {
  font-size: 1.1rem;
  color: var(--accent);
}
.zakoga-card p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.55;
}
.zakoga-note {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

/* ===== INFO ===== */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin: 48px 0 16px;
}
@media (min-width: 580px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .info-grid { grid-template-columns: repeat(4, 1fr); }
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.info-icon {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}
.info-icon svg { width: 20px; height: 20px; }
.info-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.info-text strong {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.info-text span {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}
.info-text small { font-size: 0.82em; color: var(--text-muted); }
.info-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.info-text a:hover { opacity: 0.75; }
.info-booklet {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* ===== PRIJAVA ===== */
.prijava-sub {
  color: var(--text-muted);
  margin-bottom: 40px;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9em;
}
.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s ease;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(0, 0, 0, 0.25); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group input.error { border-color: #c0504f; }
.form-error {
  color: #c0504f;
  font-size: 0.9rem;
  text-align: center;
}
.form-success {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-alt);
  padding: 48px 24px 32px;
  border-top: 1px solid var(--border);
}
.footer .container {
  max-width: var(--container-max);
  margin: 0 auto;
}
.footer-org-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.footer-orgs {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 28px;
}
.footer-org {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-logo {
  font-family: var(--font-condensed);
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.footer-org-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-link:hover { color: var(--text); }
.footer-link svg { flex-shrink: 0; }
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.6;
  margin: 0;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.reveal.visible {
  opacity: 1;
}

/* Stagger program cards */
.program-grid .reveal:nth-child(2) { transition-delay: 0.05s; }
.program-grid .reveal:nth-child(3) { transition-delay: 0.10s; }
.program-grid .reveal:nth-child(4) { transition-delay: 0.15s; }
.program-grid .reveal:nth-child(5) { transition-delay: 0.20s; }
.program-grid .reveal:nth-child(6) { transition-delay: 0.25s; }
.program-grid .reveal:nth-child(7) { transition-delay: 0.30s; }
.program-grid .reveal:nth-child(8) { transition-delay: 0.35s; }

/* Stagger for-who cards */
.zakoga-grid .reveal:nth-child(2) { transition-delay: 0.10s; }
.zakoga-grid .reveal:nth-child(3) { transition-delay: 0.20s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-scroll-hint { animation: none; transition: none; }
  .reveal { opacity: 1; }
}
