/* =========================================================
   219 Cash Buyer — stilovi javnog sajta
   ========================================================= */

:root {
    --green: #22a046;
    --green-hover: #1b8a3b;
    --green-bright: #5fe07c;
    --ink: #111816;
    --text: #2b312e;
    --muted: #4f5753;
    --line: #e2e6e4;
    --soft: #f1f3f2;
    --dark: #0e1714;
    --red: #e3191c;
    --red-hover: #c51215;
    --white: #ffffff;

    --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-marker: "Permanent Marker", "Comic Sans MS", cursive;

    --container: 1180px;
    --gutter: clamp(18px, 6vw, 64px);
    --header-h: 70px;
}

/* ---------- Osnova ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 2px; }

.container {
    width: calc(100% - 2 * var(--gutter));
    max-width: var(--container);
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 5px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .15s ease;
}

.btn__icon { width: 16px; height: 16px; }
.btn__arrow { width: 20px; height: 20px; }

.btn--call {
    gap: 9px;
    padding: 8px 16px;
    border-radius: 4px;
    background: var(--red);
    color: var(--white);
    font-size: 13.5px;
    box-shadow: 0 2px 6px rgba(227, 25, 28, .3);
}
.btn--call:hover { background: var(--red-hover); }

.btn--primary {
    padding: 14px 24px;
    background: var(--green);
    color: var(--white);
    font-size: 16px;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.btn--primary:hover { background: var(--green-hover); }
.btn--primary:disabled { opacity: .7; cursor: wait; }

.btn--block { width: 100%; }
.btn--large { padding: 14px 44px; font-size: 15.5px; }

/* ---------- Nadnaslovi i naslovi sekcija ---------- */

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink);
}
.eyebrow::before {
    content: "";
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: var(--green);
    flex: none;
}
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--white); }

/* dve crte ispred (Why sekcija) */
.eyebrow--double::before {
    width: 36px;
    box-shadow: 52px 0 0 var(--green);
    margin-right: 52px;
}

/* crta sa obe strane (CTA) */
.eyebrow--both::after {
    content: "";
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: var(--green);
    flex: none;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--ink);
}
.section-title--center { text-align: center; }
.section-title--light { color: var(--white); text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }

/* ---------- Zaglavlje ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    box-shadow: 0 1px 0 var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: var(--header-h);
}

.logo { display: inline-flex; flex-direction: column; color: var(--ink); padding: 6px 0 5px; }
.logo__mark { display: flex; align-items: center; gap: 6px; }
.logo__house { width: 54px; height: 45px; color: var(--ink); }
.logo__windows { fill: var(--green); }
.logo__number {
    font-size: 45px;
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.04em;
}
.logo__words { display: flex; flex-direction: column; line-height: .88; font-weight: 800; font-size: 23px; letter-spacing: -.01em; }
.logo__top { color: var(--green); }
.logo__bottom { color: var(--ink); }
.logo__tagline {
    margin-top: 3px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: 20px; }
.site-nav__link { font-size: 12.5px; font-weight: 500; color: var(--ink); }
.site-nav__link:hover { color: var(--green); }

.site-header .btn--call { margin-left: 72px; }

.nav-toggle {
    display: none;
    margin-left: auto;
    padding: 8px;
    border: 0;
    background: none;
    color: var(--ink);
    cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }

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

.hero {
    position: relative;
    color: var(--white);
    background: var(--dark) var(--bg-image) center / cover no-repeat;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(8, 12, 10, .78) 0%, rgba(8, 12, 10, .55) 38%, rgba(8, 12, 10, .15) 64%, rgba(8, 12, 10, .05) 100%);
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 40px;
    align-items: start;
    padding-top: 15px;
    padding-bottom: 15px;
}

.hero__copy { padding-top: 55px; }

.hero__eyebrow {
    font-size: clamp(1rem, 1.65vw, 1.3rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .005em;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

.hero__title {
    font-size: clamp(2.6rem, 5.95vw, 4.6rem);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.015em;
    text-shadow: 0 3px 14px rgba(0, 0, 0, .35);
}
.hero__line { display: block; }
.hero__accent { color: var(--green-bright); }

.hero__subtitle {
    margin-top: 20px;
    font-size: clamp(1.1rem, 1.95vw, 1.5rem);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

/* ---------- Kartica sa formom ---------- */

.offer-card {
    background: var(--white);
    color: var(--ink);
    border-radius: 8px;
    padding: 12px 18px 14px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
}

.offer-card__title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
    text-align: center;
}
.offer-card__subtitle {
    margin: 4px 0 14px;
    font-size: 10px;
    letter-spacing: -.01em;
    color: var(--muted);
    text-align: center;
}

.offer-form { display: grid; gap: 7px; }

