/* ============================================================
   Urnik — stran z urnikom vadb in rezervacijami
   Uporablja skupne spremenljivke in razrede iz css/style.css
   ============================================================ */

/* ============================================================
   URNIK HERO
   ============================================================ */
.urnik-hero {
  margin-top: var(--header-h);
  padding: 128px 0 80px;
}
.urnik-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.urnik-hero__title {
  font-size: clamp(34px, 6vw, 48px);
  letter-spacing: -0.96px;
  max-width: 768px;
}
.urnik-hero__text {
  font-size: 18px;
  color: var(--body);
  max-width: 640px;
  margin-top: 8px;
}

/* ============================================================
   SHARED — heading with small icon (matches Storitve pattern)
   ============================================================ */
.svc-heading { display: flex; align-items: center; gap: 12px; }
.svc-heading__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  flex-shrink: 0;
  color: var(--green);
}
.svc-heading__icon svg { width: 26px; height: 26px; }
.svc-heading__title {
  font-weight: 600;
  font-size: clamp(24px, 4vw, 30px);
  color: var(--green);
}

/* ============================================================
   SERVICE SCHEDULE BLOCK
   ============================================================ */
.urnik-service {
  padding-block: 32px;
  border-bottom: 1px solid var(--border);
}
.urnik-service:last-of-type { border-bottom: none; }
.urnik-service__note {
  font-size: 16px;
  color: var(--body);
  margin: 10px 0 24px;
  padding-left: 48px;
}

.term-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 48px;
}
.term-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--card-breath);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.term-row--tbd {
  background: var(--card-cream);
  border-color: var(--border-warm);
}
.term-row__info { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.term-row__day { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--ink); }
.term-row__time { font-size: 15px; color: var(--body); }
.term-row__btn { padding: 10px 24px; font-size: 14px; flex-shrink: 0; }

/* ============================================================
   RESERVATION MODAL
   ============================================================ */
.reserve-modal[hidden] { display: none; }
.reserve-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.reserve-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 27, 27, .45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.reserve-modal__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}
.reserve-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 0;
  background: var(--bg-alt);
  color: var(--body);
  transition: background-color .18s ease, color .18s ease;
}
.reserve-modal__close:hover { background: var(--brown); color: #fff; }
.reserve-modal__close svg { width: 18px; height: 18px; }
.reserve-modal__title { font-weight: 600; font-size: 24px; margin: 4px 0 4px; }
.reserve-modal__term { font-size: 15px; color: var(--body); margin-bottom: 24px; }
.reserve-modal .form { margin-top: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .urnik-hero { padding: 96px 0 56px; }
  .urnik-service__note,
  .term-list { padding-left: 0; }
  .term-row { flex-direction: column; align-items: stretch; text-align: center; }
  .term-row__info { justify-content: center; }
  .term-row__btn { width: 100%; }
  .reserve-modal__panel { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
