/* ============================================================
   PROXIMA INTELLECTUS — dizajn sustav (prema briefu 15.09.2026.)
   Tamni uvod, svijetli sadržaj, plavi naglasci.
   ============================================================ */

:root {
    /* Boje */
    --bg-dark: #101820;
    --bg-light: #F5F6F2;
    --bg-white: #FFFFFF;

    --text-strong: #16212A;
    --text-muted: #53616D;

    --accent: #2453D4;
    --accent-hover: #1B41AC;
    --accent-soft: #AFC3FF;

    --text-on-dark: #F7F9FC;
    --muted-on-dark: #AEB9C4;

    --line: #E1E4DE;
    --line-dark: rgba(255, 255, 255, 0.14);

    --danger: #C0392B;
    --success: #1E7D46;

    /* Tipografija */
    --font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Razmaci (skala) */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 48px;
    --s-8: 64px;
    --s-9: 96px;

    /* Layout */
    --maxw: 1280px;
    --radius-btn: 8px;
    --radius-card: 14px;

    --section-y: clamp(56px, 9vw, 104px);

    --transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   RESET
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-light);
    color: var(--text-strong);
    line-height: 1.6;
    font-size: 1.0625rem;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* Pristupačan fokus */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.dark-section :focus-visible {
    outline-color: var(--accent-soft);
}

/* Preskoči na sadržaj */
.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    background: var(--accent);
    color: #fff;
    padding: 12px 18px;
    border-radius: var(--radius-btn);
    transition: top var(--transition);
}

.skip-link:focus {
    top: 16px;
    text-decoration: none;
}

/* ============================================================
   TIPOGRAFIJA
   ============================================================ */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-strong);
}

h1 {
    font-size: clamp(2.125rem, 5.2vw, 4.25rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.75rem, 3.6vw, 2.75rem);
}

h3 {
    font-size: clamp(1.3rem, 2.2vw, 1.75rem);
}

h4 {
    font-size: 1.125rem;
    font-weight: 700;
}

p {
    max-width: 68ch;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--s-4);
}

.dark-section .eyebrow {
    color: var(--accent-soft);
}

.lead {
    font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
    color: var(--text-muted);
    line-height: 1.65;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 48px);
}

.section {
    padding-block: var(--section-y);
}

.section--tight {
    padding-block: clamp(40px, 6vw, 72px);
}

