/* Backend2 — jedini CSS. Svetla tema u boji logoa (#1b3049), mobile-first (osnova = telefon, pa 600px i 960px). */

:root {
    --navy: #1b3049;
    --navy-2: #253f5e;
    --ink: #0f1c2d;
    --text: #25354a;
    --muted: #5c6b80;
    --faint: #8a97a8;
    --bg: #f6f8fb;
    --white: #fff;
    --line: #e3e8ef;
    --line-2: #d2d9e3;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --green: #10a37f;
    --grad: linear-gradient(120deg, var(--blue), var(--cyan));
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 24px 60px -30px rgba(27, 48, 73, .45);
    --shadow-sm: 0 10px 30px -18px rgba(27, 48, 73, .35);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
    margin: 0;
    color: var(--text);
    font: 16px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(900px 500px at 100% -10%, rgba(6, 182, 212, .12), transparent 60%),
        radial-gradient(800px 480px at -10% 10%, rgba(37, 99, 235, .10), transparent 60%),
        var(--bg);
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -.02em; }
p { margin: 0; }

.icon { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.1rem; }

/* ---------- Topbar ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem 1.1rem;
    background: rgba(246, 248, 251, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(27, 48, 73, .08);
}
.brand { display: block; }
.brand-logo { width: auto; height: 42px; }
.nav { display: flex; align-items: center; gap: .3rem; }
.nav-link {
    display: none;
    padding: .45rem .75rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
}
.nav-link:hover { color: var(--navy); background: rgba(27, 48, 73, .06); }
.lang-switch {
    display: grid;
    place-items: center;
    min-width: 2.4rem;
    height: 2.1rem;
    padding: 0 .55rem;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    color: var(--navy);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-decoration: none;
}
.lang-switch:hover { border-color: var(--navy); }

/* ---------- Dugmad ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.2rem;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-sm { padding: .45rem .9rem; font-size: .88rem; }
.btn-lg { padding: .9rem 1.5rem; font-size: 1rem; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -12px rgba(27, 48, 73, .9); }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-ghost { background: var(--white); color: var(--navy); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--navy); }

/* ---------- Hero ---------- */

.hero { padding: 3rem 0 2.5rem; }
.hero-grid { display: grid; gap: 2.25rem; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16, 163, 127, .15); }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.04em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 580px; color: var(--muted); font-size: 1.1rem; }
.cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .3rem; }

