/* =====================================================================
   ALVEO — Pas = Covek(TM) · Protokol 240(TM)  ·  JEDINSTVENA TEMA
   Deep teal + SILVER glass morph + fiksna foto-pozadina (nebo) + Manrope.
   Ucitava se na SVAKOJ stranici funnela:
   index(home) · kviz · bridge · landing · upsell · checkout · thank-you · nauka
   --------------------------------------------------------------------
   Sve boje idu preko tokena (var(--..)) — promenis ovde = promeni se svuda.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* Tipografija (Manrope: cist, profesionalan, podrzava c c z s dj) */
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* BREND PALETA — duboki tirkiz */
  --white:        #ffffff;
  --teal:         #33424e;
  --teal-dark:    #232f38;
  --teal-darker:  #161e25;
  --teal-light:   #dde4ea;
  --gold:         #b8862e;
  --gold-light:   #f4ecda;

  /* AKCENAT — boja sunca (Pas = Čovek™ by Alvéo · Protokol 240™)
     --accent = statična sunčana za bitne reči (dovoljno tamna da je čitka)
     --sun-1/2/3 = gradijent žuto→narandžasto za brend i CTA (animiran) */
  --accent:       #D97706;
  --accent-dark:  #B45309;
  --accent-ink:   #2B1500;  /* taman tekst na CTA — oštar kontrast */
  --sun-1:        #F7B733;
  --sun-2:        #ED8E0B;
  --sun-3:        #E2680C;

  --text:         #0f262b;
  --text-mid:     #334c50;
  --text-light:   #5f777b;

  /* Pozadina / staklo (SILVER morph, jako) */
  --sky-fallback:      #bfe0f2;
  --radius:            18px;

  --glass-card:        rgba(233, 239, 242, 0.55);
  --glass-card-border: rgba(255, 255, 255, 0.60);
  --glass-strong:      rgba(242, 246, 248, 0.80);
  --glass-chrome:      rgba(222, 230, 233, 0.50);
  --glass-tint:        rgba(208, 220, 224, 0.45);

  --blur-card:    blur(24px) saturate(1.35);
  --blur-chrome:  blur(26px) saturate(1.5);

  --shadow-card:  0 8px 32px rgba(26,34,41, 0.16);
  --shadow-lg:    0 16px 48px rgba(26,34,41, 0.22);
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: url('hero-sky.jpg') center center / cover no-repeat fixed;
  background-color: var(--sky-fallback);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (max-width: 1024px) {
  body {
    background: url('hero-sky.jpg') center top / cover no-repeat scroll;
    background-color: var(--sky-fallback);
  }
}

/* Forsiraj Manrope svuda (pregazi stari Nunito na svim stranicama) */
body, h1, h2, h3, h4, h5, h6, p, a, li, span, div, em, strong, small, b, i,
button, input, select, textarea, label, th, td, blockquote {
  font-family: var(--font) !important;
}

/* Pomocne SILVER-glass klase */
.av-glass {
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--blur-card);
  backdrop-filter: var(--blur-card);
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.av-glass-strong {
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur-card);
  backdrop-filter: var(--blur-card);
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.av-chrome {
  background: var(--glass-chrome);
  -webkit-backdrop-filter: var(--blur-chrome);
  backdrop-filter: var(--blur-chrome);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.av-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font);
  font-size: 17px; font-weight: 800; line-height: 1;
  padding: 16px 26px; border-radius: 14px;
  border: none; cursor: pointer; text-decoration: none;
  background: var(--teal); color: #fff;
  box-shadow: 0 8px 28px rgba(20,28,35, 0.40);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.av-btn:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(20,28,35, 0.50); }