.dark-section {
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4 {
    color: var(--text-on-dark);
}

.dark-section p {
    color: var(--muted-on-dark);
}

.dark-section a {
    color: var(--accent-soft);
}

.section-head {
    max-width: 760px;
    margin-bottom: var(--s-8);
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

.section-head p {
    margin-top: var(--s-4);
    margin-inline: auto;
}

/* ============================================================
   GUMBI
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 24px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 1rem;
    border: 1.5px solid transparent;
    transition: background var(--transition), color var(--transition),
        border-color var(--transition), transform var(--transition);
    text-align: center;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border-color: rgba(36, 83, 212, 0.4);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(36, 83, 212, 0.06);
    color: var(--accent);
}

.dark-section .btn-secondary {
    color: var(--text-on-dark);
    border-color: var(--line-dark);
}

.dark-section .btn-secondary:hover {
    border-color: var(--accent-soft);
    background: rgba(175, 195, 255, 0.1);
    color: var(--text-on-dark);
}

.btn .icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    transition: transform var(--transition);
}

.btn:hover .icon {
    transform: translateX(3px);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--accent);
}

.text-link .icon {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.text-link:hover .icon {
    transform: translateX(3px);
}

.dark-section .text-link {
    color: var(--accent-soft);
}

/* ============================================================
   HEADER / NAVIGACIJA
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(16, 24, 32, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-dark);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-5);
    height: 80px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-on-dark);
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    width: 58px;
    height: 40px;
    flex: none;
    border-radius: 8px;
    object-fit: contain;
    background: #ffffff;
    padding: 3px 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-sizing: border-box;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-name {
    font-size: 1.05rem;
}

.brand-sub {
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-soft);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--s-5);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--s-2);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: var(--radius-btn);
    color: var(--muted-on-dark);
    font-weight: 500;
    font-size: 0.975rem;
    background: none;
    border: none;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
    color: var(--text-on-dark);
    text-decoration: none;
}

.nav-link[aria-current="page"] {
    color: var(--accent-soft);
}

.nav-link .caret {
    width: 14px;
    height: 14px;
    transition: transform var(--transition);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 320px;
    background: #16222E;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-card);
    padding: var(--s-3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav-dropdown:hover .nav-panel,
.nav-dropdown:focus-within .nav-panel,
.nav-panel[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .nav-link .caret,
.nav-dropdown:focus-within .nav-link .caret {
    transform: rotate(180deg);
}

.nav-panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--text-on-dark);
}

.nav-panel a:hover {
    background: rgba(175, 195, 255, 0.1);
    text-decoration: none;
}

.nav-panel a strong {
    display: block;
    font-weight: 600;
    font-size: 0.975rem;
}

.nav-panel a span {
    display: block;
    color: var(--muted-on-dark);
    font-size: 0.85rem;
    margin-top: 2px;
}

.nav-cta {
    white-space: nowrap;
}

/* Mobilni gumb */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    background: none;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-btn);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin-inline: auto;
    background: var(--text-on-dark);
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding-block: clamp(48px, 7vw, 88px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.hero h1 {
    color: var(--text-on-dark);
    margin-bottom: var(--s-5);
}

.hero .lead {
    color: var(--muted-on-dark);
    margin-bottom: var(--s-6);
    max-width: 54ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
    margin-bottom: var(--s-4);
}

.hero-note {
    font-size: 0.95rem;
    color: var(--muted-on-dark);
    max-width: 46ch;
}

/* Prikaz projekta u uvodu */
.hero-showcase {
    background: #16222E;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-card);
    padding: var(--s-3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.browser-frame {
    border-radius: 12px;
    overflow: hidden;
    background: #0C1319;
    border: 1px solid var(--line-dark);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: #1B2A38;
    border-bottom: 1px solid var(--line-dark);
}

.browser-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3A4B5A;
}

.browser-bar .url {
    margin-left: 10px;
    font-size: 0.75rem;
    color: var(--muted-on-dark);
    font-family: var(--font-body);
}

.mock {
    aspect-ratio: 16 / 10;
    padding: var(--s-5);
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(36, 83, 212, 0.18), transparent 55%),
        #0C1319;
}

.mock-row {
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.mock-row.w-40 { width: 40%; }
.mock-row.w-60 { width: 60%; }
.mock-row.w-80 { width: 80%; }
.mock-accent {
    height: 40px;
    width: 160px;
    border-radius: var(--radius-btn);
    background: var(--accent);
    margin-top: auto;
}

.mock-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: var(--s-3);
}

.mock-card {
    height: 78px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line-dark);
}

.showcase-caption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: var(--s-4) var(--s-2) var(--s-2);
    font-size: 0.9rem;
    color: var(--muted-on-dark);
}

.showcase-caption strong {
    color: var(--text-on-dark);
}

/* Oznaka demonstracije / statusa */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--text-muted);
    background: var(--bg-white);
}

.tag.demo {
    color: #8A5A00;
    background: #FFF4DE;
    border-color: #F0D9A8;
}

.dark-section .tag,
.hero .tag {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--line-dark);
    color: var(--muted-on-dark);
}

.dark-section .tag.demo,
.hero .tag.demo {
    color: #FFD98A;
    background: rgba(255, 200, 90, 0.12);
    border-color: rgba(255, 200, 90, 0.3);
}

/* ============================================================
   HERO — apstraktni vizual (bez screenshota projekta)
   ============================================================ */
.hero-figure {
    background: #16222E;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-card);
    padding: clamp(20px, 3vw, 32px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.hero-figure svg {
    width: 100%;
    height: auto;
    display: block;
}

.hero-figure img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    border: 1px solid var(--line-dark);
}

.hero-figure figcaption {
    margin-top: var(--s-4);
    font-size: 0.9rem;
    color: var(--muted-on-dark);
    text-align: center;
}

/* ============================================================
   PROCESNI DIJAGRAM (ULAZ → PRAVILA → OBRADA → REZULTAT)
   ============================================================ */
.flow {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: var(--s-3);
}

.flow-node {
    flex: 1 1 150px;
    min-width: 150px;
    padding: var(--s-4);
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dark-section .flow-node {
    background: #16222E;
    border-color: var(--line-dark);
}

.flow-node .step {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.dark-section .flow-node .step {
    color: var(--accent-soft);
}

.flow-node strong {
    font-family: var(--font-display);
    font-size: 1.02rem;
    color: var(--text-strong);
}

.dark-section .flow-node strong {
    color: var(--text-on-dark);
}

.flow-node span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dark-section .flow-node span {
    color: var(--muted-on-dark);
}

.flow-arrow {
    align-self: center;
    flex: 0 0 auto;
    color: var(--accent);
    display: grid;
    place-items: center;
}

.dark-section .flow-arrow {
    color: var(--accent-soft);
}

.flow-arrow svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 720px) {
    .flow {
        flex-direction: column;
    }
    .flow-arrow {
        transform: rotate(90deg);
    }
}

/* ============================================================
   ISTICANJE (callout) — poslovni problem
   ============================================================ */
.callout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--s-5);
    align-items: start;
    padding: clamp(24px, 3vw, 40px);
    border-radius: var(--radius-card);
    border: 1px solid var(--line-dark);
    background: #16222E;
}

