/* ==========================================================================
   Projektovanje — brutalist full-service design & engineering page
   Namespace: .mm-pj-*
   ========================================================================== */

.mm-main section[id] { scroll-margin-top: 88px; }

/* ==========================================================================
   HERO — text-forward, dark + blueprint grid + ghost number
   ========================================================================== */
.mm-pj-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--mm-dark);
    color: #fff;
}

/* Real-photo background */
.mm-pj-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}
.mm-pj-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transform: scale(1.05);
    will-change: transform;
}

/* Editorial dark overlay — heavy on left (text side), fades right to let image breathe */
.mm-pj-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg,
            rgba(var(--mm-dark-rgb), .88) 0%,
            rgba(var(--mm-dark-rgb), .55) 45%,
            rgba(var(--mm-dark-rgb), .25) 100%),
        linear-gradient(180deg,
            rgba(var(--mm-dark-rgb), .35) 0%,
            transparent 40%,
            rgba(var(--mm-dark-rgb), .8) 100%),
        radial-gradient(ellipse at 85% 20%, rgba(var(--mm-light-blue-rgb), .15), transparent 55%);
}

.mm-pj-hero__grain {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: .04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mm-pj-hero .mm-container {
    position: relative;
    z-index: 5;
    width: 100%;
    padding-top: 140px;
    padding-bottom: 120px;
}
.mm-pj-hero__inner { max-width: 860px; }
.mm-pj-hero__overline { color: rgba(255, 255, 255, .55); }
.mm-pj-hero__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 28px;
}
.mm-pj-hero__title em {
    font-style: normal;
    background: linear-gradient(135deg, #5bb8f5, var(--mm-light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mm-pj-hero__subtitle {
    font-size: clamp(1rem, 1.4vw, 1.1875rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, .7);
    max-width: 640px;
    margin-bottom: 32px;
}
.mm-pj-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
}
.mm-pj-hero__chips li {
    font-family: 'Montserrat', sans-serif;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8);
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .04);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.mm-pj-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   STATS STRIP
   ========================================================================== */
.mm-pj-stats {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}
.mm-pj-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #e5e7eb;
    margin: 0 -20px;
}
.mm-pj-stats__item {
    padding: 40px 32px;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mm-pj-stats__item:last-child { border-right: none; }
.mm-pj-stats__item strong {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    background: var(--mm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mm-pj-stats__item span {
    font-family: 'Montserrat', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.3;
    color: #666;
}

/* ==========================================================================
   CAPABILITIES
   ========================================================================== */
.mm-pj-capabilities {
    padding: 120px 0;
    background: #fff;
}
.mm-pj-capabilities__header {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 64px;
}
.mm-pj-capabilities__header h2 {
    font-size: clamp(2rem, 3.8vw, 3.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-top: 12px;
}
.mm-pj-capabilities__header p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #555;
    max-width: 560px;
}

.mm-pj-capabilities__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #e5e7eb;
    border-left: 1px solid #e5e7eb;
}
.mm-pj-capability {
    position: relative;
    padding: 40px 32px 44px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    transition: background .3s ease;
}
.mm-pj-capability:hover { background: #f7f8fa; }
.mm-pj-capability__num {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(var(--mm-dark-rgb), .22);
}
.mm-pj-capability__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--mm-light-blue-rgb), .08);
    color: var(--mm-light-blue);
    margin-bottom: 24px;
}
.mm-pj-capability__icon .mm-icon { width: 22px; height: 22px; }
.mm-pj-capability h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.mm-pj-capability p {
    font-size: .9375rem;
    line-height: 1.7;
    color: #666;
}

/* ==========================================================================
   PROCESS — brutal numbered chapters
   ========================================================================== */
.mm-pj-process {
    padding: 120px 0;
    background: #f7f8fa;
    position: relative;
    overflow: hidden;
}
.mm-pj-process::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(var(--mm-light-blue-rgb), .08), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.mm-pj-process > .mm-container { position: relative; z-index: 1; }

.mm-pj-process__header {
    max-width: 720px;
    margin-bottom: 72px;
}
.mm-pj-process__header h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 12px 0 16px;
}
.mm-pj-process__header p {
    color: #555;
    line-height: 1.75;
    font-size: 1.0625rem;
}