.field { position: relative; }
.field__icon {
    position: absolute;
    top: 50%;
    left: 11px;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    color: var(--ink);
    pointer-events: none;
}
.field__input {
    width: 100%;
    padding: 7px 10px 7px 34px;
    border: 1px solid #d4d9d6;
    border-radius: 3px;
    background: var(--white);
    color: var(--ink);
    font-size: 11.5px;
}
.field__input::placeholder { color: #6b726e; }
.field__input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(34, 160, 70, .18); }
.field__input.is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227, 25, 28, .12); }

.offer-form .btn--primary { margin-top: 2px; padding: 10px 16px; font-size: 14px; border-radius: 4px; }

.offer-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.offer-form__status { font-size: 12px; font-weight: 600; text-align: center; }
.offer-form__status:empty { display: none; }
.offer-form__status.is-success { color: var(--green-hover); }
.offer-form__status.is-error { color: var(--red); }

.offer-form__privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 1px;
    font-size: 9.5px;
    color: var(--green-hover);
}
.offer-form__lock { width: 10px; height: 10px; }

/* ---------- Traka sa prednostima ---------- */

.features { background: var(--dark); color: var(--white); }

.features__grid {
    display: flex;
    justify-content: space-between;
    padding-top: 17px;
    padding-bottom: 17px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 2px 24px;
}
.feature + .feature { border-left: 1px solid rgba(255, 255, 255, .16); }
.feature:first-child { padding-left: 0; }
.feature:last-child { padding-right: 0; }

.feature__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    border: 2.5px solid var(--green);
    border-radius: 50%;
    color: var(--green-bright);
}
.feature__icon svg { width: 25px; height: 25px; stroke-width: 2; }

.feature__title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: 1.3; }
.feature__text { margin-top: 3px; font-size: 11.5px; line-height: 1.35; color: #d2d9d5; }

/* ---------- How it works ---------- */

.how { padding: 24px 0 20px; }
.how .section-title { margin-bottom: 25px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); }

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px 2px;
    text-align: center;
}
.step + .step { border-left: 1px solid var(--line); }

.step__head { display: flex; align-items: center; gap: 27px; margin-bottom: 14px; }
.step__number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
}
.step__icon { color: var(--ink); }
.step__icon svg { width: 50px; height: 50px; stroke-width: 1.5; }

.step__title { font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.step__text { max-width: 250px; margin-top: 4px; font-size: 14.5px; line-height: 1.32; color: var(--text); }

/* ---------- Why us ---------- */

.why { background: var(--soft); padding: 20px 0; }

.why__grid {
    display: grid;
    grid-template-columns: 243px minmax(0, 1fr) 223px;
    gap: 20px 24px;
    align-items: center;
}

.why__media {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 243 / 198;
    background: #cfd5d2;
}
.why__image { width: 100%; height: 100%; object-fit: cover; }

.why__badge {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 10px 22px 12px 20px;
    border-top-right-radius: 10px;
    background: rgba(10, 16, 13, .92);
    font-family: var(--font-marker);
    font-size: 21px;
    line-height: 1.2;
    text-transform: uppercase;
}
.why__badge-line { display: block; color: var(--white); }
.why__badge-line--accent { color: var(--green-bright); }

.why__copy .section-title { margin-bottom: 8px; font-size: 27.5px; }
.why__text { font-size: 14.5px; line-height: 1.5; color: var(--text); }
.why__strong { margin-top: 10px; font-size: 14.5px; font-weight: 700; color: var(--ink); }

.why__card {
    padding: 10px 14px 10px 22px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
.why__card-title { margin-bottom: 3px; font-size: 13px; font-weight: 800; color: var(--ink); }

.checklist { display: grid; gap: 2px; }
.checklist__item { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.3; color: var(--text); }
.checklist__icon { flex: none; width: 17px; height: 17px; color: var(--green); stroke-width: 4.4; }

/* ---------- Areas ---------- */

.areas {
    position: relative;
    color: var(--white);
    background: #1d2f3b var(--bg-image) center / cover no-repeat;
    isolation: isolate;
}
.areas::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10, 24, 36, .55) 0%, rgba(10, 24, 36, .5) 60%, rgba(10, 24, 36, .7) 100%);
}

.areas__inner { padding-top: 16px; padding-bottom: 18px; text-align: center; }
.areas .section-title { margin-bottom: 8px; font-size: 30.5px; }

/* svaki .cities__row je jedan red iz admina (prazan red u polju "Gradovi") */
.cities {
    display: grid;
    row-gap: 4px;
    font-size: 14.5px;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.cities__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 21px;
}
/* crta u razmaku posle svakog grada osim poslednjeg u redu (main.js označava kraj reda);
   apsolutna pozicija = crta ne zauzima širinu, pa njeno uklanjanje ne menja prelom */