.av-btn-ghost { background: rgba(255, 255, 255, 0.78); color: var(--teal-dark); border: 1.5px solid var(--teal); box-shadow: none; }
.av-btn-ghost:hover { background: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ── Fallback za slike koje još ne postoje (umesto polomljene ikonice) ── */
.av-img-fallback{
  display:flex;align-items:center;justify-content:center;text-align:center;
  min-height:120px;padding:18px;border-radius:14px;
  background:var(--glass-card);border:1px dashed var(--glass-card-border);
  color:var(--text-mid);font-weight:700;font-size:13px;line-height:1.4;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}

/* (uklonjen efekat presijavanja slova) */


/* =====================================================================
   AKCENAT — BOJA SUNCA · važi na SVIM stranicama
   · bitne reči (strong/b/em/.highlight) — statična sunčana (--accent)
   · brend (Pas = Čovek™ by Alvéo · Protokol 240™) — animirano prelivanje
   · CTA dugmad — animirani gradijent žuto→narandžasto
   Selektori počinju sa "html body" da pregaze inline stilove stranica.
   ===================================================================== */

@keyframes av-sun-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Oštra i čitka slova — svuda */
html body {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

/* Brend nazivi (main.js ih automatski uvija u .av-brand) — sunce koje se preliva */
html body .av-brand {
  color: var(--accent) !important;               /* fallback za stare browsere */
  font-weight: 800 !important;
  text-shadow: none !important;
  white-space: nowrap;
  background-image: linear-gradient(90deg, var(--sun-3), var(--sun-2), var(--sun-1), var(--sun-2), var(--sun-3));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: av-sun-shift 6s ease-in-out infinite;
}

/* Bitne reči u tekstu — statična sunčana, čitka */
html body p strong, html body li strong, html body blockquote strong,
html body p b, html body li b,
html body h1 em, html body h2 em, html body h3 em, html body h4 em,
html body .section-title em, html body .highlight {
  color: var(--accent) !important;
  font-weight: 800 !important;
  font-style: normal;
  text-shadow: none !important;
}
/* …ali ne unutar dugmadi i kviz-opcija (tamo nasleđuju boju dugmeta) */
html body .option-btn strong, html body .option-btn b,
html body button strong, html body .av-btn strong,
html body .btn-primary strong, html body .btn-gold strong {
  color: inherit !important;
}

/* CTA dugmad — animirani sunčani gradijent + taman tekst (oštro i čitko) */
html body .av-btn, html body .btn-primary, html body .nav-cta,
html body .btn-gold, html body .btn-teal,
html body .submit-btn, html body .next-btn,
html body .rv-submit-btn, html body .rv-write-btn,
html body .ing-see-all-btn, html body .discount-copy-btn {
  background-image: linear-gradient(115deg, var(--sun-1), var(--sun-2), var(--sun-3), var(--sun-2), var(--sun-1)) !important;
  background-size: 280% 100% !important;
  background-color: var(--sun-2) !important;
  color: var(--accent-ink) !important;
  font-weight: 800 !important;
  text-shadow: none !important;
  animation: av-sun-shift 7s ease-in-out infinite !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 8px 26px rgba(226, 124, 12, 0.38) !important;
  letter-spacing: 0.01em;
}
html body .av-btn:hover, html body .btn-primary:hover, html body .nav-cta:hover,
html body .btn-gold:hover, html body .btn-teal:hover,
html body .submit-btn:hover, html body .next-btn:hover,
html body .rv-submit-btn:hover, html body .rv-write-btn:hover,
html body .ing-see-all-btn:hover, html body .discount-copy-btn:hover {
  background-image: linear-gradient(115deg, var(--sun-2), var(--sun-3), var(--accent-dark), var(--sun-3), var(--sun-2)) !important;
  color: #FFF8EC !important;
  box-shadow: 0 12px 32px rgba(226, 124, 12, 0.5) !important;
}

/* Sekundarna (ghost) dugmad — sunčani okvir */
html body .av-btn-ghost, html body .btn-ghost {
  background: rgba(255, 255, 255, 0.82) !important;
  color: var(--accent-dark) !important;
  border: 1.5px solid var(--accent) !important;
  box-shadow: none !important;
  animation: none !important;
  background-image: none !important;
}

/* Kviz — izbor opcije dobija sunčani okvir */
html body .option-btn:hover, html body .option-btn.selected,
html body .plan-btn.active, html body .size-btn.active {
  border-color: var(--accent) !important;
}

/* Fokus za tastaturu — sunčani prsten */
html body a:focus-visible, html body button:focus-visible {
  outline: 3px solid var(--accent) !important;
  outline-offset: 2px;
}

/* Bez animacije za korisnike koji su isključili pokret u sistemu */
@media (prefers-reduced-motion: reduce) {
  html body .av-brand,
  html body .av-btn, html body .btn-primary, html body .nav-cta,
  html body .btn-gold, html body .btn-teal,
  html body .submit-btn, html body .next-btn,
  html body .rv-submit-btn, html body .rv-write-btn,
  html body .ing-see-all-btn, html body .discount-copy-btn {
    animation: none !important;
  }
}
