:root {
    --bg: #F6F5F2;
    --accent: #B3BFA9;
    --dark: #474342;
    --darker: #35312F;
    --white: #FFFFFF;
    --serif: 'Playfair Display', serif;
    --hero-font: 'Marcellus', serif;
    --sans: 'Nunito Sans', sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
}

html {
    scroll-behavior: auto;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    background-color: var(--bg);
    color: var(--dark);
    font-family: var(--sans);
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: auto;
}

::selection {
    background: var(--accent);
    color: var(--white);
}

h1, h2, h3 {
    font-family: var(--sans);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

em {
    font-style: italic;
}

a {
    color: inherit;
    cursor: pointer;
}

button {
    cursor: pointer;
    font-family: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* ============ PRELOADER ============ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
}

.preloader.preloader-hidden {
    display: none;
}

.preloader-panels {
    position: absolute;
    inset: 0;
    display: flex;
}

.preloader-panels .panel {
    flex: 1;
    background: var(--darker);
}

.preloader-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--bg);
}

.preloader-logo {
    overflow: hidden;
}

.preloader-logo img {
    width: min(420px, 68vw);
    height: auto;
    display: block;
    margin: 0 auto;
    transform: translateY(110%);
}

.preloader-counter {
    position: fixed;
    bottom: 4rem;
    right: 4rem;
    font-family: var(--sans);
    font-size: clamp(3rem, 7vw, 5rem);
    color: var(--accent);
    font-style: italic;
}

.preloader-line {
    width: 240px;
    height: 1px;
    background: rgba(246,245,242,0.2);
    margin: 2rem auto 0;
    position: relative;
}

.preloader-line span {
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
}

/* ============ HEADER ============ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.4rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 500;
    transition: transform 0.5s var(--ease-out), background 0.5s var(--ease-out), backdrop-filter 0.5s var(--ease-out), padding 0.5s var(--ease-out);
    background: transparent;
}

.header.is-hidden {
    transform: translateY(-110%);
}

/* Pozadina koja se pojavljuje kada se skroluje ka gore */
.header.is-scrolled {
    background: linear-gradient(to bottom, rgba(53,49,47,0.72), rgba(53,49,47,0.35));
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 1rem 4rem;
    box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

/* Blaga tamna gradijent pozadina koja garantuje vidljivost belog sadržaja */
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(53,49,47,0.35), rgba(53,49,47,0));
    pointer-events: none;
    z-index: -1;
}

.logo {
    display: block;
    text-decoration: none;
    margin-top: 8px;
}

.logo-img {
    height: 34px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.4rem;
    align-items: center;
    margin-top: 8px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    position: relative;
    overflow: hidden;
    display: inline-block;
    height: 1.1em;
    line-height: 1.1em;
}

.nav-links a span {
    display: block;
    transition: transform 0.45s var(--ease-out);
}

.nav-links a::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 100%;
    color: var(--accent);
    transition: transform 0.45s var(--ease-out);
}

.nav-links a:hover span { transform: translateY(-100%); }
.nav-links a:hover::after { transform: translateY(-100%); }

.burger {
    display: none;
    flex-direction: column;
    gap: 7px;
    background: none;
    border: none;
    padding: 6px;
    z-index: 600;
}

.burger span {
    width: 30px;
    height: 1.5px;
    background: var(--white);
    transition: transform 0.4s var(--ease-out), opacity 0.3s;
}

.burger.is-open span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--darker);
    z-index: 450;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8vw;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu nav a {
    font-family: var(--sans);
    font-size: clamp(2.2rem, 8vw, 4rem);
    color: var(--bg);
    text-decoration: none;
    overflow: hidden;
}

.mobile-menu nav a:hover { color: var(--accent); }

.mobile-menu-footer {
    position: absolute;
    bottom: 3rem;
    left: 8vw;
    color: rgba(246,245,242,0.5);
    font-size: 0.85rem;
    line-height: 1.8;
}

