/* BrzOtkup – jedan CSS fajl, bez frameworka */

:root {
    --ink: #0b1f33;
    --ink-2: #33475b;
    --muted: #64748b;
    --bg: #ffffff;
    --bg-soft: #f3f6f9;
    --bg-dark: #0b1f33;
    --line: #e1e8ef;
    --accent: #0f9d58;
    --accent-hover: #0b8248;
    --accent-soft: #e6f5ed;
    --danger: #c62828;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(11, 31, 51, .06), 0 8px 24px rgba(11, 31, 51, .08);
    --wrap: 1140px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.025em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent-hover); }
a:hover { color: var(--ink); }
ul { padding-left: 1.2em; }
strong { color: var(--ink); }

.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.muted { color: var(--muted); font-weight: 400; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* Dugmad */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .9em 1.5em; border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); color: var(--ink); }
.btn-sm { padding: .6em 1.1em; font-size: .95rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo strong { color: var(--accent); font-weight: 800; }
.logo-mark {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
    background: var(--ink); color: #fff; font-weight: 800; font-size: 1.1rem;
    box-shadow: inset 0 -4px 0 var(--accent);
}
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-hover); }

/* Sekcije */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #c8d4e0; }
.section-dark h2, .section-dark h3, .section-dark strong { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
    display: inline-block; margin-bottom: 12px; font-size: .8rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.lead { font-size: 1.2rem; color: var(--ink-2); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; }

/* Hero */
.hero {
    position: relative; overflow: hidden; padding: 56px 0 80px;
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(15, 157, 88, .12), transparent 60%),
        linear-gradient(180deg, #f6f9fb, #fff);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.hero h1 { margin-top: 8px; }
.hero h1 span { color: var(--accent); }
.hero .lead { max-width: 620px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 12px; }
.hero-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 600; }
.hero-points .icon { color: var(--accent); margin-top: .2em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-brand { text-align: center; padding: 88px 0 96px; }
.hero-brand .lead { margin: 0 auto 32px; max-width: 700px; }
.hero-brand .hero-cta { justify-content: center; }

.breadcrumb { font-size: .9rem; color: var(--muted); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-hover); }

/* Traka sa ključnim brojevima */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 56px; text-align: left; }
.stat { background: #fff; padding: 22px 24px; }
.stat b { display: block; font-size: 1.6rem; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; }
.stat span { font-size: .95rem; color: var(--muted); }

/* Kartice */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
    display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px;
    border-radius: 12px; background: var(--accent-soft); color: var(--accent);
}
.card-icon .icon { width: 26px; height: 26px; }
a.card { display: block; text-decoration: none; color: var(--ink-2); transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; color: var(--accent-hover); }
.card-link .icon { width: 1em; height: 1em; }

/* Kriterijumi */
.criteria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.criterion { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 28px; }
.criterion .badge {
    display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent-hover); font-weight: 800; font-size: .95rem;
}
.note {
    display: flex; gap: 14px; margin-top: 24px; padding: 18px 22px; border-radius: var(--radius-sm);
    background: #fff; border: 1px dashed #c3d0dc; font-size: .98rem;
}
.note .icon { color: var(--muted); margin-top: .2em; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--accent); margin-top: .22em; }
.checklist.no .icon { color: var(--danger); }

/* Koraci */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; counter-increment: step; }
.steps li::before {
    content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
    border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800;
}
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; font-size: .98rem; }
.section-dark .steps li { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
.section-dark .steps li::before { background: var(--accent); }

/* Tabela */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-soft); color: var(--ink); font-size: .95rem; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { color: var(--ink); font-weight: 600; }
td.good { color: var(--accent-hover); font-weight: 700; }

