
:root {
    --black: #191919;
    --text: #191919;
    --text-muted: #6b6a67;
    --white: #ffffff;
    --bg: #ffffff;
    --surface: #fbfbfa;
    --border: #e9e9e7;
    --border-strong: #8c8b87;
    --accent: #c9962c;
    --accent-soft: #faf3e0;
    --danger: #b03a2e;
    --danger-soft: #faeae8;
    --success: #2f7a4f;
    --success-soft: #eaf4ee;
    --radius: 0;
    --font: 'Inter', -apple-system, sans-serif;
    --link: #8a6410;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 15px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    margin: 0;
    margin-bottom: 64px;
    min-height: 100vh;
    line-height: 1.5;
}

h1, h2, h3, h4 {
    font-family: var(--font);
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

p {
    color: var(--text);
}

a {
    color: var(--link);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* ---------- Navbar ---------- */
.navbar {
    background: var(--white) !important;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
}

.navbar-brand {
    font-family: var(--font);
    font-weight: 700;
    color: var(--black) !important;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .navbar-brand::before {
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        background: var(--accent);
    }

.nav-link {
    color: var(--text-muted) !important;
    font-size: 0.9rem;
}

    .nav-link:hover {
        color: var(--text) !important;
    }

/* ---------- Buttons (shared) ---------- */
.primary-btn, .secondary-btn, button.primary-btn {
    font-family: var(--font);
    font-weight: 500;
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: background 0.1s ease, border-color 0.1s ease;
    cursor: pointer;
}

.primary-btn {
    background: var(--black);
    color: var(--white);
    border: 1px solid var(--black);
}

    .primary-btn:hover:not(:disabled) {
        background: var(--accent);
        border-color: var(--accent);
        color: var(--black);
    }

    .primary-btn:disabled {
        background: var(--border-strong);
        border-color: var(--border-strong);
        color: var(--text-muted);
        cursor: not-allowed;
    }

.secondary-btn {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border-strong);
}

    .secondary-btn:hover {
        background: var(--surface);
        border-color: var(--text-muted);
    }

/* ---------- Cards / panels ---------- */
.card-surface {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: none;
}

/* ---------- Form elements, used across pages ---------- */
input[type="text"], input[type="email"], input[type="tel"],
input[type="file"], select, textarea {
    font-family: var(--font);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
}

    input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus,
    select:focus, textarea:focus {
        outline: none;
        border-color: var(--accent);
    }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--text-muted);
    }

    /* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

.page-main {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

/* ---------- Top navigation ---------- */
.site-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 56px;
    flex-wrap: wrap;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    flex: 1;
}

.nav-link.active {
    color: var(--text) !important;
    font-weight: 600;
}

/* ---------- Language toggle ---------- */
.lang-toggle {
    display: flex;
    gap: 0.25rem;
}

.lang-btn {
    padding: 0.3rem 0.65rem;
    border: 1px solid var(--border-strong);
    background: var(--white);
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.75rem;
}

.lang-btn:hover {
    border-color: var(--text-muted);
}

.lang-btn.active {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

/* ---------- Progress stepper ---------- */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 480px;
    margin: 2rem auto 0.5rem;
    padding: 0 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
}

.step-circle {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-strong);
    color: var(--text-muted);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.8rem;
}

.step.active .step-circle {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.step.done .step-circle {
    background: var(--accent-soft);
    color: var(--link);
    border-color: var(--accent);
}

.step-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.step.active .step-label {
    color: var(--text);
    font-weight: 600;
}

.step-connector {
    height: 1px;
    background: var(--border);
    flex: 1 1 30px;
    margin: 0 0.5rem 1.3rem;
}

.step-connector.done {
    background: var(--accent);
}

/* ---------- Mobile menu ---------- */
.site-nav {
    position: relative;
    z-index: 50;
}

.nav-toggle { display: none; }

@media (max-width: 900px) {
    .nav-inner { flex-wrap: nowrap; gap: 0.75rem; }
    .lang-toggle { margin-left: auto; }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        min-height: 40px;
        padding: 0 0.7rem;
        background: var(--white);
        border: 1px solid var(--border-strong);
        color: var(--text);
        font-family: var(--font);
        font-size: 0.85rem;
        cursor: pointer;
    }

    .nav-toggle svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: square;
    }

    .nav-toggle .icon-close { display: none; }
    .site-nav.menu-open .nav-toggle .icon-open { display: none; }
    .site-nav.menu-open .nav-toggle .icon-close { display: inline; }
    .site-nav.menu-open .nav-toggle { background: var(--surface); border-color: var(--text-muted); }

    /* The links become a dropdown under the top bar */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border-strong);
    }

    .site-nav.menu-open .nav-links { display: flex; }

    .nav-links .nav-link {
        display: block;
        padding: 1rem 1.25rem;
        font-size: 1rem;
        border-top: 1px solid var(--border);
    }

    .nav-links .nav-link.active { box-shadow: inset 3px 0 0 var(--accent); }
}