/* ============ PARALLAX BASE ============ */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-image {
    position: absolute;
    top: -12%;
    left: 0;
    width: 100%;
    height: 124%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

/* ============ HERO ============ */
.hero {
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg { filter: brightness(0.55) saturate(0.9); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(20,18,17,0.88), rgba(20,18,17,0.45) 18%, rgba(53,49,47,0) 42%, rgba(53,49,47,0) 60%, rgba(53,49,47,0.55));
    z-index: 1;
}

.hero-frame {
    position: absolute;
    inset: 2rem;
    z-index: 2;
    pointer-events: none;
}

.frame-corner {
    position: absolute;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(179,191,169,0.9);
}

.frame-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.frame-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.frame-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.frame-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    padding: 0 1.5rem;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 3.2rem;
}

.reveal-line {
    overflow: hidden;
}

.reveal-line > span {
    display: inline-block;
    transform: translateY(110%);
}

.hero-title {
    font-family: var(--sans);
    font-weight: 600;
    font-size: clamp(2.8rem, 8vw, 7rem);
    line-height: 1.08;
    letter-spacing: 0.015em;
    margin-bottom: 2rem;
    text-shadow: 0 2px 30px rgba(53,49,47,0.35);
}

.ht-line {
    display: block;
    overflow: hidden;
}

.ht-inner {
    display: block;
    transform: translateY(110%);
}

.hero-title em {
    color: var(--accent);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1.08em;
}

.hero-sub {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.hero-cta {
    margin-top: 3rem;
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1.05rem 2.8rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 0.72rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
}

.btn span { position: relative; z-index: 2; transition: color 0.4s var(--ease-out); }

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.45s var(--ease-out);
    z-index: 1;
}

.btn:hover::before { transform: scaleY(1); }

.btn-light {
    background: var(--accent);
    color: var(--dark);
}

.btn-light::before { background: var(--darker); }

.btn-light:hover span { color: var(--bg); }

.btn-ghost {
    border: 1px solid rgba(255,255,255,0.6);
    color: var(--white);
}

.btn-ghost::before { background: var(--accent); }
.btn-ghost:hover { border-color: var(--accent); }

.hero-bottom {
    position: absolute;
    bottom: 2.6rem;
    left: 4rem;
    right: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 3;
    color: var(--white);
}

.scroll-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.scroll-text {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.62rem;
    opacity: 0.7;
}

.scroll-line {
    width: 1px;
    height: 52px;
    background: rgba(255,255,255,0.25);
    position: relative;
    overflow: hidden;
}

.scroll-line span {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: scrollDrop 2.2s var(--ease-out) infinite;
}

@keyframes scrollDrop {
    0% { top: -100%; }
    50% { top: 0; }
    100% { top: 100%; }
}

.hero-coords {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    font-size: 0.62rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
}

/* ============ SECTION HEAD ============ */
.section-head {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 6rem 4rem 3.5rem;
}

.section-tag {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.72rem;
    font-weight: 500;
}

/* ============ ABOUT ============ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 90vh;
}

.about-text {
    padding: 8% 9%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg);
}

.about-text-dark {
    background: var(--dark);
    color: var(--bg);
}

.about-text h2 {
    font-size: clamp(2rem, 3.6vw, 3.4rem);
    margin-bottom: 2.4rem;
    color: var(--dark);
}

.about-text-dark h2 { color: var(--bg); }

.about-text h2 em { color: var(--accent); }

.about-text p {
    font-size: 1.02rem;
    line-height: 1.9;
    margin-bottom: 1.4rem;
    font-weight: 300;
    max-width: 52ch;
}

.about-text-dark p { color: rgba(246,245,242,0.85); }

.about-image {
    min-height: 60vh;
}

.clip-reveal {
    clip-path: inset(100% 0 0 0);
}

.img-caption {
    position: absolute;
    bottom: 1.6rem;
    left: 1.6rem;
    z-index: 3;
    background: var(--darker);
    color: var(--bg);
    padding: 0.7rem 1.3rem;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
}

.stats {
    display: flex;
    gap: 3.5rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(71,67,66,0.15);
    flex-wrap: wrap;
}

.stat {
    display: block;
}

.stat-num, .stat-plus {
    font-family: var(--sans);
    font-size: 2.6rem;
    color: var(--accent);
    display: inline;
}

.stat-label {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.4rem;
    opacity: 0.7;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 0.72rem;
    margin-top: 2rem;
}

.link-arrow svg {
    width: 26px;
    height: 26px;
    transition: transform 0.4s var(--ease-out);
}

.link-arrow:hover svg { transform: translateX(8px); }


/* ============ BRENDOVI ============ */
.brands-section {
    padding-bottom: 6rem;
}