/* Dve kolone sa tekstom */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tags + p { margin-top: 1em; }
.tags li { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: .95rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq details[open] { border-color: #c3d0dc; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
    font-size: 1.6rem; font-weight: 400; color: var(--accent); line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq summary h3 { margin: 0; font-size: 1.08rem; }
.faq-a { padding: 0 24px 8px; }

/* Forma */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.form-title { font-size: 1.45rem; margin-bottom: .3em; }
.form-sub { color: var(--muted); font-size: .98rem; }
.form { display: grid; gap: 14px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.field input, .field textarea {
    width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(15, 157, 88, .15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); }
.form-errors { margin-bottom: 16px; padding: 14px 18px; border-radius: var(--radius-sm); background: #fdecec; color: var(--danger); font-size: .95rem; }
.form-errors p { margin: 0 0 4px; font-weight: 700; }
.form-errors ul { margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* CTA */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 48px; border-radius: 24px; background: var(--bg-dark); color: #c8d4e0; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn-ghost { color: #fff; }
.cta .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Footer */
.site-footer { background: var(--bg-dark); color: #9fb1c3; padding: 64px 0 24px; font-size: .98rem; }
.site-footer a { color: #d5e0ea; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.logo-light { color: #fff; margin-bottom: 16px; }
.logo-light .logo-mark { background: #fff; color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }

/* Mobilna traka za poziv */
.callbar { display: none; }

@media (max-width: 1100px) {
    .nav { display: none; }
    .header-call { margin-left: auto; }
}

@media (max-width: 960px) {
    .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .grid-3, .criteria { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    body { font-size: 1rem; padding-bottom: 64px; }
    .section { padding: 56px 0; }
    .hero { padding: 32px 0 56px; }
    .hero-brand { padding: 56px 0 64px; }
    .grid-2, .grid-3, .criteria, .steps, .field-row, .footer-grid { grid-template-columns: 1fr; }
    .form-card { padding: 24px 20px; }
    .cta { padding: 32px 24px; }
    .header-call span { display: none; }
    .header-call { padding: .6em; }
    .footer-bottom { flex-direction: column; }
    .callbar {
        display: flex; align-items: center; justify-content: center; gap: 10px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 60px;
        background: var(--accent); color: #fff; font-weight: 800; text-decoration: none;
        box-shadow: 0 -4px 16px rgba(11, 31, 51, .15);
    }
    .callbar:hover { color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* Slike u tekstu */
.figure { margin: 28px 0 0; }
.figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--bg-soft); box-shadow: var(--shadow); }
.figure figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.section-dark .figure figcaption { color: #9fb1c3; }
.prose .figure { margin: 28px 0; }
.head-media { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; margin-bottom: 40px; }
.head-media .section-head { margin-bottom: 0; }
.head-media .figure { margin: 0; }

/* Forma – grupe polja */
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.form legend { padding: 0; margin-bottom: 4px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.form fieldset + fieldset { padding-top: 6px; border-top: 1px solid var(--line); }
.form fieldset + fieldset legend { padding-top: 14px; }
.field select {
    width: 100%; padding: 12px 40px 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
    background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2364748b' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 10px center / 22px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); appearance: none; -webkit-appearance: none;
}
.field select:focus { outline: none; background-color: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(15, 157, 88, .15); }

/* Admin – pregled upita */
.admin h1 { font-size: 2rem; }
.lead-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px; }
.lead-card header { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; margin-bottom: 12px; }
.lead-card time { margin-left: auto; color: var(--muted); font-size: .9rem; }
.lead-card dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 18px; margin: 0; }
.lead-card dt { font-size: .8rem; color: var(--muted); }
.lead-card dd { margin: 0; color: var(--ink); font-weight: 600; }
.lead-msg { margin: 14px 0 0; padding: 12px 14px; background: var(--bg-soft); border-radius: var(--radius-sm); white-space: pre-line; }
.pager { display: flex; gap: 10px; margin-top: 20px; }

@media (max-width: 960px) {
    .head-media { grid-template-columns: 1fr; gap: 28px; }
    .lead-card dl { grid-template-columns: repeat(2, 1fr); }
}

.section-head-spaced { margin-top: 64px; }
.hero-brand .figure { margin-top: 40px; }

/* Padajući meni bez JavaScript-a (hover + fokus tastaturom) */
.nav { align-items: center; }
.nav-drop { position: relative; }
.nav-drop-toggle::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.nav-menu {
    position: absolute; top: 100%; left: -16px; z-index: 60; min-width: 220px; padding: 8px;
    display: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.nav-drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.nav-menu { margin-top: 12px; }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { display: grid; }
.nav-menu a { padding: 8px 12px; border-radius: 8px; }
.nav-menu a:hover { background: var(--bg-soft); }

.tags a { color: inherit; text-decoration: none; }
.tags li:has(a):hover { border-color: var(--accent); }
.section-dark .figure img { box-shadow: none; }

@media (max-width: 960px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* Tekst u hero delu prati dugu formu pri skrolovanju */
@media (min-width: 961px) {
    .hero-grid > div:first-child { position: sticky; top: 100px; }
}
