/* ═══════════════════════════════════════════════════════════════
   Čitulja — memorijalni vizuelni sloj (učitava se POSLE style.css)
   Tih, dostojanstven stil: serif naslovi, topli papir, zlatne linije,
   tamni hero sa svećom. Ne menja raspored, samo izgled.
   ═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --gold:        #b8923a;
  --gold-soft:   #d9c48c;
  --gold-faint:  rgba(184,146,58,.22);
  --ink:         #1e1b17;
  --night:       #15130f;
  --paper:       #f4efe6;
  --paper-2:     #fbf8f1;
  --font-display:'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:   'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bg:          var(--paper);
  --card:        var(--paper-2);
  --primary:     var(--ink);
  --border:      #d9d3c7;
  --muted:       #6b6459;
  --text:        #24211c;
}

body {
  font-family: var(--font-body);
  background-color: var(--paper);
  background-image: url('../img/grain.png');
}

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; letter-spacing: .01em; }

/* ── Navigacija (zajednička: nav_public.php) ── */
.pub-nav {
  display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 200; box-sizing: border-box;
  width: 100%;
  height: 64px;
  padding: 0 24px;
  background: var(--night);
  border-bottom: 1px solid var(--gold-faint);
  box-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.pub-nav__brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 600;
  color: var(--paper); letter-spacing: .02em; margin-right: 22px;
}
.pub-nav__brand svg { width: 18px; height: 26px; }
.pub-nav__tabs { display: flex; gap: 4px; flex: 1; }
.pub-nav__auth { display: flex; gap: 8px; margin-left: auto; flex-shrink: 0; }
.pub-nav__tab, .pub-nav__auth a { text-decoration: none; white-space: nowrap; }
.pub-nav__auth a { padding: 7px 16px; font-weight: 600; }
.pub-nav__tab {
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  color: rgba(244,239,230,.68); padding: 9px 14px; border-radius: 0; border-bottom: 2px solid transparent;
}
.pub-nav__tab:hover { background: none; color: #fff; border-bottom-color: rgba(217,196,140,.5); }
.pub-nav__tab--active { background: none; color: #fff; border-bottom-color: var(--gold); }
.pub-nav__auth a { border-radius: 999px; font-size: .84rem; letter-spacing: .02em; }
.pub-nav__auth .btn-register { background: var(--gold); color: var(--night); font-weight: 700; }
.pub-nav__auth .btn-register:hover { background: var(--gold-soft); opacity: 1; }
.pub-nav__auth .btn-login { color: rgba(244,239,230,.8); border: 1px solid rgba(244,239,230,.22); }
.pub-nav__auth .btn-login:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ── Veliki hero (početna) ── */
.hero {
  position: relative; color: var(--paper); overflow: hidden;
  background: var(--night) url('../img/hero-candle.jpg') center right / cover no-repeat;
  min-height: 400px; display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(21,19,15,.94) 0%, rgba(21,19,15,.82) 45%, rgba(21,19,15,.30) 100%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); }
.hero .container { position: relative; padding: 56px 16px 70px; }
.hero__kicker { font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 10px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 500; line-height: 1.12; margin: 0 0 14px; max-width: 14ch; text-wrap: balance; }
.hero p { max-width: 540px; font-size: 1.08rem; line-height: 1.6; color: rgba(244,239,230,.85); margin: 0; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn-gold, .btn-ghost {
  display: inline-block; padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  text-decoration: none; letter-spacing: .02em; transition: transform .15s, background .15s;
}
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(244,239,230,.45); color: var(--paper); }
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.hero__note { margin-top: 18px; font-size: .85rem; color: rgba(244,239,230,.6); }

/* ── Mali hero (cenovnik, objavi, pravne strane) ── */
.page-hero {
  position: relative; color: var(--paper); text-align: center; padding: 44px 16px 40px;
  background: var(--night) url('../img/hero-candle.jpg') center 35% / cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(21,19,15,.86); }
.page-hero > * { position: relative; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 500; margin: 0; }
.page-hero p { margin: 10px auto 0; max-width: 620px; color: rgba(244,239,230,.78); font-size: 1rem; }
.page-hero .kicker { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 8px; }

/* ── Filter preko ruba heroja ── */
.hero + div .filter-bar, .filter-bar {
  position: relative; z-index: 2; margin-top: -36px;
  border-radius: 4px; border: 1px solid var(--border); border-top: 3px solid var(--gold);
  background: var(--paper-2); box-shadow: 0 14px 40px rgba(0,0,0,.16);
}
.filter-bar label { color: var(--muted); letter-spacing: .06em; }
.filter-bar .button { background: var(--ink); border-radius: 999px; }

/* ── Naslovi sekcija sa ornamentom ── */
.section-label { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink); }
.section-label::after { background: linear-gradient(90deg, var(--gold-soft), transparent); height: 1px; }
.ornament { display: flex; align-items: center; gap: 16px; margin: 44px 0 20px; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; }
.ornament::before { background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.ornament::after  { background: linear-gradient(90deg, var(--gold-soft), transparent); }
.ornament h2 { margin: 0; font-size: 1.75rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.ornament h2 small { display: block; text-align: center; font-family: var(--font-body); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 2px; }

/* ── Kako funkcioniše ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step { background: var(--paper-2); border: 1px solid var(--border); border-radius: 4px; padding: 28px 22px 24px; text-align: center; position: relative; }
.step::before { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 48px; height: 3px; background: var(--gold); }
.step__num { font-family: var(--font-display); font-size: 2.3rem; line-height: 1; color: var(--gold); font-weight: 500; }
.step h3 { font-size: 1.3rem; margin: 8px 0 6px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; line-height: 1.55; }

/* ── Paketi (teaser na početnoj) ── */
.pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; align-items: stretch; }
.pkg-t { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 24px 20px 22px; text-align: center; display: flex; flex-direction: column; position: relative; }
.pkg-t.pop { border-color: var(--gold); box-shadow: 0 10px 34px rgba(184,146,58,.18); }
.pkg-t .tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--night); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.pkg-t h3 { font-size: 1.35rem; margin: 4px 0 2px; }
.pkg-t .desc { color: var(--muted); font-size: .9rem; min-height: 38px; }
.pkg-t .price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; color: var(--ink); margin: 10px 0 0; line-height: 1; }
.pkg-t .eur { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.pkg-t ul { list-style: none; padding: 0; margin: 0 0 18px; text-align: left; flex: 1; }
.pkg-t li { padding: 5px 0 5px 22px; position: relative; font-size: .92rem; border-bottom: 1px solid rgba(0,0,0,.05); }
.pkg-t li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .8rem; top: 7px; }
.pkg-t .btn-gold, .pkg-t .btn-dark { display: block; text-align: center; }
.btn-dark { background: var(--ink); color: var(--paper); border-radius: 999px; padding: 11px 22px; font-weight: 700; text-decoration: none; }
.btn-dark:hover { background: #000; }

/* ── Kartice objava: blaži „pergament" ── */
.obit-grid .obit-card { transition: transform .18s, box-shadow .18s; }
.obit-grid .obit-card:hover { transform: translateY(-3px); }
.empty-state { background: var(--paper-2); border: 1px dashed var(--gold-soft); border-radius: 4px; padding: 40px 20px; text-align: center; }

/* ── Cenovnik ── */
.pkg { border-radius: 4px; }
.pkg.pop { border-color: var(--gold); box-shadow: 0 10px 34px rgba(184,146,58,.18); }
.pkg .badge { background: var(--gold); color: var(--night); font-weight: 700; }
.pkg .price { font-family: var(--font-display); font-size: 2.3rem; }
.pkg li:before { content: "✦"; color: var(--gold); font-size: .8rem; }
.cen .header h1 { font-weight: 500; }

/* ── Dugmad (globalno) ── */
.button { border-radius: 999px; font-family: var(--font-body); }
.button--secondary { background: transparent; border: 1px solid var(--border); color: var(--ink); }

/* ── Footer ── */
.site-footer { background: var(--night); color: rgba(244,239,230,.72); margin-top: 56px; border-top: 1px solid var(--gold-faint); }
.site-footer .inner { max-width: 1100px; margin: 0 auto; padding: 42px 20px 26px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
.site-footer .brand { font-family: var(--font-display); font-size: 1.6rem; color: var(--paper); display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.site-footer .brand svg { width: 16px; height: 24px; }
.site-footer .about { font-size: .92rem; line-height: 1.65; margin: 10px 0 0; max-width: 380px; }
.site-footer h4 { font-family: var(--font-display); color: var(--paper); font-size: 1.15rem; margin: 0 0 10px; font-weight: 600; }
.site-footer .links a { display: block; color: rgba(244,239,230,.72); text-decoration: none; padding: 3px 0; font-size: .92rem; }
.site-footer .links a:hover { color: var(--gold-soft); }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 14px 20px 18px; text-align: center; font-size: .8rem; color: rgba(244,239,230,.5); }
.site-footer .bottom a { color: rgba(244,239,230,.6); text-decoration: none; }
.site-footer .pay-badges { border: none; }
.site-footer, .site-footer .inner, .site-footer .bottom { box-sizing: border-box; }
body > .site-footer { width: 100%; }

/* ── Mobilni ── */
@media (max-width: 720px) {
  .pub-nav { height: 58px; padding: 0 12px; }
  .pub-nav__brand { font-size: 1.3rem; margin-right: 10px; }
  .pub-nav__tab { padding: 8px 9px; font-size: .74rem; letter-spacing: .04em; }
  .hero { background-image: url('../img/hero-candle-m.jpg'); background-position: center top; min-height: 340px; }
  .hero::before { background: linear-gradient(180deg, rgba(21,19,15,.55) 0%, rgba(21,19,15,.92) 70%); }
  .hero .container { padding: 44px 16px 56px; }
  .hero h1 { max-width: none; }
  .filter-bar { margin-top: -22px; }
  .site-footer .inner { grid-template-columns: 1fr; gap: 20px; padding: 32px 18px 18px; }
  .ornament h2 { font-size: 1.45rem; white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .obit-grid .obit-card, .btn-gold { transition: none; } }