.brands-title {
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    padding: 0 4rem 4rem;
    max-width: 900px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(71,67,66,0.18);
    border-top: 1px solid rgba(71,67,66,0.18);
    border-bottom: 1px solid rgba(71,67,66,0.18);
    margin: 0 4rem;
}

.brand-card {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    background: #FFFFFF;
    aspect-ratio: 3 / 1.75;
    transition: background 0.5s var(--ease-out);
}

/* Na početnoj: 3 kolone da se popuni 6 kartica u 2 reda */
#brendovi .brands-grid {
    grid-template-columns: repeat(3, 1fr);
}

.brand-card.is-hidden { display: none; }

.card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.12);
    filter: grayscale(55%) brightness(0.85);
    transition: opacity 0.7s var(--ease-out), transform 1s var(--ease-out), filter 0.5s;
}

.brand-card:hover .card-bg {
    opacity: 1;
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1);
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 1.9rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: color 0.4s;
}

.card-logo {
    width: auto;
    max-width: 76%;
    max-height: 60px;
    object-fit: contain;
    align-self: flex-start;
    background: #FFFFFF;
    padding: 0.6rem 0.9rem;
    filter: grayscale(1) contrast(1.2);
    transition: filter 0.4s;
}

.brand-card:hover .card-logo {
    filter: grayscale(0) contrast(1);
}

.card-monogram {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 1;
    color: var(--dark);
    transition: color 0.4s, transform 0.5s var(--ease-out);
}

.brand-card:hover .card-monogram {
    color: var(--bg);
    transform: translateY(-4px) scale(1.08);
}
/* monogram rules retained for flexibility */

.card-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--dark);
    transition: color 0.4s;
}

.card-info p {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.6;
    transition: color 0.4s, opacity 0.4s;
}

.brand-card:hover .card-info h3 { color: var(--bg); }
.brand-card:hover .card-info p { color: var(--bg); opacity: 0.8; }

.brands-more {
    display: flex;
    justify-content: center;
    padding: 3rem 4rem 0;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 3rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 0.72rem;
    font-weight: 600;
    background: transparent;
    border: 1px solid rgba(71,67,66,0.3);
    color: var(--dark);
    transition: background 0.4s var(--ease-out), color 0.4s, border-color 0.4s;
}

.btn-more:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
}

.btn-more-caret {
    display: inline-flex;
    transition: transform 0.5s var(--ease-out);
}

.btn-more-caret svg {
    width: 20px;
    height: 20px;
}

.btn-more.open .btn-more-caret { transform: rotate(180deg); }
.btn-more.done { visibility: hidden; opacity: 0; transition: opacity 0.3s; }

/* ============ USLUGE ============ */
.services-section {
    padding-bottom: 8rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-left: 1px solid rgba(71,67,66,0.15);
    margin: 0 4rem;
}

