/* Studio Forma — Design tokens & component styles */

:root {
    /* Boje — black/gray/white minimalist luxury (max 4 boje: dark, light/surface, accent, accent-light) */
    --stf-color-dark: #17181a;
    --stf-color-dark-hover: #000000;
    --stf-color-light: #ffffff;
    --stf-color-surface: #ffffff;
    --stf-color-surface-alt: #f2f1ef;
    --stf-color-accent: #4a4a48;
    --stf-color-accent-light: #e7e5e1;
    --stf-color-accent-hover: #2c2c2a;
    --stf-color-text: #1a1c1c;
    --stf-color-text-muted: #6b6b68;
    --stf-color-text-on-dark: #f5f4f1;
    --stf-color-text-on-dark-muted: #b4b2ac;
    --stf-color-border: rgba(23, 24, 26, 0.12);
    --stf-color-border-dark: rgba(245, 244, 241, 0.16);

    /* Dugmad — izvedeno iz boja gore, NE nove boje */
    --stf-btn-primary-bg: var(--stf-color-dark);
    --stf-btn-primary-bg-hover: var(--stf-color-dark-hover);
    --stf-btn-primary-text: var(--stf-color-light);
    --stf-btn-secondary-bg: var(--stf-color-accent-light);
    --stf-btn-secondary-bg-hover: var(--stf-color-dark);
    --stf-btn-secondary-text: var(--stf-color-dark);

    /* Linkovi */
    --stf-link-color: var(--stf-color-dark);
    --stf-link-color-hover: var(--stf-color-accent);

    /* Tipografija — Metrophobic (naslovi, uski geometrijski karakter) + Hanken Grotesk (telo) */
    --stf-font-heading: 'Metrophobic', Georgia, serif;
    --stf-font-body: 'Hanken Grotesk', -apple-system, sans-serif;

    --stf-space-xs: 0.5rem;
    --stf-space-sm: 1rem;
    --stf-space-md: 2rem;
    --stf-space-lg: 4rem;
    --stf-space-xl: 6rem;
    --stf-space-2xl: 9rem;
    --stf-radius-sm: 2px;
    --stf-radius-md: 4px;
    --stf-radius-lg: 8px;
    --stf-radius-pill: 999px;
    --stf-container-max: 1400px;
    --stf-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --stf-transition-fast: 0.2s var(--stf-ease);
    --stf-transition-base: 0.35s var(--stf-ease);
    --stf-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 1px rgba(0, 0, 0, 0.04);
    --stf-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.05);
    --stf-shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
body {
    font-family: var(--stf-font-body);
    color: var(--stf-color-text);
    background: var(--stf-color-surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
    font-family: var(--stf-font-heading);
    color: var(--stf-color-dark);
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; text-transform: none; }
h4 { font-size: 1.05rem; text-transform: none; }
p { margin: 0 0 1rem; color: var(--stf-color-text-muted); }
a { color: var(--stf-link-color); text-decoration: none; transition: color var(--stf-transition-fast); }
a:hover { color: var(--stf-link-color-hover); }
img { max-width: 100%; display: block; }

body a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--stf-color-dark);
    outline-offset: 2px;
}
.stf-section--alt a:focus-visible,
.stf-card--dark a:focus-visible,
.stf-header a:focus-visible,
.stf-footer a:focus-visible {
    outline-color: var(--stf-color-text-on-dark);
}