.mm-pj-process__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(var(--mm-dark-rgb), .1);
}
.mm-pj-process__item {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 2fr);
    gap: 64px;
    padding: 56px 0;
    border-bottom: 1px solid rgba(var(--mm-dark-rgb), .1);
    align-items: start;
}
.mm-pj-process__num {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(5rem, 11vw, 10rem);
    font-weight: 800;
    line-height: .85;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--mm-light-blue), #5bb8f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: sticky;
    top: 120px;
}
.mm-pj-process__title {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin-bottom: 16px;
}
.mm-pj-process__desc {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 32px;
    max-width: 640px;
}

.mm-pj-process__deliverables {
    padding-top: 24px;
    border-top: 1px solid rgba(var(--mm-dark-rgb), .08);
}
.mm-pj-process__deliverables-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 14px;
}
.mm-pj-process__deliverables ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.mm-pj-process__deliverables li {
    font-family: 'Montserrat', sans-serif;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--mm-dark);
    padding: 8px 14px;
    background: #fff;
    border: 1px solid rgba(var(--mm-light-blue-rgb), .25);
    transition: all .25s ease;
}
.mm-pj-process__deliverables li:hover {
    background: var(--mm-light-blue);
    color: #fff;
    border-color: var(--mm-light-blue);
}

/* ==========================================================================
   REALIZOVANI PROJEKTI — horizontal drag gallery
   ========================================================================== */
.mm-pj-projects {
    padding: 120px 0;
    background: #fff;
}
.mm-pj-projects__header {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 56px;
}
.mm-pj-projects__header h2 {
    font-size: clamp(2rem, 3.8vw, 3.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-top: 12px;
}
.mm-pj-projects__header p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #555;
    max-width: 560px;
}

.mm-pj-projects__strip {
    display: flex;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    user-select: none;
}
.mm-pj-projects__strip::-webkit-scrollbar { display: none; }
.mm-pj-projects__strip.mm-dragging { cursor: grabbing; }
.mm-pj-projects__strip.mm-dragging .mm-pj-projects__item { pointer-events: none; }

.mm-pj-projects__item {
    position: relative;
    flex: 0 0 auto;
    width: 30vw;
    min-width: 340px;
    max-width: 520px;
    height: 640px;
    margin: 0;
    overflow: hidden;
    border-right: 1px solid #e5e7eb;
    background: #f0f1f3;
}
.mm-pj-projects__item:last-child { border-right: none; }
.mm-pj-projects__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
}
.mm-pj-projects__item:hover img {
    transform: scale(1.04);
}

.mm-pj-projects__item figcaption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background: rgba(var(--mm-dark-rgb), .78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .35s ease, transform .35s ease;
}
.mm-pj-projects__item:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}
.mm-pj-projects__type {
    font-family: 'Montserrat', sans-serif;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mm-light-blue);
}
.mm-pj-projects__title {
    font-family: 'Montserrat', sans-serif;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
}

.mm-pj-projects__hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888;
}
.mm-pj-projects__hint .mm-icon {
    width: 18px;
    height: 18px;
    color: var(--mm-light-blue);
}

/* ==========================================================================
   PRINCIPLES
   ========================================================================== */