.callout .icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(175, 195, 255, 0.14);
    color: var(--accent-soft);
}

.callout .icon-box svg {
    width: 26px;
    height: 26px;
}

.callout h2 {
    margin-bottom: var(--s-3);
}

@media (max-width: 620px) {
    .callout {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   ODABRANI PROJEKTI
   ============================================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-5);
}

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(16, 24, 32, 0.1);
}

.project-card.featured {
    grid-column: 1 / -1;
}

.project-card.featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
}

.project-thumb {
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(36, 83, 212, 0.14), transparent 55%),
        #E9ECEF;
    padding: var(--s-5);
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.project-card.featured .project-thumb {
    border-bottom: none;
    border-right: 1px solid var(--line);
}

.project-thumb .bar {
    height: 12px;
    border-radius: 6px;
    background: rgba(22, 33, 42, 0.1);
}

.project-thumb .bar.w-50 { width: 50%; }
.project-thumb .bar.w-70 { width: 70%; }
.project-thumb .chip {
    margin-top: auto;
    height: 34px;
    width: 130px;
    border-radius: var(--radius-btn);
    background: var(--accent);
    opacity: 0.85;
}

.project-body {
    padding: var(--s-5);
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-body h3 {
    margin-top: 4px;
}

.project-body p {
    color: var(--text-muted);
    flex: 1;
}

/* ============================================================
   USLUGE (široki retci)
   ============================================================ */
.service-rows {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    padding: clamp(24px, 3vw, 40px);
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
}

.service-row:nth-child(even) .service-visual {
    order: -1;
}

.service-content h3 {
    margin-bottom: var(--s-3);
}

.service-content p {
    color: var(--text-muted);
    margin-bottom: var(--s-4);
}

.service-visual {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    border: 1px solid var(--line);
    background:
        radial-gradient(120% 120% at 0% 100%, rgba(36, 83, 212, 0.12), transparent 55%),
        #EEF0F2;
    padding: var(--s-5);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-visual .bar {
    height: 12px;
    border-radius: 6px;
    background: rgba(22, 33, 42, 0.1);
}

.service-visual .bar.w-40 { width: 40%; }
.service-visual .bar.w-65 { width: 65%; }
.service-visual .chip {
    margin-top: auto;
    height: 32px;
    width: 120px;
    border-radius: var(--radius-btn);
    background: var(--accent);
    opacity: 0.85;
}

img.service-visual {
    padding: 0;
    width: 100%;
    object-fit: cover;
}

/* ============================================================
   KAKO RADIMO (koraci)
   ============================================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-5);
    counter-reset: step;
}

.step {
    position: relative;
    padding: var(--s-5);
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(36, 83, 212, 0.1);
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 800;
    margin-bottom: var(--s-4);
}

.step h4 {
    margin-bottom: var(--s-2);
}

.step p {
    color: var(--text-muted);
    font-size: 0.975rem;
}

/* ============================================================
   OSOBA IZA PROJEKTA
   ============================================================ */
.person {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

.person-photo {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-card);
    border: 1px solid var(--line);
    background: linear-gradient(160deg, #E7EAEE, #DDE2E7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
}

.person-content h2 {
    margin-bottom: var(--s-4);
}

.person-content p {
    color: var(--text-muted);
    margin-bottom: var(--s-4);
}

/* ============================================================
   ČESTA PITANJA (details)
   ============================================================ */
.faq {
    max-width: 820px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.faq-item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding: var(--s-5);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.0625rem;
    cursor: pointer;
    list-style: none;
    min-height: 48px;
}

.faq-item > summary::-webkit-details-marker {
    display: none;
}

.faq-item > summary .plus {
    flex: none;
    width: 22px;
    height: 22px;
    position: relative;
    transition: transform var(--transition);
}

.faq-item > summary .plus::before,
.faq-item > summary .plus::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    background: var(--accent);
}

.faq-item > summary .plus::before {
    width: 100%;
    height: 2px;
}

.faq-item > summary .plus::after {
    width: 2px;
    height: 100%;
}

.faq-item[open] > summary .plus {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--s-5) var(--s-5);
    color: var(--text-muted);
}

/* ============================================================
   ZAVRŠNI KONTAKTNI BLOK
   ============================================================ */
.cta-final {
    text-align: center;
}

.cta-final .section-head {
    margin-inline: auto;
    margin-bottom: var(--s-6);
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--s-3);
}