.stf-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--stf-color-dark);
    color: var(--stf-color-text-on-dark);
    padding: 1rem 1.5rem;
    z-index: 10000;
    font-family: var(--stf-font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
}
.stf-skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.stf-container {
    max-width: var(--stf-container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}
@media (min-width: 768px) {
    .stf-container { padding: 0 2.5rem; }
}

.stf-section { padding: var(--stf-space-xl) 0; }
@media (max-width: 900px) {
    .stf-section { padding: var(--stf-space-md) 0; }
}
.stf-section--alt { background: var(--stf-color-surface-alt); }
.stf-section--tight { padding: var(--stf-space-lg) 0; }
@media (max-width: 900px) {
    .stf-section--tight { padding: var(--stf-space-md) 0; }
    .stf-usl-service__text--reverse, .stf-usl-service__image--reverse { order: 0 !important; }
    .stf-usl-service__text { padding-left: 0 !important; padding-right: 0 !important; }
    .stf-estimator-section__inner .stf-grid { padding: 1.25rem !important; }
    .stf-priznanja-section .stf-container { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
    .stf-portfolio-feature { padding: 0 !important; }
    .stf-portfolio-card { padding: 0 !important; }
    .stf-triptih-grid { grid-template-columns: 1fr !important; }
    .stf-partner-logos { grid-template-columns: repeat(2, 1fr) !important; }
    .stf-kontakt-forma-grid { display: block !important; }
    .stf-kontakt-forma-grid > * + * { margin-top: 1.5rem; }
    .stf-faq-grid { display: block !important; }
    .stf-faq-grid > * + * { margin-top: 1.5rem; }
    .stf-branch-card__body { padding: 0 !important; }
}

.stf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--stf-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stf-color-text-muted);
    margin-bottom: 0.75rem;
}
.stf-eyebrow--on-dark { color: var(--stf-color-text-on-dark-muted); }
.stf-eyebrow__dot { width: 6px; height: 6px; background: var(--stf-color-dark); flex-shrink: 0; }
.stf-eyebrow--on-dark .stf-eyebrow__dot { background: var(--stf-color-text-on-dark); }

.stf-grid { display: grid; gap: 1.5rem; }
.stf-grid--2 { grid-template-columns: repeat(2, 1fr); }
.stf-grid--3 { grid-template-columns: repeat(3, 1fr); }
.stf-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
    .stf-grid--2, .stf-grid--3, .stf-grid--4 { grid-template-columns: 1fr; }
}
@media (min-width: 640px) and (max-width: 900px) {
    .stf-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Home portfolio grid — 1 istaknut projekat preko cele širine, ostali manji ---------- */
.stf-home-portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.stf-home-portfolio-grid__feature { grid-column: 1 / -1; }
@media (max-width: 900px) {
    .stf-home-portfolio-grid { grid-template-columns: 1fr; }
    .stf-home-portfolio-grid__feature { grid-column: auto; }
}

.stf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.75rem;
    font-family: var(--stf-font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--stf-transition-fast), color var(--stf-transition-fast), border-color var(--stf-transition-fast);
}
.stf-btn--primary { background: var(--stf-btn-primary-bg); color: var(--stf-btn-primary-text); }
.stf-btn--primary:hover { background: var(--stf-btn-primary-bg-hover); color: var(--stf-btn-primary-text); }
.stf-btn--secondary { background: var(--stf-btn-secondary-bg); color: var(--stf-btn-secondary-text); }
.stf-btn--secondary:hover { background: var(--stf-btn-secondary-bg-hover); color: var(--stf-color-text-on-dark); }
.stf-btn--ghost { background: transparent; border-color: var(--stf-color-border); color: var(--stf-color-dark); }
.stf-btn--ghost:hover { border-color: var(--stf-color-dark); }
.stf-hero--bg .stf-btn--ghost,
.stf-hero--centered .stf-btn--ghost { border-color: var(--stf-color-border-dark); color: var(--stf-color-text-on-dark); }
.stf-hero--bg .stf-btn--ghost:hover,
.stf-hero--centered .stf-btn--ghost:hover { border-color: var(--stf-color-text-on-dark); }
.stf-btn--outline { background: transparent; border-color: var(--stf-color-dark); color: var(--stf-color-dark); padding: 0.75rem 1.4rem; }
.stf-btn--outline:hover { background: var(--stf-color-dark); color: var(--stf-color-text-on-dark); }
.stf-btn--on-dark { background: var(--stf-color-light); color: var(--stf-color-dark); }
.stf-btn--on-dark:hover { background: var(--stf-color-accent-light); }

.stf-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--stf-color-dark);
    color: var(--stf-color-text-on-dark);
}
.stf-badge-upsell {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a15c00;
    background: #fff2df;
    padding: 0.25rem 0.6rem;
    margin-bottom: 0.5rem;
}

.stf-card {
    background: var(--stf-color-surface);
    padding: 2rem;
}
.stf-card--dark { background: var(--stf-color-dark); color: var(--stf-color-text-on-dark-muted); }
.stf-card--dark h3, .stf-card--dark h4 { color: var(--stf-color-text-on-dark); }

/* ---------- Reveal-on-scroll ---------- */
.stf-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--stf-ease), transform 0.6s var(--stf-ease);
}
.stf-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .stf-reveal { transition: none; opacity: 1; transform: none; }
}

