/* ==========================================================================
   Bez greške — Lektoriranje i jezično uređivanje
   Mario Trupinić, prof. hrvatskoga jezika i književnosti
   ========================================================================== */

:root {
  --navy:        #0E2A3F;
  --navy-800:    #123350;
  --navy-700:    #1B4568;
  --ink:         #16232E;
  --slate:       #55677A;
  --slate-300:   #8A9AA8;
  --green:       #1C6B57;
  --green-600:   #23806A;
  --green-500:   #2E9E7E;
  --green-soft:  #E9F3EF;
  --green-tint:  #F3F8F6;
  --red:         #C2452D;
  --gold:        #B8873B;
  --paper:       #FFFFFF;
  --mist:        #F5F7F8;
  --mist-200:    #ECF0F2;
  --line:        #E4E9ED;
  --shadow-sm:   0 1px 2px rgba(14,42,63,.06), 0 4px 14px rgba(14,42,63,.05);
  --shadow-md:   0 8px 30px rgba(14,42,63,.10);
  --shadow-lg:   0 24px 60px rgba(14,42,63,.14);
  --radius:      18px;
  --radius-sm:   12px;
  --maxw:        1140px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.12; font-weight: 600; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.32rem; line-height: 1.25; }
p  { margin: 0 0 1rem; }
a  { color: var(--green-600); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--green); }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
strong { color: var(--navy); font-weight: 600; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 118px) 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #DCE6EE; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--green-600);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--green-500); border-radius: 2px; }
.section--navy .eyebrow { color: var(--green-500); }

.lead { font-size: 1.16rem; color: var(--slate); max-width: 62ch; }
.section--navy .lead { color: #B9C9D6; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green-600); color: #fff; box-shadow: 0 8px 22px rgba(28,107,87,.28); }
.btn--primary:hover { background: var(--green); color: #fff; box-shadow: 0 12px 30px rgba(28,107,87,.36); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #EAF2F7; color: var(--navy); transform: translateY(-2px); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--lg { padding: 17px 32px; font-size: 1.04rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 4px 20px rgba(14,42,63,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--navy); display: grid; place-items: center; }
.brand__mark svg { width: 26px; height: 26px; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.24rem; color: var(--navy); line-height: 1; }
.brand__sub  { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-300); font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a { color: var(--navy-800); font-weight: 500; font-size: .95rem; padding: 9px 13px; border-radius: 9px; transition: background .16s ease, color .16s ease; }
.nav__links a:hover { background: var(--mist); color: var(--navy); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 8vw, 104px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 88% -10%, var(--green-tint) 0%, rgba(243,248,246,0) 55%),
    radial-gradient(90% 70% at -5% 0%, #F3F6F9 0%, rgba(243,246,249,0) 60%);
}
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero__eyebrow { color: var(--green-600); }
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.4rem); letter-spacing: -.025em; margin-bottom: .28em; }
.hero h1 .accent { position: relative; white-space: nowrap; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: .06em; height: .32em;
  background: linear-gradient(90deg, rgba(46,158,126,.28), rgba(46,158,126,.14));
  border-radius: 4px; z-index: -1;
}
.hero__sub { font-size: 1.18rem; color: var(--slate); max-width: 52ch; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 22px 30px; }
.hero__trust span { display: inline-flex; align-items: center; gap: 9px; font-size: .92rem; color: var(--slate); font-weight: 500; }
.hero__trust svg { width: 18px; height: 18px; color: var(--green-500); flex: none; }