.cities__item { position: relative; }
.cities__item:not(:last-child):not(.is-line-end)::after {
    content: "|";
    position: absolute;
    right: -13px;
    font-weight: 400;
    opacity: .85;
}

.areas__note { margin-top: 9px; font-size: 14.5px; font-weight: 700; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }

/* ---------- Backed by ---------- */

.backed { padding: 14px 0; }

.backed__grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 26px;
    align-items: center;
}

.backed__media {
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 300 / 176;
    background: #d9dedb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.backed__image { width: 100%; height: 100%; object-fit: cover; }

.backed__copy .section-title { margin-bottom: 8px; font-size: 26.5px; }
.backed__text { font-size: 13.5px; line-height: 1.38; color: var(--text); }

.company {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 12px;
}
.company__brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.company__icon { width: 48px; height: 48px; stroke-width: 1.4; }
.company__name { display: block; font-size: 24.5px; font-weight: 700; letter-spacing: .2em; line-height: 1; }
.company__sub { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: .32em; }

.company__services {
    display: flex;
    align-items: center;
    align-self: stretch;
    padding-left: 30px;
    border-left: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--text);
}
.company__service:not(:last-child)::after { content: "•"; margin: 0 12px; }

/* ---------- CTA ---------- */

.cta {
    position: relative;
    color: var(--white);
    background: var(--dark) var(--bg-image) center / cover no-repeat;
    isolation: isolate;
}
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(10, 16, 13, .62);
}

.cta__inner { padding-top: 16px; padding-bottom: 24px; text-align: center; }
.cta .section-title { margin-bottom: 4px; font-size: 25.5px; }

.cta__points { display: flex; flex-wrap: wrap; justify-content: center; font-size: 13px; font-weight: 700; }
.cta__point:not(:last-child)::after { content: "•"; margin: 0 9px; color: var(--green-bright); }

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 22px 30px;
    margin-top: 14px;
}

.cta__call { display: inline-flex; align-items: center; gap: 12px; text-align: left; }
.cta__call-icon { width: 34px; height: 34px; }
.cta__call-icon .ring { stroke: var(--green-bright); }
.cta__call-label { display: block; font-size: 13px; font-weight: 500; line-height: 1.1; }
.cta__call-number { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; }
.cta__call:hover .cta__call-number { color: var(--green-bright); }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
    .site-header .btn--call { margin-left: 24px; }
}

@media (max-width: 960px) {
    :root { --header-h: 66px; }

    .nav-toggle { display: block; }
    .site-header__inner { gap: 12px; }
    .site-header .btn--call { order: 2; margin-left: 0; }
    .nav-toggle { order: 3; margin-left: 0; }
    .logo { margin-right: auto; }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        background: var(--white);
        box-shadow: 0 8px 18px rgba(0, 0, 0, .1);
        display: none;
    }
    .site-nav.is-open { display: block; }
    .site-nav__list { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
    .site-nav__link { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }

    .hero__inner { grid-template-columns: 1fr; gap: 8px; }
    .hero__copy { padding-top: 32px; padding-bottom: 12px; }
    .offer-card { max-width: 480px; width: 100%; margin: 0 auto 12px; }

    .features__grid { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
    .feature, .feature:first-child, .feature:last-child { padding: 4px 12px; }
    .feature + .feature { border-left: 0; }

    .steps { grid-template-columns: 1fr; gap: 24px; }
    .step + .step { border-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }

    .why__grid,
    .backed__grid { grid-template-columns: 1fr; }
    .checklist { grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
    .features__grid { display: grid; }
    .why__media { max-width: 420px; }
    .backed__media { max-width: 480px; }

    .company { flex-wrap: wrap; justify-content: flex-start; gap: 14px 30px; }
}

@media (max-width: 600px) {
    .section-title,
    .why__copy .section-title,
    .areas .section-title,
    .backed__copy .section-title,
    .cta .section-title { font-size: 24px; }

    /* 16px sprečava auto-zoom na iOS pri fokusu polja */
    .field__input { padding: 11px 12px 11px 38px; font-size: 16px; }

    .logo__house { width: 44px; height: 36px; }
    .logo__number { font-size: 36px; }
    .logo__words { font-size: 19px; }
    .logo__tagline { font-size: 7px; }

    .btn--call { padding: 9px 12px; font-size: 13px; }
    .btn--call span { display: none; }
    .btn--call .btn__icon { width: 20px; height: 20px; }

    .features__grid { grid-template-columns: 1fr; }
    .checklist { grid-template-columns: 1fr; }

    .company__services { padding-left: 0; border-left: 0; }
    .btn--large { width: 100%; padding-inline: 20px; }
}

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