/* ---------- Image fade-in ---------- */
.stf-img-fade { opacity: 0; transition: opacity 0.5s var(--stf-ease); }
.stf-img-fade.is-loaded { opacity: 1; }

/* ---------- Topbar ---------- */
.stf-topbar { background: var(--stf-color-dark); color: var(--stf-color-text-on-dark-muted); }
.stf-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 2.25rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.stf-topbar__group { display: flex; align-items: center; gap: 1.25rem; }
.stf-topbar__item { display: flex; align-items: center; gap: 0.35rem; }
.stf-topbar__item .material-symbols-outlined { font-size: 14px; }
.stf-topbar__item a { color: var(--stf-color-text-on-dark-muted); }
.stf-topbar__item a:hover { color: var(--stf-color-text-on-dark); }
.stf-topbar__badge { color: var(--stf-color-text-on-dark); font-weight: 600; letter-spacing: 0.1em; }
@media (max-width: 640px) {
    .stf-topbar__item--hide-sm { display: none; }
}

/* ---------- Header / Nav ---------- */
.stf-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--stf-transition-fast);
}
.stf-header.is-scrolled { border-color: var(--stf-color-border); }
.stf-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}
.stf-nav__logo { display: flex; align-items: center; }
.stf-nav__logo-img { height: 65px; width: auto; }
.stf-nav__logo-text { display: flex; flex-direction: column; }
.stf-nav__logo-title {
    font-family: var(--stf-font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--stf-color-dark);
}
.stf-nav__logo-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stf-color-text-muted);
}
.stf-nav__links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}
.stf-nav__links ul { list-style: none; display: flex; gap: 2.25rem; margin: 0; padding: 0; }
.stf-nav__links a {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stf-color-text-muted);
}
.stf-nav__links a:hover,
.stf-nav__links .current-menu-item > a { color: var(--stf-color-dark); }
.stf-nav__links-head, .stf-nav__cta-mobile { display: none; }
.stf-nav__right { display: flex; align-items: center; gap: 1.25rem; }
.stf-nav__cta-desktop {
    padding: 0.75rem 1.5rem;
    background: var(--stf-color-dark);
    color: var(--stf-color-text-on-dark);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background var(--stf-transition-fast);
}
.stf-nav__cta-desktop:hover { background: var(--stf-color-dark-hover); color: var(--stf-color-text-on-dark); }
button.stf-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 0.5rem;
}
button.stf-nav-toggle:hover, button.stf-nav-toggle:focus, button.stf-nav-toggle:active { background: none !important; }
.stf-nav-toggle span { width: 22px; height: 2px; background: var(--stf-color-dark); }