/* ============================================================
   KONTAKT / OBRAZAC
   ============================================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.contact-aside h1 {
    margin-bottom: var(--s-4);
}

.contact-aside .lead {
    margin-bottom: var(--s-6);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    margin-top: var(--s-5);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--s-4);
}

.contact-method .icon-box {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(36, 83, 212, 0.1);
    color: var(--accent);
}

.contact-method .icon-box svg {
    width: 22px;
    height: 22px;
}

.contact-method .label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-method .value {
    font-weight: 600;
    color: var(--text-strong);
}

.form-card {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: clamp(24px, 3vw, 40px);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: var(--s-4);
}

.field.span-2 {
    grid-column: 1 / -1;
}

.field label {
    font-weight: 600;
    font-size: 0.95rem;
}

.field .req {
    color: var(--accent);
}

.field .hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.field input,
.field select,
.field textarea {
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-strong);
    background: var(--bg-white);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-btn);
    padding: 12px 14px;
    width: 100%;
    min-height: 48px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.field textarea {
    resize: vertical;
    min-height: 140px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(36, 83, 212, 0.18);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: var(--danger);
}

.field-error {
    font-size: 0.85rem;
    color: var(--danger);
    min-height: 1em;
}

.checkbox-field {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-field input {
    width: 20px;
    height: 20px;
    min-height: auto;
    margin-top: 3px;
    accent-color: var(--accent);
    flex: none;
}

.checkbox-field label {
    font-weight: 400;
    color: var(--text-muted);
}

/* Sažetak grešaka */
.form-summary {
    border: 1.5px solid var(--danger);
    background: #FDEDEA;
    color: #7A2118;
    border-radius: var(--radius-btn);
    padding: var(--s-4);
    margin-bottom: var(--s-5);
}

.form-summary h4 {
    color: #7A2118;
    margin-bottom: var(--s-2);
    font-size: 1rem;
}

.form-summary ul {
    list-style: disc;
    padding-left: 20px;
}

.form-summary a {
    color: #7A2118;
    text-decoration: underline;
}

/* Status slanja */
.form-status {
    margin-top: var(--s-4);
    padding: var(--s-4);
    border-radius: var(--radius-btn);
    font-weight: 500;
}

.form-status.is-sending {
    background: rgba(36, 83, 212, 0.08);
    color: var(--accent);
}

.form-status.is-success {
    background: #E7F4EC;
    color: var(--success);
    border: 1px solid #B7DEC5;
}

.form-status.is-error {
    background: #FDEDEA;
    color: #7A2118;
    border: 1px solid #F2C4BC;
}

.form-privacy {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--s-4);
}

/* ============================================================
   PROZA / PRAVNE STRANICE
   ============================================================ */
.prose {
    max-width: 760px;
    margin-inline: auto;
}

.prose h1 {
    margin-bottom: var(--s-4);
}

.prose h2 {
    margin-top: var(--s-7);
    margin-bottom: var(--s-3);
}

.prose p,
.prose ul {
    color: var(--text-muted);
    margin-bottom: var(--s-4);
}

.prose ul {
    list-style: disc;
    padding-left: 24px;
}

.prose li {
    margin-bottom: var(--s-2);
}

.prose .meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--s-6);
}

/* ============================================================
   TABLICE (dogovor / opseg)
   ============================================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    color: var(--text-strong);
}

.data-table thead th {
    background: #ECEEEA;
    font-family: var(--font-display);
    font-size: 0.95rem;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table td:first-child {
    font-weight: 600;
    color: var(--text-strong);
    white-space: nowrap;
}

/* Popis primjera / kartice s ikonom */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-5);
}