/* Proof card (hero visual) */
.proofcard {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg); padding: 30px 30px 26px; position: relative;
}
.proofcard__bar { display: flex; gap: 7px; margin-bottom: 22px; }
.proofcard__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--mist-200); }
.proofcard__bar i:first-child { background: #F1C4BB; }
.proofcard__doc { font-family: var(--serif); font-size: 1.12rem; line-height: 1.9; color: var(--ink); }
.proofcard__doc .del { color: var(--red); text-decoration: line-through; text-decoration-thickness: 2px; opacity: .8; }
.proofcard__doc .ins { color: var(--green-600); font-weight: 600; border-bottom: 2px solid var(--green-500); }
.proofcard__caret { color: var(--green-500); font-weight: 700; }
.proofcard__stamp {
  position: absolute; right: -16px; bottom: -16px; background: var(--navy); color: #fff;
  border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
}
.proofcard__stamp svg { width: 30px; height: 30px; color: var(--green-500); }
.proofcard__stamp b { font-family: var(--serif); font-size: 1.02rem; display: block; line-height: 1.1; }
.proofcard__stamp span { font-size: .74rem; color: #A9BECD; letter-spacing: .04em; }

/* ---------- Marquee ---------- */
.marquee { background: var(--navy); color: #fff; padding: 15px 0; overflow: hidden; position: relative; }
.marquee__track { display: flex; gap: 44px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: inline-flex; align-items: center; gap: 44px; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: #E7EEF3; white-space: nowrap; }
.marquee__track span::after { content: "✦"; color: var(--green-500); font-style: normal; font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #D5DEE4; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--green-soft);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; color: var(--green); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); margin: 0; font-size: .98rem; }

/* Checklist */
.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--slate); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .36em; width: 18px; height: 18px;
  background: var(--green-soft); border-radius: 50%;
}
.checklist li::after {
  content: ""; position: absolute; left: 5px; top: .62em; width: 8px; height: 5px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.checklist--tight li { margin-bottom: 9px; font-size: .97rem; }

/* Two-column feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split--reverse .split__media { order: 2; }

/* About */
.about__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.about__portrait {
  aspect-ratio: 4/5; border-radius: var(--radius); background:
    linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%);
  display: grid; place-items: center; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.about__portrait::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 80% 0%, rgba(46,158,126,.35), transparent 55%);
}
.about__mono { font-family: var(--serif); font-size: 5.4rem; color: #fff; font-weight: 600; z-index: 1; letter-spacing: .02em; }
.about__badge {
  position: absolute; left: 20px; bottom: 20px; z-index: 2; background: rgba(255,255,255,.94);
  border-radius: 12px; padding: 10px 14px; font-size: .82rem; color: var(--navy); font-weight: 600;
  display: flex; align-items: center; gap: 8px; backdrop-filter: blur(6px);
}
.about__badge svg { width: 16px; height: 16px; color: var(--green); }

/* Audience chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 11px 18px; font-size: .95rem; font-weight: 500; color: var(--navy-800);
  box-shadow: var(--shadow-sm); transition: transform .16s ease, border-color .16s ease;
}
.chip:hover { transform: translateY(-2px); border-color: var(--green-500); }
.chip svg { width: 17px; height: 17px; color: var(--green-500); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 34px;
  box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column;
}
.price-card--featured { background: var(--navy); color: #C9D8E3; border-color: var(--navy); box-shadow: var(--shadow-lg); }
.price-card--featured h3, .price-card--featured .price__amount { color: #fff; }
.price-tag { position: absolute; top: 22px; right: 22px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); background: var(--green-500); padding: 5px 12px; border-radius: 999px; }
.price__label { font-family: var(--sans); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); margin-bottom: 14px; }
.price-card--featured .price__label { color: var(--green-500); }
.price__amount { font-family: var(--serif); font-size: 3.1rem; font-weight: 600; color: var(--navy); line-height: 1; margin-bottom: 4px; }
.price__amount small { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--slate); }
.price__unit { color: var(--slate); font-size: .95rem; margin-bottom: 24px; }
.price-card--featured .price__unit { color: #9FB4C4; }
.price-card ul { margin-bottom: 26px; }
.price-card--featured .checklist li { color: #C9D8E3; }
.price-card--featured .checklist li::before { background: rgba(46,158,126,.25); }
.price-card--featured .checklist li::after { border-color: var(--green-500); }
.price-card .btn { margin-top: auto; }
.price-note { text-align: center; color: var(--slate); font-size: .95rem; margin-top: 26px; }

/* Process timeline */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; }
.step { position: relative; }
.step__num {
  width: 54px; height: 54px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  color: var(--green); box-shadow: var(--shadow-sm); margin-bottom: 20px; position: relative; z-index: 2;
}
.section--navy .step__num { background: var(--navy-800); border-color: rgba(255,255,255,.14); color: var(--green-500); }
.step h3 { font-size: 1.14rem; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: .95rem; margin: 0; }
.section--navy .step p { color: #A9BECD; }
.steps::before {
  content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); z-index: 1;
}
.section--navy .steps::before { background: repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 8px, transparent 8px 16px); }

/* Quote band */
.quote-band { background: var(--green-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote-band .container { padding-top: 70px; padding-bottom: 70px; }
.pull-quote { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.28; color: var(--navy); max-width: 20ch; margin: 0 auto; text-align: center; font-weight: 500; }
.pull-quote .hl { color: var(--green-600); font-style: italic; }
.pull-quote__mark { font-size: 3rem; color: var(--green-500); line-height: 0; display: block; margin-bottom: 8px; }

/* Instrukcije band */
.tutor {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-700) 100%);
  border-radius: 28px; padding: clamp(38px, 5vw, 62px); color: #C9D8E3; position: relative; overflow: hidden;
}
.tutor::after { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(46,158,126,.28), transparent 68%); }
.tutor__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.tutor h2 { color: #fff; }
.tutor .checklist li { color: #C9D8E3; }
.tutor .checklist li::before { background: rgba(46,158,126,.22); }
.tutor__stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 26px; text-align: center; }
.tutor__stat b { font-family: var(--serif); font-size: 3rem; color: #fff; display: block; line-height: 1; }
.tutor__stat span { color: #A9BECD; font-size: .95rem; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 52px; align-items: start; }
.contact__methods { display: grid; gap: 16px; margin: 28px 0 8px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); transition: border-color .16s ease, transform .16s ease; }
.contact-item:hover { border-color: var(--green-500); transform: translateY(-2px); }
.contact-item__ic { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); display: grid; place-items: center; flex: none; }
.contact-item__ic svg { width: 21px; height: 21px; color: var(--green); }
.contact-item span { font-size: .78rem; color: var(--slate); display: block; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contact-item b { font-size: 1.05rem; color: var(--navy); font-family: var(--sans); font-weight: 600; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-md); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .84rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: .98rem; color: var(--ink); padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 11px; background: var(--mist); transition: border-color .16s ease, background .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-500); background: #fff; box-shadow: 0 0 0 4px rgba(46,158,126,.12); }
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { width: 100%; }
.form .btn[disabled] { opacity: .6; cursor: default; transform: none; }
.form__note { font-size: .82rem; color: var(--slate-300); text-align: center; margin: 14px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { display: none; margin-top: 14px; padding: 13px 16px; border-radius: 11px; font-size: .93rem; font-weight: 500; text-align: center; }
.form__status.show { display: block; }
.form__status.ok  { background: var(--green-soft); color: var(--green); border: 1px solid #C7E4D9; }
.form__status.err { background: #FCEEEB; color: #A5361F; border: 1px solid #F3D2CA; }

/* Footer */
.site-footer { background: var(--navy); color: #9FB4C4; padding: 68px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; margin-bottom: 46px; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__sub { color: #7C93A6; }
.footer__about { color: #A9BECD; font-size: .96rem; max-width: 38ch; margin-top: 18px; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer a { color: #A9BECD; font-size: .96rem; }
.footer a:hover { color: #fff; }
.footer__social { display: flex; gap: 12px; margin-top: 4px; }
.footer__social a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.07); display: grid; place-items: center; transition: background .16s ease; }
.footer__social a:hover { background: var(--green-600); }
.footer__social svg { width: 19px; height: 19px; color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem; color: #7C93A6; }
.footer__bottom .quip { font-style: italic; color: var(--green-500); font-family: var(--serif); }

/* Reveal on scroll — progressive enhancement: only hidden when JS is active */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .split, .tutor__grid, .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: inline-flex; }
  .grid-3, .grid-2, .grid-4, .pricing, .form__row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .proofcard__stamp { right: 12px; }
  h2 { font-size: 1.75rem; }
  body { font-size: 16px; }

  /* Mobile menu */
  .nav__links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 74px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 14px 20px 20px;
  }
  .nav__links.open a { padding: 13px 12px; border-radius: 10px; }
}

.nav__toggle {
  width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 11px;
  align-items: center; justify-content: center; cursor: pointer; color: var(--navy);
}
.nav__toggle svg { width: 22px; height: 22px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }

/* ============================================================
   DORADE — moderni detalji
   ============================================================ */

/* Pristupačnost: jasan focus prsten */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--green-500); outline-offset: 2px; border-radius: 6px;
}

/* Traka napretka čitanja */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--green-600), var(--green-500));
  z-index: 70; transition: width .1s linear; will-change: width;
}