@media (max-width: 960px) {
    .stf-nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--stf-transition-base);
        z-index: 900;
    }
    .stf-nav-overlay.is-open { opacity: 1; pointer-events: auto; }

    .stf-nav__links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(320px, 85vw);
        background: var(--stf-color-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        transform: translateX(100%);
        transition: transform var(--stf-transition-base);
        z-index: 901;
        overflow-y: auto;
    }
    .stf-nav__links.is-open { transform: translateX(0); }
    .stf-nav__links ul { flex-direction: column; gap: 1.25rem; width: 100%; }
    .stf-nav__links a { color: var(--stf-color-text-on-dark-muted); font-size: 1.1rem; }
    .stf-nav__links a:hover, .stf-nav__links .current-menu-item > a { color: #fff; }
    .stf-nav__links-head { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 2rem; }
    span.stf-nav__links-title { display: none; }
    button.stf-nav__links-close {
        background: none !important;
        border: none !important;
        color: var(--stf-color-text-on-dark);
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 10px;
    }
    button.stf-nav__links-close:hover, button.stf-nav__links-close:focus, button.stf-nav__links-close:active { background: none !important; }
    .stf-nav__cta-mobile { display: inline-flex; margin-top: 2rem; width: 100%; justify-content: center; }
    a.stf-btn.stf-btn--primary.stf-nav__cta-mobile { border: 1px solid #fff; color: #fff; }
    .stf-nav__cta-desktop { display: none; }
    button.stf-nav-toggle { display: flex; }
    body.stf-nav-is-open { overflow-y: hidden; }
}

/* ---------- Hero ---------- */
.stf-hero { position: relative; overflow: hidden; }
.stf-hero__bg-overlay--img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.stf-hero__bg-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(23,24,26,0.85), rgba(23,24,26,0.25)); }
.stf-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.stf-hero--bg { min-height: 640px; display: flex; align-items: flex-end; padding: var(--stf-space-xl) 0; color: var(--stf-color-text-on-dark); }
.stf-hero--bg h1, .stf-hero--bg .stf-eyebrow { color: var(--stf-color-text-on-dark); }
.stf-hero--bg p { color: var(--stf-color-text-on-dark-muted); }
.stf-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--stf-space-lg); align-items: center; position: relative; z-index: 2; padding: var(--stf-space-xl) 0; }
.stf-hero--centered .stf-hero__grid { grid-template-columns: 1fr; text-align: center; max-width: 760px; margin: 0 auto; }
@media (max-width: 900px) {
    .stf-hero__grid { grid-template-columns: 1fr; text-align: center; }
    .stf-hero__cta-row { justify-content: center !important; }
}
.stf-hero__image { overflow: hidden; aspect-ratio: 4/5; }
.stf-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.stf-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--stf-color-accent);
    margin-bottom: 1rem;
}
.stf-hero__badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--stf-color-dark);
    flex-shrink: 0;
}
.stf-hero--bg .stf-hero__badge,
.stf-hero--centered .stf-hero__badge { color: var(--stf-color-text-on-dark); }
.stf-hero--bg .stf-hero__badge::before,
.stf-hero--centered .stf-hero__badge::before { background: currentColor; }
.stf-hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--stf-color-border);
}
.stf-hero--bg .stf-hero__stats { border-color: var(--stf-color-border-dark); }
@media (max-width: 640px) {
    .stf-hero__stats { grid-template-columns: repeat(2, 1fr); }
}
.stf-hero__stat-value { display: block; font-family: var(--stf-font-heading); font-size: 1.6rem; color: var(--stf-color-dark); }
.stf-hero--bg .stf-hero__stat-value { color: var(--stf-color-text-on-dark); }
.stf-hero__stat-label { display: block; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stf-color-text-muted); }
.stf-hero--bg .stf-hero__stat-label { color: var(--stf-color-text-on-dark-muted); }
.stf-hero__google { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.stf-hero__google-stars .material-symbols-outlined { font-size: 16px; color: var(--stf-color-dark); font-variation-settings: 'FILL' 1; }
.stf-hero--bg .stf-hero__google-stars .material-symbols-outlined { color: var(--stf-color-text-on-dark); }
.stf-hero__google-text { font-size: 0.85rem; color: var(--stf-color-text-muted); }
.stf-hero--bg .stf-hero__google-text { color: var(--stf-color-text-on-dark-muted); }

/* ---------- Standardi / faze section (with optional bg image) ---------- */
.stf-standardi-section { position: relative; }
.stf-standardi-section--media { color: var(--stf-color-text-on-dark); }
.stf-standardi-section__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.stf-standardi-section__scrim { position: absolute; inset: 0; z-index: 1; }
.stf-standardi-section .stf-container { position: relative; z-index: 2; }

/* ---------- Zašto Studio Forma — full-width bg image sekcija ---------- */
.stf-zasto { position: relative; padding: var(--stf-space-xl) 0; }
.stf-zasto--media { color: var(--stf-color-text-on-dark); }
.stf-zasto__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.stf-zasto__scrim { position: absolute; inset: 0; z-index: 1; }
.stf-zasto__inner { position: relative; z-index: 2; }
.stf-zasto__text { max-width: 36rem; margin-bottom: 2.5rem; }
.stf-zasto__card { background: var(--stf-color-surface); }
.stf-zasto--media .stf-zasto__card { background: rgba(245,244,241,0.96); }

/* ---------- Usluge / Oblasti delovanja — optional full-width bg image ---------- */
.stf-usluge--media { position: relative; }
.stf-usluge__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.stf-usluge__scrim { position: absolute; inset: 0; z-index: 1; }
.stf-usluge__inner { position: relative; z-index: 2; }

/* ---------- Usluge page — Proces rada, optional full-width bg image ---------- */
.stf-faze { position: relative; padding: var(--stf-space-xl) 0; }
.stf-faze--media { color: var(--stf-color-text-on-dark); }
.stf-faze__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.stf-faze__scrim { position: absolute; inset: 0; z-index: 1; }
.stf-faze__inner { position: relative; z-index: 2; }
.stf-faze--media .stf-step-card { background: rgba(245,244,241,0.97); }

/* ---------- Usluge page — Konfigurator, optional full-width bg image ---------- */
.stf-estimator-section { position: relative; padding: var(--stf-space-lg) 0; }
.stf-estimator-section--media { padding: var(--stf-space-xl) 0; }
.stf-estimator-section__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.stf-estimator-section__scrim { position: absolute; inset: 0; z-index: 1; }
.stf-estimator-section__inner { position: relative; z-index: 2; }

/* ---------- Usluge page — CTA, optional full-width bg image ---------- */
.stf-cta-section { position: relative; }
.stf-cta-section__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.5; }
.stf-cta-section__scrim { position: absolute; inset: 0; z-index: 1; }
.stf-cta-section__inner { position: relative; z-index: 2; }