.feature {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: var(--s-5);
}

.feature .icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(36, 83, 212, 0.1);
    color: var(--accent);
    margin-bottom: var(--s-4);
}

.feature .icon-box svg {
    width: 22px;
    height: 22px;
}

.feature h4 {
    margin-bottom: var(--s-2);
}

.feature p {
    color: var(--text-muted);
    font-size: 0.975rem;
}

/* Studija slučaja — koraci s prikazima */
.case-steps {
    display: flex;
    flex-direction: column;
    gap: var(--s-6);
}

.case-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 48px);
    align-items: center;
}

.case-step:nth-child(even) .case-visual {
    order: -1;
}

.case-visual {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    border: 1px solid var(--line);
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(36, 83, 212, 0.1), transparent 55%),
        #EEF0F2;
    padding: var(--s-5);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.case-visual .bar {
    height: 11px;
    border-radius: 6px;
    background: rgba(22, 33, 42, 0.1);
}

.case-visual .bar.w-50 { width: 50%; }
.case-visual .bar.w-70 { width: 70%; }
.case-visual .figcaption {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--bg-dark);
    color: var(--muted-on-dark);
    padding-block: var(--s-8) var(--s-6);
    border-top: 1px solid var(--line-dark);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--s-6);
    padding-bottom: var(--s-7);
    border-bottom: 1px solid var(--line-dark);
}

.footer-brand p {
    margin-top: var(--s-4);
    color: var(--muted-on-dark);
    font-size: 0.95rem;
    max-width: 32ch;
}

.footer-col h4 {
    color: var(--text-on-dark);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: var(--s-4);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: var(--muted-on-dark);
}

.footer-col a:hover {
    color: var(--text-on-dark);
}

.footer-note {
    font-size: 0.85rem;
    color: var(--muted-on-dark);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-4);
    padding-top: var(--s-5);
}

.footer-bottom p {
    font-size: 0.9rem;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: var(--s-3);
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line-dark);
    color: var(--muted-on-dark);
}

.footer-social a:hover {
    color: var(--text-on-dark);
    border-color: var(--accent-soft);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

/* ============================================================
   LJEPLJIVI GUMB ZA POZIV (click-to-call)
   ============================================================ */
.call-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 20px 0 18px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(36, 83, 212, 0.45);
    transition: background var(--transition), transform var(--transition);
}

.call-fab:hover {
    background: var(--accent-hover);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.call-fab svg {
    width: 22px;
    height: 22px;
    flex: none;
}

@media (max-width: 760px) {
    .call-fab {
        right: 14px;
        bottom: 14px;
        height: 54px;
        padding: 0;
        width: 54px;
        justify-content: center;
    }
    .call-fab .call-label { display: none; }
}

/* Skriveno polje protiv spama (honeypot) */
.hp-field {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   MREŽA / KOMPONENTE — pomoćni razmaci
   ============================================================ */
.stack-sm > * + * { margin-top: var(--s-3); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.text-center { text-align: center; }

/* Reveal (suptilna animacija) */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 260ms ease, transform 260ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ============================================================
   RESPONZIVNO
   ============================================================ */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-showcase { order: 2; }
    .project-card.featured { grid-template-columns: 1fr; }
    .project-card.featured .project-thumb { border-right: none; border-bottom: 1px solid var(--line); }
    .service-row { grid-template-columns: 1fr; }
    .service-row .service-visual { order: -1; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .person { grid-template-columns: 1fr; }
    .person-photo { max-width: 320px; }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .case-step { grid-template-columns: 1fr; }
    .case-step .case-visual { order: -1; }
}

@media (max-width: 760px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        inset: 80px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #101820;
        border-bottom: 1px solid var(--line-dark);
        padding: var(--s-4);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-menu[data-open="true"] {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 14px;
        font-size: 1.05rem;
    }

    .nav-panel {
        position: static;
        opacity: 1;
        visibility: inherit;
        transform: none;
        box-shadow: none;
        min-width: 0;
        margin: 4px 0 8px;
        background: rgba(255, 255, 255, 0.04);
    }

    .nav-cta {
        width: 100%;
        margin-top: var(--s-3);
    }

    .form-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Smanjeno kretanje */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