.mm-pj-principles {
    padding: 120px 0;
    background: var(--mm-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.mm-pj-principles::before {
    content: '';
    position: absolute;
    top: 0;
    right: -140px;
    width: 480px;
    height: 280px;
    background: var(--mm-light-blue);
    clip-path: polygon(30% 0, 100% 0, 100% 60%, 0 100%);
    opacity: .2;
    pointer-events: none;
}

.mm-pj-principles__header {
    margin-bottom: 64px;
    max-width: 720px;
    position: relative;
    z-index: 1;
}
.mm-pj-principles__header .mm-overline { color: rgba(255, 255, 255, .5); }
.mm-pj-principles__header h2 {
    color: #fff;
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-top: 12px;
}

.mm-pj-principles__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-left: 1px solid rgba(255, 255, 255, .08);
}
.mm-pj-principle {
    padding: 40px 28px 44px;
    border-right: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: background .3s ease;
}
.mm-pj-principle:hover { background: rgba(255, 255, 255, .03); }
.mm-pj-principle__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mm-light-blue);
    margin-bottom: 22px;
}
.mm-pj-principle__icon .mm-icon { width: 24px; height: 24px; }
.mm-pj-principle h3 {
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.mm-pj-principle p {
    color: rgba(255, 255, 255, .55);
    font-size: .875rem;
    line-height: 1.7;
}

/* ==========================================================================
   FAQ wrapper
   ========================================================================== */
.mm-pj-faq-section {
    padding: 120px 0;
    background: #fff;
}
.mm-pj-faq-section .mm-faq-wrap {
    display: grid;
    grid-template-columns: .85fr 1fr;
    gap: 72px;
    align-items: start;
}
.mm-pj-faq-section .mm-faq-header h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    line-height: 1.1;
    margin: 10px 0 16px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
    .mm-pj-capabilities__grid,
    .mm-pj-principles__grid { grid-template-columns: repeat(2, 1fr); }
    .mm-pj-capability:nth-child(2n),
    .mm-pj-principle:nth-child(2n) { border-right: none; }
    .mm-pj-principle:nth-child(3n),
    .mm-pj-capability:nth-child(3n) { border-right: 1px solid rgba(255, 255, 255, .08); }
    .mm-pj-capability:nth-child(3n) { border-right-color: #e5e7eb; }
}

@media (max-width: 1024px) {
    .mm-pj-hero .mm-container { padding-top: 120px; padding-bottom: 88px; }

    .mm-pj-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .mm-pj-stats__item:nth-child(2n) { border-right: none; }
    .mm-pj-stats__item:nth-child(-n+2) { border-bottom: 1px solid #e5e7eb; }

    .mm-pj-capabilities { padding: 80px 0; }
    .mm-pj-capabilities__header {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 48px;
    }

    .mm-pj-process { padding: 80px 0; }
    .mm-pj-process__header { margin-bottom: 48px; }
    .mm-pj-process__item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 0;
    }
    .mm-pj-process__num {
        position: static;
        font-size: clamp(5rem, 18vw, 7rem);
    }

    .mm-pj-projects { padding: 80px 0; }
    .mm-pj-projects__header {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 40px;
    }
    .mm-pj-projects__item {
        width: 60vw;
        height: 520px;
    }

    .mm-pj-principles { padding: 80px 0; }
    .mm-pj-faq-section { padding: 80px 0; }
    .mm-pj-faq-section .mm-faq-wrap { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
    .mm-pj-hero { min-height: 100vh; min-height: 100dvh; }
    .mm-pj-hero .mm-container {
        padding-top: 120px;
        padding-bottom: 48px;
        min-width: 0;
    }
    .mm-pj-hero__inner {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .mm-pj-hero__title {
        font-size: 8vw;
        letter-spacing: -0.02em;
    }
    .mm-pj-hero__subtitle { font-size: .9375rem; line-height: 1.6; }
    .mm-pj-hero__chips {
        width: 100%;
        min-width: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent 100%);
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent 100%);
    }
    .mm-pj-hero__chips::-webkit-scrollbar { display: none; }
    .mm-pj-hero__chips li {
        flex: 0 0 auto;
        font-size: .625rem;
        letter-spacing: 1.4px;
        padding: 7px 11px;
    }
    .mm-pj-hero__actions { flex-direction: column; width: 100%; }
    .mm-pj-hero__actions .mm-btn { width: 100%; justify-content: center; }

    .mm-pj-stats__item { padding: 24px 18px; }
    .mm-pj-stats__item strong { font-size: 1.75rem; }

    .mm-pj-capabilities { padding: 64px 0; }
    .mm-pj-capabilities__grid { grid-template-columns: 1fr; }
    .mm-pj-capability:nth-child(n) { border-right: none; }

    .mm-pj-process { padding: 64px 0; }
    .mm-pj-process__item { padding: 32px 0; }
    .mm-pj-process__num { font-size: clamp(4.5rem, 20vw, 6rem); }
    .mm-pj-process__title { font-size: 1.375rem; }
    .mm-pj-process__desc { font-size: 1rem; line-height: 1.65; }

    .mm-pj-projects { padding: 64px 0; }
    .mm-pj-projects__item { width: 85vw; height: 400px; min-width: 280px; }
    .mm-pj-projects__item figcaption {
        opacity: 1;
        transform: none;
        left: 16px;
        right: 16px;
        bottom: 16px;
        padding: 12px 14px;
    }

    .mm-pj-principles { padding: 64px 0; }
    .mm-pj-principles__grid { grid-template-columns: 1fr; }
    .mm-pj-principle:nth-child(n) { border-right: none; }

    .mm-pj-faq-section { padding: 64px 0; }
}