/* ---------- Priznanja / trust bar (Usluge) ---------- */
.stf-priznanje-item { display: flex; align-items: center; gap: 0.6rem; transition: opacity var(--stf-transition-fast); }
.stf-priznanje-item__icon { font-size: 20px; color: var(--stf-color-dark); }
.stf-priznanje-item__label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--stf-color-text); }
.stf-priznanje-item:hover { opacity: 0.6; }

/* ---------- Partneri — logo strip (O studiju) ---------- */
.stf-partner-logos { align-items: center; }
.stf-partner-logo {
    height: 8rem;
    background: var(--stf-color-surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
}
.stf-partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter var(--stf-transition-base), opacity var(--stf-transition-base);
}
.stf-partner-logo:hover img { filter: grayscale(0%); opacity: 1; }

/* ---------- Service card ---------- */
.stf-service-card { display: flex; flex-direction: column; gap: 1.25rem; }
.stf-service-card__image { aspect-ratio: 16/10; overflow: hidden; }
.stf-service-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--stf-ease); }
.stf-card:hover .stf-service-card__image img { transform: scale(1.05); }
.stf-service-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.stf-service-card__footer { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; margin-top: auto; border-top: 1px solid var(--stf-color-border); }

/* ---------- Project card (portfolio) ---------- */
.stf-project-card__image { position: relative; overflow: hidden; background: var(--stf-color-surface-alt); }
.stf-project-card__image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--stf-ease); }
article:hover .stf-project-card__image img { transform: scale(1.05); }
.stf-project-card__tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--stf-color-dark);
    color: var(--stf-color-text-on-dark);
    padding: 0.35rem 0.85rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.stf-project-card--dark { background: var(--stf-color-dark); }

/* ---------- Team card ---------- */
.stf-team-card__photo { aspect-ratio: 3/4; overflow: hidden; background: var(--stf-color-surface-alt); margin-bottom: 1rem; }
.stf-team-card__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter var(--stf-transition-base); }
.stf-team-card:hover .stf-team-card__photo img { filter: grayscale(0%); }
.stf-team-card__role { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stf-color-text-muted); margin-bottom: 0.25rem; }
.stf-team-card__license { font-size: 0.85rem; color: var(--stf-color-text-muted); }

/* ---------- Step card (proces rada) ---------- */
.stf-step-card { border-top: 2px solid var(--stf-color-dark); }
.stf-step-card__tag { display: flex; align-items: center; justify-content: space-between; padding-top: 0.75rem; margin-top: 0.75rem; border-top: 1px solid var(--stf-color-border); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--stf-color-text-muted); }
.stf-step-card__tag--dark { border-color: var(--stf-color-border-dark); color: var(--stf-color-text-on-dark-muted); }

/* ---------- Filters (Radovi) ---------- */
.stf-filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.stf-filter-btn {
    padding: 0.6rem 1.2rem;
    background: var(--stf-color-surface-alt);
    color: var(--stf-color-text-muted);
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--stf-transition-fast), color var(--stf-transition-fast);
}
.stf-filter-btn.is-active { background: var(--stf-color-dark); color: var(--stf-color-text-on-dark); }