.service-card {
    border-right: 1px solid rgba(71,67,66,0.15);
    border-top: 1px solid rgba(71,67,66,0.15);
    border-bottom: 1px solid rgba(71,67,66,0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    transition: background 0.5s var(--ease-out);
}

.service-card:hover { background: #EFEDE9; }

.service-img-wrap {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: grayscale(45%) brightness(0.92);
    transition: transform 0.9s var(--ease-out), filter 0.6s;
}

.service-card:hover .service-img {
    transform: scale(1.14);
    filter: grayscale(0%) brightness(1);
}

.service-body {
    padding: 2.2rem 2.2rem 3.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-num {
    font-family: var(--sans);
    font-style: italic;
    font-size: 1rem;
    color: var(--accent);
}

.service-card h3 {
    font-size: 1.55rem;
    margin: 1.6rem 0 1.1rem;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.8;
    font-weight: 300;
    opacity: 0.85;
}

.service-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.55s var(--ease-out);
}

.service-card:hover .service-line { transform: scaleX(1); }

/* ============ GALERIJA (horizontal scroll) ============ */
.gallery-section {
    background: var(--darker);
    color: var(--bg);
    overflow: hidden;
}

.section-head-light .section-tag { color: var(--bg); }

.gallery-pin {
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    align-items: center;
    gap: 4vw;
    padding: 0 6vw;
    will-change: transform;
}

.gallery-intro {
    flex-shrink: 0;
    width: 34vw;
    min-width: 340px;
}

.gallery-intro h2 {
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    margin-bottom: 1.6rem;
}

.gallery-intro em {
    color: var(--accent);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1.18em;
}

.gallery-intro p {
    font-weight: 300;
    line-height: 1.8;
    opacity: 0.75;
    max-width: 36ch;
}

.gallery-item {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.gallery-item.tall { width: 30vw; min-width: 320px; height: 68vh; }
.gallery-item.wide { width: 46vw; min-width: 420px; height: 55vh; }

.gallery-img {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    filter: brightness(0.85);
    transition: filter 0.5s;
}

.gallery-item:hover .gallery-img { filter: brightness(1); }

.gallery-item figcaption {
    position: absolute;
    bottom: 1.4rem;
    left: 1.4rem;
    z-index: 2;
    background: var(--bg);
    color: var(--dark);
    padding: 0.65rem 1.2rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gallery-item figcaption span {
    color: var(--accent);
    margin-right: 0.6rem;
    font-family: var(--sans);
    font-style: italic;
}

/* ============ REFERENCE ============ */
.ref-section {
    padding-bottom: 8rem;
}

.ref-title {
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    padding: 0 4rem 4rem;
}

.ref-projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(71,67,66,0.15);
    border-top: 1px solid rgba(71,67,66,0.15);
    border-bottom: 1px solid rgba(71,67,66,0.15);
}

.ref-card {
    background: var(--bg);
    padding: 0 0 2.6rem;
}

.ref-img-wrap {
    height: 340px;
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
}

.ref-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: grayscale(40%) brightness(0.94);
    transition: transform 0.9s var(--ease-out), filter 0.6s;
}

.ref-card:hover .ref-img {
    transform: scale(1.12);
    filter: grayscale(0%) brightness(1);
}

.ref-card-body {
    padding: 0 2rem;
}

.ref-index {
    font-family: var(--sans);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--accent);
    display: block;
    margin-bottom: 0.9rem;
}

.ref-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.9rem;
}

.ref-card p {
    font-size: 0.9rem;
    line-height: 1.8;
    font-weight: 300;
    opacity: 0.8;
}

.ref-clients {
    padding: 3.5rem 4rem 0;
    text-align: center;
    overflow: hidden;
}

.ref-clients-label {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.68rem;
    color: var(--dark);
    margin-bottom: 2rem;
    font-weight: 600;
}

.ref-clients-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: rgba(71,67,66,0.15);
    border: 1px solid rgba(71,67,66,0.15);
}

.ref-client {
    background: #FFFFFF;
    padding: 1.2rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 1;
    min-width: 0;
    transition: background 0.4s;
}

.ref-client-logo {
    max-width: 76%;
    max-height: 36px;
    object-fit: contain;
    filter: grayscale(1) contrast(1.2);
    transition: transform 0.4s var(--ease-out);
}

.ref-client:hover {
    background: #EFEDE9;
}

.ref-client:hover .ref-client-logo {
    filter: grayscale(0) contrast(1);
    transform: scale(1.06);
}

/* ============ INSTAGRAM ============ */
.insta-section {
    padding-bottom: 8rem;
}