@media (max-width: 420px) {
    .step-label { font-size: 0.6rem; }
    .step-circle { width: 24px; height: 24px; font-size: 0.72rem; }
    .step-connector { flex: 1 1 15px; }
}

/* ---------- One header for every page ---------- */
.nav-inner {
    max-width: none;
    min-height: 56px;
    flex-wrap: nowrap;
    padding: 0 1.25rem;
}

@media (min-width: 901px) {
    .nav-links { flex: 0 0 auto; margin-left: auto; }
}

/* ---------- Consent checkboxes ---------- */
.consent-box { display: flex; flex-direction: column; gap: .5rem; margin: .9rem 0 0; }
.check-row { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; line-height: 1.35; cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: #191919; }
.check-row a { color: inherit; text-decoration: underline; }

/* ---------- Accessibility ---------- */
::placeholder { color: var(--text-muted); opacity: 1; }

:focus-visible { outline: 3px solid #191919; outline-offset: 2px; }

.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-link {
    position: absolute; left: 8px; top: -64px; z-index: 1000;
    background: #191919; color: #fff; padding: .6rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 8px; }

#canvasWrapper:focus-visible { outline: 3px solid #191919; outline-offset: 3px; }
.kbd-hint {
    display: none; position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%);
    z-index: 50; max-width: 92vw; padding: .5rem .8rem; font-size: .85rem;
    background: #191919; color: #fff; text-align: center;
}
#canvasWrapper:focus-visible ~ .kbd-hint { display: block; }

.map-consent { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1rem; border: 1px solid var(--border-strong); background: var(--surface); }
.map-notice { margin: 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.field-hint { margin: .9rem 0 0; font-size: .9rem; color: var(--text-muted); }

/* ---------- 404 page ---------- */
.not-found { text-align: center; padding-top: 3rem; }
.nf-code { margin: 0; font-size: 5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.nf-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.5rem; }
.nf-btn { display: inline-block; padding: .65rem 1.2rem; text-decoration: none; }

/* ---------- Social icons ---------- */
.social-links { display: flex; gap: .5rem; }
.social-links a { display: inline-flex; padding: 4px; color: var(--text); }
.social-links a:hover { color: var(--link); }
.social-links svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.social-links svg .fill { fill: currentColor; stroke: none; }

/* ---------- Help form (Visit page) ---------- */
.help-form { display: flex; flex-direction: column; max-width: 520px; margin-bottom: 2rem; }
.help-form label:not(.check-row) { margin-top: .9rem; font-size: .9rem; }
.help-form input[type="text"], .help-form input[type="email"], .help-form input[type="tel"], .help-form textarea {
    width: 100%; margin-top: .3rem; padding: .6rem; font: inherit; color: var(--text);
    background: #fff; border: 1px solid var(--border-strong);
}
.help-form textarea { resize: vertical; }
.help-form .check-row { margin-top: 1rem; }
.help-send { align-self: flex-start; margin-top: 1rem; padding: .65rem 1.3rem; }
.success-message { margin-top: 1rem; padding: .7rem .9rem; border: 1px solid var(--success); background: var(--success-soft); color: var(--text); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Phone header: the 3-line menu button on the left ---------- */
@media (max-width: 900px) {
    .nav-toggle {
        order: -1;                 /* before "Limun": it moves to the left edge */
        justify-content: center;
        width: 44px;
        padding: 0;
    }

    /* the word "Meni" stays for screen readers, but is not shown */
    .nav-toggle span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
}

/* ---------- Footer: a normal block at the end of the page (no more overlapping) ---------- */
body { margin-bottom: 0; }

footer.footer {
    position: static;
    width: 100%;
    height: auto;
    display: block;
    margin-top: 2.5rem;
    padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    text-align: center;
}

/* Links: wrap neatly, with comfortable tap targets */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.1rem 1.1rem;
}

.footer-links a {
    padding: 0.5rem 0.1rem;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover,
.footer-links a:focus-visible { border-bottom-color: currentColor; }

/* Social icons: round-edge squares, easy to tap */
.social-links { display: flex; justify-content: center; gap: 0.6rem; }

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border-strong);
}

.social-links a:hover,
.social-links a:focus-visible { border-color: var(--accent); background: var(--accent-soft); }

.social-links svg { width: 22px; height: 22px; }

/* The copyright line goes last and quiet */
.footer-inner > span { order: 3; font-size: 0.8rem; }

/* Computer: one row, copyright on the left, links in the middle, icons on the right */
@media (min-width: 901px) {
    .footer-inner {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        text-align: left;
    }
    .footer-inner > span { order: 0; font-size: 0.85rem; }
    .footer-links { justify-content: center; }
}