/* ---------- Portfolio grid (asymmetric editorial) ---------- */
.stf-portfolio-grid { display: flex; flex-direction: column; gap: 3rem; }
.stf-portfolio-feature { background: var(--stf-color-surface-alt); padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; cursor: pointer; }
.stf-portfolio-feature__image { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.stf-portfolio-feature__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--stf-ease); }
.stf-portfolio-feature:hover .stf-portfolio-feature__image img { transform: scale(1.03); }
.stf-portfolio-feature__meta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.stf-portfolio-tags { display: flex; flex-wrap: wrap; gap: 2rem; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stf-color-text-muted); }
.stf-portfolio-tags strong { display: block; color: var(--stf-color-dark); font-size: 0.95rem; letter-spacing: 0; text-transform: none; font-weight: 600; }

.stf-portfolio-card { background: var(--stf-color-surface-alt); padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; cursor: pointer; }
.stf-portfolio-card__image { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.stf-portfolio-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--stf-ease); }
.stf-portfolio-card:hover .stf-portfolio-card__image img { transform: scale(1.03); }

/* ---------- Before/After slider ---------- */
.stf-ba-slider {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--stf-color-surface-alt);
    cursor: ew-resize;
    user-select: none;
    touch-action: pan-y;
}
.stf-ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; }
.stf-ba-slider__after { z-index: 1; }
.stf-ba-slider__before-wrap { position: absolute; inset: 0; z-index: 2; overflow: hidden; width: 50%; }
.stf-ba-slider__before-wrap img { width: var(--stf-ba-width, 100vw); max-width: none; }
.stf-ba-slider__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: var(--stf-color-light);
    z-index: 3;
    transform: translateX(-50%);
}
.stf-ba-slider__handle::after {
    content: 'drag_handle';
    font-family: 'Material Symbols Outlined';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    width: 40px;
    height: 40px;
    background: var(--stf-color-light);
    color: var(--stf-color-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--stf-shadow-md);
}
.stf-ba-slider__label { position: absolute; top: 1rem; z-index: 4; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.35rem 0.75rem; background: rgba(23,24,26,0.75); color: #fff; }
.stf-ba-slider__label--before { left: 1rem; }
.stf-ba-slider__label--after { right: 1rem; }

/* ---------- Estimator (Usluge konfigurator) ---------- */
.stf-estimator {
    background: var(--stf-color-surface-alt);
    padding: 2rem;
}
.stf-estimator__options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (max-width: 640px) { .stf-estimator__options { grid-template-columns: 1fr; } }
.stf-estimator__option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--stf-color-surface);
    cursor: pointer;
    transition: background var(--stf-transition-fast);
}
.stf-estimator__option:hover { background: var(--stf-color-accent-light); }
.stf-estimator__option input { width: 18px; height: 18px; accent-color: var(--stf-color-dark); }
.stf-estimator__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; background: var(--stf-color-surface); margin-top: 0.75rem; }

/* ---------- FAQ accordion ---------- */
.stf-faq { background: var(--stf-color-surface-alt); padding: 1.5rem; }
.stf-faq__question { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; }
.stf-faq__question h4 { margin: 0; }
.stf-faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--stf-ease); }
.stf-faq[data-open="true"] .stf-faq__question .material-symbols-outlined { transform: rotate(180deg); }
.stf-faq__question .material-symbols-outlined { transition: transform var(--stf-transition-fast); }