.insta-title {
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    padding: 0 4rem 2rem;
}

.insta-handle {
    display: inline-flex;
    align-items: center;
    gap: 1.1rem;
    margin: 0 4rem 4rem;
    text-decoration: none;
    font-family: var(--sans);
    font-style: italic;
    font-size: clamp(1.4rem, 2.6vw, 2.2rem);
    color: var(--accent);
    position: relative;
    padding-bottom: 0.4rem;
}

.insta-handle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out);
}

.insta-handle:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.insta-icon {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
    transition: transform 0.5s var(--ease-out);
}

.insta-handle:hover .insta-icon {
    transform: rotate(-8deg) scale(1.12);
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: rgba(71,67,66,0.15);
    border-top: 1px solid rgba(71,67,66,0.15);
    border-bottom: 1px solid rgba(71,67,66,0.15);
}

.insta-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    display: block;
    background: var(--bg);
}

.insta-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 0.8s var(--ease-out), filter 0.5s;
    filter: grayscale(30%);
}

.insta-item:hover .insta-img {
    transform: scale(1.18);
    filter: grayscale(0%);
}

.insta-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    opacity: 0;
    mix-blend-mode: multiply;
    transition: opacity 0.5s;
}

.insta-item:hover::after { opacity: 0.35; }

/* ============ KONTAKT ============ */
.contact-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    inset: 0;
}

.contact-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(53,49,47,0.82);
    z-index: 1;
}

.contact-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--bg);
    padding: 8rem 5%;
    width: 100%;
}

.contact-eyebrow {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.68rem;
    color: var(--accent);
    margin-bottom: 1.6rem;
}

.contact-title {
    font-size: clamp(3rem, 7vw, 6rem);
    margin-bottom: 5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(246,245,242,0.22);
    border-bottom: 1px solid rgba(246,245,242,0.22);
    max-width: 1200px;
    margin: 0 auto 4.5rem;
}

.contact-box {
    position: relative;
    overflow: hidden;
    padding: 2.8rem 2.2rem;
    text-align: left;
    border-right: 1px solid rgba(246,245,242,0.22);
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.contact-box:last-child { border-right: none; }

.contact-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateY(101%);
    transition: transform 0.55s var(--ease-out);
}

.contact-box:hover::before { transform: translateY(0); }

.contact-box > * {
    position: relative;
    z-index: 2;
    transition: color 0.4s, opacity 0.4s, transform 0.5s var(--ease-out);
}

.contact-label {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-box p {
    font-family: var(--sans);
    font-size: 1.15rem;
    line-height: 1.5;
    font-weight: 400;
    padding-right: 2.6rem;
}

.contact-arrow {
    position: absolute;
    bottom: 2.4rem;
    right: 2.2rem;
    width: 26px;
    height: 26px;
    opacity: 0;
    transform: translateX(-12px);
    z-index: 2;
    transition: opacity 0.4s, transform 0.5s var(--ease-out);
}

.contact-box:hover .contact-label { color: var(--darker); }
.contact-box:hover p, .contact-box:hover .contact-link { color: var(--darker); }
.contact-box:hover .contact-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--darker);
}

.contact-link {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, color 0.3s;
}

.contact-box:hover .contact-link { border-color: rgba(53,49,47,0.4); }

.btn-big {
    opacity: 1;
    padding: 1.3rem 4rem;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--darker);
    color: var(--bg);
    padding: 4.5rem 4rem 0;
    position: relative;
    overflow: hidden;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr;
    gap: 3rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(246,245,242,0.12);
    position: relative;
    z-index: 2;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.footer-logo {
    display: block;
    text-decoration: none;
}

.footer-logo img {
    height: 46px;
    width: auto;
    display: block;
}

.footer-tagline {
    font-size: 0.82rem;
    line-height: 1.75;
    font-weight: 300;
    opacity: 0.6;
    max-width: 34ch;
}