/* Dekorativni pilcrow (¶) — editorijalni identitet lektora */
.hero__pilcrow {
  position: absolute; top: 50%; right: -3vw; transform: translateY(-50%);
  font-family: var(--serif); font-weight: 500; font-size: 46vw; line-height: 0;
  color: var(--green-500); opacity: .05; z-index: -1; pointer-events: none; user-select: none;
}
@media (max-width: 980px) { .hero__pilcrow { right: -18vw; font-size: 90vw; opacity: .04; } }

/* Animirani underline za navigaciju + scrollspy aktivna stavka */
.nav__links a { position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
  background: var(--green-500); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--navy); }

/* Kartice — akcentna crta na vrhu pri hoveru */
.card { position: relative; overflow: hidden; }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green-600), var(--green-500));
  transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.card:hover::before { transform: scaleX(1); }

/* Hamburger → X animacija */
.nav__toggle svg { transition: opacity .2s ease; }
.nav__toggle .icon-close { display: none; }
.nav__toggle.is-open .icon-open { display: none; }
.nav__toggle.is-open .icon-close { display: block; }

/* Nježno lebdenje pečata "Lektorirano" */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.proofcard__stamp { animation: floaty 4.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .proofcard__stamp { animation: none; } }

/* Gumb "natrag na vrh" */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 55;
  width: 48px; height: 48px; border-radius: 14px; border: none; cursor: pointer;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
  transform: translateY(12px) scale(.9); transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-600); transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 720px) { .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }

/* Suptilna točkasta tekstura za "mist" sekcije */
.section--mist { position: relative; }
.section--mist::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(var(--mist-200) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}
.section--mist > .container { position: relative; z-index: 1; }