/* ---------- Forms ---------- */
.stf-form-group { margin-bottom: 1.25rem; }
.stf-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) { .stf-form-row { grid-template-columns: 1fr; } }
.stf-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stf-color-text-muted);
    margin-bottom: 0.4rem;
}
input.stf-input, textarea.stf-textarea, select.stf-select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--stf-color-surface-alt);
    border: 1px solid rgba(23, 24, 26, 0.28) !important;
    border-radius: 0;
    font-family: var(--stf-font-body);
    font-size: 0.95rem;
    color: var(--stf-color-text);
    transition: background var(--stf-transition-fast), border-color var(--stf-transition-fast);
}
input.stf-input:focus, textarea.stf-textarea:focus, select.stf-select:focus { background: var(--stf-color-surface); border-color: var(--stf-color-dark) !important; outline: none; }
.stf-form-on-alt input.stf-input,
.stf-form-on-alt textarea.stf-textarea,
.stf-form-on-alt select.stf-select { background: var(--stf-color-surface); }
input.stf-input.is-invalid, textarea.stf-textarea.is-invalid, select.stf-select.is-invalid { border-color: #b3261e !important; }
.stf-form-error { display: block; font-size: 0.75rem; color: #b3261e; margin-top: 0.35rem; min-height: 1em; }
.stf-form__status { margin-top: 1rem; padding: 0.85rem 1rem; background: var(--stf-color-accent-light); font-size: 0.9rem; }
.stf-form__status.is-error { background: #ffe2df; color: #7a1a12; }
.stf-btn.is-loading { opacity: 0.7; pointer-events: none; }

/* ---------- Contact branch cards ---------- */
.stf-branch-card { background: var(--stf-color-surface-alt); display: flex; flex-direction: column; }
.stf-branch-card__image { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.stf-branch-card__image img { width: 100%; height: 100%; object-fit: cover; }
.stf-branch-card__body { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.stf-branch-card__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; color: var(--stf-color-text-muted); }
.stf-branch-card__list li { display: flex; align-items: flex-start; gap: 0.5rem; }
.stf-branch-card__list .material-symbols-outlined { font-size: 18px; color: var(--stf-color-dark); flex-shrink: 0; margin-top: 2px; }

/* ---------- Review slider ---------- */
.stf-review-slider__viewport { overflow: hidden; }
.stf-review-slider__track { display: flex; gap: 1.5rem; transition: transform 0.5s var(--stf-ease); }
.stf-review-slider__slide { flex: 0 0 calc(33.333% - 1rem); }
@media (max-width: 900px) { .stf-review-slider__slide { flex-basis: calc(50% - 0.75rem); } }
@media (max-width: 640px) { .stf-review-slider__slide { flex-basis: 100%; } }

/* ---------- Footer ---------- */
.stf-footer { background: var(--stf-color-dark); color: var(--stf-color-text-on-dark-muted); padding-top: var(--stf-space-xl); }
.stf-footer__top { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
@media (max-width: 900px) { .stf-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stf-footer__top { grid-template-columns: 1fr; } }
.stf-footer__logo-text { font-family: var(--stf-font-heading); font-size: 1.4rem; color: var(--stf-color-text-on-dark); text-transform: uppercase; }
.stf-footer__desc { color: var(--stf-color-text-on-dark-muted); font-size: 0.9rem; max-width: 26rem; }
.stf-footer__col-title { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stf-color-text-on-dark); margin-bottom: 0.75rem; }
.stf-footer__col-links { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.stf-footer__col-links a { color: var(--stf-color-text-on-dark-muted); }
.stf-footer__col-links a:hover { color: var(--stf-color-text-on-dark); }
.stf-footer__newsletter { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.stf-footer__newsletter input { padding: 0.75rem 1rem; background: rgba(255,255,255,0.06); border: 1px solid var(--stf-color-border-dark); color: var(--stf-color-text-on-dark); }
.stf-footer__newsletter input::placeholder { color: var(--stf-color-text-on-dark-muted); }
.stf-footer__newsletter button {
    padding: 0.75rem 1rem;
    background: var(--stf-color-text-on-dark);
    color: var(--stf-color-dark);
    border: none;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    cursor: pointer;
}
.stf-footer__contact-row { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; padding: 1.5rem 0; border-top: 1px solid var(--stf-color-border-dark); font-size: 0.9rem; }
.stf-footer__contact-item { display: flex; align-items: center; gap: 0.5rem; color: var(--stf-color-text-on-dark-muted); }
.stf-footer__contact-item .material-symbols-outlined { font-size: 18px; }
.stf-footer__contact-item:hover { color: var(--stf-color-text-on-dark); }
.stf-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--stf-color-border-dark); font-size: 0.8rem; }
.stf-footer__legal-links { display: flex; gap: 1.5rem; }
.stf-footer__legal-links a { color: var(--stf-color-text-on-dark-muted); }
.stf-footer__legal-links a:hover { color: var(--stf-color-text-on-dark); }

/* ---------- Scroll top / WhatsApp ---------- */
button.stf-scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--stf-color-dark);
    color: var(--stf-color-text-on-dark);
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--stf-transition-fast);
    z-index: 400;
}
.stf-scroll-top.is-visible { opacity: 1; pointer-events: auto; }
.stf-whatsapp-btn {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--stf-shadow-md);
    z-index: 400;
}