.footer-col-title {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-nav a {
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    opacity: 0.75;
    transition: opacity 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--accent);
    transform: translateX(4px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-contact a {
    text-decoration: none;
    color: inherit;
    font-size: 0.82rem;
    line-height: 1.6;
    letter-spacing: 0.3px;
    opacity: 0.75;
    transition: opacity 0.3s, color 0.3s;
}

.footer-contact a:first-of-type {
    max-width: 26ch;
}

.footer-contact a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.4rem;
    padding: 2.2rem 0 3rem;
    font-size: 0.68rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    opacity: 0.5;
}

/* Kredit — "Sajt izradio" + WebForYou logo */
.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 1.4rem;
    padding: 0.85rem 1.4rem;
    text-decoration: none;
    border: 1px solid rgba(246,245,242,0.16);
    background: rgba(246,245,242,0.03);
    transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.footer-credit:hover {
    border-color: var(--accent);
    background: rgba(246,245,242,0.07);
    transform: translateY(-2px);
}

.footer-credit-label {
    font-size: 0.66rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent);
    padding-right: 1.4rem;
    border-right: 1px solid rgba(246,245,242,0.16);
}

.footer-credit img {
    height: 30px;
    max-height: 30px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    display: block;
    transition: transform 0.4s var(--ease-out);
}

.footer-credit:hover img {
    transform: scale(1.04);
}

/* ============ ANIM HELPERS ============ */
.fade-up {
    opacity: 0;
    transform: translateY(50px);
}

