/* =========================================================
   HELP-VIVO · PRIDRUŽI SE — ulazno čvorište (Instagram bio link)
   Premium staklo preko fotografije, brend plavo-tirkiz.
   Radi i bez JS-a (koraci preko :target); JS daje glatku verziju.
   ========================================================= */

:root {
  --hv-navy:  #0e3a52;
  --hv-navy2: #0f3d54;
  --hv-ink:   #26485c;
  --hv-body:  #4a6474;
  --hv-muted: #6d8798;
  --hv-blue:  #3f9bcd;
  --hv-blued: #2c7fb0;
  --hv-teal:  #2faaae;
  --hv-sky:   #eaf6fd;
  --hv-line:  #e1edf4;
  --hv-grad:  linear-gradient(135deg, #3f9bcd, #2faaae);
  --hv-grad-teal: linear-gradient(135deg, #2faaae, #2c7fb0);
}

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

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* ===== Pozadina + čitljivost ===== */
.entry-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background-image: url("../../media/login/1.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 16px;
}

.entry-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(14,58,82,.28), transparent 60%),
    linear-gradient(180deg, rgba(14,58,82,.30) 0%, rgba(14,58,82,.48) 100%);
  pointer-events: none;
}

.entry-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
}

/* ===== Brend zaglavlje ===== */
.entry-top {
  text-align: center;
  margin-bottom: 16px;
}
.brand { display: inline-flex; flex-direction: column; gap: 2px; }
.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(3,20,30,.45);
}
.brand-tag {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 6px rgba(3,20,30,.4);
}

/* ===== Kartica (staklo) ===== */
.entry-card {
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.6);
  padding: 28px 24px 24px;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(6,30,45,.30);
}

.entry-card__intro { text-align: center; margin-bottom: 20px; }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--hv-blued);
  margin-bottom: 8px;
}
.entry-card__intro h1 {
  color: var(--hv-navy);
  font-weight: 800;
  font-size: 25px;
  line-height: 1.2;
  margin: 0 0 8px;
}
.entry-card__intro p {
  color: var(--hv-body);
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0;
}

/* ===== Glavne opcije ===== */
.entry-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.entry-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1.5px solid var(--hv-line);
  border-left: 4px solid var(--hv-blue);
  border-radius: 16px;
  padding: 15px 16px;
  min-height: 76px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.entry-option--work { border-left-color: var(--hv-teal); }
.entry-option:hover,
.entry-option:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15,92,96,.16);
  outline: none;
}
.entry-option__icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--hv-sky);
  color: var(--hv-blued);
}
.entry-option--work .entry-option__icon { color: var(--hv-teal); }
.entry-option__icon svg { width: 24px; height: 24px; }
.entry-option__content { flex: 1; min-width: 0; }
.entry-option__title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--hv-navy);
  margin-bottom: 3px;
}
.entry-option__desc {
  display: block;
  font-size: 12.7px;
  line-height: 1.45;
  color: var(--hv-muted);
}
.entry-option__arrow { flex: 0 0 auto; color: #b9cedb; }
.entry-option__arrow svg { width: 20px; height: 20px; display: block; }
.entry-option:hover .entry-option__arrow { color: var(--hv-blue); }

/* ===== Situacione prečice (vodiči) ===== */
.entry-guides {
  border-top: 1px solid var(--hv-line);
  padding-top: 16px;
  margin-bottom: 16px;
}
.entry-guides__label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hv-ink);
  margin-bottom: 10px;
}
.entry-guides__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.guide-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hv-navy2);
  background: var(--hv-sky);
  border: 1px solid #d7ebf7;
  border-radius: 999px;
  padding: 8px 13px;
  line-height: 1;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.guide-chip span { font-size: 14px; }
.guide-chip:hover,
.guide-chip:focus-visible {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 6px 14px rgba(15,92,96,.12);
  outline: none;
}

/* ===== Tihi red — ostale usluge ===== */
.entry-more {
  font-size: 12px;
  line-height: 1.7;
  color: var(--hv-muted);
  text-align: center;
  margin: 0 0 18px;
}
.entry-more a { color: var(--hv-blued); font-weight: 600; }
.entry-more a:hover { text-decoration: underline; }

/* ===== Trust red ===== */
.entry-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hv-line);
}
.entry-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hv-ink);
}
.entry-trust svg { width: 15px; height: 15px; color: var(--hv-teal); }

.entry-login {
  text-align: center;
  font-size: 13px;
  color: var(--hv-body);
  margin: 16px 0 0;
}
.entry-login a { color: var(--hv-blued); font-weight: 700; text-decoration: underline; }

/* ===== Koraci: prikaz/skrivanje ===== */
.flow-step { animation: hvFade .28s ease; }
/* Bez JS: „choose" je podrazumevani, ostali preko :target */
.flow-step { display: none; }
#step-choose { display: block; }
#step-family:target, #step-staff:target { display: block; }
body:has(#step-family:target) #step-choose,
body:has(#step-staff:target) #step-choose { display: none; }
/* Sa JS: .is-active je jedini izvor istine (scoped !important namerno) */
html.js .flow-step { display: none !important; }
html.js .flow-step.is-active { display: block !important; }

@keyframes hvFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Nazad ===== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--hv-blued);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 4px 2px;
  margin-bottom: 16px;
  cursor: pointer;
}
.back-btn:hover { color: var(--hv-navy); }
.back-btn svg { width: 18px; height: 18px; }

/* ===== Benefiti (korak 2) ===== */
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--hv-ink);
  background: var(--hv-sky);
  border: 1px solid #dcecf6;
  padding: 12px 14px;
  border-radius: 14px;
}
.benefit-icon {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: #fff;
  color: var(--hv-teal);
}
.benefit-icon svg { width: 19px; height: 19px; }

/* ===== CTA ===== */
.entry-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 54px;
  padding: 15px 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  color: #fff !important;
  background: var(--hv-grad);
  box-shadow: 0 12px 26px rgba(47,140,150,.34);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.cta-work { background: var(--hv-grad-teal); }
.cta-primary svg { width: 20px; height: 20px; }
.cta-primary:hover,
.cta-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(47,140,150,.44);
  filter: brightness(1.04);
  outline: none;
}
.microcopy {
  font-size: 12px;
  color: var(--hv-muted);
  margin: 4px 0 0;
}
.alt-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--hv-blued);
  text-decoration: underline;
  margin-top: 2px;
}
.alt-link:hover { color: var(--hv-navy); }

/* ===== Podnožje ===== */
.entry-foot {
  text-align: center;
  font-size: 11.5px;
  color: rgba(255,255,255,.82);
  text-shadow: 0 1px 6px rgba(3,20,30,.4);
  margin: 16px 0 0;
}
.entry-foot a { text-decoration: underline; }

/* ===== Sitni telefoni ===== */
@media (max-width: 380px) {
  .entry-card { padding: 24px 18px 20px; }
  .entry-card__intro h1 { font-size: 23px; }
  .entry-option { padding: 13px 13px; gap: 12px; }
  .entry-option__desc { font-size: 12.3px; }
  .entry-trust { gap: 6px 12px; }
}

/* ===== Desktop (redak, ali uredan) ===== */
@media (min-width: 640px) {
  .entry-shell { max-width: 480px; }
  .entry-card { padding: 34px 30px 28px; }
  .entry-card__intro h1 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-step { animation: none; }
  .entry-option, .guide-chip, .cta-primary { transition: none; }
}