.hero-pillars { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.hero-pillars li {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.hero-pillars li > .icon {
    width: 40px;
    height: 40px;
    padding: 9px;
    border-radius: 11px;
    background: var(--navy);
    fill: #fff;
}
.hero-pillars li:nth-child(2n) > .icon { background: var(--grad); }
.hero-pillars b { display: block; color: var(--ink); font-size: .98rem; }
.hero-pillars span { color: var(--muted); font-size: .88rem; line-height: 1.45; }

/* ---------- Sekcije ---------- */

.section { padding: 3.5rem 0 0; }
.kicker { margin-bottom: .45rem; color: var(--blue); font-family: var(--mono); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.title { margin-bottom: 1.75rem; font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.note { margin-top: .8rem; color: var(--faint); font-size: .82rem; }

/* ---------- Projekat ---------- */

.project {
    display: grid;
    gap: 1.75rem;
    margin-bottom: 1.5rem;
    padding: 1.4rem;
    border-radius: 26px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.project-featured {
    border: 1px solid transparent;
    background:
        linear-gradient(var(--white), var(--white)) padding-box,
        var(--grad) border-box;
}
.project-text b { color: var(--ink); }
.project-text { display: flex; flex-direction: column; gap: 1rem; }
.project-id { display: flex; align-items: center; gap: .9rem; }
.project-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; background: var(--bg); padding: 6px; }
.project-logo-yt { display: grid; place-items: center; background: linear-gradient(135deg, #ff1f4b, #ff6a3d); }
.project-logo-yt .icon { width: 26px; height: 26px; fill: #fff; }
.project-logo-wt { display: grid; place-items: center; background: linear-gradient(135deg, #6366f1, #4338ca); }
.project-logo-wt .icon { width: 26px; height: 26px; fill: #fff; }
.project h3 { font-size: 1.6rem; font-weight: 800; }
.project-sub { color: var(--muted); font-size: .92rem; }
.project-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .2rem; }

.ticks { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; }
.ticks .icon { margin-top: .22em; color: var(--green); }

.stack { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.stack li {
    padding: .22rem .6rem;
    border-radius: 8px;
    background: rgba(27, 48, 73, .06);
    color: var(--navy);
    font-family: var(--mono);
    font-size: .75rem;
    font-weight: 700;
}

.project-shots { position: relative; padding: 0 0 2.5rem; }
.shot-browser {
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow);
}
.browser-bar { display: flex; gap: .35rem; padding: .55rem .75rem; background: #eef2f7; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd6e0; }
.browser-bar i:first-child { background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.shot-phone {
    position: absolute;
    right: .4rem;
    bottom: 0;
    width: 30%;
    max-width: 190px;
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    border: 5px solid var(--ink);
    box-shadow: 0 30px 60px -25px rgba(15, 28, 45, .7);
}
.shot-phone img { aspect-ratio: 9 / 19; object-fit: cover; object-position: top; width: 100%; }

/* ---------- Klubovi ---------- */

.clubs-head { margin: 2.25rem 0 1.1rem; }
.clubs-head h3 { font-size: 1.3rem; font-weight: 800; }
.clubs-head p { margin-top: .3rem; color: var(--muted); max-width: 720px; }
.clubs { display: grid; gap: 1rem; }
.club {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: 1.3rem;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.club:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.club-head { display: flex; align-items: center; gap: .85rem; }
.club-logo { width: 64px; height: 64px; object-fit: contain; }
.club h4 { font-size: 1.1rem; font-weight: 800; }
.club-host { display: inline-flex; align-items: center; gap: .3rem; color: var(--blue); font-size: .88rem; font-weight: 600; text-decoration: none; }
.club > p { color: var(--muted); font-size: .92rem; }
.club .ticks li { font-size: .88rem; }
.club-visit { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; color: var(--navy); font-weight: 700; font-size: .9rem; text-decoration: none; }
.club-visit:hover { color: var(--blue); }

/* ---------- Šta radimo ---------- */

.services { display: grid; gap: 1rem; }
.service { padding: 1.35rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.service h3 { margin: .85rem 0 .35rem; font-size: 1.08rem; }
.service p { color: var(--muted); font-size: .93rem; }
.service-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); }
.service-icon .icon { width: 22px; height: 22px; fill: #fff; }
.service:nth-child(2n) .service-icon { background: var(--grad); }

/* ---------- O nama / kontakt ---------- */

.about { display: grid; gap: 1rem; }
.about-text { display: grid; gap: .9rem; max-width: 720px; font-size: 1.05rem; }
.about-text b { color: var(--ink); }

.contact {
    padding: 2.5rem 1.4rem;
    border-radius: 28px;
    text-align: center;
    color: #dbe6f3;
    background:
        radial-gradient(600px 260px at 50% 0%, rgba(6, 182, 212, .35), transparent 70%),
        var(--navy);
    box-shadow: var(--shadow);
}
.contact h2 { margin-bottom: .5rem; color: #fff; font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-weight: 800; }
.contact p { margin-bottom: 1.4rem; }
.contact .btn-primary { background: #fff; color: var(--navy); }
.contact .btn-primary:hover { background: #eaf2fb; }

/* ---------- Partner / referenca ---------- */

.partner {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    padding: .75rem .9rem;
    border-radius: var(--radius-sm);
    background: rgba(37, 99, 235, .06);
    border: 1px solid rgba(37, 99, 235, .18);
    color: var(--text);
    font-size: .9rem;
}
.partner .icon { margin-top: .2em; color: var(--blue); }
.partner a { color: var(--blue); font-weight: 700; text-decoration: none; }
.project h3 a { text-decoration: none; }
.project h3 a:hover { color: var(--blue); }

.ref {
    display: grid;
    gap: 1.1rem;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1.4rem;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
}
.ref-logo { width: 160px; height: auto; }
.ref-text { display: grid; gap: .5rem; }
.ref-text .kicker { margin: 0; }
.ref h3 { font-size: 1.2rem; font-weight: 800; }
.ref p { color: var(--muted); font-size: .93rem; }
.ref .btn { justify-self: start; }

/* ---------- Strane projekata ---------- */

.page-hero { padding: 1.5rem 0 1rem; }
.page-hero-grid { display: grid; gap: 2rem; margin-top: 1.25rem; }
.page-hero-grid > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; }

.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; color: var(--faint); font-size: .85rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); }
.crumb-sep { color: var(--line-2); }

.steps { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 1.35rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.steps h3 { margin: .8rem 0 .35rem; font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: .93rem; }
.step-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--mono); font-weight: 700; }
.steps li:last-child .step-num { background: var(--grad); }

.split { display: grid; gap: 1.25rem; align-items: start; }
.panel { display: flex; flex-direction: column; gap: .75rem; padding: 1.4rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.panel h2 { font-size: 1.4rem; font-weight: 800; }
.panel h3 { font-size: 1.08rem; }
.panel .kicker { margin: 0; }
.muted { color: var(--muted); }
.shot-inline { align-self: center; }

.roles { display: grid; gap: 1rem; }

.arch { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
.arch-item { padding: 1.25rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue); }
.arch-item:nth-child(2n) { border-top-color: var(--cyan); }
.arch-item h3 { margin-bottom: .35rem; font-size: 1.02rem; }
.arch-item p { color: var(--muted); font-size: .92rem; }

.phones { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.phones figure { margin: 0; text-align: center; }
.phones img { border-radius: 22px; border: 5px solid var(--ink); box-shadow: var(--shadow-sm); }
.phones figcaption { margin-top: .5rem; color: var(--muted); font-size: .85rem; font-weight: 600; }

.narrow { max-width: 860px; }
.faq { display: grid; gap: .6rem; }
.faq details { border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); }
.faq summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.15rem 1.1rem; color: var(--muted); }
.faq a { color: var(--blue); }

.contact-back { margin: 1.25rem 0 0 !important; font-size: .9rem; }
.contact-back a { color: #cfe3f7; text-decoration: none; }
.contact-back a:hover { color: #fff; }

/* ---------- Footer ---------- */

.footer { margin-top: 3.5rem; padding: 1.6rem 0 2rem; border-top: 1px solid var(--line); color: var(--faint); font-size: .85rem; }
.footer-in { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.1rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--navy); }

/* ---------- Veći ekrani ---------- */

@media (min-width: 600px) {
    .wrap { padding: 0 1.5rem; }
    .brand-logo { height: 48px; }
    .hero-pillars { grid-template-columns: repeat(2, 1fr); }
    .project { padding: 2rem; }
    .clubs { grid-template-columns: repeat(2, 1fr); }
    .services { grid-template-columns: repeat(2, 1fr); }
    .footer-in { flex-direction: row; justify-content: space-between; }
    .ref { grid-template-columns: 160px 1fr auto; padding: 1.75rem; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .steps-4 { grid-template-columns: repeat(2, 1fr); }
    .roles { grid-template-columns: repeat(2, 1fr); }
    .arch { grid-template-columns: repeat(2, 1fr); }
    .phones { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 960px) {
    .nav-link { display: inline-block; }
    .hero { padding: 5rem 0 3rem; }
    .hero-grid { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 3rem; }
    .hero-pillars { grid-template-columns: 1fr; }
    .project { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 2.5rem; padding: 2.5rem; }
    .project-flip .project-text { order: 2; }
    .clubs { grid-template-columns: repeat(4, 1fr); }
    .services { grid-template-columns: repeat(3, 1fr); }
    .about { grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
    .page-hero { padding: 2rem 0 1rem; }
    .page-hero-grid { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 3rem; }
    .steps-4 { grid-template-columns: repeat(4, 1fr); }
    .split { grid-template-columns: 1fr 1.1fr; gap: 2rem; }
    .roles { grid-template-columns: repeat(4, 1fr); }
    .arch { grid-template-columns: repeat(4, 1fr); }
    .phones { max-width: 900px; }
    .section { padding-top: 5rem; }
}

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