.split-heading .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.split-heading .word > span {
    display: inline-block;
    transform: translateY(110%);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .header { padding: 1.4rem 2rem; }
    .section-head, .brands-title, .insta-title { padding-left: 2rem; padding-right: 2rem; }
    .insta-handle { margin-left: 2rem; margin-right: 2rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); margin: 0 2rem; }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-box { border-bottom: 1px solid rgba(246,245,242,0.22); }
    .contact-box:nth-child(2n) { border-right: none; }
    .contact-box:nth-child(3), .contact-box:nth-child(4) { border-bottom: none; }
    .insta-grid { grid-template-columns: repeat(3, 1fr); }
    .brands-grid { grid-template-columns: repeat(2, 1fr); margin: 0 2rem; }
    #brendovi .brands-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-card { aspect-ratio: 1 / 0.95; }
    .brand-card .card-bg { opacity: 1; transform: scale(1.06); filter: brightness(0.96); }
    .brand-card:hover .card-bg { transform: scale(1.06); filter: brightness(0.96); }
    .brand-card .card-content { justify-content: center; align-items: center; padding: 1.1rem; }
    .brand-card .card-logo { max-width: 72%; max-height: 42px; align-self: center; background: #FFF; padding: 0.7rem 1.2rem; box-shadow: 0 4px 18px rgba(53,49,47,0.18); }
    .brand-card .card-info { display: none; }
    .ref-projects { grid-template-columns: 1fr; }
    .ref-clients-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ref-client { padding: 1rem 0.7rem; aspect-ratio: 3 / 1; }
    .ref-client-logo { max-width: 78%; max-height: 30px; }
    .ref-clients { padding: 3rem 2rem 0; }
    .ref-title { padding-left: 2rem; padding-right: 2rem; }
    .hero-bottom { left: 2rem; right: 2rem; }
    .footer { padding: 3rem 2rem 0; }
    .gallery-item.tall { width: 60vw; }
    .gallery-item.wide { width: 75vw; }
    .gallery-intro { width: 70vw; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .burger { display: flex; }
    .about-grid { grid-template-columns: 1fr; }
    .about-grid-reverse .about-image { order: -1; }
    .about-image { min-height: 55vh; }
    .hero-frame { inset: 1rem; }
    .hero-title { font-size: clamp(3.4rem, 18vw, 6rem); }
    .hero-coords { display: none; }
    .brands-grid { grid-template-columns: repeat(2, 1fr); margin: 0 1.2rem; }
    .brand-card { aspect-ratio: 1 / 1.05; }

    .brand-card .card-bg { opacity: 1; transform: scale(1.06); filter: brightness(0.96); }
    .brand-card:hover .card-bg { transform: scale(1.06); filter: brightness(0.96); }

    .brand-card .card-content {
        justify-content: center;
        align-items: center;
        padding: 1.1rem;
    }

    .brand-card .card-logo {
        max-width: 72%;
        max-height: 40px;
        align-self: center;
        background: #FFFFFF;
        padding: 0.65rem 1.1rem;
        box-shadow: 0 4px 18px rgba(53,49,47,0.18);
    }

    .brand-card .card-info { display: none; }

    .brands-title { padding-left: 2rem; padding-right: 2rem; }
    .brands-more { padding: 2.5rem 1.2rem 0; }
    .ref-clients { padding: 3rem 1.25rem 0; }
    .ref-clients-label { margin-bottom: 1.5rem; font-size: 0.62rem; letter-spacing: 3px; }
    .ref-clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ref-client {
        padding: 1.1rem 0.9rem;
        aspect-ratio: 5 / 2;
    }
    .ref-client-logo {
        max-width: 84%;
        max-height: 34px;
        height: 34px;
        width: auto;
        object-fit: contain;
    }

    .services-grid {
        grid-template-columns: 1fr;
        margin: 0 1.2rem;
    }

    .service-card {
        flex-direction: row;
        align-items: stretch;
    }

    .service-img-wrap {
        width: 120px;
        height: auto;
        min-height: 100%;
        flex-shrink: 0;
    }

    .service-body {
        padding: 1.3rem 1.3rem 2.2rem;
    }

    .service-num {
        font-size: 0.85rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
        margin: 0.7rem 0 0.5rem;
    }

    .service-card p {
        font-size: 0.8rem;
        line-height: 1.6;
    }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-box { border-right: none; min-height: 150px; }
    .contact-box:nth-child(3) { border-bottom: 1px solid rgba(246,245,242,0.22); }
    .insta-grid { grid-template-columns: repeat(2, 1fr); }
    .footer { padding: 3.5rem 1.5rem 0; }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.2rem;
        padding-bottom: 2.5rem;
    }
    .footer-logo img { height: 40px; }
    .footer-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 1.8rem;
    }
    .footer-nav .footer-col-title {
        grid-column: 1 / -1;
        margin-bottom: 0.4rem;
    }
    .footer-nav a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.85rem 0;
        font-size: 0.86rem;
        letter-spacing: 0.3px;
        opacity: 0.85;
        border-bottom: 1px solid rgba(246,245,242,0.1);
    }
    .footer-nav a::after {
        content: '';
        width: 5px;
        height: 5px;
        border-right: 1px solid var(--accent);
        border-bottom: 1px solid var(--accent);
        transform: rotate(-45deg);
        opacity: 0.55;
    }
    .footer-nav a:hover {
        transform: none;
        opacity: 1;
    }
    .footer-contact { gap: 0.7rem; }
    .footer-contact a:first-of-type { max-width: none; }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.3rem;
        padding: 1.6rem 0 2rem;
    }
    .footer-credit {
        width: 100%;
        justify-content: space-between;
    }
    .footer-credit img { height: 26px; }
    .stats { gap: 2rem; }
    .gallery-pin { height: auto; padding: 0 0 4.5rem; display: block; }
    .gallery-track { flex-direction: column; align-items: stretch; padding: 0 1.25rem; gap: 1.25rem; }
    .gallery-intro { width: 100%; min-width: 0; height: auto; margin-bottom: 0.75rem; }
    .gallery-intro h2 { font-size: clamp(2.2rem, 9vw, 3.2rem); margin-bottom: 0; }
    .gallery-item.tall, .gallery-item.wide {
        width: 100%;
        min-width: 0;
        height: auto;
        aspect-ratio: 4 / 3;
    }
    .gallery-img { inset: 0; }
    .gallery-item figcaption {
        bottom: 0.9rem;
        left: 0.9rem;
        font-size: 0.58rem;
        padding: 0.5rem 0.9rem;
        letter-spacing: 1.6px;
    }
    .hero-cta .btn { padding: 0.95rem 2rem; }
}