/* ---------- Calendly modal ---------- */
.stf-calendly-modal { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; }
.stf-calendly-modal[hidden] { display: none; }
.stf-calendly-modal__backdrop { position: absolute; inset: 0; background: rgba(23,24,26,0.7); }
.stf-calendly-modal__panel { position: relative; background: var(--stf-color-surface); width: min(920px, 92vw); height: min(720px, 88vh); z-index: 2; }
.stf-calendly-modal__close { position: absolute; top: 0.75rem; right: 0.75rem; background: var(--stf-color-dark); color: var(--stf-color-text-on-dark); border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; z-index: 3; }
.stf-calendly-modal__inline { width: 100%; height: 100%; }

/* ---------- Interactive tabs (O studiju) ---------- */
.stf-tabs { display: flex; gap: 0.25rem; background: var(--stf-color-surface-alt); padding: 0.25rem; }
.stf-tabs button {
    flex: 1;
    padding: 0.85rem 1rem;
    background: transparent;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stf-color-text-muted);
    cursor: pointer;
    transition: background var(--stf-transition-fast), color var(--stf-transition-fast);
}
.stf-tabs button.is-active { background: var(--stf-color-dark); color: var(--stf-color-text-on-dark); }
.stf-tab-panel { display: none; padding: 1.5rem; background: var(--stf-color-surface-alt); margin-top: 0.75rem; }
.stf-tab-panel.is-active { display: block; }

/* ---------- Atelje section (Početna — asimetrični foto-triptih) ---------- */
.stf-atelje__grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr 1fr; gap: 1.5rem; align-items: stretch; }
.stf-atelje__cell { margin: 0; overflow: hidden; background: var(--stf-color-surface-alt); aspect-ratio: 3/4; }
.stf-atelje__cell--tall { aspect-ratio: auto; }
.stf-atelje__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--stf-ease); }
.stf-atelje__cell:hover img { transform: scale(1.05); }
.stf-atelje__text { display: flex; flex-direction: column; justify-content: center; padding: 1rem; }
@media (max-width: 900px) {
    .stf-atelje__grid { grid-template-columns: 1fr 1fr; }
    .stf-atelje__text { grid-column: span 2; order: -1; }
    .stf-atelje__cell--tall { aspect-ratio: 3/4; }
}
@media (max-width: 560px) {
    .stf-atelje__grid { grid-template-columns: 1fr; }
    .stf-atelje__text { grid-column: auto; }
}

/* ---------- Grayscale gallery (O studiju) ---------- */
.stf-grayscale-img { filter: grayscale(100%) contrast(1.05); transition: filter var(--stf-transition-base); }
.stf-grayscale-img:hover { filter: grayscale(0%); }

/* ---------- Counter ---------- */
[data-stf-counter] { font-family: var(--stf-font-heading); }

/* ---------- Gallery item + lightbox ---------- */
.stf-gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--stf-color-surface);
    border: none;
    padding: 0;
    cursor: zoom-in;
    display: block;
    width: 100%;
}
.stf-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--stf-ease), filter var(--stf-transition-base); }
.stf-gallery-item:hover img { transform: scale(1.06); }
.stf-gallery-item__zoom {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(23, 24, 26, 0.6);
    color: var(--stf-color-text-on-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity var(--stf-transition-fast), transform var(--stf-transition-fast);
    pointer-events: none;
}
.stf-gallery-item:hover .stf-gallery-item__zoom,
.stf-gallery-item:focus-visible .stf-gallery-item__zoom { opacity: 1; transform: none; }

.stf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 950;
    background: rgba(10, 10, 10, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
}
.stf-lightbox[hidden] { display: none; }
.stf-lightbox__img { max-width: 88vw; max-height: 84vh; object-fit: contain; opacity: 0; transition: opacity 0.25s var(--stf-ease); }
.stf-lightbox__img.is-loaded { opacity: 1; }
.stf-lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--stf-transition-fast);
}
.stf-lightbox__close:hover { background: rgba(255, 255, 255, 0.18); }
.stf-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--stf-transition-fast);
}
.stf-lightbox__nav:hover { background: rgba(255, 255, 255, 0.18); }
.stf-lightbox__nav--prev { left: 1.5rem; }
.stf-lightbox__nav--next { right: 1.5rem; }
@media (max-width: 640px) {
    .stf-lightbox__nav { width: 40px; height: 40px; }
    .stf-lightbox__nav--prev { left: 0.5rem; }
    .stf-lightbox__nav--next { right: 0.5rem; }
}
